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/juandozuna/eTutor.BackEnd/blob/master/eTutor.SOLUTION/eTutor.Core/Configurations/DeviceConfiguration.cs | Github Open Source | Open Source | MIT | 2,019 | eTutor.BackEnd | juandozuna | C# | Code | 38 | 156 | using eTutor.Core.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace eTutor.Core.Configurations
{
public class DeviceConfiguration : IEntityTypeConfiguration<Device>
{
public void Configure(EntityTypeBuilder<Device> builder)
{
... | 17,930 |
https://github.com/anonym00se/InvalidMapFixer/blob/master/src/com/haxalicious/InvalidMapFixer/MapFixerBasic.java | Github Open Source | Open Source | Apache-2.0 | null | InvalidMapFixer | anonym00se | Java | Code | 86 | 310 | package com.haxalicious.InvalidMapFixer;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;
@SuppressWarnings(... | 1,441 |
https://github.com/usertomlin/JCuda-LDA/blob/master/src/org/ejml_float/ops/MatrixIO.java | Github Open Source | Open Source | MIT | null | JCuda-LDA | usertomlin | Java | Code | 829 | 2,038 | /*
* Copyright (c) 2009-2015, Peter Abeles. All Rights Reserved.
*
* This file is part of Efficient Java Matrix Library (EJML).
*
* 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
*
* ... | 44,455 |
https://github.com/evaletolab/MILID/blob/master/milid-frontend/src/components/DefinitionPopup.vue | Github Open Source | Open Source | MIT | null | MILID | evaletolab | Vue | Code | 193 | 761 | <template>
<transition name="fade">
<div v-if="open" :class="'theme-'+theme">
<div class="backdrop" @click="close"></div>
<div class="popup-container">
<div class="horizontal-center">
<div class="popup primary">
<div class=... | 51,835 |
https://github.com/rhazarian/ceres-tstl/blob/master/test/unit/annotations/forRange.spec.ts | Github Open Source | Open Source | MIT | 2,020 | ceres-tstl | rhazarian | TypeScript | Code | 280 | 899 | import { invalidForRangeCall } from "../../../src/transformation/utils/diagnostics";
import * as util from "../../util";
const createForRangeDeclaration = (args = "i: number, j: number, k?: number", returns = "number[]") => `
/** @forRange */
declare function luaRange(${args}): ${returns};
`;
test.each([
... | 27,917 |
https://github.com/eWert-Online/esy-cmake/blob/master/Tests/RunCMake/File_Generate/SourcePermissions4.cmake | Github Open Source | Open Source | MIT | null | esy-cmake | eWert-Online | CMake | Code | 9 | 53 | file(GENERATE OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/output-sourcepermission4.txt"
CONTENT "Input is content"
USE_SOURCE_PERMISSIONS
)
| 28,504 |
https://github.com/spaceVStab/HARK/blob/master/HARK/ConsumptionSaving/ConsMedModel.py | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, Apache-2.0 | 2,020 | HARK | spaceVStab | Python | Code | 5,246 | 16,764 | '''
Consumption-saving models that also include medical spending.
'''
from __future__ import division, print_function
from __future__ import absolute_import
from builtins import str
from builtins import range
import numpy as np
from scipy.optimize import brentq
from HARK import HARKobject
from HARK.utilities import app... | 33,455 |
https://github.com/surfingdirt/web/blob/master/src/components/Media/Items/ThumbOnly/styles.scss | Github Open Source | Open Source | MIT | null | web | surfingdirt | SCSS | Code | 107 | 444 | @import '../../../../styles/boxmodel';
@import '../../../../styles/media-queries';
// Grid calculations at https://docs.google.com/spreadsheets/d/1VW15y9L9hD9LPT8BEEaQ5c-QjCR6aach4EHji4zRQQU/edit?usp=sharing
$gutter-mobile: $margin-small-1;
$gutter-desktop: $margin-big;
.grid {
display: grid;
grid-gap: $gutter-m... | 34,372 |
https://github.com/djohns451/docu/blob/master/src/Docu.Console/IDocumentationGenerator.cs | Github Open Source | Open Source | BSD-3-Clause | 2,021 | docu | djohns451 | C# | Code | 33 | 129 | using System.Collections.Generic;
using System.Reflection;
namespace Docu
{
public interface IDocumentationGenerator
{
void SetAssemblies(IEnumerable<string> assemblyPaths);
void SetAssemblies(IEnumerable<Assembly> assembliesToParse);
void SetXmlFiles(IEnumerable<string> xmlFiles);
... | 47,101 |
https://github.com/milovidov983/BotKeeper/blob/master/src/BotKeeper.Service/Core/Interfaces/IMetrics.cs | Github Open Source | Open Source | MIT | null | BotKeeper | milovidov983 | C# | Code | 34 | 93 | using System.Collections.Generic;
using Telegram.Bot.Args;
namespace BotKeeper.Service.Core.Models {
public interface IMetrics {
string CurrentState { get; set; }
string Message { get; set; }
MessageEventArgs Request { get; set; }
Dictionary<string, object> ToDictionary();
}
} | 7,219 |
https://github.com/bobbylight/RSTALanguageSupport/blob/master/RSTALanguageSupport/src/main/java/org/fife/rsta/ac/js/ast/type/ecma/client/HTMLDOMAdditions.java | Github Open Source | Open Source | BSD-3-Clause | 2,022 | RSTALanguageSupport | bobbylight | Java | Code | 590 | 4,423 | package org.fife.rsta.ac.js.ast.type.ecma.client;
import org.fife.rsta.ac.js.ast.type.ECMAAdditions;
import org.fife.rsta.ac.js.ast.type.TypeDeclaration;
import org.fife.rsta.ac.js.ast.type.ecma.TypeDeclarations;
public class HTMLDOMAdditions implements ECMAAdditions {
@Override
public void addAdditionalTypes(Typ... | 6,234 |
https://github.com/mazzegi/adventofcode/blob/master/adventofcode_2020/ticket/ticket.go | Github Open Source | Open Source | MIT | null | adventofcode | mazzegi | Go | Code | 350 | 900 | package ticket
import (
"fmt"
"strconv"
"strings"
"github.com/pkg/errors"
)
type Ticket struct {
Numbers []int
}
func ParseTicket(s string) (*Ticket, error) {
sl := strings.Split(s, ",")
t := &Ticket{}
for _, sn := range sl {
n, err := strconv.ParseInt(sn, 10, 64)
if err != nil {
return nil, errors.W... | 13,524 |
https://github.com/xiaoFeng5210/shared-blog/blob/master/src/pages/My/template.less | Github Open Source | Open Source | MIT | null | shared-blog | xiaoFeng5210 | Less | Code | 120 | 404 | @import "../../assets/base.less";
#my,#user {
.user-info {
display: grid;
grid: auto auto / 80px 1fr;
margin-top: 30px;
padding-bottom: 20px;
border-bottom: 1px solid #ebebeb;
.avatar {
grid-column: 1;
grid-row: 1 / span 2;
width: 60px;
height: 60px;
bord... | 15,099 |
https://github.com/isaacpedroza/rm_ai_challenge_2020s2_koala/blob/master/src/GUI/predictions.py | Github Open Source | Open Source | MIT | 2,020 | rm_ai_challenge_2020s2_koala | isaacpedroza | Python | Code | 64 | 164 | class LabelledImage():
def __init__(self, ID=None, filename=None, speed=0, armours=[]):
self.ID = ID
self.filename = filename
self.speed = speed
self.armours = armours
class Armour():
def __init__(self, robot=str(), pose=str(), location=[0,0,0,0], confidence=0):
s... | 45,606 |
https://github.com/johnjameswhitman/golinx/blob/master/toolchains/BUILD | Github Open Source | Open Source | Apache-2.0 | 2,020 | golinx | johnjameswhitman | Starlark | Code | 107 | 354 | # This is borrowed from here and modified to point to the python iterpreter
# used by the official python image:
# https://github.com/bazelbuild/rules_docker/blob/master/toolchains/BUILD
load("@bazel_tools//tools/python:toolchain.bzl", "py_runtime_pair")
package(default_visibility = ["//visibility:public"])
py_runtim... | 33,712 |
https://github.com/justlikethisdesign/gatsby-tns/blob/master/gatsby/onCreateWebpackConfig.js | Github Open Source | Open Source | MIT | 2,021 | gatsby-tns | justlikethisdesign | JavaScript | Code | 28 | 99 | const FilterWarningsPlugin = require('webpack-filter-warnings-plugin')
module.exports = function onCreateWebpackConfig({ actions }) {
actions.setWebpackConfig({
plugins: [
new FilterWarningsPlugin({
exclude:
/mini-css-extract-plugin[^]*Conflicting order. Foll... | 45,815 |
https://github.com/psychiatric-genomics-consortium/pgc_stage1_analysis/blob/master/src/PC_filter_casecon.R | Github Open Source | Open Source | MIT | 2,023 | pgc_stage1_analysis | psychiatric-genomics-consortium | R | Code | 1,858 | 7,562 | ## USAGE:
# Rscript PC_filter_casecon.R --data_id abcd1 --cutoff_file cutoff.txt
## Full example (with default parameters):
# Rscript PC_filter_casecon.R \
# --data_id abcd1 \
# --cutoff_file cutoff.txt \
# --pcaer_dir pcaer_abcd1 \
# --refdata FALSE \
# --graph TRUE
# Example cutoff.txt file:
# PC low high
# C1... | 40,586 |
https://github.com/cli1903/step23-2020/blob/master/frontend/ui/test/widgets/trip_view_widget_test.dart | Github Open Source | Open Source | Apache-2.0 | null | step23-2020 | cli1903 | Dart | Code | 196 | 928 | import 'dart:async';
import 'package:flutter_test/flutter_test.dart';
import 'package:flutter/material.dart';
import 'package:mockito/mockito.dart';
import 'package:tripmeout/model/trip.dart';
import 'package:tripmeout/services/trip_service.dart';
import 'package:tripmeout/widgets/trip_view_widget.dart';
import 'packa... | 40,028 |
https://github.com/tianlang0704/TimeTravelRobot/blob/master/Assets/Scripts/Explosion.cs | Github Open Source | Open Source | MIT | null | TimeTravelRobot | tianlang0704 | C# | Code | 64 | 182 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// 爆炸管理器
public class Explosion : MonoBehaviour
{
private GameLogicManager glm;
private void Awake() {
glm = FindObjectOfType<GameLogicManager>();
}
// Start is called before the first frame update
void Start()
... | 7,028 |
https://github.com/muralikrishna8/twu-biblioteca-muralikrishna/blob/master/test/com/twu/biblioteca/LoginControllerTest.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | twu-biblioteca-muralikrishna | muralikrishna8 | Java | Code | 83 | 397 | package com.twu.biblioteca;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
@RunWith(Moc... | 15,334 |
https://github.com/zhangjunfang/rocksq/blob/master/queue.go | Github Open Source | Open Source | MIT | 2,015 | rocksq | zhangjunfang | Go | Code | 671 | 2,145 | package rocksq
import (
"encoding/binary"
"encoding/gob"
"encoding/json"
"errors"
"sync/atomic"
"github.com/mijia/sweb/log"
"github.com/oxtoacart/bpool"
rocks "github.com/tecbot/gorocksdb"
)
var (
EmptyQueue = errors.New("No new message in the queue")
oneBinary []byte
)
type Queue struct {
name st... | 53,849 |
https://github.com/bflaven/BlogArticlesExamples/blob/master/ai_chatgpt_usages/example_php_plugin_wordpress/006_generate_php_plugin_wordpress_flags_header.php | Github Open Source | Open Source | MIT | 2,023 | BlogArticlesExamples | bflaven | PHP | Code | 326 | 948 | <?php
/*
Plugin Name: MyFlagsSiteVersion (good or bad)
Plugin URI: http://example.com/myflagssiteversion
Description: A plugin for manipulating a single custom field for 2 languages (Spanish and Russian).
Version: 1.0
Author: Your Name
Author URI: http://example.com
License: GPL2
*/
/*
# SECOND CODE GENERATION
# 006_g... | 36,917 |
https://github.com/su93rheroes/helpy/blob/master/app/assets/stylesheets/shared.scss | Github Open Source | Open Source | MIT | 2,017 | helpy | su93rheroes | SCSS | Code | 81 | 210 | // This stylesheet is for common rules that are used by all themes. Typically this
// would mean infrastructure type styles: things like how attachments are shown.
// They can always be overwritten by styles in the themes .scss
#post-images {
margin-top: 30px;
ul li.image img {
margin-top: -20px;
}
ul li.raw... | 30,531 |
https://github.com/JonathanWilbur/x500-ts/blob/master/source/modules/DirectoryOSIProtocols/directorySystemAC.oa.ts | Github Open Source | Open Source | MIT | 2,019 | x500-ts | JonathanWilbur | TypeScript | Code | 337 | 1,232 | /* eslint-disable */
import { APPLICATION_CONTEXT } from "../DirectoryOSIProtocols/APPLICATION-CONTEXT.oca";
import { id_ac_directorySystemAC } from "../DirectoryOSIProtocols/id-ac-directorySystemAC.va";
import { chainedAbandon } from "../DistributedOperations/chainedAbandon.oa";
import { chainedAddEntry } from "../Dis... | 26,828 |
https://github.com/zestia/ember-validation/blob/master/tests/unit/constraints/less-than-test.js | Github Open Source | Open Source | MIT | 2,023 | ember-validation | zestia | JavaScript | Code | 149 | 451 | import { module, test } from 'qunit';
import lessThan from '@zestia/ember-validation/constraints/less-than';
module('lessThan', function () {
test('it returns nothing when valid', function (assert) {
assert.expect(1);
assert.strictEqual(lessThan({ value: 10 })(9), undefined);
});
test('it returns defau... | 3,759 |
https://github.com/TaleLin/lin-cms-spring-boot/blob/master/src/main/java/io/github/talelin/latticy/model/UserDO.java | Github Open Source | Open Source | MIT | 2,022 | lin-cms-spring-boot | TaleLin | Java | Code | 78 | 287 | package io.github.talelin.latticy.model;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* @author pedro@TaleLin
* @author Juzi@TaleL... | 37,774 |
https://github.com/haluvibe/ethers-sandbox/blob/master/cypress/e2e/specs/connect-wallet.spec.ts | Github Open Source | Open Source | MIT | null | ethers-sandbox | haluvibe | TypeScript | Code | 106 | 396 | describe("Connects to Metamask", () => {
const waitUntilConnected = () => {
cy.waitUntil(() => {
return cy.findByTestId("disconnect-wallet-button").should("exist");
});
// waiting for disconnect button is not enough in rare cases to be logged in
cy.wait(2000);
};
before("Loads the index pag... | 52,512 |
https://github.com/cjolowicz/cutty/blob/master/src/cutty/packages/adapters/fetchers/ftp.py | Github Open Source | Open Source | MIT | 2,022 | cutty | cjolowicz | Python | Code | 78 | 237 | """Fetch a package via FTP."""
import pathlib
import shutil
import urllib.request
from yarl import URL
from cutty.packages.domain.fetchers import fetcher
from cutty.packages.domain.matchers import scheme
@fetcher(match=scheme("ftp"))
def ftpfetcher(url: URL, destination: pathlib.Path) -> None:
"""Fetch via FTP.... | 13,303 |
https://github.com/DominikaHatala/mots/blob/master/src/main/java/org/motechproject/mots/validate/constraintvalidators/user/UsernameValidator.java | Github Open Source | Open Source | Apache-2.0 | null | mots | DominikaHatala | Java | Code | 99 | 489 | package org.motechproject.mots.validate.constraintvalidators.user;
import java.util.Optional;
import java.util.UUID;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import org.apache.commons.lang.StringUtils;
import org.motechproject.mots.constants.ValidationMessages;
i... | 36,159 |
https://github.com/eviltrout/discourse-tagging/blob/master/assets/javascripts/discourse/routes/tagging-tag.js.es6 | Github Open Source | Open Source | MIT | 2,015 | discourse-tagging | eviltrout | JavaScript | Code | 32 | 140 | export default Ember.Route.extend({
model(tag) {
var self = this;
return Discourse.TopicList.list('tagging/tag/' + tag.tag_id).then(function(list) {
self.set('list', list);
tag.tag_id = Handlebars.Utils.escapeExpression(tag.tag_id);
return tag;
});
},
setupController(controller, mod... | 6,444 |
https://github.com/LeonodTeam/ERC1400/blob/master/setup.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | ERC1400 | LeonodTeam | JavaScript | Code | 8 | 42 | // 'use strict';
fs = require('fs');
fs.createReadStream('auth.template.json')
.pipe(fs.createWriteStream('auth.json'));
| 50,973 |
https://github.com/lodsve/lodsve-framework/blob/master/lodsve-core/src/main/java/lodsve/core/utils/RandomUtils.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | lodsve-framework | lodsve | Java | Code | 522 | 1,529 | /*
* 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 ... | 22,813 |
https://github.com/HcashOrg/hcGUI/blob/master/app/components/views/TicketsPage/MyTicketsTab/TicketListPage.js | Github Open Source | Open Source | ISC | 2,019 | hcGUI | HcashOrg | JavaScript | Code | 247 | 880 | import { ticketsList } from "connectors";
import TicketsCardList from "./TicketsCardList";
import TicketInfoCard from "./TicketInfoCard";
import { FormattedMessage as T } from "react-intl";
import Paginator from "Paginator";
import { SlateGrayButton } from "buttons";
import "style/MyTickets.less";
@autobind
class Tick... | 47,409 |
https://github.com/duttashi/applied-machine-learning/blob/master/r/experiments/expr_casestudy_loan_prediction_feature_importance_modeling.R | Github Open Source | Open Source | MIT | 2,021 | applied-machine-learning | duttashi | R | Code | 275 | 979 | # Objective: Loan prediction problem
# hosted at: https://datahack.analyticsvidhya.com/contest/practice-problem-loan-prediction-iii/#ProblemStatement
# Evaluation metric: Accuracy
# clean the workspace
rm(list = ls())
# required libraries
library(readr)
library(caret)
library(mlbench)
library(xgboost)
# read the dat... | 41,021 |
https://github.com/Futuremappermydud/Naluluna-Modifier-Quest/blob/master/include/codegen/include/GlobalNamespace/IncDecSettingsController.hpp | Github Open Source | Open Source | MIT | 2,021 | Naluluna-Modifier-Quest | Futuremappermydud | C++ | Code | 232 | 751 | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.MonoBehaviour
#include "UnityEngine/MonoBeh... | 39,701 |
https://github.com/shanyouli/dotfiles/blob/master/modules/desktop/browsers/qutebrowser.nix | Github Open Source | Open Source | MIT | null | dotfiles | shanyouli | null | Spoken | 131 | 374 | # modules/browser/qutebrowser.nix --- https://github.com/qutebrowser/qutebrowser
#
# Qutebrowser is cute because it's not enough of a browser to be handsome.
# Still, we can all tell he'll grow up to be one hell of a lady-killer.
{ options, config, lib, pkgs, ... }:
with lib;
with lib.my;
let cfg = config.modules.des... | 48,606 |
https://github.com/lim-crypto/blog-site/blob/master/resources/views/admin/login.blade.php | Github Open Source | Open Source | MIT | null | blog-site | lim-crypto | PHP | Code | 102 | 490 | <!DOCTYPE html>
<html lang="en">
<head>
@include('admin.layouts.head')
@yield('style')
</head>
<body class="hold-transition login-page">
<div class="login-box">
<div class="login-logo">
<a href="/"><b>Twilight</a>
</div>
<!-- /.login-logo -->
<div class="card">
... | 52,062 |
https://github.com/demixdn/PerfomanceDB/blob/master/app/src/main/java/com/example/perfomancedb/storio/DbOpenHelper.java | Github Open Source | Open Source | Apache-2.0 | null | PerfomanceDB | demixdn | Java | Code | 70 | 250 | package com.example.perfomancedb.storio;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.support.annotation.NonNull;
/**
* Date: 29.09.2016
* Time: 11:44
*
* @author Aleks Sander
* Project PerfomanceDB
*/
cl... | 27,665 |
https://github.com/PythonOT/POT/blob/master/examples/domain-adaptation/plot_otda_mapping_colors_images.py | Github Open Source | Open Source | MIT | 2,023 | POT | PythonOT | Python | Code | 402 | 1,660 | # -*- coding: utf-8 -*-
"""
=====================================================
OT for image color adaptation with mapping estimation
=====================================================
OT for domain adaptation with image color adaptation [6] with mapping
estimation [8].
[6] Ferradans, S., Papadakis, N., Peyre, G... | 52,594 |
https://github.com/BreakerOfThings/o3de/blob/master/Gems/AtomLyIntegration/EMotionFXAtom/Code/emotionfx_atom_editor_files.cmake | Github Open Source | Open Source | Apache-2.0, MIT | 2,022 | o3de | BreakerOfThings | CMake | Code | 55 | 299 | #
# Copyright (c) Contributors to the Open 3D Engine Project.
# For complete copyright and license terms please see the LICENSE at the root of this distribution.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
#
#
set(FILES
../Assets/Icons/Resources.qrc
Source/ActorModule.cpp
Source/Editor/EditorSystemCompo... | 28,252 |
https://github.com/vbornand/phaser/blob/master/v3/src/geom/ellipse/Random.js | Github Open Source | Open Source | MIT | 2,017 | phaser | vbornand | JavaScript | Code | 61 | 145 | var Point = require('../point/Point');
var Random = function (ellipse, out)
{
if (out === undefined) { out = new Point(); }
var p = Math.random() * Math.PI * 2;
var s = Math.sqrt(Math.random());
out.x = ellipse.x + ((s * Math.cos(p)) * ellipse.width / 2);
out.y = ellipse.y + ((s * Math.sin(p)) * ... | 1,555 |
https://github.com/kucheriavij/webnula2/blob/master/orm/BelongsTo.php | Github Open Source | Open Source | MIT | 2,014 | webnula2 | kucheriavij | PHP | Code | 159 | 507 | <?php
/**
* Belongs to descriptor.
* @author Martyushev Dmitriy (dangozero@gmail.com)
* @copyright dangozero at gmail dot com
* @license LICENSE
*/
namespace webnula2\orm;
use webnula2\common\Annotation;
/**
* Class BelongsTo
* @package webnula2\orm
*/
final class BelongsTo extends \CComponent implements Ann... | 41,768 |
https://github.com/microsoft/configmgr-hub-selfhost/blob/master/objects/Script/Test2002.ps1 | Github Open Source | Open Source | MIT, LicenseRef-scancode-generic-cla | 2,022 | configmgr-hub-selfhost | microsoft | PowerShell | Code | 1,836 | 13,511 | <#-----------------------------------------------------------------------------------------------------------------------------------
:: <copyright file="collectDiagnostics.ps1" company="Microsoft">
:: Copyright (c) Microsoft Corporation. All rights reserved.
:: </copyright>
::
:: <summary>
:: Tool to collec... | 23,891 |
https://github.com/abook23/GodLibrary/blob/master/src/main/java/com/god/util/IdUtils.java | Github Open Source | Open Source | Apache-2.0 | null | GodLibrary | abook23 | Java | Code | 31 | 98 | package com.god.util;
import java.util.UUID;
/**
* Id生成策略
* @author Administrator
*
*/
public class IdUtils {
/**
* 获取32位的UUID
* @return
*/
public static String getUUId(){
return UUID.randomUUID().toString().replace("-", "");
}
}
| 44,202 |
https://github.com/olifink/smsqe/blob/master/uti/exfilter.asm | Github Open Source | Open Source | BSD-2-Clause | null | smsqe | olifink | Assembly | Code | 438 | 1,367 | ; Start up a filter job 1998 Jochen Merz
include dev8_keys_jcb
include dev8_keys_qdos_sms
include dev8_keys_qdos_io
include dev8_keys_qdos_ioa
include dev8_keys_err
include dev8_keys_hdr
include dev8_mac_xref
section utility
xdef ut_exfilter
;+++
; Start up a filter job which may be any executable file ... | 4,748 |
https://github.com/Cody-Hayes97/FullstackProjectBA/blob/master/node_modules/@mikro-orm/core/enums.js | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,020 | FullstackProjectBA | Cody-Hayes97 | JavaScript | Code | 382 | 1,468 | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EventType = exports.LockMode = exports.LoadStrategy = exports.Cascade = exports.ReferenceType = exports.SCALAR_TYPES = exports.QueryFlag = exports.QueryOrderNumeric = exports.QueryOrder = exports.ARRAY_OPERATORS = exports.QueryOperator... | 13,215 |
https://github.com/godfredtenkorang/connectdjango/blob/master/static/blog/js/qanswer.js | Github Open Source | Open Source | MIT | 2,020 | connectdjango | godfredtenkorang | JavaScript | Code | 110 | 406 | $(function(){
setTimeout(function(){
$(".alert").slideUp(3000);
},5000);
function getCookie(name) {
let cookieValue = null;
if (document.cookie && document.cookie !== '') {
const cookies = document.cookie.split(';');
for (let i = 0; i < cookies.length; i++) {
const coo... | 47,933 |
https://github.com/blitz-research/monkey2/blob/master/modules/openal/openal-soft/include/almalloc.h | Github Open Source | Open Source | Zlib | 2,020 | monkey2 | blitz-research | C | Code | 33 | 121 | #ifndef AL_MALLOC_H
#define AL_MALLOC_H
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
void *al_malloc(size_t alignment, size_t size);
void *al_calloc(size_t alignment, size_t size);
void al_free(void *ptr);
#ifdef __cplusplus
}
#endif
#endif /* AL_MALLOC_H */
| 42,410 |
https://github.com/dagn/mailserv/blob/master/install/templates/roundcube/conf/db.inc.php | Github Open Source | Open Source | BSD-3-Clause | 2,021 | mailserv | dagn | PHP | Code | 132 | 485 | <?php
$rcmail_config = array();
$rcmail_config['db_dsnw'] = 'mysql://webmail:webmail@localhost/webmail';
$rcmail_config['db_backend'] = 'db';
// PEAR database DSN for read only operations (if empty write database will be used)
// useful for database replication
$rcmail_config['db_dsnr'] = '';
// maximum length of a ... | 25,573 |
https://github.com/Hedde/quality-time/blob/master/components/collector/src/collectors/__init__.py | Github Open Source | Open Source | Apache-2.0 | null | quality-time | Hedde | Python | Code | 88 | 182 | """Metric collectors per source."""
from .azure_devops import *
from .calendar import *
from .cxsast import *
from .gitlab import *
from .hq import *
from .jacoco import *
from .jenkins import *
from .jenkins_test_report import *
from .jira import *
from .junit import *
from .openvas import *
from .owasp_dependency_ch... | 39,798 |
https://github.com/orbingol/PointVector/blob/master/tests/test_vector.cpp | Github Open Source | Open Source | MIT | 2,019 | PointVector | orbingol | C++ | Code | 638 | 2,195 | /**
* PointVector -- n-dimensional point and vector implementations
* Copyright (c) 2018 Onur Rauf Bingol
*
* Licensed under the MIT License
* Catch2 is licensed under the Boost Software Licence 1.0 -- https://github.com/catchorg/Catch2
*
*
* Unit testing of Vector class using Catch Framework
*/
#define CATCH... | 45,270 |
https://github.com/bjuvensjo/rsimulatorjs-http/blob/master/src/module.js | Github Open Source | Open Source | MIT | null | rsimulatorjs-http | bjuvensjo | JavaScript | Code | 53 | 166 | var httpSimulator = require('./httpSimulator');
var simulator = require('rsimulatorjs-core');
var _ = require('underscore');
module.exports = (function () {
var create = function (options) {
var httpSimulatorOptions = _.clone(options);
httpSimulatorOptions.simulator = simulator;
simulator... | 50,541 |
https://github.com/davidevOS/the-market-place/blob/master/src/sass/components/_Logo.scss | Github Open Source | Open Source | MIT | 2,021 | the-market-place | davidevOS | SCSS | Code | 31 | 141 | @import '../abstracts/variables';
.logo{
padding:25px;
font-family: $lato;
display: flex;
&__title{
font-style: normal;
font-weight: bold;
font-size: 54px;
line-height: 65px;
letter-spacing: 0.07em;
&-black{
color:$secondary
}
... | 7,772 |
https://github.com/sarveshpro/esy/blob/master/src/bin/esyRelease.js | Github Open Source | Open Source | BSD-2-Clause | 2,017 | esy | sarveshpro | JavaScript | Code | 140 | 414 | /**
* @flow
*/
import type {CommandContext, CommandInvocation} from './esy';
import type {PackageManifest} from '../types';
import outdent from 'outdent';
import {buildRelease} from '../release';
import * as M from '../package-manifest';
const currentEsyVersion = require('../../package.json').version;
const AVAI... | 23,781 |
https://github.com/casboots/MoneyBug/blob/master/resources/views/pages/items/index.blade.php | Github Open Source | Open Source | MIT | null | MoneyBug | casboots | PHP | Code | 132 | 745 | @extends('layouts.app')
@section('content')
<div class="container">
@if($money['total'] > 0)
<div class="card mb-3">
<div class="card-header">
<h5 class="card-title">{{$money['info']['title']}}</h5>
</div>
<div class="card-body">
<table class="table"... | 27,867 |
https://github.com/pandabrand/westex-bedrock/blob/master/packages/enhanced-media-library-pro/pro/enhanced-media-library-pro.php | Github Open Source | Open Source | MIT | null | westex-bedrock | pandabrand | PHP | Code | 826 | 3,764 | <?php
if ( ! defined( 'ABSPATH' ) )
exit;
include_once( 'core/bulk-edit.php' );
include_once( 'core/taxonomies.php' );
include_once( 'core/update.php' );
if ( wpuxss_eml_enhance_media_shortcodes() ) {
include_once( 'core/medialist.php' );
}
if ( is_admin() ) {
include_o... | 34,784 |
https://github.com/clayrisser/reactant/blob/master/packages/cli/src/util.ts | Github Open Source | Open Source | MIT | 2,023 | reactant | clayrisser | TypeScript | Code | 37 | 116 | export function getArgs(argv: string[], command: any): string[] {
argv = argv.slice(1);
return argv.reduce((args: string[], arg: string, i: number) => {
const flags = Object.keys(command.flags).map((flag: string) => `--${flag}`);
if (!(flags.includes(arg) || flags.includes(argv[i]))) args.push(arg);
ret... | 37,243 |
https://github.com/anishmo99/Daily-Interview-Pro/blob/master/deepestNodeInTree.py | Github Open Source | Open Source | MIT | 2,021 | Daily-Interview-Pro | anishmo99 | Python | Code | 136 | 338 | class Node(object):
def __init__(self, data):
self.data = data
self.left = None
self.right = None
# maxLevel : keeps track of maximum
# level seen so far.
# res : Value of deepest node so far.
# level : Level of root
def find(root, level, maxLevel, res):
if (root != None):
leve... | 34,314 |
https://github.com/userco/isic/blob/master/src/ISICBundle/Resources/views/PersonalNumber/Import.html.twig | Github Open Source | Open Source | MIT, BSD-3-Clause | 2,019 | isic | userco | Twig | Code | 144 | 521 | {% extends "::base.html.twig" %}
{% form_theme uploadForm 'bootstrap_3_horizontal_layout.html.twig' %}
{#% form_theme uploadForm 'form.html.twig' %#}
{% block body %}
<div class = "container">
{% include('menu.html.twig') %}
<br>
<h1>Подаване на ЕГН</h1>
{{ form_start(uploadForm) }}
<ul class="errorMe... | 41,619 |
https://github.com/fredgrott/novice_flutter/blob/master/riverpod_ddd_base/test/domain/sample_view_model_test.dart | Github Open Source | Open Source | BSD-3-Clause | 2,022 | novice_flutter | fredgrott | Dart | Code | 126 | 437 | // Copyright 2022 Fredrick Allan Grott. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
import 'package:flutter_test/flutter_test.dart';
import 'package:riverpod_ddd_base/src/domain/models/sample_item_model.codegen.dart';
import 'package:riv... | 23,391 |
https://github.com/seriva/epiphany/blob/master/ansible/playbooks/roles/kubernetes_master/templates/aws/k8s-persistent-volume.yml.j2 | Github Open Source | Open Source | Apache-2.0 | 2,023 | epiphany | seriva | null | Spoken | 55 | 173 | apiVersion: v1
kind: PersistentVolume
metadata:
name: {{ specification.storage.name }}
labels:
name: {{ specification.storage.name }}
spec:
storageClassName: defaultfs
capacity:
storage: {{ specification.storage.capacity }}Gi # EFS does not enforce it
volumeMode: Filesystem
accessModes:
- ReadWr... | 11,582 |
https://github.com/SaschaGoernert/dynamic-forms/blob/master/libs/core/src/lib/dynamic-form-control/dynamic-form-control-hints.ts | Github Open Source | Open Source | MIT | 2,021 | dynamic-forms | SaschaGoernert | TypeScript | Code | 9 | 26 | export interface DynamicFormControlHints {
hintStart?: string;
hintEnd?: string;
}
| 8,781 |
https://github.com/guoxiaoyong/vnpy/blob/master/vnpy/api/cshshlp/hshlp/CITICs_HsT2Hlp.h | Github Open Source | Open Source | MIT | 2,017 | vnpy | guoxiaoyong | C | Code | 400 | 2,490 | #ifndef __CITICS_HSHLP_H__
#define __CITICS_HSHLP_H__
#ifdef WIN32
#ifdef CITICS_HSHLP_EXPORTS
#define CITICS_HSHLP_API __declspec(dllexport)
#else
#define CITICS_HSHLP_API __declspec(dllimport)
#endif
#define CITICSSTDCALL __stdcall /* ensure stcall calling convention on NT */
#else
#define CITICS_HSHLP_API
#define ... | 48,432 |
https://github.com/johnzl-777/dinocpu-sq20/blob/master/src/main/scala/visualize.scala | Github Open Source | Open Source | BSD-3-Clause | 2,022 | dinocpu-sq20 | johnzl-777 | Scala | Code | 2,487 | 6,726 | package dinocpu
import firrtl.ir._
import dinocpu.test._
import scala.swing._
import scala.collection.mutable
import scala.collection.mutable.HashSet
import scala.collection.Set
import scala.swing.event.Event
import javax.swing.ToolTipManager
import java.awt.Color
import treadle.TreadleTester
// Port interface used b... | 333 |
https://github.com/xxnickles/anime-feed-manager/blob/master/src/AnimeFeedManager.WebApp/HttpClientPolicies.cs | Github Open Source | Open Source | MIT | 2,023 | anime-feed-manager | xxnickles | C# | Code | 65 | 255 | using Polly;
using Polly.Extensions.Http;
namespace AnimeFeedManager.WebApp;
public static class HttpClientPolicies
{
private static readonly Random Jitterer = new();
public static IAsyncPolicy<HttpResponseMessage> GetRetryPolicy(IServiceProvider serviceProvider, int retryCount = 3) =>
HttpPolicyExt... | 48,708 |
https://github.com/CodebyL/Redesigned-Fitness-Tracker/blob/master/node_modules/seed/lib/seed/graph/commands/select.js | Github Open Source | Open Source | MIT | 2,021 | Redesigned-Fitness-Tracker | CodebyL | JavaScript | Code | 63 | 163 |
var Hash = require('../../base/hash')
, Promise = require('../../base/promise');
module.exports = Select;
function Select (traversal, model) {
this.traversal = traversal;
this.model = model;
}
Select.prototype.exec = function (model) {
model = model || this.model;
var defer = new Promise()
, hash = ne... | 47,254 |
https://github.com/fossabot/ohu-mobile/blob/master/docs/storybook/src/List/List.stories.tsx | Github Open Source | Open Source | MIT | 2,022 | ohu-mobile | fossabot | TypeScript | Code | 869 | 3,435 | import Vue from 'vue';
import docs from '@/List/README.md';
import List from '@/List';
import '@/List/style';
import Icon from '@/Icon';
import '@/Icon/style';
import Skeleton from '@/Skeleton';
import '@/Skeleton/style';
import Grid from '@/Grid';
import '@/Grid/style';
import CheckList from '@/CheckList';
import Radi... | 47,017 |
https://github.com/seapvnk/resourcery/blob/master/resources/views/section/update.blade.php | Github Open Source | Open Source | MIT | null | resourcery | seapvnk | PHP | Code | 121 | 491 | @extends('layouts.instructor')
@section('content')
<div class="invisible">
@foreach ($course->sections as $section)
<form method="POST" class="invisible d-none" id="section-delete-{{ $section->id }}" action="{{ route('section.delete', ['courseUrl' => $section->course->url]) }}">
@csrf
... | 32,444 |
https://github.com/5zirok/pos-system/blob/master/server/api/inventory.js | Github Open Source | Open Source | MIT | 2,018 | pos-system | 5zirok | JavaScript | Code | 336 | 1,188 | var app = require('express')()
var server = require('http').Server(app)
var bodyParser = require('body-parser')
var Datastore = require('nedb')
var fs = require('fs')
var async = require('async')
var str="";
var request = require('request');//Подключаем возможность считывать данные с удаленных сайтов
//Перезаписывае... | 52,079 |
https://github.com/chrhsmt/pp.js/blob/master/benchmark/async-logging.coffee | Github Open Source | Open Source | MIT | 2,016 | pp.js | chrhsmt | CoffeeScript | Code | 524 | 1,503 |
startTime = timeStamp = tmpStamp = 0
if typeof require is "function"
async = require 'async'
ARGV = process and process.argv or []
len = if ARGV.length > 2 then ~~(ARGV[2]) else 1.0e+5
fps = if ARGV.length > 3
Math.min 1000, Math.max(0, ARGV[3])
else 60
frameRate = ~~(1000 / fps)
console.log """
\x1b[32mBe... | 47,801 |
https://github.com/nightlord/cascalog/blob/master/cascalog-core/src/java/cascalog/test/RangeOp.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | cascalog | nightlord | Java | Code | 50 | 166 | package cascalog.test;
import cascading.flow.FlowProcess;
import cascading.operation.FunctionCall;
import cascading.tuple.Tuple;
import cascading.tuple.TupleEntry;
import cascalog.CascalogFunction;
public class RangeOp extends CascalogFunction {
@Override
public void operate(FlowProcess flowProcess, FunctionCal... | 44,144 |
https://github.com/Foxifly/Portfolio/blob/master/src/components/MainLanding.js | Github Open Source | Open Source | MIT | null | Portfolio | Foxifly | JavaScript | Code | 286 | 1,290 | import React, { Component } from "react";
import { library } from "@fortawesome/fontawesome-svg-core";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import ReactTimeout from "react-timeout";
import "../css/mainlanding.css";
import {
faReact,
faCss3Alt,
faHtml5,
faSass,
faGit,
faJsSquare,... | 14,815 |
https://github.com/kenranunderscore/nixpkgs/blob/master/pkgs/applications/networking/browsers/microsoft-edge/default.nix | Github Open Source | Open Source | MIT | null | nixpkgs | kenranunderscore | null | Spoken | 56 | 263 | {
beta = import ./browser.nix {
channel = "beta";
version = "103.0.1264.21";
revision = "1";
sha256 = "sha256:1336i0hy7xnla0pi4vahaxshhmivi1zljhaxyg63352bc7w9j64f";
};
dev = import ./browser.nix {
channel = "dev";
version = "104.0.1287.1";
revision = "1";
sha256 = "sha256:10h360vfs... | 19,914 |
https://github.com/skawa-universe/no_exif/blob/master/web/tame.dart | Github Open Source | Open Source | MIT | null | no_exif | skawa-universe | Dart | Code | 356 | 1,198 | import "dart:async";
import "dart:html";
import "package:pool/pool.dart";
import "package:image_whisperer/image_whisperer.dart";
import "package:no_exif/dropper.dart";
import "package:stack_trace/stack_trace.dart";
Future<CanvasElement> showIn(String selector, BaseImage image) async {
Element parent = document.quer... | 47,497 |
https://github.com/Alok255/hackerrank/blob/master/practice/algorithms/implementation/minimum_distances/MinumuDistances.js | Github Open Source | Open Source | MIT | 2,021 | hackerrank | Alok255 | JavaScript | Code | 86 | 229 | 'use strict';
const processData = input => {
const lines = input.split('\n');
const array = lines[1].split(' ').map(i => parseInt(i));
let min = 999999999;
for(let i = 0; i < array.length - 1; i++) {
for(let j = i + 1; j < array.length; j++) {
if(array[i] == array[j]) {
... | 20,621 |
https://github.com/google/j2objc/blob/master/jre_emul/android/platform/libcore/ojluni/src/main/java/javax/crypto/KeyGenerator.java | Github Open Source | Open Source | Classpath-exception-2.0, GPL-2.0-only, Apache-2.0, SunPro, W3C, LicenseRef-scancode-generic-cla, W3C-19980720, ICU, MIT, BSD-3-Clause, LicenseRef-scancode-public-domain, BSD-2-Clause, APSL-1.0, LGPL-2.0-or-later, LicenseRef-scancode-proprietary-license, GPL-1.0-or-later, LicenseRef-scancode-generic-exception, LicenseRe... | 2,023 | j2objc | google | Java | Code | 2,513 | 5,713 | /*
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 12,655 |
https://github.com/tenomoto/ncl/blob/master/external/sphere3.1_dp/igradgc.f | Github Open Source | Open Source | Apache-2.0 | 2,022 | ncl | tenomoto | null | Spoken | 1,853 | 4,460 | c
c . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
c . .
c . copyright (c) 1998 by UCAR .
c . .
c . University Corporation for Atmospheric ... | 23,330 |
https://github.com/paulissoft/oracle-build-tools/blob/master/apex/app/src/export/application/shared_components/user_interface/lovs/lov_dml_actions.sql | Github Open Source | Open Source | MIT | 2,022 | oracle-build-tools | paulissoft | SQL | Code | 66 | 672 | prompt --application/shared_components/user_interface/lovs/lov_dml_actions
begin
-- Manifest
-- LOV_DML_ACTIONS
-- Manifest End
wwv_flow_api.component_begin (
p_version_yyyy_mm_dd=>'2020.10.01'
,p_release=>'20.2.0.00.20'
,p_default_workspace_id=>2601326064169245
,p_default_application_id=>138
,p_default_id_off... | 52,029 |
https://github.com/sekharkaredla/Java/blob/master/cse2-091/11th march/Iterators.java | Github Open Source | Open Source | MIT | null | Java | sekharkaredla | Java | Code | 32 | 194 | import java.util.*;
class Iterators
{
public static void main(String args[])
{
ArrayList<Float> obj=new ArrayList<Float>(10);
obj.add(5.5f);
obj.add(6.5f);
obj.add(9.5f);
obj.add(1,4.0f);
Iterator<Float> itr=obj.iterator();
while(itr.hasNext())
... | 9,255 |
https://github.com/changealice/hippo-integration/blob/master/hippo-integration-admin/src/main/java/com/change/hippo/admin/entity/ColumnEntity.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | hippo-integration | changealice | Java | Code | 53 | 184 | package com.change.hippo.admin.entity;
import lombok.Data;
/**
* 列的属性
*/
@Data
public class ColumnEntity {
// 列名
private String columnName;
// 列名类型
private String dataType;
// 列名备注
private String comments;
// 属性名称(第一个字母大写),如:user_name => UserName
private String attrName;
// 属性名称(... | 954 |
https://github.com/thedawnlee/PrintSystem/blob/master/src/main/java/com/dawn/service/IShopService.java | Github Open Source | Open Source | MIT | null | PrintSystem | thedawnlee | Java | Code | 70 | 326 | package com.dawn.service;
import com.github.pagehelper.PageInfo;
import com.dawn.commons.ServerResponse;
import com.dawn.form.ShopForm;
import com.dawn.form.ShopPriceForm;
import com.dawn.vo.DetailVo;
import com.dawn.vo.OtherShopVo;
import java.util.List;
public interface IShopService {
ServerResponse<PageInfo... | 22,290 |
https://github.com/Ceva24/symphonia-quotes/blob/master/src/main/groovy/uk/co/ceva24/twitterbot/domain/Tweet.groovy | Github Open Source | Open Source | MIT | 2,016 | symphonia-quotes | Ceva24 | Groovy | Code | 35 | 152 | package uk.co.ceva24.twitterbot.domain
import groovy.transform.EqualsAndHashCode
import groovy.transform.ToString
import org.hibernate.annotations.Type
import org.joda.time.DateTime
import javax.persistence.Entity
import javax.persistence.Id
@Entity
@EqualsAndHashCode
@ToString(includePackage = false)
class Tweet {
... | 18,725 |
https://github.com/loadprofilegenerator/FutureLoadAnalyzer/blob/master/Common/Steps/ScenarioSliceParameters.cs | Github Open Source | Open Source | MIT | 2,020 | FutureLoadAnalyzer | loadprofilegenerator | C# | Code | 628 | 1,901 | using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using JetBrains.Annotations;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace Common.Steps {
public class ScenarioSliceParameters : IEquatable<ScenarioSliceParameters> {
public ScenarioSliceParameters([NotNull] Scena... | 15,972 |
https://github.com/philihp/rake-hooks/blob/master/Gemfile.rake-0.9.2.2 | Github Open Source | Open Source | MIT | 2,021 | rake-hooks | philihp | null | Spoken | 6 | 31 | source "http://rubygems.org"
gem "rake", "0.9.2.2"
gemspec
| 49,057 |
https://github.com/phelgo/Vectors/blob/master/Vectors/Vector3D.swift | Github Open Source | Open Source | MIT | 2,018 | Vectors | phelgo | Swift | Code | 473 | 1,136 | // Vector structs for Swift
// Copyright (c) 2015 phelgo. MIT licensed.
import SceneKit
public struct Vector3D: CustomDebugStringConvertible, CustomStringConvertible, Equatable, Hashable {
public let x: Double
public let y: Double
public let z: Double
public init(_ x: Double, _ y: Double, _ z: Do... | 19,603 |
https://github.com/Inesteem/ArxivAdvancedSearchPlotter/blob/master/arxiv_stats_fetcher.py | Github Open Source | Open Source | MIT | null | ArxivAdvancedSearchPlotter | Inesteem | Python | Code | 924 | 3,687 | #!/usr/bin/python3
import requests
from enum import IntEnum
import hashlib
from bs4 import BeautifulSoup #dependency: pip3 install BeautifulSoup4
from urllib.request import urlopen
import re
import sys
import os.path
import argparse #dependeny pip3 install matplotlib
import copy
import math
import matplotlib.pyplo... | 31,541 |
https://github.com/KDJ1221/daviscsclub.org/blob/master/app/containers/AccountPage/constants.js | Github Open Source | Open Source | MIT | 2,018 | daviscsclub.org | KDJ1221 | JavaScript | Code | 22 | 89 | /*
*
* AccountPage constants
*
*/
export const LOAD_USER_DATA = 'app/HomePage/LOAD_USER_DATA';
export const LOAD_USER_DATA_SUCCESS = 'app/HomePage/LOAD_USER_DATA_SUCCESS';
export const LOAD_USER_DATA_FAIL = 'app/HomePage/LOAD_USER_DATA_FAIL';
| 47,880 |
https://github.com/astridx/dimna/blob/master/src/components/Footer.js | Github Open Source | Open Source | MIT | null | dimna | astridx | JavaScript | Code | 131 | 529 | import React from 'react'
import { Link } from 'gatsby'
import gatsby from '../assets/gatsby.png'
import github from '../assets/nav-github.png'
const links = [
{ url: 'https://astrid-guenther.de/subscribe', label: 'Newsletter' },
{ url: 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KQMKUVA... | 16,965 |
https://github.com/phpMv/ubiquity-annotations/blob/master/src/Ubiquity/annotations/items/router/PutAnnotation.php | Github Open Source | Open Source | Apache-2.0 | null | ubiquity-annotations | phpMv | PHP | Code | 49 | 143 | <?php
namespace Ubiquity\annotations\items\router;
/**
* Defines a route with the `put` method
* Ubiquity\annotations\router$PostAnnotation
* This class is part of Ubiquity
*
* @author jcheron <myaddressmail@gmail.com>
* @version 1.0.0
*
*/
class PutAnnotation extends RouteAnnotation {
public function initAn... | 22,599 |
https://github.com/xt0rted/Cassette.Owin/blob/master/Cassette.Owin.sln | Github Open Source | Open Source | MIT | 2,014 | Cassette.Owin | xt0rted | null | Spoken | 177 | 1,390 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.21005.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{3CE8B5A8-CDA5-4A83-99E9-C81B19979691}"
ProjectSection(SolutionItems) ... | 38,867 |
https://github.com/secsaba/macports-ports/blob/master/java/openjdk11/files/patch-openjdk11-arm64-fix2.diff | Github Open Source | Open Source | BSD-3-Clause | null | macports-ports | secsaba | null | Spoken | 84 | 303 | --- src/hotspot/share/prims/jvmtiEnv.cpp.orig
+++ src/hotspot/share/prims/jvmtiEnv.cpp
@@ -3287,6 +3287,8 @@ JvmtiEnv::RawMonitorEnter(JvmtiRawMonitor * rmonitor) {
} else {
int r = 0;
Thread* thread = Thread::current();
+ // 8266889: raw_enter changes Java thread state, needs WXWrite
+ MACOS_AARCH64... | 6,046 |
https://github.com/Acrylic125/AcrylicMinecraftLib/blob/master/Universal/src/main/java/com/acrylic/universal/command/WrappedBukkitCommand.java | Github Open Source | Open Source | MIT | null | AcrylicMinecraftLib | Acrylic125 | Java | Code | 103 | 374 | package com.acrylic.universal.command;
import org.bukkit.command.CommandSender;
import org.bukkit.command.defaults.BukkitCommand;
import org.jetbrains.annotations.NotNull;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class WrappedBukkitCommand<E extends CommandExecuted>
... | 28,384 |
https://github.com/steadicat/Advance/blob/master/Advance/Animation/Decay/DecayAnimation.swift | Github Open Source | Open Source | BSD-2-Clause | 2,016 | Advance | steadicat | Swift | Code | 681 | 1,255 | /*
Copyright (c) 2016, Storehouse Media 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:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the fol... | 31,575 |
https://github.com/leenungky/eproc/blob/master/app/Models/TenderVendorSubmission.php | Github Open Source | Open Source | MIT | 2,020 | eproc | leenungky | PHP | Code | 603 | 2,995 | <?php
namespace App\Models;
use App\Enums\TenderStatusEnum;
use App\Enums\TenderSubmissionEnum;
use App\Helpers\App;
use App\Models\BaseModel;
use App\Scopes\VendorViewScope;
use App\TenderParameter;
use App\Traits\TenderLog;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\... | 34,357 |
https://github.com/bitJun/vue-tb/blob/master/mch/app/Model/ShopMember.php | Github Open Source | Open Source | MIT | 2,018 | vue-tb | bitJun | PHP | Code | 38 | 120 | <?php
namespace App\Model;
use Illuminate\Database\Eloquent\Model;
class ShopMember extends Model
{
//protected $connection;
protected $table = 'shop_member';
public function __construct($shop_id = '') {
parent::__construct();
$this->table = $shop_id ? 'shop_member_'.($shop... | 41,731 |
https://github.com/joiie/LightField/blob/master/src/debug.cpp | Github Open Source | Open Source | MIT | 2,019 | LightField | joiie | C++ | Code | 194 | 514 | #include "pch.h"
#include "debug.h"
#if defined _DEBUG
FILE* DebugLog { stderr };
FILE* OriginalStderr { stderr };
namespace {
char const* DebugLogPath = "/home/lumen/Volumetric/debug";
class DebugManager {
public:
DebugManager( ) {
::mkdir( DebugLogPath, 0700 );
... | 38,895 |
https://github.com/zadykian/postgres-marula/blob/master/src/Postgres.Marula.Tests/Calculations/MiddlewareComponents/ValueCalculationsMiddlewareTests.cs | Github Open Source | Open Source | MIT | 2,021 | postgres-marula | zadykian | C# | Code | 66 | 277 | using System.Threading.Tasks;
using NUnit.Framework;
using PipelineNet.Middleware;
using Postgres.Marula.Calculations.Pipeline;
using Postgres.Marula.Calculations.Pipeline.MiddlewareComponents;
using Postgres.Marula.Tests.Calculations.Base;
namespace Postgres.Marula.Tests.Calculations.MiddlewareComponents
{
/// <summ... | 14,908 |
https://github.com/flowable/flowable-engine/blob/master/modules/flowable-osgi/src/main/java/org/flowable/osgi/blueprint/ProcessEngineFactoryWithELResolver.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | flowable-engine | flowable | Java | Code | 189 | 615 | /* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed... | 39,433 |
https://github.com/david-yappeter/go-indodax/blob/master/api/endpoint.go | Github Open Source | Open Source | MIT | null | go-indodax | david-yappeter | Go | Code | 154 | 550 | package api
import (
"fmt"
"io"
"net/http"
"net/url"
)
func (c *Client) endpointServerTime(data url.Values) (string, string, io.Reader) {
return http.MethodGet, fmt.Sprintf("%s/%s/%s", c.BaseEndpoint, "api", "server_time"), nil
}
func (c *Client) endpointPairs(data url.Values) (string, string, io.Reader) {
ret... | 3,165 |
https://github.com/thesmartenergy/ontop/blob/master/ontop-jersey/src/main/java/com/github/thesmartenergy/ontop/jersey/Conneg.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,017 | ontop | thesmartenergy | Java | Code | 291 | 781 | /*
* Copyright 2016 ITEA 12004 SEAS Project.
*
* 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... | 51,508 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.