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/enfoTek/tomato.linksys.e2000.nvram-mod/blob/master/tools-src/gnu/glibc/sysdeps/m68k/fpu/s_significandl.c | Github Open Source | Open Source | FSFAP | 2,021 | tomato.linksys.e2000.nvram-mod | enfoTek | C | Code | 5 | 20 | #define FUNC significandl
#include <s_atanl.c>
| 43,565 |
https://github.com/AlexSaplin/URLShortener/blob/master/pkg/entities/entities.go | Github Open Source | Open Source | MIT | null | URLShortener | AlexSaplin | Go | Code | 59 | 169 | package entities
import (
"time"
)
type Link struct {
ID string
ShortID string
OwnerID string
Target string
Created time.Time
Expires time.Time
}
type Requester struct {
TelegramID *string
}
var EmptyRequester = Requester{}
func NewRequester(telegramID string) Requester {
return Requester{TelegramID... | 1,078 |
https://github.com/Bian-Sh/Dotween-Animation-Provider/blob/master/Assets/Dotween Animation Provider/Providers/RectTransformDeltaSizeProvider.cs | Github Open Source | Open Source | MIT | 2,021 | Dotween-Animation-Provider | Bian-Sh | C# | Code | 71 | 219 | using UnityEngine;
using DG.Tweening;
namespace zFramework.Extension.Tweening
{
[DisallowMultipleComponent, RequireComponent(typeof(RectTransform))]
public class RectTransformDeltaSizeProvider : DoTweenBaseProvider
{
public bool snapping = false;
public Vector3 endValue = Vector3.zero;
... | 32,407 |
https://github.com/sutine/webant/blob/master/webant-worker/src/main/java/org/webant/worker/app/WebantWorker.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | webant | sutine | Java | Code | 138 | 657 | package org.webant.worker.app;
import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.webant.worker.WorkerConsole;
import org.webant.worker.config.ConfigManager;
import org.webant.worker.config.SiteConfigFileMonitor;
import org.webant.worker.config.T... | 43,729 |
https://github.com/igorzg/js_cms/blob/master/_old_app/modules/admin/index.js | Github Open Source | Open Source | MIT | 2,018 | js_cms | igorzg | JavaScript | Code | 28 | 75 |
var di = require('mvcjs'),
Module = di.load('core/module'),
TestModule;
TestModule = Module.inherit({}, {
_construct: function TestModule_construct() {
// do something here if you want
}
});
module.exports = TestModule; | 2,574 |
https://github.com/wattsworth/lumen-api/blob/master/app/adapters/joule/update_db.rb | Github Open Source | Open Source | LicenseRef-scancode-public-domain | 2,023 | lumen-api | wattsworth | Ruby | Code | 834 | 3,189 | # frozen_string_literal: true
module Joule
# Handles construction of database objects
class UpdateDb
include ServiceStatus
def initialize(db)
@db = db
@deleted_folders = []
@deleted_db_streams = []
@deleted_event_streams = []
super()
end
def run(dbinfo, schema)
... | 11,917 |
https://github.com/alanreidt/toxin-hotel-website/blob/master/modules/utilities/isNumberFalsey/isNumberFalsey.js | Github Open Source | Open Source | MIT | 2,020 | toxin-hotel-website | alanreidt | JavaScript | Code | 51 | 101 | /**
* Defines whether number is falsey or not.
* The values which are not a number type and are NaN will return true.
*
* @param {number} number A subject of examination.
*/
const isNumberFalsey = function isNumberFalseyFromUtilities(number) {
return !(typeof number === 'number' && !Number.isNaN(number));
};
ex... | 37,823 |
https://github.com/mathworks-ref-arch/matlab-google-bigquery/blob/master/Software/MATLAB/app/system/+gcp/+bigquery/@BigQuery/BigQuery.m | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, BSD-2-Clause | 2,020 | matlab-google-bigquery | mathworks-ref-arch | MATLAB | Code | 490 | 1,402 | classdef BigQuery < gcp.bigquery.Object
% BIGQUERY Google Big Query Client Library for MATLAB
% (c) 2020 MathWorks, Inc.
properties
ProjectId
Location
end
methods
%% Constructor
function obj = BigQuery(varargin)
... | 4,060 |
https://github.com/emileswain/validate-arg-types/blob/master/test/index.js | Github Open Source | Open Source | MIT | null | validate-arg-types | emileswain | JavaScript | Code | 543 | 2,013 | var chai = require('chai'),
should = chai.should(),
assert = chai.assert,
expect = chai.expect;
ValidateArgs = require('../index');
describe('#Validate.isString()', function ()
{
var validate;
before(function(done){
validate = ValidateArgs('test');
done();
});
it('isStrin... | 12,278 |
https://github.com/theAmouie/heart-beat-to-midi/blob/master/pythonserver/signalthread.py | Github Open Source | Open Source | MIT | 2,021 | heart-beat-to-midi | theAmouie | Python | Code | 43 | 191 | import threading
import multiprocessing
import time
import rtmidi
class midi_signal_thread(threading.Thread):
def __init__(self, midiout, value):
threading.Thread.__init__(self)
self._stop_event = threading.Event()
self.midiout = midiout
self.value = value
def run(self):
... | 47,923 |
https://github.com/prdepinho/data_structures/blob/master/elementary/disjoined_sets.c | Github Open Source | Open Source | MIT | 2,019 | data_structures | prdepinho | C | Code | 63 | 241 | #include "disjoined_sets.h"
static
void dset_link(struct DSet *x, struct DSet *y){
if(x->rank > y->rank){
y->parent = x;
}else{
x->parent = y;
if(x->rank == y->rank){
y->rank++;
}
}
}
void dset_make_set(struct DSet *x){
x->parent = x;
x->rank = 0;
}
void dset_union(struct DSet *x, struct DSet *y){
... | 10,894 |
https://github.com/maldua-mirror/packages/blob/master/thirdparty/nginx/nginx-1.7.1-zimbra/src/core/ngx_zm_lookup.c | Github Open Source | Open Source | BSD-2-Clause | 2,020 | packages | maldua-mirror | C | Code | 6,045 | 24,267 | /*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Server
* Copyright (C) 2011 Zimbra Software, LLC.
*
* The contents of this file are subject to the Zimbra Public License
* Version 1.4 ("License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the Li... | 10,530 |
https://github.com/fiwa/wp-component-accelerator/blob/master/web/app/themes/wp-component-accelerator-theme/src/js/scripts.js | Github Open Source | Open Source | MIT | null | wp-component-accelerator | fiwa | JavaScript | Code | 4 | 25 |
(function($) {
console.log('script.js');
})(jQuery); | 21,810 |
https://github.com/borleias/basta-spring-2020/blob/master/PolygonDesigner/Polygon.Core/ContainmentChecker.cs | Github Open Source | Open Source | MIT | 2,020 | basta-spring-2020 | borleias | C# | Code | 33 | 78 | using System;
namespace Polygon.Core
{
/// <summary>
/// Check if a given point is inside a given shape
/// </summary>
public interface IContainmentChecker
{
bool Contains(in ReadOnlySpan<Point> shape, in Point point);
}
}
| 42,140 |
https://github.com/Mot93/Android-Reminder/blob/master/app/src/main/java/com/mattiarubini/reminder/database/CategoryReminderDao.java | Github Open Source | Open Source | MIT | null | Android-Reminder | Mot93 | Java | Code | 50 | 217 | package com.mattiarubini.reminder.database;
import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Delete;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.Query;
import android.arch.persistence.room.Update;
import java.util.List;
@Dao
public interface Categor... | 34,732 |
https://github.com/sjeohp/jni-bindgen/blob/master/jni-android-sys/src/generated/api-level-29/java/util/function/UnaryOperator.rs | Github Open Source | Open Source | Apache-2.0, MIT | null | jni-bindgen | sjeohp | Rust | Code | 101 | 508 | // WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "java-util-function-UnaryOperator"))]
__jni_bindgen! {
/// public interface [UnaryOperator](https://developer.android.com/reference/java/util/function/UnaryOperator.html)
///
... | 4,601 |
https://github.com/antobonfiglio/web-whiteboard/blob/master/src/components/ai-popover/ai-popover.tsx | Github Open Source | Open Source | MIT | 2,020 | web-whiteboard | antobonfiglio | TSX | Code | 220 | 917 | import { Component, Element, h, State } from '@stencil/core';
@Component({
tag: 'ai-popover',
styles: `
ion-content {
padding: 10px;
}
.swiper-slide#slideOne {
padding-left: 2em;
padding-right: 2em;
height: 400px;
}
.swiper-slide h2 {
font-weight: bold;
... | 9,211 |
https://github.com/shenkuantipang/EngWords-SwiftUI/blob/master/EngWords/Source/Views/Categories/List/CategoriesListView.swift | Github Open Source | Open Source | MIT | 2,020 | EngWords-SwiftUI | shenkuantipang | Swift | Code | 116 | 398 | //
// CategoriesList.swift
// EngWords
//
// Created by Kirill Kunst on 04.11.2020.
//
import Foundation
import SwiftUI
struct CategoriesListView: View {
@EnvironmentObject var data: DataStore
@State var showingDetail = false
var body: some View {
Group {
if !data.categories.is... | 21,465 |
https://github.com/VratsaSoftware/aktivnosti-bg/blob/master/Laravel/app/Http/Controllers/ProfileController.php | Github Open Source | Open Source | MIT | 2,019 | aktivnosti-bg | VratsaSoftware | PHP | Code | 305 | 1,083 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\User;
use App\Models\Profile;
use App\Models\Role;
use App\Models\Photo;
use App\Models\Purpose;
use App\Http\Requests\ProfileFormRequest;
class ProfileController extends Controller
{
/**
* Display a listing of the resource.
... | 36,919 |
https://github.com/StarCrossPortal/ghidracraft/blob/master/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/HighFunction.java | Github Open Source | Open Source | Apache-2.0, GPL-1.0-or-later, GPL-3.0-only, LicenseRef-scancode-public-domain, LGPL-2.1-only, LicenseRef-scancode-unknown-license-reference | 2,021 | ghidracraft | StarCrossPortal | Java | Code | 2,567 | 7,094 | /* ###
* IP: GHIDRA
*
* 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 writin... | 29,359 |
https://github.com/krayc425/Triplore/blob/master/Triplore/Triplore/TPMeAuthTableViewCell.m | Github Open Source | Open Source | Apache-2.0 | 2,020 | Triplore | krayc425 | Objective-C | Code | 128 | 521 | //
// TPMeAuthTableViewCell.m
// Triplore
//
// Created by Sorumi on 17/6/27.
// Copyright © 2017年 宋 奎熹. All rights reserved.
//
#import "TPMeAuthTableViewCell.h"
#import "TPAuthHelper.h"
#import <SDWebImage/UIImageView+WebCache.h>
@interface TPMeAuthTableViewCell ()
@property (weak, nonatomic) IBOutlet UIImageV... | 52,669 |
https://github.com/tnsr1/Qt5xHb/blob/master/codegen/QtWebEngineWidgets/QWebEnginePageSlots.h | Github Open Source | Open Source | MIT | 2,020 | Qt5xHb | tnsr1 | C | Code | 111 | 402 | %%
%% Qt5xHb - Bindings libraries for Harbour/xHarbour and Qt Framework 5
%%
%% Copyright (C) 2020 Marcos Antonio Gambeta <marcosgambeta AT outlook DOT com>
%%
$project=Qt5xHb
$module=QtWebEngineWidgets
$header
$includes=5,4,0
$beginSlotsClass
$signal=5,4,0|loadStarted()
$signal=5,4,0|loadProgress( int progress )
$... | 30,208 |
https://github.com/ChrisTimperley/SpecMiners.py/blob/master/src/specminers/daikon/trace/reader.py | Github Open Source | Open Source | MIT | 2,020 | SpecMiners.py | ChrisTimperley | Python | Code | 154 | 500 | # -*- coding: utf-8 -*-
__all__ = ('TraceFileReader',)
from typing import Dict, Iterator, Optional, Union
import attr
from .record import TraceRecord
from ..declarations import Declarations
from ..loader import LineBuffer
@attr.s(slots=True, frozen=True, auto_attribs=True)
class TraceFileReader:
"""Used to rea... | 27,565 |
https://github.com/openstack/nova/blob/master/nova/tests/functional/api_sample_tests/test_volumes.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | nova | openstack | Python | Code | 809 | 3,747 | # Copyright 2012 Nebula, Inc.
# Copyright 2014 IBM Corp.
#
# 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... | 20,682 |
https://github.com/freuwoert/Struck-NSD-Editor/blob/master/src/store/modules/readonly/Software.js | Github Open Source | Open Source | MIT | 2,021 | Struck-NSD-Editor | freuwoert | JavaScript | Code | 51 | 157 | const state = {
updateName: 'Creator Update',
appVersion: require('electron').remote.app.getVersion(),
nodeVersion: process.versions.node,
electronVersion: process.versions.electron,
}
const getters = {
updateName: (state) => state.updateName,
appVersion: (state) => state.appVersion,
nodeVe... | 48,968 |
https://github.com/abaka82/idiom/blob/master/modules/users/client/controllers/authentication.client.controller.js | Github Open Source | Open Source | MIT | 2,016 | idiom | abaka82 | JavaScript | Code | 245 | 762 | 'use strict';
var compareTo = function() {
return {
require: 'ngModel',
scope: {
otherModelValue: '=compareTo'
},
link: function(scope, element, attributes, ngModel) {
ngModel.$validators.compareTo = function(modelValue) {
return modelValue === scope.otherModelValue;
};
... | 10,771 |
https://github.com/DEIB-GECO/virusurf_downloader/blob/master/VirusGenoUtil/code/epitopes/EpitopeFragment.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | virusurf_downloader | DEIB-GECO | Python | Code | 112 | 375 | import itertools
class EpitopeFragment:
"""
Class to store information for a fragment of a discontinuous epitope
"""
new_id = itertools.count()
def __init__(self, parent_epi_id, fragm_seq, fragm_start, fragm_stop):
"""
EpitopeFragment constructor
Parameters
----------
parent_epi_id : str
id of the... | 48,841 |
https://github.com/jrmkim50/3dbraingen/blob/master/ATLAS_dataset.py | Github Open Source | Open Source | MIT | 2,022 | 3dbraingen | jrmkim50 | Python | Code | 111 | 481 | import csv
import numpy as np
import torch
from torch.utils.data.dataset import Dataset
import os
from torchvision import transforms
from skimage.transform import resize
import nibabel as nib
from skimage import exposure
class ATLASdataset(Dataset):
def __init__(self,augmentation=True):
list_path = []
... | 4,992 |
https://github.com/sadeghjafari5528/404-/blob/master/Back/submittext/migrations/0004_auto_20201210_1709.py | Github Open Source | Open Source | MIT | 2,021 | 404- | sadeghjafari5528 | Python | Code | 29 | 119 | # Generated by Django 3.1.2 on 2020-12-10 13:39
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('submittext', '0003_auto_20201210_1708'),
]
operations = [
migrations.RenameField(
model_name='user_answer',
old_name='voteSt... | 47,427 |
https://github.com/ideacrew/hra_calculator/blob/master/db/seedfiles/enterprise_admin_seed.rb | Github Open Source | Open Source | MIT | 2,019 | hra_calculator | ideacrew | Ruby | Code | 87 | 370 | puts "::: Cleaning Database :::"
Enterprises::Enterprise.delete_all
Enterprises::BenefitYear.delete_all
Tenants::Tenant.delete_all
Locations::CountyZip.delete_all
Locations::RatingArea.delete_all
Locations::ServiceArea.delete_all
Account.delete_all
HraDetermination.delete_all
puts "::: Creating Enterprise admin :::"
e... | 11,337 |
https://github.com/WinX64/Elytra/blob/master/inb-api/src/main/kotlin/io/inb/api/network/protocol/handlers/InbMessageHandler.kt | Github Open Source | Open Source | MIT | 2,020 | Elytra | WinX64 | Kotlin | Code | 16 | 71 | package io.inb.api.network.protocol.handlers
import com.flowpowered.network.Message
import com.flowpowered.network.MessageHandler
import io.inb.api.network.NetworkSession
abstract class InbMessageHandler<M : Message> : MessageHandler<NetworkSession, M>
| 10,531 |
https://github.com/kris701/JanC/blob/master/Nodes/Nodes/ExpressionNodes/NotNode.cs | Github Open Source | Open Source | MIT | null | JanC | kris701 | C# | Code | 50 | 140 | using System.Collections.Generic;
namespace Nodes {
public class NotNode : BaseExprNode, IUnary {
public NotNode(JanCParser.NotNodeContext context, IExpr value) : base(context) {
Context = context;
Value = value;
}
public JanCParser.NotNodeContext Context { get; }
public IExpr Value { get; }
public o... | 24,349 |
https://github.com/cloudrebue/PHP-BULK-SDK/blob/master/src/CloudRebue.php | Github Open Source | Open Source | MIT | null | PHP-BULK-SDK | cloudrebue | PHP | Code | 73 | 258 | <?php
namespace CloudRebue\Api;
use CloudRebue\Api\Handlers\AccountHandlers\AccountHandler;
use CloudRebue\Api\Handlers\SmsHandlers\SMSHandler;
class CloudRebue
{
use SMSHandler, AccountHandler;
/**
* @var string
*/
private $token;
/**
* @var string
*/
private $account_id... | 23,922 |
https://github.com/AchiraFernando/Hotel-Comparator/blob/master/source/training_own_embeddings.py | Github Open Source | Open Source | MIT | null | Hotel-Comparator | AchiraFernando | Python | Code | 851 | 3,175 | from string import punctuation
from os import listdir
from keras.preprocessing.text import Tokenizer
from keras.preprocessing.sequence import pad_sequences
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import Flatten
from keras.layers import Embedding
from keras.layers.convolution... | 37,264 |
https://github.com/rahul342/fast-polylines/blob/master/spec/fast_polylines_spec.rb | Github Open Source | Open Source | MIT | null | fast-polylines | rahul342 | Ruby | Code | 489 | 1,548 | require "fast_polylines"
describe FastPolylines do
describe ".decode" do
let(:points) { [[38.5, -120.2], [40.7, -120.95], [43.252, -126.453]] }
let(:polyline) { "_p~iF~ps|U_ulLnnqC_mqNvxq`@" }
context "with default precision" do
it "should decode a polyline correctly" do
expect(described_cl... | 35,953 |
https://github.com/rankforce/rankforce-nightly/blob/master/core/lib/rankforce/logger.rb | Github Open Source | Open Source | MIT | 2,016 | rankforce-nightly | rankforce | Ruby | Code | 167 | 633 | require 'log4r'
require 'log4r/evernote'
module RankForce
class Logger
def self.method_missing(name, *args)
if /(.*?)=$/ =~ name
class_variable_set("@@#{$1}", args[0])
end
end
def self.name=(name); @@name = name end
def self.level=(level); @@level = level end
def self... | 39,973 |
https://github.com/embl-communications/science-in-school/blob/master/dist/wp-content/plugins/types-access/application/controllers/filters/woocommerce.php | Github Open Source | Open Source | Apache-2.0 | null | science-in-school | embl-communications | PHP | Code | 189 | 615 | <?php
namespace OTGS\Toolset\Access\Controllers\Filters;
/**
* Filter the results when listing users and exclude users and roles higher than the role(s) of the current user.
* Class Woocommerce
*
* @package OTGS\Toolset\Access\Controllers\Filters
*/
class Woocommerce {
/**
* @var \OTGS\Toolset\Access\Models\... | 867 |
https://github.com/nccnm/cheap-flight-tickets/blob/master/src/pages/book-flight/BookFlightPage.tsx | Github Open Source | Open Source | MIT | null | cheap-flight-tickets | nccnm | TypeScript | Code | 344 | 1,060 | import React, { useState, useEffect, useCallback } from "react";
import qs from "qs";
import { Stack, Panel } from "office-ui-fabric-react";
import { useLocation } from "react-router-dom";
import { PassengerForm } from "./PassengerForm";
import { Order } from "../../model/Order";
import { FlightService } from "../../s... | 6,164 |
https://github.com/calico-crusade/valheim-serialization/blob/master/CardboardBox.Valheim.Serialization/CardboardBox.Valheim.Serialization/Models/PinType.cs | Github Open Source | Open Source | MIT | 2,021 | valheim-serialization | calico-crusade | C# | Code | 23 | 93 | namespace CardboardBox.Valheim.Serialization
{
public enum PinType
{
Icon0,
Icon1,
Icon2,
Icon3,
Death,
Bed,
Icon4,
Shout,
None,
Boss,
Player,
RandomEvent,
Ping,
EventArea
}
}
| 15,861 |
https://github.com/pawello2222/PhantomKit/blob/master/Sources/PhantomKit/Swift/Extensions/NotificationCenter+Ext.swift | Github Open Source | Open Source | MIT | 2,021 | PhantomKit | pawello2222 | Swift | Code | 62 | 190 | //
// NotificationCenter+Ext.swift
// PhantomKit
//
// Created by Pawel Wiszenko on 02.05.2021.
// Copyright © 2021 Pawel Wiszenko. All rights reserved.
//
import Combine
import UIKit
extension NotificationCenter.Event {
public func notificationPublisher(for name: Notification.Name) -> AnyPublisher<Notificati... | 4,137 |
https://github.com/stestagg/pytubes/blob/master/src/util/arrow/containers.hpp | Github Open Source | Open Source | MIT | 2,022 | pytubes | stestagg | C++ | Code | 141 | 451 | #pragma once
#include "buffer.hpp"
namespace ss{
namespace arrow{
class NullContainer {
size_t count;
public:
NullContainer(): count(0) {};
inline void increment() {
count += 1;
}
inline size_t size() const {
... | 42,821 |
https://github.com/xuchuanliang/ef-orm/blob/master/common-orm/src/main/java/jef/database/dialect/H2Dialect.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | ef-orm | xuchuanliang | Java | Code | 1,809 | 6,197 | package jef.database.dialect;
import java.sql.SQLException;
import java.sql.Types;
import java.util.Arrays;
import java.util.List;
import jef.database.ConnectInfo;
import jef.database.DbMetaData;
import jef.database.dialect.handler.LimitHandler;
import jef.database.dialect.handler.LimitOffsetLimitHandler;
import jef.... | 26,091 |
https://github.com/ayzk/ft-caffe-public/blob/master/include/caffe/multinode/async_param_server.hpp | Github Open Source | Open Source | BSD-2-Clause | 2,022 | ft-caffe-public | ayzk | C++ | Code | 683 | 1,591 | /*
All modification made by Intel Corporation: © 2017 Intel Corporation
All contributions by the University of California:
Copyright (c) 2014, 2015, The Regents of the University of California (Regents)
All rights reserved.
All other contributions:
Copyright (c) 2014, 2015, the respective contributors
All rights rese... | 44,798 |
https://github.com/aimeos/aimeos-symfony/blob/master/src/Controller/GraphqlController.php | Github Open Source | Open Source | MIT | 2,023 | aimeos-symfony | aimeos | PHP | Code | 189 | 616 | <?php
/**
* @license MIT, http://opensource.org/licenses/MIT
* @copyright Aimeos (aimeos.org), 2015-2016
* @package symfony
* @subpackage Controller
*/
namespace Aimeos\ShopBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
/**
... | 41,915 |
https://github.com/esjimenezro/trading-bot/blob/master/main.py | Github Open Source | Open Source | MIT | null | trading-bot | esjimenezro | Python | Code | 643 | 2,922 | from technical_indicators.technical_indicators import trades_to_candles, moving_average, macd, bollinger_bands
from scipy.signal import argrelextrema
from matplotlib import pyplot as plt
import pandas as pd
import numpy as np
import time
def read_prices():
return None
def tech_indicators(prices_df, length_fast,... | 49,405 |
https://github.com/teaDrunk4rd/calendar/blob/master/app/Providers/AppServiceProvider.php | Github Open Source | Open Source | MIT | null | calendar | teaDrunk4rd | PHP | Code | 86 | 321 | <?php
namespace App\Providers;
use App\Event;
use App\User;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
public function register()
{
//
}
public function boot(User $u... | 5,517 |
https://github.com/Chinuon/Catharsis-in-apocalypse/blob/master/CIA/.import/0_Warrior_Idle Blinking_014.png-b7694db1e521fe68055a3caa52a7c1a3.md5 | Github Open Source | Open Source | Apache-2.0 | 2,020 | Catharsis-in-apocalypse | Chinuon | null | Spoken | 2 | 52 | source_md5="6aa2abd8b72653014761f1fae27507b2"
dest_md5="40eca411474dd628de9a4a7aa17e397c"
| 33,204 |
https://github.com/GuruCharan94/dotnet/blob/master/benchmarks/MiniProfiler.Benchmarks/Benchmarks/StackTraceSnippetBenchmarks.cs | Github Open Source | Open Source | MIT | 2,019 | dotnet | GuruCharan94 | C# | Code | 44 | 179 | using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Attributes.Jobs;
using StackExchange.Profiling.Helpers;
namespace Benchmarks
{
[ClrJob, CoreJob]
[Config(typeof(Configs.Full))]
public class StackTraceSnippetBenchmarks
{
private MiniProfilerBenchmarkOptions Options { get; } = new MiniPro... | 49,309 |
https://github.com/trespasserw/MPS/blob/master/plugins/mps-vcs/vcs-platform/solutions/jetbrains.mps.ide.vcs.platform/source_gen/jetbrains/mps/vcs/history/CommitsGraphNodeConsumer.java | Github Open Source | Open Source | Apache-2.0 | null | MPS | trespasserw | Java | Code | 40 | 233 | package jetbrains.mps.vcs.history;
/*Generated by MPS */
import jetbrains.mps.annotations.GeneratedClass;
@GeneratedClass(node = "r:2897a5d4-aed7-4a4e-ac07-fbc830f9ed9b(jetbrains.mps.vcs.history)/3143542063544523719", model = "r:2897a5d4-aed7-4a4e-ac07-fbc830f9ed9b(jetbrains.mps.vcs.history)")
public interface Commi... | 27,454 |
https://github.com/halusstefan/ios-sdk/blob/master/CTCTWrapper/Components/EventSpot/RegistrantSectionField.m | Github Open Source | Open Source | LicenseRef-scancode-dco-1.1, MIT | 2,015 | ios-sdk | halusstefan | Objective-C | Code | 158 | 566 | //
// RegistrantSectionField.m
// CTCTContact
//
// Copyright (c) 2014 Constant Contact. All rights reserved.
//
#import "RegistrantSectionField.h"
@implementation RegistrantSectionField
- (id)init
{
if (self = [super init])
{
_type = @"";
_name = @"";
_label = @"";
_value ... | 28,994 |
https://github.com/alienzj/endoR/blob/master/R/filterDecisionsImportances.R | Github Open Source | Open Source | MIT | 2,021 | endoR | alienzj | R | Code | 239 | 555 | #' Filter decisions according to their metrics
#'
#' This function filters decisions in a heuristic manner according to their importance and multiplicity.
#' A relative importance threshold that maximises the average product relative importance * n and the number of decisions to be removed is calculated.
#' All decisio... | 7,556 |
https://github.com/Ihapmustapha/plexis/blob/master/packages/escapeHTML/src/index.js | Github Open Source | Open Source | MIT | 2,019 | plexis | Ihapmustapha | JavaScript | Code | 74 | 204 | /**
* @description Takes the input text and converts HTML special characters to their entity equivalents.
* @param {String} text
* @example
* escapeHTML('ABCD'); // returns 'ABCD'
* escapeHtml('<3') // returns '<3'
* escapeHtml('<p>This is cool</p>') // returns '<p>This is cool</p>'
*/
const escap... | 9,268 |
https://github.com/okuoku/yuni/blob/master/lib-runtime/selfboot/chicken/selfboot-runtime.scm | Github Open Source | Open Source | LicenseRef-scancode-public-domain, CC0-1.0 | 2,023 | yuni | okuoku | Scheme | Code | 53 | 180 | ;;
;; Runtime for selfboot
;;
(define (%selfboot-file->sexp-list fn)
(call-with-input-file
fn
(lambda (p)
(let loop ((cur '()))
(let ((r (read p)))
(if (eof-object? r)
(reverse cur)
(loop (cons r cur))))))))
(define %selfboot-file-exists? file-exists?)
(define (%se... | 6,123 |
https://github.com/evertoncunha/emoji-data/blob/master/build/apple/missing.php | Github Open Source | Open Source | MIT | 2,021 | emoji-data | evertoncunha | PHP | Code | 50 | 208 | <?php
$list = glob('../../img-apple-160/*_UNKNOWN.png');
$indexes = array();
foreach ($list as $name){
$parts = explode('/', $name);
list($idx) = explode('_', array_pop($parts));
$indexes[] = $idx;
}
$chunks = array_chunk($indexes, 10);
echo "<table border=1>";
foreach ($chunks as $chunk){
echo "<tr... | 11,200 |
https://github.com/waqasvizz/service_app/blob/master/app/Http/Controllers/ServiceController.php | Github Open Source | Open Source | MIT | null | service_app | waqasvizz | PHP | Code | 515 | 1,883 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Service;
use Validator;
use Auth;
class ServiceController extends Controller
{
public $ServiceObj;
public function __construct()
{
$this->ServiceObj = new Service();
}
/**
* Display a listing of the re... | 20,519 |
https://github.com/soroush-tabesh/ap2020-xo4/blob/master/src/main/java/ir/soroushtabesh/xo4/server/utils/Logger.java | Github Open Source | Open Source | MIT | null | ap2020-xo4 | soroush-tabesh | Java | Code | 77 | 281 | package ir.soroushtabesh.xo4.server.utils;
import ir.soroushtabesh.xo4.server.models.Log;
import java.util.Date;
public class Logger {
private Logger() {
}
public static void log(String event, String desc) {
log(event, desc, Log.Severity.INFO);
}
public static void log(String event, Str... | 21,809 |
https://github.com/lili2012/idlcpp/blob/master/src/TypedefNode.h | Github Open Source | Open Source | MIT | 2,021 | idlcpp | lili2012 | C | Code | 49 | 192 | #pragma once
#include "MemberNode.h"
struct TokenNode;
struct ScopeNameListNode;
struct TypeNameNode;
struct TypedefTypeNode;
struct TypedefNode : MemberNode
{
TokenNode* m_keyword;
TypeNameNode* m_typeName;
TypedefTypeNode* m_typeNode;
TypeNode* m_srcTypeNode;
public:
TypedefNode(TokenNode* keyword, IdentifyNod... | 1,997 |
https://github.com/FabianKramm/AStar/blob/master/Roy-T.AStar/AgentShapes.cs | Github Open Source | Open Source | MIT | 2,019 | AStar | FabianKramm | C# | Code | 313 | 900 | using System;
using System.Collections.Generic;
using System.Text;
namespace RoyT.AStar
{
/// <summary>
/// Predefined options of agent shapes.
/// </summary>
public static class AgentShapes
{
/// <summary>
/// Single dot (1 cell)
/// </summary>
public static re... | 24,777 |
https://github.com/oussamadhouib/expences_backend_nodejs/blob/master/dist/auth/strategies/jwt.strategy.d.ts | Github Open Source | Open Source | MIT | null | expences_backend_nodejs | oussamadhouib | TypeScript | Code | 50 | 141 | import { AuthService } from '../auth.service';
import { JwtPayload } from '../interfaces/jwt-payload.interface';
declare const JwtStrategy_base: new (...args: any[]) => any;
export declare class JwtStrategy extends JwtStrategy_base {
private authService;
constructor(authService: AuthService);
validate(paylo... | 21,680 |
https://github.com/rahul3/incubator-nlpcraft/blob/master/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/nlp/impl/NCRequestImpl.scala | Github Open Source | Open Source | Apache-2.0 | null | incubator-nlpcraft | rahul3 | Scala | Code | 289 | 871 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 37,900 |
https://github.com/mrbutcher93/tiff/blob/master/src/ifdValue.ts | Github Open Source | Open Source | MIT | 2,022 | tiff | mrbutcher93 | TypeScript | Code | 578 | 1,464 | import TIFFDecoder from './tiffDecoder';
let types = new Map<
number,
[number, (decoder: TIFFDecoder, count: number) => any]
>([
[1, [1, readByte]], // BYTE
[2, [1, readASCII]], // ASCII
[3, [2, readShort]], // SHORT
[4, [4, readLong]], // LONG
[5, [8, readRational]], // RATIONAL
[6, [1, readSByte]], /... | 24,564 |
https://github.com/leejjoon/pystilts/blob/master/lib/pipelines.py | Github Open Source | Open Source | MIT | 2,022 | pystilts | leejjoon | Python | Code | 4,772 | 11,230 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on 02/06/17 at 2:24 PM
@author: neil
Program description here
Version 0.0.0
"""
from . import constants
from . import utils
# =============================================================================
# Define variables
# ================================... | 16,612 |
https://github.com/DeVaukz/MachO-Kit/blob/master/MachOKit/NSNumber+MK.h | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,021 | MachO-Kit | DeVaukz | Objective-C | Code | 512 | 1,499 | //----------------------------------------------------------------------------//
//|
//| MachOKit - A Lightweight Mach-O Parsing Library
//! @file NSNumber+MK.h
//!
//! @author D.V.
//! @copyright Copyright (c) 2014-2015 D.V. All rights reserved.
//|
//| Permission is hereby granted, free of char... | 45,232 |
https://github.com/knuu/contest_library/blob/master/tests/python/largest_rect_rect.test.py | Github Open Source | Open Source | MIT | 2,022 | contest_library | knuu | Python | Code | 72 | 238 | # verify-helper: PROBLEM http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=DPL_3_B
import sys
from python_library.dynamic_programming.largest_rect_hist import (
calc_largest_rect_in_hist,
)
input = sys.stdin.buffer.readline
def main() -> None:
H, W = map(int, input().split())
board = [[int(x) for... | 23,532 |
https://github.com/ezalos/malloc/blob/master/srcs/rbt/tree_insert_recurse.c | Github Open Source | Open Source | WTFPL | null | malloc | ezalos | C | Code | 187 | 671 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* tree_insert_recurse.c :+: :+: :+: ... | 36,216 |
https://github.com/0ctobat/octobat-npm/blob/master/lib/resources/PurchaseItems.js | Github Open Source | Open Source | MIT | 2,020 | octobat-npm | 0ctobat | JavaScript | Code | 24 | 84 | 'use strict';
var OctobatResource = require('../OctobatResource');
var octobatMethod = OctobatResource.method;
var utils = require('../utils');
module.exports = OctobatResource.extend({
path: 'purchase_items',
includeBasic: [
'create'
],
});
| 2,291 |
https://github.com/adityarifqyfauzan/wisata_indramayu/blob/master/vendor/squizlabs/php_codesniffer/src/Files/DummyFile.php | Github Open Source | Open Source | MIT | null | wisata_indramayu | adityarifqyfauzan | PHP | Code | 318 | 793 | <?php
/**
* A dummy file represents a chunk of text that does not have a file system location.
*
* Dummy files can also represent a changed (but not saved) version of a file
* and so can have a file path either set manually, or set by putting
* phpcs_input_file: /path/to/file
* as the first line of the file conte... | 41,263 |
https://github.com/wryl/ET/blob/master/Unity/Assets/Scripts/Codes/Model/Generate/Server/Message/MongoMessage.cs | Github Open Source | Open Source | MIT | 2,022 | ET | wryl | C# | Code | 86 | 295 | using ET;
using ProtoBuf;
using System.Collections.Generic;
namespace ET
{
[Message(MongoOpcode.ObjectQueryResponse)]
[ProtoContract]
public partial class ObjectQueryResponse: Object, IActorResponse
{
[ProtoMember(90)]
public int RpcId { get; set; }
[ProtoMember(91)]
public int Error { get; set; }
[Prot... | 31,991 |
https://github.com/Notekunn/facebook-messenger-bot/blob/master/models/User.js | Github Open Source | Open Source | MIT | null | facebook-messenger-bot | Notekunn | JavaScript | Code | 51 | 146 | const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const UserSchema = new Schema({
ps_id: {
type: String,
required: true,
unique: true
},
fb_id: {
type: String
},
first_name: {
type: String
},
last_name: {
type: String
},... | 50,331 |
https://github.com/D0Ge3/js-audioplayer-concepts/blob/master/js/src/styles/blocks/player.scss | Github Open Source | Open Source | MIT | 2,021 | js-audioplayer-concepts | D0Ge3 | SCSS | Code | 251 | 815 | .player-controls {
width: 100%;
padding: 0 20px;
box-sizing: border-box;
display: flex;
flex-direction: row;
justify-content: space-between;
}
.track-info {
display: flex;
flex-direction: row;
align-items: center;
&__img {
width: 90px;
height: 90px;
border-radius: 50%;
}
&__info ... | 8,586 |
https://github.com/643219101/wangshuo1705D/blob/master/opencartback/src/main/java/com/wangshuo/opencartback/dao/ReturnMapper.java | Github Open Source | Open Source | Apache-2.0 | null | wangshuo1705D | 643219101 | Java | Code | 30 | 129 | package com.wangshuo.opencartback.dao;
import com.wangshuo.opencartback.po.Return;
import org.springframework.stereotype.Repository;
@Repository
public interface ReturnMapper {
int deleteByPrimaryKey(Integer returnId);
int insert(Return record);
int insertSelective(Return record);
Return selectByPr... | 45,902 |
https://github.com/Traceableai/libhtp/blob/master/test/pcaptohtp.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | libhtp | Traceableai | Python | Code | 59 | 182 | import sys
import binascii
# Transforms a pcap into a test file for libhtp
# tshark -Tfields -e tcp.dstport -e tcp.payload -r input.pcap > input.txt
# python pcaptohtp.py input.txt > input.t
f = open(sys.argv[1])
for l in f.readlines():
portAndPl=l.split()
if len(portAndPl) == 2:
# determine request o... | 25,216 |
https://github.com/spcl/rFaaS/blob/master/rdmalib/include/rdmalib/server.hpp | Github Open Source | Open Source | BSD-3-Clause | 2,023 | rFaaS | spcl | C++ | Code | 111 | 495 |
#ifndef __RDMALIB_SERVER_HPP__
#define __RDMALIB_SERVER_HPP__
#include <vector>
#include <cstdint>
#include <string>
#include <fstream>
#include <iostream>
//#include <cereal/cereal.hpp>
#include <cereal/types/vector.hpp>
#include <cereal/types/string.hpp>
#include <rdmalib/buffer.hpp>
namespace rdmalib { namespa... | 21,078 |
https://github.com/TheDragonCode/docs-generator/blob/master/src/Services/Package.php | Github Open Source | Open Source | MIT | 2,023 | docs-generator | TheDragonCode | PHP | Code | 151 | 488 | <?php
declare(strict_types=1);
namespace DragonCode\DocsGenerator\Services;
use DragonCode\DocsGenerator\Dto\Preview;
use DragonCode\DocsGenerator\Facades\Services\Finder as FinderFacade;
use DragonCode\DocsGenerator\Helpers\Composer;
use DragonCode\Support\Concerns\Resolvable;
use JetBrains\PhpStorm\Pure;
class Pa... | 22,311 |
https://github.com/Julien35/dev-courses/blob/master/3wacademyCourses/DéveloppementPhpJS/billsWeb/index.php | Github Open Source | Open Source | MIT | 2,018 | dev-courses | Julien35 | PHP | Code | 10 | 60 | <?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
require_once 'server/config.php';
require 'server/router.php';
| 30,925 |
https://github.com/munhouiani/MIDAS/blob/master/python/MIDASWrapper.cpp | Github Open Source | Open Source | Apache-2.0 | 2,021 | MIDAS | munhouiani | C++ | Code | 158 | 946 | //
// Created by Mun Hou on 2021/2/19.
//
// A simple wrapper for MIDAS
#include <pybind11/pybind11.h>
#include <RelationalCore.hpp>
#include <FilteringCore.hpp>
#include <NormalCore.hpp>
#include <string>
namespace py = pybind11;
PYBIND11_MODULE(MIDAS, m) {
m.doc() = "MIDAS wrapper";
py::class_<MIDAS::Norm... | 30,021 |
https://github.com/ikwzm/PipeWorkTest/blob/master/src/test/scenarios/axi4_adapter/make_scenario.rb | Github Open Source | Open Source | BSD-2-Clause | 2,022 | PipeWorkTest | ikwzm | Ruby | Code | 1,169 | 4,815 | #!/usr/bin/env ruby
# -*- coding: utf-8 -*-
#---------------------------------------------------------------------------------
#
# Version : 1.8.2
# Created : 2020/10/7
# File name : make_scneario.rb
# Author : Ichiro Kawazome <ichiro_k@ca2.so-net.ne.jp>
# Descriptio... | 30,067 |
https://github.com/cuboktahedron/tetsimu2/blob/master/src/main/ducks/root/reducers.ts | Github Open Source | Open Source | MIT | null | tetsimu2 | cuboktahedron | TypeScript | Code | 596 | 2,449 | import editReducer from "ducks/edit";
import explorerReducer from "ducks/explorer";
import replayReducer from "ducks/replay";
import sidePanelReducer from "ducks/sidePanel";
import simuReducer from "ducks/simu";
import { RootState } from "stores/RootState";
import { Action, BtbState, FieldCellValue, TetsimuMode } from ... | 20,907 |
https://github.com/cdli-gh/mtaac_cdli_ur3_corpus/blob/master/ur3_corpus_data/annotated/morph/P123/P123638.conll | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain | 2,022 | mtaac_cdli_ur3_corpus | cdli-gh | null | Spoken | 201 | 777 | #new_text=P123638
FORM SEGM XPOSTAG XPOSTAG POS
2(disz) 2(disz)[one] NU NU D
udu udu[sheep] N N D
niga niga[fattened][-ø] V NF.V.ABS D
sa2-du11 sadug[offerings] N N D
6(disz) 6(disz)[one][-sze] NU NU D
udu udu[sheep] N N D
niga niga[fattened][-ø] V NF.V.ABS D
2(disz) 2(disz)[one] NU NU D
udu udu[sheep] N N D
sa2-du11 s... | 45,647 |
https://github.com/Ombrelin/snl-map/blob/master/backend/SnlMaps/SnlMaps.Web/Security/BasicAuthenticationHandler.cs | Github Open Source | Open Source | MIT | null | snl-map | Ombrelin | C# | Code | 143 | 524 | using System;
using System.Net.Http.Headers;
using System.Security.Principal;
using System.Text;
using System.Text.Encodings.Web;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
namespace SnlMaps.Web.Security
{
public... | 17,347 |
https://github.com/bazaarvoice/hive-release/blob/master/standalone-metastore/src/main/sql/mssql/upgrade-1.2.0-to-1.2.1000.mssql.sql | Github Open Source | Open Source | Apache-2.0 | 2,021 | hive-release | bazaarvoice | SQL | Code | 202 | 807 | SELECT 'Upgrading MetaStore schema from 1.2.0 to 1.2.1000' AS MESSAGE;
--:r 008-HIVE-12807.mssql.sql
ALTER TABLE COMPACTION_QUEUE ADD CQ_HIGHEST_TXN_ID bigint NULL;
--:r 009-HIVE-12814.mssql.sql
ALTER TABLE COMPACTION_QUEUE ADD CQ_META_INFO varbinary(2048) NULL;
--:r 010-HIVE-12816.mssql.sql
ALTER TABLE COMPACTION_Q... | 33,537 |
https://github.com/2004huangyimin/betsy/blob/master/bin/Data/etc2_rgb_selector.glsl | Github Open Source | Open Source | Zlib, LicenseRef-scancode-public-domain, MIT, BSD-2-Clause, LicenseRef-scancode-unknown-license-reference, Unlicense | 2,021 | betsy | 2004huangyimin | GLSL | Code | 355 | 938 | #version 430 core
// RGB and Alpha components of ETC2 RGBA are computed separately.
//
// ETC2 also adds modes T and H (which we compute together) and mode P
//
// This shader will:
// 1. Select the mode with the lowest error
// 2. If not using Alpha, it will output to where P mode was stored (to save VRAM)
// 3. If u... | 3,616 |
https://github.com/linkedin/ambry/blob/master/ambry-api/src/main/java/com/github/ambry/router/RouterErrorCode.java | Github Open Source | Open Source | Apache-2.0, MIT, EPL-1.0 | 2,023 | ambry | linkedin | Java | Code | 584 | 1,162 | /**
* Copyright 2016 LinkedIn Corp. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 37,104 |
https://github.com/gta5srv/Rage_gta5_rp/blob/master/node_modules/work/test/command.js | Github Open Source | Open Source | MIT | 2,021 | Rage_gta5_rp | gta5srv | JavaScript | Code | 178 | 453 | 'use strict'
const TestRunner = require('test-runner')
const Counter = require('test-runner-counter')
const Command = require('../').Command
const a = require('assert')
const runner = new TestRunner()
runner.test('.context field', function () {
function executor (resolve, reject) {
a.strictEqual(this.context.on... | 24,732 |
https://github.com/nicolas-cellier-aka-nice/pharo-vm/blob/master/mc/VMConstruction-Plugins-AioPlugin.package/UnixAioPlugin.class/class/requiredMethodNames.st | Github Open Source | Open Source | MIT | 2,018 | pharo-vm | nicolas-cellier-aka-nice | null | Spoken | 21 | 42 | translation
requiredMethodNames
"return the list of method names that should be retained for export or other support reasons"
^{ #aioForward:withData:andFlags: } | 38,382 |
https://github.com/gitter-badger/elastiknn/blob/master/core/src/main/scala/com/klibisz/elastiknn/storage/BitBuffer.scala | Github Open Source | Open Source | Apache-2.0 | 2,020 | elastiknn | gitter-badger | Scala | Code | 103 | 224 | package com.klibisz.elastiknn.storage
/**
* Minimal abstraction to simplify storing a series of bits as a single scalar value, convertible to a byte array.
*/
sealed trait BitBuffer {
def putOne(): Unit
def putZero(): Unit
def toByteArray: Array[Byte]
}
object BitBuffer {
class IntBuffer(barr: Array[Byte... | 40,286 |
https://github.com/deepakkumar96/biovalidator/blob/master/src/main/java/org/intermine/biovalidator/api/WarningMessage.java | Github Open Source | Open Source | MIT | 2,019 | biovalidator | deepakkumar96 | Java | Code | 118 | 238 | package org.intermine.biovalidator.api;
/*
* Copyright (C) 2002-2019 FlyMine
*
* This code may be freely distributed and modified under the
* terms of the GNU Lesser General Public Licence. This should
* be distributed with the code. See the LICENSE file for more
* information or http://www.gnu.org/copyleft/le... | 48,117 |
https://github.com/oitcode/ofin/blob/master/resources/views/dashboard.blade.php | Github Open Source | Open Source | MIT | null | ofin | oitcode | PHP | Code | 37 | 236 | @extends('adminlte::page')
@section('title', 'Dashboard')
@section('content_header')
<h1>Dashboard</h1>
@stop
@section('content')
<div class="row">
<div class="col">
@livewire('salesbook-entry-component')
</div>
</div>
<div class="row">
<div class="col-md-6">
@livewire('expense-com... | 13,054 |
https://github.com/Noahkosy/final-maestro-assessment/blob/master/libs/ui/src/components/design-system/icon/_icon-mixins.scss | Github Open Source | Open Source | MIT | 2,021 | final-maestro-assessment | Noahkosy | SCSS | Code | 10 | 46 | $icon-xs: 10px;
$icon-s: 18px;
$icon-m: 20px;
$icon-l: 22px;
$icon-xl: 24px;
| 25,461 |
https://github.com/kobit-develop/jsx-presentation/blob/master/src/components/Presentation.tsx | Github Open Source | Open Source | MIT | 2,021 | jsx-presentation | kobit-develop | TypeScript | Code | 14 | 31 | import React from 'react'
export const Presentation: React.FC = ({ children }) => <presentation>{children}</presentation> | 27,361 |
https://github.com/cms-sw/cmssw/blob/master/HLTrigger/btau/plugins/HLTSumJetTag.cc | Github Open Source | Open Source | Apache-2.0 | 2,023 | cmssw | cms-sw | C++ | Code | 719 | 2,556 | #include "HLTSumJetTag.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "DataFormats/JetReco/interface/JetCollection.h"
#include "DataFormats/Math/interface/deltaR.h"
#include "HLTrigger/HLTcore/interface/defaultModuleLabel.h"
#include <numeric>
templa... | 7,775 |
https://github.com/senthilrajxebia/CodeToCloud-Source/blob/master/.workshop/workshop-step.ps1 | Github Open Source | Open Source | MIT | 2,021 | CodeToCloud-Source | senthilrajxebia | PowerShell | Code | 75 | 242 | param(
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[ValidateSet('Start','Solution')]
[string]$Action,
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string]$Exercise
)
#Requires -Version 7.0
$settingsDirectory = join-path $(git rev-parse --show-toplevel) ".workshop"
$settingsFil... | 1,308 |
https://github.com/Miillky/objektno_orijentirano_programiranje/blob/master/predavanje6/Delete.cpp | Github Open Source | Open Source | MIT | null | objektno_orijentirano_programiranje | Miillky | C++ | Code | 32 | 109 | #include <iostream>
int* stvoriVarijablu(int vrijednost){
return new int(vrijednost);
}
int main(){
int *p = nullptr;
p = stvoriVarijablu(10);
std::cout << *p;
delete p;
p = stvoriVarijablu(12);
std::cout << *p;
delete p;
} | 6,621 |
https://github.com/olekstra/Olekstra.Sdk.LikePharma/blob/master/Olekstra.LikePharma.Client.Tests/ConfirmCodeRequestSerializationTests.cs | Github Open Source | Open Source | MIT | null | Olekstra.Sdk.LikePharma | olekstra | C# | Code | 66 | 293 | namespace Olekstra.LikePharma.Client
{
using System;
using Xunit;
public class ConfirmCodeRequestSerializationTests : SerializationTestsBase<ConfirmCodeRequest>
{
private const string ValidJson = @"
{
""pos_id"":""A123"",
""pharmacy_id"":""test_pharmacy"",
""code"":""12345""
}";
priva... | 48,624 |
https://github.com/hugocm93/poly_visitor/blob/master/test/match_cases.cpp | Github Open Source | Open Source | MIT | null | poly_visitor | hugocm93 | C++ | Code | 255 | 918 | #include "poly_visitor.hpp"
#include <iostream>
#if __cplusplus >= 201402L
#define HAS_CPP14_SUPPORT
#endif
struct Cat;
struct Cockatiel;
using base_visitor = poly_visitor::base_visitor<Cat, Cockatiel>;
struct Animal
{ POLY_VISITOR_PURE_VISITABLE(base_visitor) };
struct Cat : Animal
{ POLY_VISITOR_VISITABLE(base_v... | 26,069 |
https://github.com/chrisxuwq/core/blob/master/engine/docker/build.go | Github Open Source | Open Source | MIT | 2,022 | core | chrisxuwq | Go | Code | 717 | 1,964 | package docker
import (
"context"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"strings"
"github.com/projecteru2/core/engine/types"
enginetypes "github.com/projecteru2/core/engine/types"
"github.com/projecteru2/core/log"
coresource "github.com/projecteru2/core/source"
coretypes "github.com/projecteru2/core... | 50,254 |
https://github.com/anthonykaluuma/fearless-iOS/blob/master/fearless/Modules/Wallet/Transfer/TransferConfigurator.swift | Github Open Source | Open Source | Apache-2.0 | 2,021 | fearless-iOS | anthonykaluuma | Swift | Code | 279 | 1,160 | import Foundation
import CommonWallet
import SoraFoundation
import IrohaCrypto
final class TransferConfigurator {
lazy private var headerStyle: WalletContainingHeaderStyle = {
let text = WalletTextStyle(font: UIFont.p1Paragraph,
color: R.color.colorWhite()!)
let c... | 31,841 |
https://github.com/beetle2k/Metin2Client/blob/master/source/EterLib/DibBar.cpp | Github Open Source | Open Source | MIT | 2,021 | Metin2Client | beetle2k | C++ | Code | 396 | 1,583 | #include "StdAfx.h"
#include "DibBar.h"
#include "BlockTexture.h"
void CDibBar::Invalidate()
{
RECT rect = {0, 0, m_dwWidth, m_dwHeight};
std::vector<CBlockTexture *>::iterator itor = m_kVec_pkBlockTexture.begin();
for (; itor != m_kVec_pkBlockTexture.end(); ++itor)
{
CBlockTexture * pTexture = *itor;
pTextur... | 29,255 |
https://github.com/java-app-scans/aurora-imui/blob/master/Android/chatinput/src/main/java/cn/jiguang/imui/chatinput/record/RecordVoiceBtnStyle.java | Github Open Source | Open Source | MIT | 2,022 | aurora-imui | java-app-scans | Java | Code | 170 | 782 | package cn.jiguang.imui.chatinput.record;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import cn.jiguang.imui.chatinput.R;
import cn.jiguang.imui.chatinput.Style;
public class RecordVoiceBtnStyle extends Style {
... | 7,060 |
https://github.com/rodrigodobre/sitecamara/blob/master/node_modules/@ckeditor/ckeditor5-list/tests/viewlistitemelement.js | Github Open Source | Open Source | MIT | null | sitecamara | rodrigodobre | JavaScript | Code | 188 | 480 | /**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
import ViewListItemElement from '../src/viewlistitemelement';
import ViewContainerElement from '@ckeditor/ckeditor5-engine/src/view/containerelement';
import ViewText from '@ckeditor/ckedit... | 49,811 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.