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/ghiloufibelgacem/jornaldev/blob/master/CoreJavaProjects/SingletonExample/src/com/journaldev/singleton/StaticBlockSingleton.java | Github Open Source | Open Source | MIT | 2,022 | jornaldev | ghiloufibelgacem | Java | Code | 44 | 126 | package com.journaldev.singleton;
public class StaticBlockSingleton {
private static StaticBlockSingleton instance;
private StaticBlockSingleton(){}
//static block initialization for exception handling
static{
try{
instance = new StaticBlockSingleton();
}catch(Exc... | 27,856 |
https://github.com/Mah-D/VICE/blob/master/test/seman/.svn/text-base/pts_mp_array01.v.svn-base | Github Open Source | Open Source | MIT | 2,015 | VICE | Mah-D | null | Spoken | 19 | 54 | // @Harness: v2-seman
// @Result: PASS
component mp_array01 {
method makeArray<X>(a: X): X[] {
return new X[0];
}
}
| 7,905 |
https://github.com/yuhangjiayou/Damon/blob/master/damon-example/src/main/kotlin/com/zyhang/damon/example/SinglePresenterActivity.kt | Github Open Source | Open Source | Apache-2.0 | null | Damon | yuhangjiayou | Kotlin | Code | 57 | 267 | package com.zyhang.damon.example
import android.os.Bundle
import com.zyhang.damon.annotation.RequiresPresenter
import com.zyhang.damon.rxjava.support.RxMvpAppCompatActivity
import kotlinx.android.synthetic.main.activity_single_presenter.*
@RequiresPresenter(ExamplePresenter1::class)
class SinglePresenterActivity : Rx... | 34,057 |
https://github.com/MarcosVP-Fatec/TG-Fatec/blob/master/src/main/java/br/gov/sp/fatec/gedam/model/entity/regi/Usuario.java | Github Open Source | Open Source | MIT | null | TG-Fatec | MarcosVP-Fatec | Java | Code | 223 | 735 | package br.gov.sp.fatec.gedam.model.entity.regi;
import java.util.Set;
import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinTable;
import javax.persistence.JoinColumn;
import javax.persistence.Man... | 49,962 |
https://github.com/DeybisMelendez/nacatamal-on/blob/master/nacatamal-on/render/webgl2/createProgram.js | Github Open Source | Open Source | MIT | 2,020 | nacatamal-on | DeybisMelendez | JavaScript | Code | 50 | 182 | import compileShader from "./compileShader";
const createProgram = (gl, vertexShaderSource, fragmentShaderSource) => {
const program = gl.createProgram();
const vertexShader = compileShader(gl, gl.VERTEX_SHADER, vertexShaderSource);
const fragmentShader = compileShader(gl, gl.FRAGMENT_SHADER, fragmentShade... | 12,354 |
https://github.com/stripe/stripe-python/blob/master/tests/api_resources/test_balance.py | Github Open Source | Open Source | MIT | 2,023 | stripe-python | stripe | Python | Code | 21 | 92 | from __future__ import absolute_import, division, print_function
import stripe
class TestBalance(object):
def test_is_retrievable(self, request_mock):
resource = stripe.Balance.retrieve()
request_mock.assert_requested("get", "/v1/balance")
assert isinstance(resource, stripe.Balance)
| 45,780 |
https://github.com/Goralive/selenium/blob/master/src/test/java/com/selenium/GoogleSearchTest.java | Github Open Source | Open Source | Apache-2.0 | null | selenium | Goralive | Java | Code | 109 | 401 | package com.selenium;
import io.qameta.allure.Step;
import org.testng.annotations.*;
import selenium.core.WebDriverTestBase;
import selenium.pages.GoogleResultPage;
import selenium.pages.GoogleSearchPage;
import static org.testng.Assert.assertTrue;
//TODO Desirable Push -> GitHub -> Hook -> Jenkins Build Deploy Hook ... | 35,360 |
https://github.com/vebqa/vebtal-pdf/blob/master/src/test/java/org/vebqa/vebtal/pdf/asserts/VerifyMetaDataAssertTest.java | Github Open Source | Open Source | Apache-2.0 | null | vebtal-pdf | vebqa | Java | Code | 158 | 796 | package org.vebqa.vebtal.pdf.asserts;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.vebqa.vebtal.pdf.PDFDriver;
public class VerifyMetaDataAssertTest {
@Rule
public ExpectedException thrown = ExpectedException.none();
@Rule
public final PDFDriver dut = new P... | 22,627 |
https://github.com/JanLauGe/Screeps/blob/master/functions.js | Github Open Source | Open Source | MIT | 2,017 | Screeps | JanLauGe | JavaScript | Code | 869 | 2,777 | var functions = {
import: function() {
// Functions for identifiers -------------------------------------------
// Custom function to check array for a value
contains = function(a, obj) {
for (var i = 0; i < a.length; i++) {
if (a[i] === obj) {
... | 40,009 |
https://github.com/chrisGerken/splittingAtomically/blob/master/atomic-messages-kafka/src/main/java/org/atomsg/topic/AtomicMessage/AtomicMessageSimpleConsumer.java | Github Open Source | Open Source | Apache-2.0 | null | splittingAtomically | chrisGerken | Java | Code | 257 | 760 | package org.atomsg.topic.AtomicMessage;
import java.nio.ByteBuffer;
import kafka.message.MessageAndOffset;
import kafka.utils.VerifiableProperties;
import org.atomsg.common.internal.AbstractSimpleConsumer;
import org.atomsg.model.AtomicMessage;
import org.atomsg.serialization.AtomicMessageCoder;
import org.atomsg.se... | 4,913 |
https://github.com/RKSCapul/demo-hermitcraft-concept-site/blob/master/data/data-brand-colors.js | Github Open Source | Open Source | MIT | null | demo-hermitcraft-concept-site | RKSCapul | JavaScript | Code | 18 | 64 | const brandColors = {
twitch: '#6441a5',
youtube: '#c4302b',
twitter: '00acee',
instagram: '#fb3958',
mixer: '#000000',
}
export default brandColors; | 32,239 |
https://github.com/devrnt/virchual/blob/master/packages/react/src/index.tsx | Github Open Source | Open Source | MIT | null | virchual | devrnt | TypeScript | Code | 256 | 1,040 | import 'virchual/dist/virchual.css';
import * as React from 'react';
import { Virchual as VirchualCore, Controls, LazyLoadImage } from 'virchual';
import { VirchualSlide, VirchualSlideProps } from './slide';
export interface VirtualProps {
id?: string;
children: React.ReactElement<VirchualSlideProps> | React.Rea... | 32,180 |
https://github.com/codacy-badger/outbox-event-bus/blob/master/src/main/kotlin/mobi/waterdog/eventbus/EventConsumer.kt | Github Open Source | Open Source | MIT | 2,020 | outbox-event-bus | codacy-badger | Kotlin | Code | 29 | 112 | package mobi.waterdog.eventbus
import io.reactivex.Flowable
import mobi.waterdog.eventbus.model.EventOutput
import java.util.UUID
interface EventConsumer {
fun stream(topicName: String, consumerId: String = UUID.randomUUID().toString()): Flowable<EventOutput>
fun unsubscribe(topicName: String, consumerId: Str... | 30,657 |
https://github.com/201602785NatalyChavez/tytusds/blob/master/20211SVAC/G07/datavis/src/app/rsa/rsa.component.ts | Github Open Source | Open Source | MIT | 2,021 | tytusds | 201602785NatalyChavez | TypeScript | Code | 29 | 94 | import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-rsa',
templateUrl: './rsa.component.html',
styleUrls: ['./rsa.component.css']
})
export class RSAComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}
| 52,341 |
https://github.com/scott10/andzabbix/blob/master/app/src/main/java/ru/sonic/zabbix/pro/activities/ScreensListActivity.java | Github Open Source | Open Source | MIT | 2,022 | andzabbix | scott10 | Java | Code | 120 | 571 | package ru.sonic.zabbix.pro.activities;
import java.util.List;
import ru.sonic.zabbix.pro.R;
import ru.sonic.zabbix.pro.activities.DefaultZabbixListActivity;
import ru.sonic.zabbix.pro.api.ScreenApiHandler;
import ru.sonic.zabbix.pro.api.ZabbixAPIException;
import ru.sonic.zabbix.pro.base.Screen;
import android.con... | 11,691 |
https://github.com/ufront/ufront-easyauth/blob/master/src/ufront/auth/EasyAuthPermissions.hx | Github Open Source | Open Source | MIT | 2,016 | ufront-easyauth | ufront | Haxe | Code | 224 | 505 | package ufront.auth;
/**
Permissions that are used by `EasyAuth` and `EasyAuthApi` for setting up new users, groups, and permissions.
Please note these permissions are enforced when using `EasyAuthApi`, but they could be bypassed by using the models / database directly.
**/
enum EasyAuthPermissions {
/** List all us... | 50,933 |
https://github.com/leegoonz/Maya-devkit/blob/master/osx/devkit/plug-ins/testNucleusNode/Makefile | Github Open Source | Open Source | ADSL | 2,021 | Maya-devkit | leegoonz | Makefile | Code | 242 | 929 | #-
# ==========================================================================
# Copyright (c) 2011 Autodesk, Inc.
# All rights reserved.
#
# These coded instructions, statements, and computer programs contain
# unpublished proprietary information written by Autodesk, Inc., and are
# protected by Federal copyright la... | 29,085 |
https://github.com/adjka999/fitnes/blob/master/webpack.mix.js | Github Open Source | Open Source | MIT | 2,020 | fitnes | adjka999 | JavaScript | Code | 114 | 776 | const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel appli... | 31,517 |
https://github.com/pmiklos/obyte.kt/blob/master/src/jvmMain/kotlin/app/obyte/client/util/HashingJvm.kt | Github Open Source | Open Source | MIT | null | obyte.kt | pmiklos | Kotlin | Code | 24 | 103 | package app.obyte.client.util
import java.security.MessageDigest
internal actual fun ByteArray.sha256(): ByteArray = with(MessageDigest.getInstance("SHA-256")) {
digest(this@sha256)
}
internal actual fun ByteArray.ripemd160(): ByteArray = with(MessageDigest.getInstance("RIPEMD160")) {
digest(this@ripemd160)
... | 5,872 |
https://github.com/mtaupiq/Aplikasi-KP/blob/master/root/resources/views/layouts/inc/scripts.blade.php | Github Open Source | Open Source | MIT | 2,017 | Aplikasi-KP | mtaupiq | Blade | Code | 165 | 1,468 | <!-- Core -->
<script src="{{asset('dist/vendor/jquery/jquery.min.js')}}"></script>
<script src="{{asset('dist/vendor/bootstrap/bootstrap.min.js')}}"></script>
<script src="{{asset('dist/vendor/animsition/animsition.min.js')}}"></script>
<script src="{{asset('dist/vendor/asscroll/jquery-asScroll.min.js')}}"></script>
... | 18,446 |
https://github.com/cmc-rep/llvm/blob/master/llvm/test/Transforms/Attributor/IPConstantProp/openmp_parallel_for.ll | Github Open Source | Open Source | Apache-2.0 | null | llvm | cmc-rep | LLVM | Code | 2,218 | 8,497 | ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --scrub-attributes --check-attributes
; RUN: opt -attributor -enable-new-pm=0 -attributor-manifest-internal -attributor-max-iterations-verify -attributor-annotate-decl-cs -attributor-max-iterations=7 -S < %s | File... | 53,320 |
https://github.com/JosefFriedrich-nodejs/baldr/blob/master/lib/universal/presentation-parser/src/masters/song.ts | Github Open Source | Open Source | MIT | null | baldr | JosefFriedrich-nodejs | TypeScript | Code | 100 | 308 | import { MasterSpec } from '../master-specification'
type SongFieldsRaw = string | SongFieldsNormalized
interface SongFieldsNormalized {
songId: string
}
export class SongMaster implements MasterSpec {
name = 'song'
displayName = 'Lied'
icon = {
name: 'master-song',
color: 'green',
/**
* ... | 30,193 |
https://github.com/elliott-cs/platform/blob/master/src/Oro/Bundle/AttachmentBundle/ImportExport/EventListener/FileHeadersListener.php | Github Open Source | Open Source | MIT | null | platform | elliott-cs | PHP | Code | 77 | 289 | <?php
namespace Oro\Bundle\AttachmentBundle\ImportExport\EventListener;
use Oro\Bundle\AttachmentBundle\Entity\File;
use Oro\Bundle\ImportExportBundle\Event\LoadEntityRulesAndBackendHeadersEvent;
/**
* Adds "uri" rule and header for File after normalization.
*
* @see \Oro\Bundle\AttachmentBundle\ImportExport\File... | 42,146 |
https://github.com/tjpetz/NanoBLESensors/blob/master/BLEPeripheral/BatteryMonitory.cpp | Github Open Source | Open Source | MIT | 2,021 | NanoBLESensors | tjpetz | C++ | Code | 175 | 577 | #include "BatteryMonitor.h"
#define _DEBUG_
#include "Debug.h"
BatteryMonitor::BatteryMonitor(const int sensorPin, const int controlPin)
: sensorPin_(sensorPin),
controlPin_(controlPin),
batteryService_("180F"),
batteryLevelCharacteristic_("2A19", BLERead | BLENotify)
{
analogReference(AR_INTERNAL2V4);... | 31,687 |
https://github.com/kelknightly/scifibot/blob/master/sentences/sentence5.py | Github Open Source | Open Source | MIT | 2,020 | scifibot | kelknightly | Python | Code | 53 | 147 | from sentences.base_sentence import base_sentence
class sentence5(base_sentence):
def get_sentence(self, components):
sentence = components['primary_actor_article_on_desc'].title()
sentence += ' ' + components['primary_actor_desc']
sentence += ' ' + components['primary_actor']
... | 43,221 |
https://github.com/Shalini180/LeetCode-Solutions/blob/master/String/58. Length of Last Word/Solution.java | Github Open Source | Open Source | Unlicense | 2,022 | LeetCode-Solutions | Shalini180 | Java | Code | 19 | 47 | class Solution {
public int lengthOfLastWord(String s) {
String[] words = s.split(" ");
return words[words.length - 1].length();
}
}
| 16,178 |
https://github.com/uklibraries/presence/blob/master/lib/presence/solr_helper/authorization.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,013 | presence | uklibraries | Ruby | Code | 42 | 173 | module Presence
module SolrHelper
module Authorization
def self.included base
base.solr_search_params_logic << :show_only_user_records
end
def show_only_user_records solr_parameters, user_parameters
if current_user
unless can? :manage, :catalog
solr_paramet... | 55,833 |
https://github.com/squeak-smalltalk/squeak-filesystem/blob/master/src/FS-Core.package/FSLocator.class/instance/resolveReference..st | Github Open Source | Open Source | MIT | 2,022 | squeak-filesystem | squeak-smalltalk | null | Spoken | 13 | 43 | navigating
resolveReference: aReference
^ aReference isAbsolute
ifTrue: [aReference]
ifFalse: [self withPath: aReference path] | 26,606 |
https://github.com/hi-artem/datadog_backup/blob/master/lib/datadog_backup/local_filesystem.rb | Github Open Source | Open Source | MIT | null | datadog_backup | hi-artem | Ruby | Code | 155 | 718 | # frozen_string_literal: true
require 'fileutils'
require 'json'
require 'yaml'
require 'deepsort'
module DatadogBackup
module LocalFilesystem
##
# Meant to be mixed into DatadogBackup::Core
# Relies on @options[:backup_dir] and @options[:output_format]
def all_files
::Dir.glob(::File.join(ba... | 20,018 |
https://github.com/AurelienBallier/dart-xmlrpc/blob/master/lib/src/rpc_response.dart | Github Open Source | Open Source | BSD-2-Clause | null | dart-xmlrpc | AurelienBallier | Dart | Code | 243 | 811 | part of xmlrpc;
/**
* Represents an un/successful response.
* See [RpcRequest] for the detailed description of parameter's types.
*/
class RpcResponse extends _ParamsIterationSupport {
/**
* The main state of the request.
*/
bool isSuccess;
@override
Iterator<Object> get iterator => new _ParamsIterator... | 27,164 |
https://github.com/jaredkoontz/lintcode/blob/master/java/sha/Java/Next Permutation.java | Github Open Source | Open Source | MIT | null | lintcode | jaredkoontz | Java | Code | 400 | 1,020 | M
需斟酌。
Permutation的规律:
1.从小的数字开始变化因为都是从小的数字开始recursive遍历。
2.正因为1的规律,所以找大的断点数字要从末尾开始: 确保swap过后的permutation依然是 前缀固定时 当下最小的。
steps:
1.找到最后一个上升点,k
2.从后往前,找到第一个比k大的点,bigIndex
3.swap k&& bigIndex
4.最后反转(k+1,end)
```
/*
Given a list of intege... | 48,650 |
https://github.com/javazhangyi/promagent/blob/master/log-agent-framework/log-agent-test/src/main/java/io/promagent/agent/test/cron/PersonCron.java | Github Open Source | Open Source | 2,023 | promagent | javazhangyi | Java | Code | 108 | 534 | package io.promagent.agent.test.cron;
import com.ejlchina.okhttps.OkHttps;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext;
import org.springframework.core.env.Environment;
import org... | 41,662 | |
https://github.com/GiantCowFilms/Blend-exchange/blob/master/src/Authorization/AuthenticatedUser.php | Github Open Source | Open Source | Apache-2.0 | 2,022 | Blend-exchange | GiantCowFilms | PHP | Code | 66 | 184 | <?php declare(strict_types = 1);
namespace BlendExchange\Authorization;
final class AuthenticatedUser implements User {
private $id;
private $roles = [];
/**
* @param Role[] $roles
*/
public function __construct($id, array $roles)
{
$this->id = $id;
$this->roles = $roles;... | 17,429 |
https://github.com/zakharchenkoAndrii/expo/blob/master/ios/versioned-react-native/ABI42_0_0/Expo/ExpoKit/Core/Api/Components/Svg/Text/ABI42_0_0RNSVGTextProperties.h | Github Open Source | Open Source | Apache-2.0, MIT | 2,022 | expo | zakharchenkoAndrii | C | Code | 467 | 3,518 | #import <Foundation/Foundation.h>
#ifndef ABI42_0_0RNTextProperties_h
#define ABI42_0_0RNTextProperties_h
typedef NS_ENUM(NSInteger, ABI42_0_0RNSVGAlignmentBaseline) {
ABI42_0_0RNSVGAlignmentBaselineBaseline,
ABI42_0_0RNSVGAlignmentBaselineTextBottom,
ABI42_0_0RNSVGAlignmentBaselineAlphabetic,
ABI42_0... | 49,160 |
https://github.com/JavaScriptTesting/LJS/blob/master/WebKit/Source/JavaScriptCore/jit/JITCall32_64.cpp | Github Open Source | Open Source | Apache-2.0 | 2,019 | LJS | JavaScriptTesting | C++ | Code | 801 | 3,575 | /*
* Copyright (C) 2008 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | 26,075 |
https://github.com/ryumada/centratama-hcportal-new/blob/master/application/views/settings/masterData_position_settings_v.php | Github Open Source | Open Source | MIT | null | centratama-hcportal-new | ryumada | PHP | Code | 1,385 | 6,483 | <div class="row"></div>
<div class="col">
<div class="card shadow">
<div class="card-body">
<!-- filter position -->
<div class="row">
<div class="col">
<div class="form-group">
<label for="di... | 47,859 |
https://github.com/xuwei-k/spire/blob/master/benchmark/src/main/scala/spire/benchmark/AddBenchmarks.scala | Github Open Source | Open Source | MIT | null | spire | xuwei-k | Scala | Code | 283 | 879 | package spire
package benchmark
import spire.algebra._
import spire.math._
import spire.implicits._
object AddBenchmarks extends MyRunner(classOf[AddBenchmarks])
class AddBenchmarks extends MyBenchmark with BenchmarkData {
def addGeneric[@sp(Int, Long, Float, Double) A:Ring](data:Array[A]):A = {
var total = Ri... | 40,354 |
https://github.com/zeroae/zeroae-rocksdb/blob/master/zeroae/rocksdb/cli.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | zeroae-rocksdb | zeroae | Python | Code | 15 | 47 | """Console script for zeroae-rocksdb."""
import sys
if __name__ == "__main__":
sys.exit(rocksdb) # pragma: no cover
| 37,042 |
https://github.com/niklas-2/smart-contract-dev-support/blob/master/project-examples/ethereum/contracts/Idioms/Guarding Pattern/GuardingPattern.sol | Github Open Source | Open Source | MIT | 2,022 | smart-contract-dev-support | niklas-2 | Solidity | Code | 44 | 132 | // SPDX-License-Identifier: MIT
pragma solidity 0.7.0;
contract GuardingPattern {
address public owner;
event OwnerChanged(string message);
constructor(){
owner = msg.sender;
}
modifier onlyOwner() {
require(owner == msg.sender, "Not authorized!");
_;
}
function... | 52,913 |
https://github.com/FastReports/FastReport.Compat/blob/master/FastReport.Compat.sln | Github Open Source | Open Source | MIT | 2,023 | FastReport.Compat | FastReports | null | Spoken | 186 | 1,525 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.2.32519.379
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{C137F644-DCB8-424D-A49D-4ABE28E4BA72}"
EndProject
Project("{9A19103F-16F7-4668-BE54-... | 15,400 |
https://github.com/mungobungo/ml_2016/blob/master/machine-learning-ex4/ex4/t1.m | Github Open Source | Open Source | MIT | 2,016 | ml_2016 | mungobungo | MATLAB | Code | 119 | 303 | function t1 = t1()
il = 2; % input layer
hl = 2; % hidden layer
nl = 4; % number of labels
nn = [ 1:18 ] / 10; % nn_params
X = cos([1 2 ; 3 4 ; 5 6]);
y = [4; 2; 3];
lambda = 0;
[J grad] = nnCostFunction(nn, il, hl, nl, X, y, lambda)
end;
% test case
% >> [J grad... | 52,819 |
https://github.com/PacktPublishing/Rust-Programming-Cookbook/blob/master/Chapter04/child-processes/src/main.rs | Github Open Source | Open Source | MIT | 2,023 | Rust-Programming-Cookbook | PacktPublishing | Rust | Code | 126 | 489 | use std::io::Write;
use std::process::{Command, Stdio};
#[derive(Debug)]
struct SearchResult {
query: String,
results: Vec<String>,
}
fn search_file(name: String) -> SearchResult {
let ps_child = Command::new("find")
.args(&[".", "-iname", &format!("{}", name)])
.stdout(Stdio::piped())
... | 4,760 |
https://github.com/TechnicPack/solder-framework/blob/master/tests/Feature/Modpack/ShowModpackTest.php | Github Open Source | Open Source | MIT | 2,020 | solder-framework | TechnicPack | PHP | Code | 225 | 1,177 | <?php
/*
* This file is part of the TechnicPack Solder Framework.
*
* (c) Syndicate LLC
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace TechnicPack\SolderFramework\Tests\Feature\Modpack;
use TechnicPack\SolderFramework... | 33,621 |
https://github.com/astral-sh/ruff/blob/master/crates/ruff/resources/test/fixtures/flake8_quotes/docstring_singles_module_singleline.py | Github Open Source | Open Source | BSD-3-Clause, 0BSD, LicenseRef-scancode-free-unknown, GPL-1.0-or-later, MIT, Apache-2.0 | 2,023 | ruff | astral-sh | Python | Code | 24 | 38 | ''' Double quotes singleline module docstring '''
''' this is not a docstring '''
def foo():
pass
''' this is not a docstring '''
| 30,058 |
https://github.com/thotz/container-object-storage-interface-api/blob/master/apis/objectstorage.k8s.io/v1alpha1/protocol_types.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | container-object-storage-interface-api | thotz | Go | Code | 242 | 660 | /*
Copyright 2020 The Kubernetes Authors.
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, ... | 45,669 |
https://github.com/donglai96/pyspedas/blob/master/pyspedas/analysis/clean_spikes.py | Github Open Source | Open Source | MIT | null | pyspedas | donglai96 | Python | Code | 313 | 861 |
"""
File:
clean_spikes.py
Description:
Creates a new tplot variable that has spikes removed.
Parameters:
names: str/list of str
List of pytplot names.
new_names: str/list of str
List of new_names for pytplot variables.
If not given, then a suffix is applied.
suffix: str
... | 46,024 |
https://github.com/PICdew/Microchip_SAM_G55_Optimized_examples/blob/master/G55_Clock_example/G55_Clock_example/main.c | Github Open Source | Open Source | MIT | 2,017 | Microchip_SAM_G55_Optimized_examples | PICdew | C | Code | 148 | 592 | /*
* SAM4S_PLL_120MHz_MCK_example.c
*
* Created: 12/1/2014 11:11:24 AM
* Author: jerome.semette
*/
#include "sam.h"
/**
* \brief Application entry point.
*
* \return Unused (ANSI-C compatibility).
*/
int main(void)
{
/* Disable watchdog */
WDT->WDT_MR = WDT_MR_WDDIS;
/* Switch to external 32KHz Oscila... | 31,486 |
https://github.com/RoamingLost/Chimera.Extensions.Logging.Log4Net/blob/master/src/Chimera.Extensions.Logging.Log4Net/ILog4NetContainer.cs | Github Open Source | Open Source | MIT | 2,017 | Chimera.Extensions.Logging.Log4Net | RoamingLost | C# | Code | 131 | 310 | namespace Chimera.Extensions.Logging.Log4Net
{
using log4net;
using log4net.Repository;
/// <summary>
/// Represents a type used for log4net repository initialization and creation.
/// </summary>
public interface ILog4NetContainer
{
/// <summary>
/// Gets a value indicating ... | 14,023 |
https://github.com/daykrm/cstat/blob/master/app/Http/Controllers/Admin/manage_courseController.php | Github Open Source | Open Source | MIT | null | cstat | daykrm | PHP | Code | 299 | 1,201 | <?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Http\Requests;
use App\manage_course;
use App\course_detail;
use App\course;
use App\subcategory;
use App\subgroup;
use App\department;
use Illuminate\Http\Request;
class manage_courseController extends Controller
{
/**
... | 25,212 |
https://github.com/tomasc/mongoid_occurrences/blob/master/test/support/event.rb | Github Open Source | Open Source | MIT | 2,020 | mongoid_occurrences | tomasc | Ruby | Code | 12 | 60 | class Event
include Mongoid::Document
include MongoidOccurrences::HasFieldsFromAggregation
include MongoidOccurrences::HasOccurrences
embeds_many_occurrences class_name: 'Occurrence'
end
| 39,334 |
https://github.com/alwindoss/corto/blob/master/cmd/cortoctl/main.go | Github Open Source | Open Source | BSD-3-Clause | 2,020 | corto | alwindoss | Go | Code | 13 | 33 | package main
import "log"
func main() {
log.Printf("welcome to corto cli client")
}
| 52,736 |
https://github.com/Ultraschall/ultraschall-portable/blob/master/UserPlugins/ultraschall_api/ultraschall_functions_engine_beta.lua | Github Open Source | Open Source | MIT, GPL-1.0-or-later, LGPL-2.0-or-later, BSD-3-Clause, LicenseRef-scancode-proprietary-license, LicenseRef-scancode-commercial-license, LicenseRef-scancode-unknown-license-reference | 2,023 | ultraschall-portable | Ultraschall | Lua | Code | 6,692 | 24,234 | --[[
################################################################################
#
# Copyright (c) 2014-2021 Ultraschall (http://ultraschall.fm)
#
# 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 th... | 12,658 |
https://github.com/magkopian/pic-bluetooth-vehicle/blob/master/client/index.php | Github Open Source | Open Source | MIT | 2,021 | pic-bluetooth-vehicle | magkopian | PHP | Code | 214 | 713 | <?php
/**********************************************\
* Copyright (c) 2015 Manolis Agkopian *
* See the file LICENCE for copying permission. *
\**********************************************/
?>
<!DOCTYPE html>
<html>
<head>
<title>Bluetooth Vehicle Control</title>
<meta name="viewport" content="width=de... | 40,292 |
https://github.com/nmoschkin/Kucoin.NET/blob/master/KuCoin.NET/Websockets/EventArgs/BalanceNoticeEventArgs.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | Kucoin.NET | nmoschkin | C# | Code | 86 | 228 | using KuCoin.NET.Data.Websockets.User;
using System;
using System.Collections.Generic;
using System.Text;
namespace KuCoin.NET.Websockets
{
public class BalanceNoticeEventArgs : EventArgs
{
/// <summary>
/// The event data.
/// </summary>
public BalanceNotice EventData { get;... | 13,095 |
https://github.com/sbrunk/udash-core/blob/master/i18n/frontend/src/main/scala/io/udash/i18n/bindings/TranslationBinding.scala | Github Open Source | Open Source | Apache-2.0 | null | udash-core | sbrunk | Scala | Code | 72 | 323 | package io.udash.i18n.bindings
import io.udash.bindings.Bindings
import io.udash.i18n.Translated
import io.udash.logging.CrossLogging
import org.scalajs.dom._
import scala.concurrent.Future
import scala.util.{Failure, Success}
import scalatags.JsDom
import scalatags.generic.Modifier
private[i18n]
class TranslationBi... | 32,250 |
https://github.com/yj7o5/samples-yabt/blob/master/front-end/src/app/backlog/item/index.ts | Github Open Source | Open Source | MIT | 2,022 | samples-yabt | yj7o5 | TypeScript | Code | 20 | 47 | export * from './backlog-item.component';
export * from './comment';
export * from './custom-fields';
export * from './related-items';
export * from './ui-elements';
| 5,864 |
https://github.com/c2thorn/magic-modules/blob/master/mmv1/api/resource/nested_query.rb | Github Open Source | Open Source | Apache-2.0 | 2,022 | magic-modules | c2thorn | Ruby | Code | 328 | 630 | # Copyright 2019 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 in writing, so... | 9,634 |
https://github.com/amirulqayyum/SuperMan-ModdedFiles/blob/master/services.jar.out/smali/com/android/server/enterprise/storage/EnterpriseXmlParser.smali | Github Open Source | Open Source | Apache-2.0 | 2,021 | SuperMan-ModdedFiles | amirulqayyum | Smali | Code | 600 | 3,905 | .class public Lcom/android/server/enterprise/storage/EnterpriseXmlParser;
.super Ljava/lang/Object;
.source "EnterpriseXmlParser.java"
# static fields
.field private static final ATTR_DEFAULT:Ljava/lang/String; = "default"
.field private static final ATTR_FOREIGN_KEY_NAME:Ljava/lang/String; = "foreignkeyname"
.fiel... | 1,095 |
https://github.com/gamehooks/jtwirc/blob/master/src/main/java/jtwirc/types/users/UserstateBuilder.java | Github Open Source | Open Source | MIT | null | jtwirc | gamehooks | Java | Code | 100 | 214 | package jtwirc.types.users;
import jtwirc.types.twitchMessage.TwitchMessage;
/**
* Constructs a {@link UserStateEvent} object. To create a {@link UserStateEvent} object, call the {@link #build(TwitchMessage)} method
*/
public interface UserstateBuilder
{
/**
* Constructs a new {@link UserStateEvent} objec... | 46,071 |
https://github.com/bucko909/powerpod/blob/master/ext/js/main.js | Github Open Source | Open Source | BSD-2-Clause | 2,019 | powerpod | bucko909 | JavaScript | Code | 270 | 1,051 | var extraData = null;
var loaded = function () {
extraData = JSON.parse(this.responseText);
// ensure we have an analysis; copied from Strava code
var chart_context = pageView.chartContext()
pageView.analysisRequest() == null && pageView.analysisRequest(chart_context.createRequest());
// add extra stream type for... | 4,022 |
https://github.com/Swyter/wse/blob/master/WSEExternal/include/Physics/Collide/Shape/HeightField/hkpHeightFieldShape.h | Github Open Source | Open Source | WTFPL | null | wse | Swyter | C | Code | 502 | 1,183 | /*
*
* Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's
* prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok.
* Level 2 and Level 3 source code contains trade secrets of ... | 14,317 |
https://github.com/Syncaidius/MoltenEngine/blob/master/Molten.Engine/UI/Theme/UIStyleValue.cs | Github Open Source | Open Source | MIT | 2,023 | MoltenEngine | Syncaidius | C# | Code | 79 | 227 | namespace Molten.UI
{
public class UIStyleValue
{
internal Dictionary<UIElementState, object> Values = new Dictionary<UIElementState, object>();
/// <summary>
/// Gets the parent style which owns the current <see cref="UIStyleValue"/>.
/// </summary>
internal UIStyle St... | 53,183 |
https://github.com/keipour/MD49-Motor-Robot-Controller-and-Simulator/blob/master/RobX.Library/RobX.Library.sln | Github Open Source | Open Source | MIT | 2,015 | MD49-Motor-Robot-Controller-and-Simulator | keipour | null | Spoken | 66 | 370 |
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RobX.Library", "RobX.Commons\RobX.Commons.csproj", "{2E943EE5-EECB-4CC0-815A-593B27CD5E5F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any C... | 11,802 |
https://github.com/codeplaysoftware/visioncpp/blob/master/include/framework/expr_convertor/local_output.hpp | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | visioncpp | codeplaysoftware | C++ | Code | 1,886 | 5,015 | // This file is part of VisionCpp, a lightweight C++ template library
// for computer vision and image processing.
//
// Copyright (C) 2016 Codeplay Software Limited. All Rights Reserved.
//
// Contact: visioncpp@codeplay.com
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this ... | 28,521 |
https://github.com/racker/omnibus/blob/master/source/otp_src_R14B02/make/target.mk | Github Open Source | Open Source | Apache-2.0 | 2,016 | omnibus | racker | Makefile | Code | 41 | 163 | ifeq ($(OVERRIDE_TARGET),)
ifeq ($(TARGET),)
TARGET := $(shell $(ERL_TOP)/erts/autoconf/config.guess)
else
endif
else
ifneq ($(TARGET),)
ifneq ($(TARGET), $(OVERRIDE_TARGET))
$(warning overriding $$(TARGET) = \
"$(TARGET)" \
with \
$$(OVERRIDE_TARGET) = \
"$(OVERRIDE_TARGET)")
else
endif
override TARGET := ... | 28,221 |
https://github.com/go-vela/server/blob/master/secret/vault/get.go | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | server | go-vela | Go | Code | 351 | 929 | // Copyright (c) 2022 Target Brands, Inc. All rights reserved.
//
// Use of this source code is governed by the LICENSE file in this repository.
package vault
import (
"fmt"
"strings"
"github.com/sirupsen/logrus"
"github.com/go-vela/types/constants"
"github.com/go-vela/types/library"
"github.com/hashicorp/vau... | 44,898 |
https://github.com/DavidFernandezChaves/RobotAtVirtualHome-Dataset-API/blob/master/API RobotAtVirtualhome/VirtualObject.py | Github Open Source | Open Source | MIT | null | RobotAtVirtualHome-Dataset-API | DavidFernandezChaves | Python | Code | 115 | 394 | """ Robot@VirtualHome Python API """
import math
__author__ = "David Fernandez Chaves"
__contact__ = "davfercha[at]uma.es"
__copyright__ = "Copyright 2020, David Fernandez-Chaves"
__date__ = "2021/04/01"
__license__ = "MIT"
class VirtualObject:
def __init__(self, _id, _color, _room, _room_type, _type, _global_po... | 52,907 |
https://github.com/WinRb/vagrant-windows/blob/master/lib/vagrant-windows/monkey_patches/plugins/provisioners/puppet/provisioner/puppet.rb | Github Open Source | Open Source | Apache-2.0 | 2,021 | vagrant-windows | WinRb | Ruby | Code | 260 | 981 | require "#{Vagrant::source_root}/plugins/provisioners/puppet/provisioner/puppet"
require_relative '../../../../../windows_machine'
require_relative '../../../../../helper'
require_relative '../../../../../errors'
module VagrantPlugins
module Puppet
module Provisioner
class Puppet < Vagrant.plugin("2", :pro... | 33,724 |
https://github.com/bopopescu/UnitedSafety/blob/master/3rd-party/gpsd-2.92/gpsd_dbus.h | Github Open Source | Open Source | LicenseRef-scancode-ibm-dhcp, ISC, BSD-3-Clause | 2,020 | UnitedSafety | bopopescu | C | Code | 32 | 141 | /* $Id: gpsd_dbus.h 4794 2008-08-03 16:42:57Z ckuethe $ */
#ifndef _GPSD_DBUS_H_
#define _GPSD_DBUS_H_
#ifdef DBUS_ENABLE
#include <dbus/dbus.h>
#include "gpsd.h"
int initialize_dbus_connection (void);
void send_dbus_fix (struct gps_device_t* channel);
#endif
#endif /* _GPSD_DBUS_H_ */
| 53,779 |
https://github.com/hungnt88/5stars-1/blob/master/mostcoupon/app/Store.php | Github Open Source | Open Source | MIT | 2,015 | 5stars-1 | hungnt88 | PHP | Code | 89 | 284 | <?php namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Str;
class Store extends Model {
protected $fillable = ['name', 'desc', 'logo', 'active', 'website', 'category_id'];
/**
* When title change then slug will change.
* @param $name
* @internal param $title
... | 40,906 |
https://github.com/hecrj/haskell-format/blob/master/test/specs/import-multiline/output.hs | Github Open Source | Open Source | BSD-3-Clause | null | haskell-format | hecrj | Haskell | Code | 13 | 38 | import System.Environment
( getEnv
, getArgs
, getProgName
, getExecutablePath
, getEnvironment
)
| 47,700 |
https://github.com/NightOfTwelve/iOS-Cracked-Apps/blob/master/DumpedClasses/Taobao/TBIMEmoticonSettingViewControl.h | Github Open Source | Open Source | MIT | 2,018 | iOS-Cracked-Apps | NightOfTwelve | Objective-C | Code | 127 | 600 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "TBViewController.h"
#import "TBIMEmoticonPackCellDelegate.h"
#import "TBIMEmoticonServiceDelegate.h"
#import "UITableViewDataSource.h"
#import "UITableViewDelegate.h"
@cl... | 26,224 |
https://github.com/goldfirere/units/blob/master/units-test/Tests/Compile/UnitParser/Quoters.hs | Github Open Source | Open Source | BSD-2-Clause | 2,022 | units | goldfirere | Haskell | Code | 44 | 149 | {- Define test quasiquoters
Copyright (c) 2014 Richard Eisenberg
-}
{-# LANGUAGE TemplateHaskell, CPP #-}
module Tests.Compile.UnitParser.Quoters where
import Data.Metrology.Parser
import Data.Metrology.SI
$(makeQuasiQuoter "ms" [''Milli, ''Kilo] [''Meter, ''Second])
#if __GLASGOW_HASKELL__ >= 709
$(do units <-... | 37,292 |
https://github.com/weiguohe/zxwork/blob/master/ssmdemo/gfzh/src/main/java/com/itdr/pojo/bo/UserRowMapper.java | Github Open Source | Open Source | Apache-2.0 | null | zxwork | weiguohe | Java | Code | 60 | 290 | package com.itdr.pojo.bo;
import com.itdr.pojo.Users;
import org.springframework.jdbc.core.RowMapper;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
* ClassName: UserRowMapper
* 日期: 2019/10/21 11:25
*
* @author Air张
* @since JDK 1.8
*/
public class UserRowMapper implements RowMapper<Users> {
... | 52,671 |
https://github.com/shrutiichandra/spanish-conjugator/blob/master/src/test/test_present_perfect_indicitive.py | Github Open Source | Open Source | MIT | null | spanish-conjugator | shrutiichandra | Python | Code | 139 | 683 | # -*- coding: iso-8859-15 -*-
import spanishconjugator
from spanishconjugator.SpanishConjugator import Conjugator
# ------------------------------ Present Perfect Compound Tense ------------------------------- #
def test_present_perfect_indicative_yo_ar():
expected = "he hablado"
assert Conjugator().conjugate... | 10,385 |
https://github.com/aaarsene/o3de/blob/master/Code/Editor/Util/ImageBT.h | Github Open Source | Open Source | Apache-2.0, MIT | 2,021 | o3de | aaarsene | C | Code | 65 | 191 | /*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#ifndef CRYINCLUDE_EDITOR_UTIL_IMAGEBT_H
#define CRYINCLUDE_EDITOR_UTIL_IMAGEBT_H
#pragma once
#inc... | 39,868 |
https://github.com/geegeorge/galvanize-bookshelf/blob/master/routes/token.js | Github Open Source | Open Source | MIT | 2,017 | galvanize-bookshelf | geegeorge | JavaScript | Code | 233 | 779 | 'use strict';
const humps = require('humps');
const boom = require('boom');
const express = require('express');
const bcrypt = require('bcrypt-as-promised');
// eslint-disable-next-line new-cap
const router = express.Router();
const knex = require('../knex');
// const req.body = {email, password}
const jwt = require('... | 35,496 |
https://github.com/renanaugustom/Ferramenta-de-transformacao-de-requisitos-para-arquitetura-de-tres-camadas/blob/master/Projeto/parametros/views.py | Github Open Source | Open Source | MIT | 2,014 | Ferramenta-de-transformacao-de-requisitos-para-arquitetura-de-tres-camadas | renanaugustom | Python | Code | 228 | 846 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render, redirect, get_object_or_404
from django.forms import ModelForm
from annoying.decorators import render_to
from annoying.decorators import ajax_request
from annoying.functions import get_object_or_None
from django.views.d... | 38,827 |
https://github.com/xplodingtrees/2021FinalProject/blob/master/LinkedQueue.cpp | Github Open Source | Open Source | CC0-1.0 | 2,021 | 2021FinalProject | xplodingtrees | C++ | Code | 286 | 805 | #include <memory>
/**********************************************************************************************************************/
template<class ItemType>
LinkedQueue<ItemType>::LinkedQueue(const LinkedQueue &aQueue) {
auto origChainPtr = aQueue.frontPtr; // Points to nodes in original chain
// Usin... | 30,106 |
https://github.com/kangshaojun/dart-book/blob/master/flutter-react-node/flutter-shop/lib/model/user_model.dart | Github Open Source | Open Source | MIT | 2,022 | dart-book | kangshaojun | Dart | Code | 73 | 311 | //model/user_model.dart文件
//用户数据模型
class UserModel{
//Id
int id;
//Token值
String token;
//用户名
String username;
//手机号
String mobile;
//用户头像
String head_image;
//用户地址
String address;
//构造函数
UserModel({this.id,this.token,this.username});
//取Json数据
UserModel.fromJson(Map<String,dynamic> js... | 37,146 |
https://github.com/caznova/Blackbone/blob/master/src/BlackBone/Misc/DynImport.h | Github Open Source | Open Source | MIT | 2,020 | Blackbone | caznova | C | Code | 334 | 992 | #pragma once
#include "../Include/Types.h"
#include "../Include/Winheaders.h"
#include "Utils.h"
#include <unordered_map>
namespace blackbone
{
/// <summary>
/// Dynamic import
/// </summary>
class DynImport
{
public:
static DynImport& Instance()
{
static DynImport instance;
return instance;... | 50,063 |
https://github.com/ermanno/USACO-solutions/blob/master/src/dualpal.java | Github Open Source | Open Source | Unlicense | null | USACO-solutions | ermanno | Java | Code | 229 | 758 |
/*
ID: moser.e1
LANG: JAVA
TASK: dualpal
*/
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.StringTokenizer;
class dualpal {
public char[] convertN... | 23,322 |
https://github.com/c0decharlie/simple-slider/blob/master/scripts/setup.js | Github Open Source | Open Source | MIT | 2,016 | simple-slider | c0decharlie | JavaScript | Code | 10 | 27 | (function () {
var slider = new Slider('slider');
slider.setup();
}());
| 18,865 |
https://github.com/Tmcgill2014/jobboard/blob/master/app/Salary.php | Github Open Source | Open Source | MIT | null | jobboard | Tmcgill2014 | PHP | Code | 22 | 75 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class salary extends Model
{
$salary = 0;
public function pay()
{
return $this->belongsTo('App\Job', 'job_id');
}
}
| 4,736 |
https://github.com/cacheflowe/haxademic/blob/master/src/com/haxademic/demo/hardware/depthcamera/kinectpv2/Demo_KinectV2_HDFaceVertices.java | Github Open Source | Open Source | MIT | 2,022 | haxademic | cacheflowe | Java | Code | 245 | 1,017 | package com.haxademic.demo.hardware.depthcamera.kinectpv2;
import java.util.ArrayList;
import com.haxademic.core.app.PAppletHax;
import com.haxademic.core.app.config.AppSettings;
import com.haxademic.core.app.config.Config;
import com.haxademic.core.debug.DebugView;
import com.haxademic.core.ui.UI;
import KinectPV2.... | 27,571 |
https://github.com/SYCstudio/OI/blob/master/Practice/2018/2018.6.21/Luogu2553.cpp | Github Open Source | Open Source | MIT | 2,018 | OI | SYCstudio | C++ | Code | 224 | 1,554 | #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
#include<complex>
#include<cmath>
using namespace std;
#define ll long long
#define ld long double
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
const int maxN=501000;
const ld Pi=acos(-1);
const int inf=2147483647;
int N;
cha... | 33,316 |
https://github.com/aalexeev239/taiga-ui/blob/master/projects/demo/src/modules/components/label/examples/3/index.less | Github Open Source | Open Source | Apache-2.0 | null | taiga-ui | aalexeev239 | Less | Code | 5 | 16 | .label {
max-width: 320px;
}
| 46,764 |
https://github.com/tengxunshigou/palo/blob/master/build.sh | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, dtoa, bzip2-1.0.6, BSL-1.0, PSF-2.0 | 2,017 | palo | tengxunshigou | Shell | Code | 431 | 999 | #!/usr/bin/env bash
# Copyright (c) 2017, Baidu.com, Inc. All Rights Reserved
# 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
... | 40,352 |
https://github.com/projectbuendia/buendia/blob/master/tools/generate_concept_remapping_sql | Github Open Source | Open Source | Apache-2.0 | 2,019 | buendia | projectbuendia | Shell | Code | 151 | 287 | #!/bin/bash
# Copyright 2015 The Project Buendia Authors
#
# 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 ... | 37,317 |
https://github.com/Heart8reak/Marketing-page/blob/master/less/contact.less | Github Open Source | Open Source | MIT | null | Marketing-page | Heart8reak | Less | Code | 115 | 414 | main.contact {
background-image: url("../img/bg_contact.jpeg");
background-color: rgba(255, 255, 255, 0.4);
background-blend-mode: lighten;
background-repeat: no-repeat;
background-size: cover;
background-position: center;
height: 100vh;
// opacity: .25;
}
form {
width: 80%;
mar... | 53,518 |
https://github.com/heibaifu/logistics-back/blob/master/src/main/java/com/ansel/dao/IDriverClearDao.java | Github Open Source | Open Source | MIT | 2,020 | logistics-back | heibaifu | Java | Code | 48 | 198 | package com.ansel.dao;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import com.ansel.bean.DriverClear;
public interface IDriverClearDao extends JpaRepository<Driver... | 53,492 |
https://github.com/Stanzilla/spksrc/blob/master/cross/tesseract-ocr/Makefile | Github Open Source | Open Source | BSD-3-Clause | 2,020 | spksrc | Stanzilla | Makefile | Code | 106 | 440 | PKG_NAME = tesseract
PKG_VERS = 3.05.02
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_VERS).$(PKG_EXT)
PKG_DIST_FILE = $(PKG_NAME)-ocr-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/tesseract-ocr/$(PKG_NAME)/archive
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)
DEPENDS = cross/leptonica
HOMEPAGE = https://github.com/tesserac... | 2,479 |
https://github.com/Optum/dce/blob/master/modules/dynamodb.tf | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,023 | dce | Optum | HCL | Code | 429 | 1,326 | # Account table
# Tracks the status of AWS Accounts in our pool
locals {
// Suffix table names with var.namesapce,
// unless we're on prod (then no suffix)
table_suffix = var.namespace == "prod" ? "" : title(var.namespace)
}
resource "aws_dynamodb_table" "accounts" {
name = "Accounts${local.table_s... | 40,633 |
https://github.com/77loopin/ray/blob/master/dashboard/client/src/type/job.d.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | ray | 77loopin | TypeScript | Code | 160 | 440 | import { Actor } from "./actor";
import { Worker } from "./worker";
export type Job = {
jobId: string;
name: string;
owner: string;
language: string;
driverEntry: string;
state: string;
timestamp: number;
namespaceId: string;
driverPid: number;
driverIpAddress: string;
isDead: boolean;
};
export... | 20,845 |
https://github.com/Vaelatern/ithildin/blob/master/source/poller_devpoll.c | Github Open Source | Open Source | BSD-2-Clause | 2,010 | ithildin | Vaelatern | C | Code | 45 | 124 | /*
* poller_devpoll.c: /dev/poll polling mechanism function
*
* Copyright 2002 the Ithildin Project.
* See the COPYING file for more information on licensing and use.
*/
#include <ithildin/stand.h>
IDSTRING(poller_rcsid, "$Id: poller_devpoll.c 576 2005-08-21 06:33:26Z wd $");
/* vi:set ts=8 sts=4 sw=4 tw=76 et... | 41,959 |
https://github.com/pauci/datetime/blob/master/src/DateTimeInterface.php | Github Open Source | Open Source | MIT | 2,019 | datetime | pauci | PHP | Code | 94 | 257 | <?php
declare(strict_types=1);
namespace Pauci\DateTime;
interface DateTimeInterface extends \DateTimeInterface, \Stringable, \JsonSerializable
{
public function diff(\DateTimeInterface $targetObject, bool $absolute = false): DateInterval;
public function equals(self $dateTime): bool;
public function i... | 27,985 |
https://github.com/mjaskula/dotfiles/blob/master/dev/aliases.zsh | Github Open Source | Open Source | MIT | null | dotfiles | mjaskula | Shell | Code | 18 | 80 | alias tmux-colors='for i in {0..255}; do printf "\x1b[38;5;${i}mcolour${i}\x1b[0m\n"; done'
alias k=kubectl
alias tig-reflog='git reflog --pretty=raw | tig --pretty=raw'
| 53,477 |
https://github.com/Ihsanit/ayadaty/blob/master/application/controllers/Doctor_c.php | Github Open Source | Open Source | MIT | 2,019 | ayadaty | Ihsanit | PHP | Code | 1,803 | 12,026 | <?php defined('BASEPATH') OR exit('No direct script access allowed');
/*
|-------------------------------------------------------------------------------------------------------------------------------------
|Doctor controller
|------------------------------------------------------------------------------------------... | 14,850 |
https://github.com/LineageOS/android_device_zte_ailsa_ii/blob/master/external/gptfdisk/Android.mk | Github Open Source | Open Source | FTL | null | android_device_zte_ailsa_ii | LineageOS | Makefile | Code | 89 | 402 | LOCAL_PATH := external/gptfdisk
sgdisk_src_files := \
sgdisk.cc \
gptcl.cc \
crc32.cc \
support.cc \
guid.cc \
gptpart.cc \
mbrpart.cc \
basicmbr.cc \
mbr.cc \
gpt.cc \
bsd.cc \
parttypes.cc \
attributes.cc \
diskio.cc \
diskio-unix.cc \
android_popt.cc \... | 2,864 |
https://github.com/erqiu-sj/MicroserviceGoBlog/blob/master/monomerService/router/register.go | Github Open Source | Open Source | MIT | null | MicroserviceGoBlog | erqiu-sj | Go | Code | 235 | 1,112 | package router
import (
"MicroserviceGoBlog/monomerService/globalVariable"
"MicroserviceGoBlog/monomerService/utils"
"MicroserviceGoBlog/register/protocol"
"context"
"fmt"
"github.com/gin-gonic/gin"
"github.com/hashicorp/consul/api"
"google.golang.org/grpc"
"net/http"
"strconv"
)
type param struct {
Userna... | 5,196 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.