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/arnodel/golua/blob/master/lib/iolib/lua/popen_windows.lua | Github Open Source | Open Source | Apache-2.0 | 2,023 | golua | arnodel | Lua | Code | 134 | 532 | -- tags: windows
local function testf(f)
return function(...)
(function(ok, ...)
if ok then
print("OK", ...)
else
print("ERR", ...)
end
end)(pcall(f, ...))
end
end
do
print(pcall(io.popen))
--> ~^false\t.*value needed... | 25,829 |
https://github.com/andersonledo/ironman/blob/master/model/project/iteration/info/pending.sh | Github Open Source | Open Source | Apache-2.0 | null | ironman | andersonledo | Shell | Code | 50 | 103 | #!magic-sh
echo "=== Files not edited yet ==="
for file in *.info
do
if [ ! -s "$file" ]; then
echo "* $file"
fi
done
echo "\n\n\n"
echo "=== Files you already edited ==="
for file in *.info
do
if [ -s "$file" ]
then
echo "> $file"
fi
done
| 25,793 |
https://github.com/Christopher96/addswift/blob/master/pages/logout.vue | Github Open Source | Open Source | MIT | null | addswift | Christopher96 | Vue | Code | 41 | 146 | /*
* Logout route, kills the session and removes token
*/
<template>
<div></div>
</template>
<script>
export default {
mounted() {
this.$store.dispatch('auth/logout')
.then((res) => {
this.$router.push('/login')
}).catch((err) => {
console.log(err)
if(err.response.data)
... | 18,986 |
https://github.com/bernardjkim/showcase-api/blob/master/server/article/controller.js | Github Open Source | Open Source | MIT | null | showcase-api | bernardjkim | JavaScript | Code | 343 | 886 | const qs = require('qs');
const httpStatus = require('http-status');
const { exchange } = require('../amqp');
const { checkError } = require('../../util/mq');
const DB_REQ = 'db.req';
const ES_REQ = 'es.req';
/**
* Load article and append to req
*/
async function load(req, res, next, id) {
const query = { _id: id ... | 44,407 |
https://github.com/Mighty-Lee/LXRecorderDemo/blob/master/LXRecorderDemo/Classes/Views/LXRecordToastContentView.h | Github Open Source | Open Source | MIT | null | LXRecorderDemo | Mighty-Lee | C | Code | 53 | 252 | //
// LXRecordToastContentView.h
// LXRecorderDemo
//
// Created by MightLee on 2020/6/19.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface LXRecordToastContentView : UIView
@end
//*****************************************************//
@interface LXRecordingView : LXRecordToastContentView
- (void... | 4,506 |
https://github.com/ertprs/feed-track/blob/master/backend/src/app/models/filiais.js | Github Open Source | Open Source | MIT | 2,019 | feed-track | ertprs | JavaScript | Code | 438 | 1,604 | const path = require('path');
const moment = require('moment');
const { BaseModel } = require('../../database/base-model');
class Filiais extends BaseModel {
static get tableName() {
return 'filiais';
}
static get labelName() {
return 'Filial';
}
static get idColumn() {
re... | 28,938 |
https://github.com/trespasserw/MPS/blob/master/workbench/mps-workbench/jetbrains.mps.ide/source_gen/jetbrains/mps/ide/actions/FindUsages_ActionGroup.java | Github Open Source | Open Source | Apache-2.0 | null | MPS | trespasserw | Java | Code | 58 | 392 | package jetbrains.mps.ide.actions;
/*Generated by MPS */
import jetbrains.mps.annotations.GeneratedClass;
import jetbrains.mps.plugins.actions.GeneratedActionGroup;
import org.jetbrains.annotations.NotNull;
import jetbrains.mps.workbench.action.ApplicationPlugin;
@GeneratedClass(node = "r:00000000-0000-4000-0000-011... | 41,059 |
https://github.com/wookey-project/bootloader/blob/master/src/arch/socs/stm32f407/soc-usart.c | Github Open Source | Open Source | BSD-3-Clause, GPL-1.0-or-later, LGPL-2.1-or-later, LGPL-2.1-only, LicenseRef-scancode-unknown-license-reference, LGPL-2.0-only | 2,021 | bootloader | wookey-project | C | Code | 1 | 15 | ../stm32f439/soc-usart.c | 31,657 |
https://github.com/buildlinux/unityos/blob/master/poky/meta/recipes-devtools/mtd/mtd-utils/fix-armv7-neon-alignment.patch | Github Open Source | Open Source | Apache-2.0 | null | unityos | buildlinux | null | Spoken | 206 | 753 | From 7d026a85946a08b8167dcd792ea6660bf6a49e08 Mon Sep 17 00:00:00 2001
From: Yuanjie Huang <Yuanjie.Huang@windriver.com>
Date: Thu, 2 Mar 2017 10:43:56 +0100
Subject: [PATCH] Fix alignment trap triggered by NEON instructions
NEON instruction VLD1.64 was used to copy 64 bits data after type
casting, and they will trigg... | 48,039 |
https://github.com/ppalaga/camel-quarkus/blob/master/docs/modules/ROOT/pages/contributor-guide/release-guide.adoc | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,020 | camel-quarkus | ppalaga | AsciiDoc | Code | 95 | 281 | [[ReleaseGuide-ReleaseGuide]]
= Apache Camel Quarkus release process
:page-aliases: release-guide.adoc
The process is _mutatis mutandis_ the same as for the main Apache Camel repository - see
https://camel.apache.org/manual/latest/release-guide.html With Camel Quarkus, adding `-Prelease` to
`release:prepare` and `rele... | 48,819 |
https://github.com/jan-g/local-global-class/blob/master/piece_de_resistance.py | Github Open Source | Open Source | Apache-2.0 | null | local-global-class | jan-g | Python | Code | 137 | 266 | import math
from object_triangle import Triangle
class Circle:
def __init__(self, r):
# Different classes of object may have different attributes
self.r = r
def __str__(self):
return "a circle with radius {}".format(self.r)
def area(self):
return 2 * math.pi * self.r ** 2
... | 18,001 |
https://github.com/maidiHaitai/haitaibrowser/blob/master/third_party/WebKit/Source/platform/exported/WebScrollbarThemeClientImpl.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,020 | haitaibrowser | maidiHaitai | C++ | Code | 530 | 1,736 | /*
* Copyright (C) 2012 Google 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 condit... | 44,144 |
https://github.com/1337programming/leviathan/blob/master/nfc/src/DOOM/doomclassic/doom/i_video_ps3.cpp | Github Open Source | Open Source | Apache-2.0 | 2,018 | leviathan | 1337programming | C++ | Code | 596 | 1,605 | /*
===========================================================================
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Doom 3 BFG Edition Source Code is free... | 896 |
https://github.com/osxi/mteor-testing-tools-demo/blob/master/tests/mocha/client/form-helpers-test.es6.js | Github Open Source | Open Source | MIT | null | mteor-testing-tools-demo | osxi | JavaScript | Code | 87 | 341 | "use strict"
if (typeof MochaWeb !== 'undefined') {
MochaWeb.testOnly(() => {
describe("MTT - form helpers", () => {
it('#fillIn', function() {
var fullName = "Zach Ngo";
MTT.fillIn('Full Name', fullName);
chai.expect($("input[name='fullName']").val()).to.eql(fullName);
});
... | 7,227 |
https://github.com/SolarCpp/QtnProperty/blob/master/QtnProperty/Property.h | Github Open Source | Open Source | Apache-2.0 | null | QtnProperty | SolarCpp | C | Code | 175 | 522 | /*******************************************************************************
Copyright 2012-2015 Alex Zhondin <qtinuum.team@gmail.com>
Copyright 2015-2017 Alexandra Cherdantseva <neluhus.vagus@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance ... | 49,741 |
https://github.com/elias-alea/tailwind-editor/blob/master/src/ToolBar/Leading.svelte | Github Open Source | Open Source | MIT | 2,021 | tailwind-editor | elias-alea | null | Spoken | 97 | 385 | <script>
import DropDown from './DropDown.svelte'
import LineHeightIcon from '../Icons/LineHeightIcon.svelte'
export let klass = ''
export let setClass = ''
$: leading_class = klass.split(' ').find(c => c.startsWith('leading')) || ''
$: selected = leading_class.replace('leading-','')
let open = false
function ... | 37,667 |
https://github.com/jadonk/meta-ti/blob/master/recipes-kernel/linux/linux-3.0/ulcd/0004-LEDS-add-initial-support-for-WS2801-controller.patch | Github Open Source | Open Source | MIT | 2,019 | meta-ti | jadonk | null | Spoken | 732 | 2,863 | From e707458df28487c2fb0bf620cb3eff22466e2c6c Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Thu, 20 Oct 2011 16:13:16 +0200
Subject: [PATCH 4/4] LEDS: add initial support for WS2801 controller
This adds initial support for the WS2801 RGB LED controller.
Signed-off-by: Koen Kooi <koen@dom... | 48,500 |
https://github.com/bkiers/sqlite-parser/blob/master/src/test/resources/reindex.test_5.sql | Github Open Source | Open Source | MIT | 2,022 | sqlite-parser | bkiers | SQL | Code | 13 | 35 | -- reindex.test
--
-- execsql {
-- REINDEX main.i1;
-- }
REINDEX main.i1; | 23,354 |
https://github.com/ssinghal53/fusion/blob/master/src/net/aifusion/cql/OrderBy.java | Github Open Source | Open Source | BSD-3-Clause | null | fusion | ssinghal53 | Java | Code | 898 | 2,200 | /**
* Copyright 2021 Sharad Singhal. 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 an... | 48,576 |
https://github.com/appearhere/bloom/blob/master/packages/core/src/components/Type/Quote/Quote.js | Github Open Source | Open Source | MIT | 2,022 | bloom | appearhere | JavaScript | Code | 73 | 221 | // @flow
import * as React from 'react';
import cx from 'classnames';
import css from './Quote.css';
type Props = {
children: React.Node,
citation: React.Node,
className?: string,
citeClassName?: string,
}
const Quote = (props: Props) => {
const { children, citation, className, citeClassName, ...rest } = ... | 18,326 |
https://github.com/ayethi/realfinal/blob/master/app/Http/Controllers/UsertimelineController.php | Github Open Source | Open Source | MIT | 2,020 | realfinal | ayethi | PHP | Code | 223 | 865 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Activeuser;
use Illuminate\Support\Facades\DB;
use App\User;
use Illuminate\Support\Facades\Auth;
use App\Like;
class UsertimelineController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illumin... | 28,070 |
https://github.com/TorbenRahbekKoch/LogBridge/blob/master/Source/LogBridge/Configuration.cs | Github Open Source | Open Source | MIT | null | LogBridge | TorbenRahbekKoch | C# | Code | 391 | 1,252 | using System;
using System.Collections.Generic;
using System.Configuration;
using SoftwarePassion.Common.Core;
using SoftwarePassion.Common.Core.Extensions;
namespace SoftwarePassion.LogBridge
{
/// <summary>
/// Global configuration for LogBridge.
/// </summary>
public static class Configuration
... | 13,071 |
https://github.com/flitzmo-hso/flitzmo_agv_control_system/blob/master/Versionen/2021_06_15/RMF/rmf_ws/install/rmf_ingestor_msgs/include/rmf_ingestor_msgs/msg/detail/ingestor_result__functions.h | Github Open Source | Open Source | MIT | null | flitzmo_agv_control_system | flitzmo-hso | C | Code | 431 | 1,503 | // generated from rosidl_generator_c/resource/idl__functions.h.em
// with input from rmf_ingestor_msgs:msg/IngestorResult.idl
// generated code does not contain a copyright notice
#ifndef RMF_INGESTOR_MSGS__MSG__DETAIL__INGESTOR_RESULT__FUNCTIONS_H_
#define RMF_INGESTOR_MSGS__MSG__DETAIL__INGESTOR_RESULT__FUNCTIONS_H_... | 41,264 |
https://github.com/rafalohaki/csgo_selfleak/blob/master/CSGOSimple/IRefCounted.h | Github Open Source | Open Source | MIT | 2,020 | csgo_selfleak | rafalohaki | C | Code | 37 | 113 |
#pragma once
#include "valve_sdk/sdk.hpp"
class IRefCounted
{
private:
volatile long refCount;
public:
virtual void destructor(char bDelete) = 0;
virtual bool OnFinalRelease() = 0;
void unreference()
{
if (InterlockedDecrement(&refCount) == 0 && OnFinalRelease())
{
des... | 15,932 |
https://github.com/akk5597/pants/blob/master/src/python/pants/backend/python/lint/yapf/rules.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | pants | akk5597 | Python | Code | 364 | 1,568 | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from dataclasses import dataclass
from typing import Tuple
from pants.backend.python.lint.python_fmt import PythonFmtRequest
from pants.backend.python.lint.yapf.skip_field import SkipYapf... | 17,026 |
https://github.com/iilj/AtCoderProblems/blob/master/atcoder-problems-backend/src/error.rs | Github Open Source | Open Source | MIT | 2,021 | AtCoderProblems | iilj | Rust | Code | 47 | 205 | pub trait ToAnyhowError<T> {
fn map_anyhow(self) -> anyhow::Result<T>;
}
impl<T> ToAnyhowError<T> for std::result::Result<T, tide::Error> {
fn map_anyhow(self) -> anyhow::Result<T> {
self.map_err(anyhow::Error::msg)
}
}
pub trait ToTideError<T> {
fn map_tide_err(self) -> tide::Result<T>;
}
im... | 30,483 |
https://github.com/a143753/AOJ/blob/master/3125.hs | Github Open Source | Open Source | Apache-2.0 | 2,021 | AOJ | a143753 | Haskell | Code | 48 | 91 | ans [] = 0
ans (a:[]) = 0
ans (a:b:r) =
if a < b
then 1 + ans (b:r)
else ans (b:r)
main = do
_ <- getLine
l <- getLine
let i = map read $ words l :: [Int]
o = ans i
print o
| 50,920 |
https://github.com/j-pingus/jpingus/blob/master/jpingus-core/src/main/java/pingus/PingusSprite.java | Github Open Source | Open Source | MIT | null | jpingus | j-pingus | Java | Code | 118 | 425 | package pingus;
import pingus.ressource.Ressource;
import gee.imaging.sprites.animated.AnimatedSprite;
public class PingusSprite extends AnimatedSprite {
String tagName;
public PingusSprite(String name,String tagName) {
super(name);
this.tagName=tagName;
// TODO Auto-generated constructor stub
}
public St... | 52,391 |
https://github.com/benixos/ceed/blob/master/kits/message/Message.go | Github Open Source | Open Source | MIT | null | ceed | benixos | Go | Code | 30 | 95 | package message
type Message struct {
Id int `json:"id"`
Session string `json:"session"`
Path string `json:"path"`
Data string `jon:"data"`
//temp entries
Email string `json:"email"`
Username string `json:"username"`
Message string `json:"message"`
}
| 25,088 |
https://github.com/watfordgnf/coyote/blob/master/Tests/Tests.Actors.BugFinding/Tasks/ActorTaskYieldTests.cs | Github Open Source | Open Source | MIT | 2,021 | coyote | watfordgnf | C# | Code | 560 | 2,017 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.Threading.Tasks;
using Microsoft.Coyote.Tests.Common.Events;
using Microsoft.Coyote.Tests.Common.Tasks;
using Xunit;
using Xunit.Abstractions;
namespace Microsoft.Coyote.Actors.BugFinding.Tests
{
public class ActorTaskYieldTe... | 10,116 |
https://github.com/monotera/software_design_patterns/blob/master/creational_patterns/Abstract_Factory_Method/build/generated/jax-wsCache/info/soap/Cards.java | Github Open Source | Open Source | MIT | null | software_design_patterns | monotera | Java | Code | 165 | 529 |
package soap;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected c... | 35,067 |
https://github.com/garyshirk/ThriftStoreLocator/blob/master/ThriftStoreLocator/StoreAnnotation.swift | Github Open Source | Open Source | MIT | 2,020 | ThriftStoreLocator | garyshirk | Swift | Code | 60 | 155 | //
// StoreAnnotation.swift
// ThriftStoreLocator
//
// Created by Gary Shirk on 4/22/17.
// Copyright © 2017 Gary Shirk. All rights reserved.
//
import MapKit
import Contacts
class StoreAnnotation: NSObject, MKAnnotation {
let tag: Int
let title: String?
let coordinate: CLLocationCoordinate2D
... | 24,323 |
https://github.com/lemon2015/design-mode/blob/master/Strategy/AirplaneStrategy.php | Github Open Source | Open Source | MIT | null | design-mode | lemon2015 | PHP | Code | 22 | 56 | <?php
class AirplaneStrategy implements ITravelStrategy
{
public function travelAlgorithm()
{
// TODO: Implement travelAlgorithm() method.
echo 'take airplane to travel'.PHP_EOL;
}
} | 36,560 |
https://github.com/NicholsTyler/cse_335/blob/master/CanadianExperience/CanadianExperience/html/class_c_timeline_dlg.js | Github Open Source | Open Source | MIT | null | cse_335 | NicholsTyler | JavaScript | Code | 50 | 428 | var class_c_timeline_dlg =
[
[ "IDD", "class_c_timeline_dlg.html#a330aa61151bda4840b8b241bca03793ba6da8194ad84871f0dd6a2e92179a633d", null ],
[ "CTimelineDlg", "class_c_timeline_dlg.html#a223084ec9e733c204098c759514ffad8", null ],
[ "~CTimelineDlg", "class_c_timeline_dlg.html#afd8204d07f08a1c38cf6945216ea2d... | 14,440 |
https://github.com/Masterchief-07/ArmRobot/blob/master/controllers/armController/armRobot.cpp | Github Open Source | Open Source | MIT | null | ArmRobot | Masterchief-07 | C++ | Code | 563 | 2,954 | #include "armRobot.hpp"
ArmRobot::ArmRobot(Robot *robot, vector<string> &motorName, vector<string> &grapMotorName, vector<string> &posSensName,vector<string> &touchSensName): m_motorName(motorName), m_grapMotorName(grapMotorName), m_posSensName(posSensName), m_touchSensName(touchSensName){
m_robot = robot;
ini... | 18,478 |
https://github.com/itanaskovic/accounting/blob/master/accounting-ui/src/de/tfsw/accounting/ui/reports/AbstractReportDialog.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | accounting | itanaskovic | Java | Code | 744 | 2,768 | /*
* Copyright 2012 , 2014 Thorsten Frank (accounting@tfsw.de).
*
* 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 r... | 20,008 |
https://github.com/anonymouse64/device-sdk-go/blob/master/internal/common/utils_test.go | Github Open Source | Open Source | Apache-2.0 | null | device-sdk-go | anonymouse64 | Go | Code | 186 | 622 | // -*- Mode: Go; indent-tabs-mode: t -*-
//
// Copyright (C) 2017-2018 Canonical Ltd
// Copyright (C) 2018 IOTech Ltd
//
// SPDX-License-Identifier: Apache-2.0
package common
import (
"testing"
)
func TestBuildAddr(t *testing.T) {
addr := BuildAddr("test.xyz", "8000")
if addr != "http://test.xyz:8000" {
t.Erro... | 11,630 |
https://github.com/florent-pallaver/temple/blob/master/legacy/temple.common/src/main/java/com/temple/util/constraint/ConstraintUtil.java | Github Open Source | Open Source | MIT | 2,020 | temple | florent-pallaver | Java | Code | 113 | 266 | package com.temple.util.constraint;
/**
* TODOC
*
* @author Florent Pallaver
* @version 1.0
*/
public abstract class ConstraintUtil {
/**
* Constructor.
*/
protected ConstraintUtil() {}
/**
* TODOC
*
* @param s
* @param max
* @throws LengthException
*/
public static final void checkLength(... | 52,080 |
https://github.com/jonnor/javafbp/blob/master/src/main/java/com/jpmorrsn/fbp/examples/networks/Telegram.java | Github Open Source | Open Source | Artistic-2.0 | 2,016 | javafbp | jonnor | Java | Code | 105 | 528 | /*
* Copyright (C) J.P. Morrison, Enterprises, Ltd. 2009, 2012 All Rights Reserved.
*/
package com.jpmorrsn.fbp.examples.networks;
import com.jpmorrsn.fbp.engine.Network;
public class Telegram extends Network {
String description = "http://www.jpaulmorrison.com/cgi-bin/wiki.pl?TelegramProblem";
@Override
... | 33,102 |
https://github.com/lorenchorley/StrangeIoC-Updated/blob/master/Assets/Scripts/Photon/Helpers/PhotonRequest.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | StrangeIoC-Updated | lorenchorley | C# | Code | 79 | 245 | using UniRx;
using System;
namespace photon.helpers {
public abstract class PhotonRequest<T> {
public PhotonView View;
public string RPCName;
public PhotonTargets Players { get; protected set; }
public Func<T, bool> DetermineHasReturned;
public bool SerialiseArgsArray =... | 16,546 |
https://github.com/lg-lg-lg/car_2d_racing/blob/master/Assets/Appodeal/Platforms/ConsentManager/ConsentManagerClientFactory.cs | Github Open Source | Open Source | MIT | null | car_2d_racing | lg-lg-lg | C# | Code | 127 | 450 | using ConsentManager.Common;
using ConsentManager.Platforms.Android;
using ConsentManager.Platforms.iOS;
namespace ConsentManager.Platforms
{
internal static class ConsentManagerClientFactory
{
internal static IConsentManager GetConsentManager()
{
#if UNITY_ANDROID && !UNITY_EDITOR
return n... | 35,044 |
https://github.com/ipython/ipyparallel/blob/master/docs/source/examples/pi/pidigits.py | Github Open Source | Open Source | BSD-3-Clause | 2,023 | ipyparallel | ipython | Python | Code | 520 | 1,358 | """Compute statistics on the digits of pi.
This uses precomputed digits of pi from the website
of Professor Yasumasa Kanada at the University of
Tokoyo: https://www.super-computing.org/
Currently, there are only functions to read the
.txt (non-compressed, non-binary) files, but adding
support for compression and bina... | 13,296 |
https://github.com/NedicNemanja/OS_Homework1/blob/master/source/PaintshopStage.c | Github Open Source | Open Source | MIT | null | OS_Homework1 | NedicNemanja | C | Code | 302 | 967 | #include "PaintshopStage.h"
#include "ErrorCodes.h"
#include <stdio.h>
#include <sys/types.h>
#include <sys/sem.h>
#include <sys/ipc.h>
int PaintshopStage(int* queueids, int num_parts){
printf("Paintshop Process started\n");
double paint_wait_time=0;
/*get queues from shared memory and their semaphores*/
char... | 34,321 |
https://github.com/amaltsev/XAO-FS/blob/master/.gitignore | Github Open Source | Open Source | Artistic-1.0-Perl | 2,023 | XAO-FS | amaltsev | Ignore List | Code | 10 | 49 | .config
.config-*
blib
Makefile
Makefile.old
CHANGES
pm_to_blib
MYMETA.*
t/*.xt
t/*.pl
| 39,377 |
https://github.com/blueblueblue/infinispan/blob/master/server/integration/testsuite/src/test/java/org/infinispan/server/test/category/MemcachedSingleNodeDomain.java | Github Open Source | Open Source | Apache-2.0 | null | infinispan | blueblueblue | Java | Code | 29 | 79 | package org.infinispan.server.test.category;
import org.junit.experimental.categories.Category;
/**
* {@link Category} tag for local Memcached tests in domain mode.
*
* @author mgencur
*
*/
public class MemcachedSingleNodeDomain extends ClientSingleNode {
}
| 52,385 |
https://github.com/vincnunes/nfe/blob/master/src/main/java/com/fincatto/nfe310/classes/nota/NFNotaInfoLacre.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | nfe | vincnunes | Java | Code | 42 | 191 | package com.fincatto.nfe310.classes.nota;
import org.simpleframework.xml.Element;
import com.fincatto.nfe310.classes.NFBase;
import com.fincatto.nfe310.validadores.StringValidador;
public class NFNotaInfoLacre extends NFBase {
@Element(name = "nLacre", required = true)
private String numeroLacres;
publi... | 25,586 |
https://github.com/all-learn-nodejs/muse-electron/blob/master/src/renderer/models/components/modal/preference.ts | Github Open Source | Open Source | MIT | 2,020 | muse-electron | all-learn-nodejs | TypeScript | Code | 43 | 126 | import { Instance, types } from "mobx-state-tree";
export const PreferenceModalModel = types
.model("PreferenceModal", {
ifShow: types.optional(types.boolean, false),
})
.actions((self) => {
return {
show() {
self.ifShow = true;
},
hide() {
self.ifShow = false;
},
... | 34,313 |
https://github.com/tailspin-dev/kaldb/blob/master/kaldb/src/test/java/com/slack/kaldb/metadata/cache/CacheSlotMetadataTest.java | Github Open Source | Open Source | MIT | null | kaldb | tailspin-dev | Java | Code | 212 | 1,266 | package com.slack.kaldb.metadata.cache;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
import com.slack.kaldb.proto.metadata.Metadata;
import java.time.Instant;
import org.junit.Test;
public class CacheSlotMetadataTest {
... | 22,338 |
https://github.com/Celeo/discord_snowflake/blob/master/snowflake/__init__.py | Github Open Source | Open Source | MIT | null | discord_snowflake | Celeo | Python | Code | 10 | 37 | from .snowflake import Snowflake
__version__ = "0.1.0"
__all__ = [Snowflake]
| 28,811 |
https://github.com/tud-ccc/mocasin/blob/master/test/test_to_dot.py | Github Open Source | Open Source | 0BSD | 2,022 | mocasin | tud-ccc | Python | Code | 140 | 845 | # Copyright (C) 2020 TU Dresden
# Licensed under the ISC license (see LICENSE.txt)
#
# Authors: Christian Menard
import filecmp
import subprocess
import os
def test_tgff_graph_to_dot(datadir, expected_dir):
dot_file = "auto-indust-cords.dot"
out_file = os.path.join(datadir, dot_file)
subprocess.check_ca... | 46,386 |
https://github.com/ncharlton02/Robogeddon-libgdx/blob/master/client/assets/shaders/border.vert | Github Open Source | Open Source | MIT | 2,020 | Robogeddon-libgdx | ncharlton02 | GLSL | Code | 24 | 67 | #version 130
uniform mat4 cam_combined;
attribute vec4 position;
out vec2 world_cord;
void main() {
world_cord = vec2(position.x, position.y);
gl_Position = cam_combined * position;
} | 37,806 |
https://github.com/glofoxinc/jwt/blob/master/src/HeaderParameter/JwkSetUrl.php | Github Open Source | Open Source | MIT | 2,015 | jwt | glofoxinc | PHP | Code | 146 | 272 | <?php
namespace Emarref\Jwt\HeaderParameter;
/**
* "jku" (JWK Set URL) Header Parameter
*
* The "jku" (JWK Set URL) Header Parameter is a URI [RFC3986] that refers to a resource for a set of JSON-encoded
* public keys, one of which corresponds to the key used to digitally sign the JWS. The keys MUST be encoded a... | 19,657 |
https://github.com/mbcraft/frozen/blob/master/src/demos/simple_sample_site/blocks/contenuti/testi/riga_testo.block.php | Github Open Source | Open Source | BSD-3-Clause | 2,015 | frozen | mbcraft | PHP | Code | 65 | 303 | <tr>
<td>
<?= $id ?>
</td>
<td>
<?= $chiave ?>
</td>
<td>
<?= $titolo ?>
</td>
<td>
<?= $codice_lingua ?>
</td>
<td>
<form name="modifica_contenuto_<?=$id ?>" method="POST" action="/admin/contenuti/testi/modifica_testo.php">
<input ... | 18,623 |
https://github.com/ideacrew/enroll/blob/master/app/data_migrations/migrate_verification_types.rb | Github Open Source | Open Source | MIT, Unlicense | 2,021 | enroll | ideacrew | Ruby | Code | 400 | 1,802 | require File.join(Rails.root, "lib/mongoid_migration_task")
# rubocop:disable Metrics/BlockNesting
class MigrateVerificationTypes < MongoidMigrationTask
def get_people(offset, limit)
Person.where(:"consumer_role" => {"$exists" => true}).offset(offset).limit(limit)
end
def local_residency
EnrollRegistry[... | 32,121 |
https://github.com/witek117/NXPCup_2020/blob/master/firmware/pixy/src/host/libpixyusb2_examples/python_demos/get_lines_python_demo.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | NXPCup_2020 | witek117 | Python | Code | 185 | 661 | from __future__ import print_function
import pixy
from ctypes import *
from pixy import *
# pixy2 Python SWIG get line features example #
get_all_features = True
print("Pixy2 Python SWIG Example -- Get Line Features")
pixy.init ()
pixy.change_prog ("line")
class Vector (Structure):
_fields_ = [
("m_x0", c_ui... | 28,828 |
https://github.com/tokorealand/cpusim/blob/master/Simulator/src/Main.java | Github Open Source | Open Source | MIT | null | cpusim | tokorealand | Java | Code | 39 | 121 |
import java.io.IOException;
public class Main {
public static void main(String[] args) throws IOException {
try {
Translator t = new Translator(args[0],args[1],args[2],args[3]);
t.readMemFile();
Gui gu = new Gui(t);
}
catch (ArrayIndexOutOfBoundsException e)
{
System.out.println("Wrong number... | 48,181 |
https://github.com/conrad-strughold/GamestonkTerminal/blob/master/openbb_terminal/cryptocurrency/overview/rekt_model.py | Github Open Source | Open Source | MIT | 2,023 | GamestonkTerminal | conrad-strughold | Python | Code | 479 | 1,704 | """Rekt Model"""
import logging
from typing import List, Union
import pandas as pd
import requests
from bs4 import BeautifulSoup
from requests.adapters import HTTPAdapter, RetryError
from urllib3.util.retry import Retry
from openbb_terminal.decorators import log_start_end
from openbb_terminal.helper_funcs import get_... | 38,971 |
https://github.com/jakepruitt/thesis/blob/master/old-matlab-code/lpa_autoVol3.m | Github Open Source | Open Source | BSD-2-Clause | 2,016 | thesis | jakepruitt | MATLAB | Code | 2,436 | 8,347 | function [lowest,middle,depth,x_centFinal,y_centFinal,radius,intVol,runcBuff,meanIntVol,...
intVolUncert] = lpa_autoVol3(dataset,xdim,ydim,destination,name)
%Laser Pit Analysis - Volume Calculation
%USAGE: [lowest,middle,depth,x_cent,y_cent,volume] = lpa_autoVol2(dataset,diameter,xdim,ydim,varargin)
%
%PURP... | 38,276 |
https://github.com/claudemamo/dhis2-core/blob/master/dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/predictor/PredictorJob.java | Github Open Source | Open Source | BSD-3-Clause | null | dhis2-core | claudemamo | Java | Code | 366 | 783 | /*
* Copyright (c) 2004-2022, University of Oslo
* 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 cond... | 15,035 |
https://github.com/purplecode/lightning-talk-neo4j/blob/master/src/index.jade | Github Open Source | Open Source | MIT | null | lightning-talk-neo4j | purplecode | null | Spoken | 47 | 364 | doctype html
html(lang='en')
head
title Neo4j
meta(charset='utf-8')
meta(http-equiv='x-ua-compatible', content='ie=edge')
meta(name='viewport', content='width=device-width, initial-scale=1')
link(rel='stylesheet', href='src/shower/themes/ribbon/styles/screen-16x10.css')
link(rel='stylesheet', ... | 13,574 |
https://github.com/ScrumWorks/property-reader/blob/master/tests/VariableTypeCreatingTrait.php | Github Open Source | Open Source | MIT | null | property-reader | ScrumWorks | PHP | Code | 160 | 590 | <?php
declare(strict_types = 1);
namespace ScrumWorks\PropertyReader\Tests;
use ScrumWorks\PropertyReader\VariableType\AbstractVariableType;
use ScrumWorks\PropertyReader\VariableType\ArrayVariableType;
use ScrumWorks\PropertyReader\VariableType\ClassVariableType;
use ScrumWorks\PropertyReader\VariableType\MixedVari... | 30,393 |
https://github.com/mouseflow/elasticsearch-net/blob/master/src/Nest/CommonOptions/DateMath/DateMathOperation.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | elasticsearch-net | mouseflow | C# | Code | 56 | 195 | using System;
using System.Runtime.Serialization;
using Elasticsearch.Net;
namespace Nest
{
[StringEnum]
public enum DateMathOperation
{
[EnumMember(Value = "+")]
Add,
[EnumMember(Value = "-")]
Subtract
}
public static class DateMathOperationExtensions
{
public static string GetStringValue(this DateM... | 29,253 |
https://github.com/cburgdorf/py-ssz/blob/master/tests/sedes/test_speed.py | Github Open Source | Open Source | MIT | null | py-ssz | cburgdorf | Python | Code | 227 | 1,005 | import time
from ssz import (
encode,
)
from ssz.sedes import (
List,
Serializable,
bytes32,
bytes48,
uint32,
uint64,
)
class ValidatorRecord(Serializable):
fields = [
('pubkey', bytes48),
('withdrawal_credentials', bytes32),
('randao_commitment', bytes32),
... | 6,986 |
https://github.com/artursvonda/draft-js-plugins/blob/master/draft-js-counter-plugin/src/WordCounter/index.js | Github Open Source | Open Source | MIT | null | draft-js-plugins | artursvonda | JavaScript | Code | 123 | 310 | import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
const WordCounter = ({ store, limit, theme = {}, className }) => {
const getWordCount = editorState => {
const plainText = editorState.getCurrentContent().getPlainText('');
const regex = /(?:\r\n|\r|\n)/g; // new line, ca... | 4,779 |
https://github.com/gdeskos/DVMpp/blob/master/src/Probe.hpp | Github Open Source | Open Source | MIT | 2,021 | DVMpp | gdeskos | C++ | Code | 120 | 279 | #ifndef PROBE_H
#define PROBE_H
#include "BaseTypes.hpp"
#include "XmlHandler.hpp"
/** \class Probe
* \brief Describes a velocity probe.
* \file Probe.hpp */
class Probe
{
public:
Vector m_x; ///< x-location of the probe points
Vector m_z; ///< z-location of the probe points
Vector m_u; ///< x-direction ... | 15,321 |
https://github.com/matbesancon/Hypatia.jl/blob/master/examples/maxvolume/JuMP_test.jl | Github Open Source | Open Source | MIT | 2,022 | Hypatia.jl | matbesancon | Julia | Code | 101 | 358 |
relaxed_tols = (default_tol_relax = 100,)
insts = OrderedDict()
insts["minimal"] = [
((2, true, false),),
((2, false, true),),
((2, false, true), :SOCExpPSD, relaxed_tols),
]
insts["fast"] = [
((10, true, false),),
((10, false, true), nothing, relaxed_tols),
((10, false, true), :SOCExpPSD),... | 643 |
https://github.com/alexandre-lecoq/QueryMultiDb/blob/master/QueryMultiDbGui/AboutForm.Designer.cs | Github Open Source | Open Source | BSD-3-Clause | 2,020 | QueryMultiDb | alexandre-lecoq | C# | Code | 789 | 3,580 | namespace QueryMultiDbGui
{
partial class AboutForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
///... | 38,643 |
https://github.com/jpbruyere/CrowEd/blob/master/CrowEditBase/src/Debug/BreakPoint.cs | Github Open Source | Open Source | MIT | 2,022 | CrowEd | jpbruyere | C# | Code | 256 | 759 | // Copyright (c) 2013-2021 Jean-Philippe Bruyère <jp_bruyere@hotmail.com>
//
// This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
using System.Diagnostics;
namespace CrowEditBase
{
[DebuggerDisplay("{" + nameof(GetDebuggerDisplay) + "(),nq}")]
public class BreakPoint : CrowEdi... | 43,506 |
https://github.com/DekusDenial/framework/blob/master/packages/reports/tests/unit/components/report-builder-test.js | Github Open Source | Open Source | MIT | 2,021 | framework | DekusDenial | JavaScript | Code | 187 | 479 | import { A as arr } from '@ember/array';
import { get, set } from '@ember/object';
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Component | Report Builder', function (hooks) {
setupTest(hooks);
test('allTables', function (assert) {
assert.expect(1);
let co... | 15,767 |
https://github.com/kmchugh/Goliath.Data/blob/master/src/Goliath/Data/Query/InList.java | Github Open Source | Open Source | MIT | 2,012 | Goliath.Data | kmchugh | Java | Code | 429 | 849 | /* ========================================================
* InList.java
*
* Author: admin
* Created: Jul 19, 2011, 10:04:22 AM
*
* Description
* --------------------------------------------------------
* General Class Description.
*
* Change Log
* --------------------------------------------------... | 50,381 |
https://github.com/joewen85/mycmdb/blob/master/apps/device/adminx.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | mycmdb | joewen85 | Python | Code | 205 | 867 | # -*- coding: utf-8 -*-
# auther: Joe wen
# date: 2018/8/31 下午3:42
import xadmin
from xadmin import views
from .models import Cloudips, Envirment, Device, Jobs, Deploy_record, Password_record
class GlobalSettings(object):
site_title = '芸众后台管理系统'
site_footer = '芸众管理系统'
menu_style = 'accordion'
class Ba... | 33,232 |
https://github.com/codez4all/NewyorkTimesSearch/blob/master/app/src/main/java/com/example/sheetal/newyorktimessearch/Adapters/ArticleRecycleAdapter.java | Github Open Source | Open Source | Apache-2.0 | null | NewyorkTimesSearch | codez4all | Java | Code | 181 | 748 | package com.example.sheetal.newyorktimessearch.adapters;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.Text... | 28,874 |
https://github.com/isubit/luggage_podcasts_player_src/blob/master/src/sass/pwp-dark-green.scss | Github Open Source | Open Source | BSD-2-Clause | null | luggage_podcasts_player_src | isubit | SCSS | Code | 4 | 17 | @import "themes/dark-green";
@import "main";
| 30,286 |
https://github.com/scafi/scafi/blob/master/simulator-gui-new/src/main/scala/it/unibo/scafi/simulation/s2/frontend/model/sensor/SensorConcept.scala | Github Open Source | Open Source | Apache-2.0 | 2,023 | scafi | scafi | Scala | Code | 328 | 725 | package it.unibo.scafi.simulation.s2.frontend.model.sensor
import it.unibo.scafi.simulation.s2.frontend.model.aggregate.AggregateWorld
import it.unibo.scafi.simulation.s2.frontend.model.sensor.SensorConcept.SensorStream
import it.unibo.scafi.simulation.s2.frontend.model.sensor.SensorConcept.SensorType
/**
* describe ... | 39,065 |
https://github.com/shubham3121/PySyft-TensorFlow/blob/master/syft_tensorflow/hook/hook_args.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | PySyft-TensorFlow | shubham3121 | Python | Code | 144 | 606 | """Hook args implementation for TensorFLow.
Implements and registers hook_args functionality for syft-tensorflow objects.
See syft/generic/frameworks/hook/hook_args.py for the core implementation.
"""
import tensorflow as tf
import numpy as np
from tensorflow.python.framework.ops import EagerTensor
from syft.exceptio... | 51,157 |
https://github.com/jekhokie/IfSimply/blob/master/spec/factories/discussion_boards.rb | Github Open Source | Open Source | MIT | 2,015 | IfSimply | jekhokie | Ruby | Code | 30 | 94 | # Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :discussion_board do
club
name { Faker::Lorem.words(rand(3) + 3).join " " }
description { Faker::Lorem.sentences(rand(10) + 5).join " " }
end
end
| 44,071 |
https://github.com/hezerongrocky/invoiceForChecking/blob/master/InvoiceCheck/InvoiceCheck/classes/HomePage(首页)/controllers/HomePageViewController.h | Github Open Source | Open Source | MIT | 2,016 | invoiceForChecking | hezerongrocky | Objective-C | Code | 28 | 83 | //
// HomePageViewController.h
// InvoiceCheck
//
// Created by hezerong on 16/6/24.
// Copyright © 2016年 Rocky. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface HomePageViewController : UIViewController
@end
| 31,507 |
https://github.com/Pouf/CodingCompetition/blob/master/CiO/skew-symmetric.py | Github Open Source | Open Source | MIT | 2,018 | CodingCompetition | Pouf | Python | Code | 11 | 39 | def checkio(m):
return [tuple(-n for n in m[x])for x in range(len(m))]==list(zip(*m))
| 18,691 |
https://github.com/mirekmarek/php-jet/blob/master/_installer/dictionaries/cs_CZ/CreateDB.php | Github Open Source | Open Source | BSD-3-Clause | 2,022 | php-jet | mirekmarek | PHP | Code | 16 | 53 | <?php
return [
'Create database' => 'Vytvořit databázi',
'Class' => 'Třídat (Class)',
'Status' => 'Výsledek',
];
| 5,792 |
https://github.com/fossabot/gitserver/blob/master/src/main/scala/git/GitRepositoryServlet.scala | Github Open Source | Open Source | Apache-2.0 | null | gitserver | fossabot | Scala | Code | 341 | 1,096 | package git
import java.io.File
import javax.servlet.ServletConfig
import javax.servlet.http.{HttpServletRequest, HttpServletResponse}
import org.eclipse.jgit.http.server.GitServlet
import org.eclipse.jgit.internal.storage.file.FileRepository
import org.eclipse.jgit.lib._
import org.eclipse.jgit.transport._
import or... | 37,516 |
https://github.com/shugenghu/wkea-ec/blob/master/node_modules/@msdyn365-commerce-modules/search/src/modules/search/__tests__/unit/__snapshots__/search.categorysuggest.test.tsx.snap | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,021 | wkea-ec | shugenghu | null | Spoken | 128 | 557 | // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Search unit tests - CategorySuggestions Component renders correctly with suggestions and refiners 1`] = `
<div>
<ul>
<li
className="msc-autoSuggest__categoryResults-title"
>
heading
</li>
<li
className="msc-autoSuggest__categoryRes... | 20,141 |
https://github.com/TribeMedia/sky_engine/blob/master/mojo/tools/testing/mojom_fetcher/repository_tests.py | Github Open Source | Open Source | BSD-3-Clause | 2,015 | sky_engine | TribeMedia | Python | Code | 103 | 547 | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import io
import os.path
import unittest
from fetcher.dependency import Dependency
# Fake repository for testing
from fakes import FakeRepository
class T... | 34,119 |
https://github.com/LeTrovoes/abcg/blob/master/examples/jet-fighter/bullets.cpp | Github Open Source | Open Source | MIT | null | abcg | LeTrovoes | C++ | Code | 295 | 1,280 | #include "bullets.hpp"
#include <cppitertools/itertools.hpp>
#include <glm/gtx/rotate_vector.hpp>
#include "core.h"
void Bullets::initializeGL(GLuint program) {
terminateGL();
gl_program = program;
ul_color = abcg::glGetUniformLocation(gl_program, "color");
ul_rotation = abcg::glGetUniformLocation(gl_progra... | 8,913 |
https://github.com/argos-ci/argos/blob/master/.browserslistrc | Github Open Source | Open Source | MIT | 2,023 | argos | argos-ci | null | Spoken | 10 | 17 | last 2 versions
> 1%
not dead
not op_mini all | 38,120 |
https://github.com/samdfonseca/reasonml-idea-plugin/blob/master/tests/com/reason/lang/reason/TypeParsingTest.java | Github Open Source | Open Source | MIT | null | reasonml-idea-plugin | samdfonseca | Java | Code | 236 | 938 | package com.reason.lang.reason;
import com.reason.lang.BaseParsingTestCase;
import com.reason.lang.core.ORUtil;
import com.reason.lang.core.psi.*;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
@SuppressWarnings("ConstantConditions")
public class TypeParsingTest extends BaseParsingTe... | 37,195 |
https://github.com/ruchirbhai/recursion/blob/master/LetterCasePermutation_784_immutable.py | Github Open Source | Open Source | MIT | 2,020 | recursion | ruchirbhai | Python | Code | 203 | 500 | # Given a string S, we can transform every letter individually to be lowercase or uppercase to create another string.
# Return a list of all possible strings we could create.
# Examples:
# Input: S = "a1b2"
# Output: ["a1b2", "a1B2", "A1b2", "A1B2"]
# Input: S = "3z4"
# Output: ["3z4", "3Z4"]
# Input: S = "12345"
... | 35,987 |
https://github.com/hmcts/probate-persistence-service/blob/master/src/test/java/uk/gov/hmcts/probate/services/persistence/transformers/json/JsonStringSqlTypeDescriptorTest.java | Github Open Source | Open Source | MIT | null | probate-persistence-service | hmcts | Java | Code | 164 | 817 | package uk.gov.hmcts.probate.services.persistence.transformers.json;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import java.sql.CallableStatement;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import org.hibernate.type.descriptor.ValueBinder;
import org.hibernate... | 33,864 |
https://github.com/cavarzan/geogson/blob/master/core/src/main/java/com/github/filosganga/geogson/util/Optionals.java | Github Open Source | Open Source | Apache-2.0 | null | geogson | cavarzan | Java | Code | 129 | 445 | package com.github.filosganga.geogson.util;
import static com.google.common.collect.Iterables.transform;
import com.google.common.base.Function;
import com.google.common.base.Optional;
import com.google.common.base.Predicate;
import com.google.common.base.Supplier;
/**
* Guava Optional support utilities.
*/
publi... | 10,912 |
https://github.com/renzhsh/esrimap/blob/master/src/esri/core/index.js | Github Open Source | Open Source | MIT | null | esrimap | renzhsh | JavaScript | Code | 12 | 23 | export * from './base';
export * from './tasks';
export * from './utils'; | 32,942 |
https://github.com/liserdarts/bepuphysics2/blob/master/Demos/Demos/CharacterDemo.cs | Github Open Source | Open Source | Apache-2.0 | null | bepuphysics2 | liserdarts | C# | Code | 1,449 | 4,586 | using BepuUtilities;
using DemoRenderer;
using BepuPhysics;
using BepuPhysics.Collidables;
using System.Numerics;
using Quaternion = BepuUtilities.Quaternion;
using System;
using BepuPhysics.CollisionDetection;
using System.Runtime.CompilerServices;
using System.Diagnostics;
using BepuPhysics.Constraints;
using DemoCo... | 11,325 |
https://github.com/hdm/mac-tracker/blob/master/data/js/70/b3/d5/ce/f0/00.36.js | Github Open Source | Open Source | CC-BY-4.0, MIT | 2,021 | mac-tracker | hdm | JavaScript | Code | 7 | 71 | macDetailCallback("70b3d5cef000/36",[{"d":"2019-09-22","t":"add","s":"ieee-oui36.csv","a":"Linnapellontie 18 Halikko FI 24910","c":"FI","o":"Ellego Powertec Oy"}]);
| 44,945 |
https://github.com/punker76/markdig/blob/master/src/Markdig/Helpers/ObjectCache.cs | Github Open Source | Open Source | BSD-2-Clause | 2,023 | markdig | punker76 | C# | Code | 210 | 525 | // Copyright (c) Alexandre Mutel. All rights reserved.
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.
using System.Collections.Concurrent;
namespace Markdig.Helpers;
/// <summary>
/// A simple object recycling system.
/// </summary>
///... | 24,427 |
https://github.com/VincenzoArceri/lisa/blob/master/lisa/src/test/java/it/unive/lisa/test/imp/tutorial/ParityXSign.java | Github Open Source | Open Source | MIT | null | lisa | VincenzoArceri | Java | Code | 58 | 209 | package it.unive.lisa.test.imp.tutorial;
import it.unive.lisa.analysis.ValueCartesianProduct;
import it.unive.lisa.analysis.nonrelational.ValueEnvironment;
import it.unive.lisa.symbolic.value.Identifier;
public class ParityXSign extends ValueCartesianProduct<ValueEnvironment<Parity>, ValueEnvironment<Sign>> {
publi... | 31,284 |
https://github.com/circuithub/morpheus/blob/master/src/renderer/header.js | Github Open Source | Open Source | MIT | 2,019 | morpheus | circuithub | JavaScript | Code | 2 | 10 | morpheus.renderer =
| 20,135 |
https://github.com/thiscouldbebetter/DistributedShipping/blob/master/Source/World.js | Github Open Source | Open Source | MIT | null | DistributedShipping | thiscouldbebetter | JavaScript | Code | 39 | 148 |
function World(name, schedules, countries, currencies, packageTypes, restrictionGroups, users, parcels, transactions)
{
this.name = name;
this.schedules = schedules.addLookupsByCode();
this.countries = countries.addLookupsByCode();
this.currencies = currencies.addLookupsByCode();
this.packageTypes = packageTypes.... | 48,382 |
https://github.com/frogspark/lookingglass/blob/master/web/app/plugins/ninja-forms/includes/Updates/CacheFieldReconcilliation.php | Github Open Source | Open Source | MIT | 2,020 | lookingglass | frogspark | PHP | Code | 1,233 | 3,181 | <?php if ( ! defined( 'ABSPATH' ) ) exit;
/**
* Class NF_Updates_CacheFieldReconcilliation
*
* This allows us to make sure that the data being saved to the database is in the fields table.
*/
class NF_Updates_CacheFieldReconcilliation extends NF_Abstracts_RequiredUpdate
{
private $data = array();
... | 44,928 |
https://github.com/Novemser/LearnJava/blob/master/src/main/java/test/JD.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | LearnJava | Novemser | Java | Code | 205 | 579 | package test;
import java.util.*;
/**
* Project: LearnJava
* Package: test
* Author: Novemser
* 2017/4/6
*/
public class JD {
public static void main(String[] args) {
int n, s;
Scanner scanner = new Scanner(System.in);
class inn implements Comparator<Integer> {
@Override
... | 49,931 |
https://github.com/xan105/node-request/blob/master/lib/h1/download.js | Github Open Source | Open Source | MIT | null | node-request | xan105 | JavaScript | Code | 1,073 | 3,161 | /*
MIT License
Copyright (c) 2019-2021 Anthony Beaumont
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, p... | 36,346 |
https://github.com/cicakhq/potato/blob/master/src/potato/upload.lisp | Github Open Source | Open Source | Apache-2.0 | 2,021 | potato | cicakhq | Common Lisp | Code | 962 | 3,881 | (in-package :potato.upload)
(declaim #.potato.common::*compile-decl*)
(defclass file ()
((name :type string
:initarg :name
:reader file/name
:persisted-p t)
(key :type string
:initarg :key
:... | 45,671 |
https://github.com/moogacs/aws-sdk-go-v2/blob/master/service/iot/api_op_GetPercentiles.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | aws-sdk-go-v2 | moogacs | Go | Code | 518 | 1,452 | // Code generated by smithy-go-codegen DO NOT EDIT.
package iot
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/iot/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/... | 50,894 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.