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/iamwebdesigner/react-native-modern-sample/blob/master/js/components/Sidebar.js | Github Open Source | Open Source | MIT | null | react-native-modern-sample | iamwebdesigner | JavaScript | Code | 141 | 509 | import React, { Component } from 'react';
import { View, Text, AsyncStorage } from 'react-native';
import { Button } from 'native-base';
import { UserTypes } from './../store';
import Client from './Client';
import Owner from './Owner';
import Courier from './Courier';
import MenuButton from './MenuButton';
import { Ac... | 14,853 |
https://github.com/luckas72/Anki_Addon_Exporter/blob/master/src/anki_addon_exporter.py | Github Open Source | Open Source | MIT | 2,022 | Anki_Addon_Exporter | luckas72 | Python | Code | 187 | 1,147 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'anki_addon_exporter.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import ... | 42,528 |
https://github.com/cloudiator/visor/blob/master/visor-base/src/main/java/de/uniulm/omi/cloudiator/visor/config/AwsIpWebService.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | visor | cloudiator | Java | Code | 271 | 640 | /*
* Copyright (c) 2014-2015 University of Ulm
*
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. 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... | 4,753 |
https://github.com/jongsue/Semantic-UI-React/blob/master/test/specs/modules/Dropdown/Dropdown-test.js | Github Open Source | Open Source | MIT | null | Semantic-UI-React | jongsue | JavaScript | Code | 7,674 | 25,439 | import _ from 'lodash'
import faker from 'faker'
import React from 'react'
import * as common from 'test/specs/commonTests'
import { consoleUtil, domEvent, sandbox } from 'test/utils'
import Dropdown from 'src/modules/Dropdown/Dropdown'
import DropdownDivider from 'src/modules/Dropdown/DropdownDivider'
import Dropdown... | 23,131 |
https://github.com/Bahaaib/MarketaApp/blob/master/app/src/main/java/com/example/bahaa/marketa/GameDetailsActivity.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | MarketaApp | Bahaaib | Java | Code | 648 | 2,487 | package com.example.bahaa.marketa;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.content.Intent;
import android.graphics.Point;
import android.os.Bundle;
import android.support.design.widget.Snackbar... | 11,048 |
https://github.com/galizia-lab/pyview/blob/master/view/gui/ILTIS_transfer_dialog.py | Github Open Source | Open Source | BSD-3-Clause | 2,021 | pyview | galizia-lab | Python | Code | 156 | 802 | from PyQt5.QtWidgets import QMainWindow, QWidget, QVBoxLayout, QHBoxLayout, QAbstractItemView, QGroupBox, \
QMessageBox, QDesktopWidget, QListWidget, QListWidgetItem, QPushButton, QHeaderView
from PyQt5.QtCore import pyqtSignal
from .custom_widgets import QTableWidgetPandasDF
import pandas as pd
class ILTISTransf... | 51,880 |
https://github.com/sndsgd/sndsgd-task/blob/master/tests/task-resources/NestedTask.php | Github Open Source | Open Source | MIT | 2,015 | sndsgd-task | sndsgd | PHP | Code | 37 | 107 | <?php
namespace sndsgd\task;
/**
* @codeCoverageIgnore
*/
class ExampleNestedTask extends ExampleAddTask
{
const VERSION = '1.0.0';
const DESCRIPTION = 'THIS EXISTS SOLEY TO TEST Task::validateClassname';
/**
* {@inheritdoc}
*/
public function run()
{
return true;
}
}
| 26,280 |
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/j/jasmine/src/main/scala/typingsSlinky/jasmine/jasmine/EnvConfiguration.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | ScalablyTyped | Scala | Code | 240 | 958 | package typingsSlinky.jasmine.jasmine
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
/**
* Configuration that can be used when configuring Jasmine via {@link jasmine.Env.con... | 16,600 |
https://github.com/nguyer/aws-sdk-js-v3/blob/master/clients/browser/client-s3-browser/types/_AccessControlTranslation.ts | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,020 | aws-sdk-js-v3 | nguyer | TypeScript | Code | 51 | 144 | /**
* <p>A container for information about access control for replicas.</p>
*/
export interface _AccessControlTranslation {
/**
* <p>Specifies the replica ownership. For default and valid values, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTreplication.html">PUT bucket replication</a... | 29,613 |
https://github.com/cwong-24/PTPortal/blob/master/frontend/src/Components/ExerciseLibrary/Library.test.js | Github Open Source | Open Source | MIT | null | PTPortal | cwong-24 | JavaScript | Code | 163 | 558 | import React from 'react'
import {configure, shallow} from 'enzyme'
import Adaptor from 'enzyme-adapter-react-16'
import {Library} from './Library'
import List from "@material-ui/core/List";
import {ListItem} from "@material-ui/core";
import { PlayArrow } from "@material-ui/icons";
import Checkbox from "@material-ui/co... | 6,764 |
https://github.com/nullisnotnone/workFiles/blob/master/yunjing/js/index.js | Github Open Source | Open Source | MIT | 2,017 | workFiles | nullisnotnone | JavaScript | Code | 8 | 19 | /**
* Created by huipu on 2017/10/24.
*/
| 47,282 |
https://github.com/vitorenesduarte/planet_sim/blob/master/fantoch/src/protocol/gc/basic.rs | Github Open Source | Open Source | Apache-2.0, MIT | 2,022 | planet_sim | vitorenesduarte | Rust | Code | 78 | 222 | use crate::id::Dot;
use crate::HashMap;
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct BasicGCTrack {
n: usize,
dot_to_count: HashMap<Dot, usize>,
}
impl BasicGCTrack {
pub fn new(n: usize) -> Self {
Self {
n,
dot_to_count: HashMap::new(),
}
}
/// Record... | 47,337 |
https://github.com/pyocd/pyOCD/blob/master/pyocd/target/builtin/target_HC32F160.py | Github Open Source | Open Source | CC-BY-4.0, Apache-2.0 | 2,023 | pyOCD | pyocd | Python | Code | 726 | 4,140 | # pyOCD debugger
# Copyright (c) 2021 Huada Semiconductor Corporation
# SPDX-License-Identifier: Apache-2.0
#
# 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/licen... | 31,189 |
https://github.com/lanza/eduterm/blob/master/.ccls-cache/@@home@lanza@Documents@tutorials@termemu@eduterm/@usr@include@x86_64-linux-gnu@bits@wordsize.h | Github Open Source | Open Source | MIT | null | eduterm | lanza | C | Code | 54 | 166 | /* Determine the wordsize from the preprocessor defines. */
#if defined __x86_64__ && !defined __ILP32__
#define __WORDSIZE 64
#else
#define __WORDSIZE 32
#define __WORDSIZE32_SIZE_ULONG 0
#define __WORDSIZE32_PTRDIFF_LONG 0
#endif
#ifdef __x86_64__
#define __WORDSIZE_TIME64_COMPAT32 1
/* Both x86-64 and x32 use the... | 8,909 |
https://github.com/weicong-5/new/blob/master/school/frontend/views/status/teacher/students_of_room.php | Github Open Source | Open Source | BSD-3-Clause | 2,017 | new | weicong-5 | PHP | Code | 115 | 597 | <?php
/**
* Created by PhpStorm.
* User: RedSun
* Date: 2017/9/6
* Time: 17:40
*/
use common\models\Student;
use yii\data\ActiveDataProvider;
use yii\widgets\Pjax;
use yii\grid\GridView;
use kartik\helpers\Html;
use yii\widgets\Breadcrumbs;
//echo $grade." ".$room." ".$school;
$query = Student::find()->where... | 26,279 |
https://github.com/rtpHarry/Bootstrap3-ShowManySlideOneCarousel/blob/master/src/less/bootstrap3-showmanyslideonecarousel.less | Github Open Source | Open Source | MIT | 2,020 | Bootstrap3-ShowManySlideOneCarousel | rtpHarry | Less | Code | 190 | 730 | .carousel-showmanymoveone
{
.carousel-control
{
width: 4%;
background-image:none;
&.left
{
margin-left:15px;
}
&.right
{
margin-right:15px;
}
}
.cloneditem-1,
.cloneditem-2,
.cloneditem-3
{
display: none;
}
.carousel-inner
{
@media all and... | 15,917 |
https://github.com/sonyjun7/Test/blob/master/Web-Video-Editor-master/web/video_db_insert.php | Github Open Source | Open Source | MIT | 2,020 | Test | sonyjun7 | PHP | Code | 74 | 297 | <?php
$videopost = $_POST['videoName'];
$typepost = $_POST['videotype'];
$v_name_type = $videopost.'.'.$typepost;
$idx = $_POST['idx'];
$id = $_POST['id'];
$db = new mysqli("192.168.1.183", "test", "kssikssi", "arvr_web2");
// $db = new mysqli("175.198.74.238", "test", "kssikssi", "arvr_web... | 46,951 |
https://github.com/neoneye/loda/blob/master/programs/oeis/181/A181406.asm | Github Open Source | Open Source | Apache-2.0 | 2,022 | loda | neoneye | Assembly | Code | 55 | 176 | ; A181406: Symbolic sequence at the accumulation point of the 3*2^{k} supercycles of unimodal maps.
; 1,0,0,1,0,1,1,0,0,1,0,0,1,0,1,1,0,0,1,0,1,1,0,0,1,0,1,1,0,1,1,0,1
mul $0,4
seq $0,157449 ; Difference between n and the sum of its divisors except 1 and itself.
max $0,0
seq $0,197870 ; Expansion of false theta series... | 13,089 |
https://github.com/amtee/platform/blob/master/src/Recovery/Test/e2e/cypress/integration/updater/pre-update/wishlist.spec.js | Github Open Source | Open Source | MIT, LicenseRef-scancode-generic-cla | 2,021 | platform | amtee | JavaScript | Code | 222 | 1,379 | /// <reference types="Cypress" />
import ProductPageObject from '../../../support/pages/module/sw-product.page-object';
describe('activate wishlist and add product before update', ()=>{
beforeEach(() => {
cy.authenticate().then((result) => {
const requestConfig = {
headers: {
... | 4,062 |
https://github.com/strikertanmay/event-triggers/blob/master/templates/Add_Project/text.hbs | Github Open Source | Open Source | MIT | 2,021 | event-triggers | strikertanmay | null | Spoken | 8 | 11 | Hey !
Your Project is successfully added !
| 20,254 |
https://github.com/tt-econ/openicpsr-125682/blob/master/lib/matlab/gslab_mle/test/testMleData/testData.m | Github Open Source | Open Source | BSD-3-Clause, CC-BY-4.0 | 2,021 | openicpsr-125682 | tt-econ | MATLAB | Code | 104 | 528 | function testMleData
%
% Unit test for MleData class
%
addpath(genpath(fullfile(fileparts(fileparts(pwd)), 'external')))
addpath(genpath(fullfile(fileparts(fileparts(pwd)), 'depend')))
addpath(genpath(fullfile(fileparts(fileparts(pwd)), 'm')))
% Set up data
data = MleData('File', '../../external/da... | 13,899 |
https://github.com/gobrightspot/nova-detached-actions/blob/master/resources/js/components/Heroicons/Group.vue | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | nova-detached-actions | gobrightspot | Vue | Code | 106 | 213 | <template>
<path
d="M9 12A5 5 0 1 1 9 2a5 5 0 0 1 0 10zm0-2a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm7 11a1 1 0 0 1-2 0v-2a3 3 0 0 0-3-3H7a3 3 0 0 0-3 3v2a1 1 0 0 1-2 0v-2a5 5 0 0 1 5-5h4a5 5 0 0 1 5 5v2zm1-5a1 1 0 0 1 0-2 5 5 0 0 1 5 5v2a1 1 0 0 1-2 0v-2a3 3 0 0 0-3-3zm-2-4a1 1 0 0 1 0-2 3 3 0 0 0 0-6 1 1 0 0 1 0-2 5 5 0 0 ... | 17,154 |
https://github.com/Amr-F/QA-master-ar/blob/master/resources/views/expenses/create.blade.php | Github Open Source | Open Source | MIT | null | QA-master-ar | Amr-F | PHP | Code | 108 | 584 | @extends('layouts.sidebar')
@extends('layouts.app')
@section('content')
<div class="text-right mb-5">
<button type="button" onclick="window.location.href='/expenses/index';"
class="btn btn-success">عرض كل المصاريف</button>
</div>
<div class="wrapper-pur wrapper--w960">
<... | 9,412 |
https://github.com/xxwei/nvrdemo/blob/master/http_manger.h | Github Open Source | Open Source | MIT | 2,018 | nvrdemo | xxwei | C++ | Code | 235 | 883 | #pragma once
#include "stdprj.h"
#include "mongoose.h"
#define MAX_ACTION_LEN 20
#define MAX_COMMAND_LEN 20
#define MAX_ARG_LEN 20
#define MAX_REQUEST_SIZE 15
#define MAX_SEARCH_LEN 128
#define MAX_NAME_LEN 128
#define MAX_TEXT_LEN 2048
static const char *options[] = {
"document_root", "html",
"listening_port... | 38,863 |
https://github.com/alldatacenter/alldata/blob/master/studio/micro-services/SREWorks/paas/nacos/tesla-nacos-opensource/config/src/main/java/com/alibaba/nacos/config/server/utils/SingletonRepository.java | Github Open Source | Open Source | Apache-2.0, Python-2.0, LicenseRef-scancode-unknown-license-reference, BSD-3-Clause, EPL-1.0, LGPL-2.0-or-later, MIT, MPL-2.0, GPL-2.0-only, JSON | 2,023 | alldata | alldatacenter | Java | Code | 202 | 518 | /*
* Copyright 1999-2018 Alibaba Group Holding Ltd.
*
* 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... | 803 |
https://github.com/natsu90/whatsbot/blob/master/app/models/OutboxMessage.php | Github Open Source | Open Source | MIT | null | whatsbot | natsu90 | PHP | Code | 22 | 73 | <?php
use Jenssegers\Mongodb\Model as Eloquent;
class OutboxMessage extends Eloquent {
protected $table = 'outbox_message';
protected $fillable = array('to', 'message', 'is_sent', 'inbox_id');
} | 17,133 |
https://github.com/jakub-musik/react-instantsearch/blob/master/stories/RefreshCache.stories.js | Github Open Source | Open Source | MIT | 2,021 | react-instantsearch | jakub-musik | JavaScript | Code | 430 | 1,238 | import React, { Component } from 'react';
import { storiesOf } from '@storybook/react';
import algoliasearch from 'algoliasearch/lite';
import { InstantSearch, SearchBox, Configure } from 'react-instantsearch-dom';
import { CustomHits, Content } from './util';
const stories = storiesOf('RefreshCache', module);
const ... | 47,313 |
https://github.com/mohshbool/Management-System/blob/master/app/routes/editTransaction.py | Github Open Source | Open Source | MIT | 2,020 | Management-System | mohshbool | Python | Code | 430 | 1,406 | import json
from flask import Flask, render_template, redirect, request, jsonify, make_response
from app.models import User, Client, Inventory, Transaction, TransactionDetail
from app import db, app
from app.app import CASH_CLIENT_ID
from app.routes.helper import prepareTransactions
from datetime import datetime
@app... | 3,778 |
https://github.com/solversa/mondrian-rest-ui/blob/master/src/components/ChartContainer.js | Github Open Source | Open Source | MIT | 2,019 | mondrian-rest-ui | solversa | JavaScript | Code | 598 | 2,403 | import React, { Component } from "react";
import PropTypes from "prop-types";
import { connect } from "react-redux";
import {
Grid,
Row,
Col,
Well,
FormGroup,
InputGroup,
FormControl,
Glyphicon
} from "react-bootstrap";
import values from "lodash/values";
import map from "lodash/map";
import fromPairs ... | 12,743 |
https://github.com/nielse63/pytemplate/blob/master/test/test_pytemplate_howdy.py | Github Open Source | Open Source | MIT | null | pytemplate | nielse63 | Python | Code | 35 | 106 | from pytemplate.howdy import Howdy
TEST_MESSAGE = "howdy"
TEST_NAME = "Erik"
def test_attributes():
instance = Howdy(TEST_MESSAGE)
assert instance.message == TEST_MESSAGE
def test_hello():
instance = Howdy(TEST_MESSAGE)
message = instance.hello(TEST_NAME)
assert TEST_MESSAGE in message
asse... | 27,527 |
https://github.com/torrances/swtk-eng/blob/master/eng-stanford/src/main/java/org/swtk/eng/stanford/dto/adapter/DepResultAdapter.java | Github Open Source | Open Source | Apache-2.0 | null | swtk-eng | torrances | Java | Code | 66 | 325 | package org.swtk.eng.stanford.dto.adapter;
import org.swtk.eng.stanford.dto.DepResult;
import org.w3c.dom.Element;
import com.trimc.blogger.commons.exception.AdapterValidationException;
import com.trimc.blogger.commons.type.StanfordDependencyType;
public final class DepResultAdapter {
public static DepResult trans... | 17,371 |
https://github.com/Sockenfresser/adr-starter/blob/master/sm-core-model-api/src/main/java/com/salesmanager/core/integration/merchant/MerchantStoreUpdatedEvent.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | adr-starter | Sockenfresser | Java | Code | 17 | 85 | package com.salesmanager.core.integration.merchant;
import com.salesmanager.common.model.integration.UpdatedEvent;
public class MerchantStoreUpdatedEvent extends UpdatedEvent<MerchantStoreDTO> {
public MerchantStoreUpdatedEvent(MerchantStoreDTO dto) {
super(dto);
}
}
| 16,436 |
https://github.com/keshavdv/spotifly/blob/master/lib/spotify.js | Github Open Source | Open Source | MIT | null | spotifly | keshavdv | JavaScript | Code | 4,720 | 12,732 | /**
* Module dependencies.
*/
var lame = require('lame');
var Speaker = require('speaker');
var vm = require('vm');
var util = require('./util');
var http = require('http');
var WebSocket = require('ws');
var cheerio = require('cheerio');
var schemas = require('./schemas');
var superagent = require('superagent');
va... | 42,526 |
https://github.com/jpd002/Play-/blob/master/Source/OsStructManager.h | Github Open Source | Open Source | BSD-2-Clause | 2,023 | Play- | jpd002 | C++ | Code | 240 | 865 | #pragma once
#include "Types.h"
#include <cassert>
#include <exception>
template <typename StructType>
class COsStructManager
{
public:
class iterator
{
public:
iterator(const COsStructManager& container, uint32 id)
: m_container(container)
, m_id(id)
{
}
iterator& operator++()
{
m_id++;
... | 33,601 |
https://github.com/interkosmos/fortran-motif/blob/master/examples/click/click.f90 | Github Open Source | Open Source | 0BSD | 2,020 | fortran-motif | interkosmos | null | Spoken | 636 | 2,311 | ! click.f90
!
! Example Fortran application that shows an XmPushButton widget inside a Motif
! window.
!
! Author: Philipp Engel
! Licence: ISC
module callback
use, intrinsic :: iso_c_binding
use :: xm
use :: xt
implicit none
private
public :: click_callback
public :: quit_callback
contains... | 40,609 |
https://github.com/ThanksBoomerang/graphql-core-legacy/blob/master/graphql/backend/tests/test_base.py | Github Open Source | Open Source | MIT | 2,021 | graphql-core-legacy | ThanksBoomerang | Python | Code | 72 | 287 | import pytest
from .. import get_default_backend, set_default_backend, GraphQLCoreBackend
def test_get_default_backend_returns_core_by_default():
# type: () -> None
backend = get_default_backend()
assert isinstance(backend, GraphQLCoreBackend)
def test_set_default_backend():
# type: () -> None
d... | 28,999 |
https://github.com/madhurimamandal/codeql/blob/master/java/ql/test/stubs/jackson-core-2.12/com/fasterxml/jackson/core/JsonParseException.java | Github Open Source | Open Source | MIT | 2,022 | codeql | madhurimamandal | Java | Code | 22 | 66 | /*
* Jackson JSON-processor.
*
* Copyright (c) 2007- Tatu Saloranta, tatu.saloranta@iki.fi
*/
package com.fasterxml.jackson.core;
public class JsonParseException extends Exception {
}
| 43,711 |
https://github.com/bsenechal/Projet-TX/blob/master/packages/contrib/mean-admin/public/controllers/tags.js | Github Open Source | Open Source | MIT | null | Projet-TX | bsenechal | JavaScript | Code | 114 | 396 | 'use strict';
angular.module('mean.mean-admin').controller('AdminTagsController', ['$scope', 'Global', 'Menus', '$rootScope', '$http', 'Tags',
function($scope, Global, Menus, $rootScope, $http, Tags) {
$scope.global = Global;
$scope.tagSchema = [{
label: 'label',
schemaKey: ... | 39,035 |
https://github.com/aebenw/nyc-pigeon-organizer-dumbo-web-080618/blob/master/nyc_pigeon_organizer.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain | 2,018 | nyc-pigeon-organizer-dumbo-web-080618 | aebenw | Ruby | Code | 69 | 242 | def nyc_pigeon_organizer(data)
pigeon = {}
data.each do |info, hashish|
hashish.each do |trait, birds|
birds.each do |bird|
if pigeon.has_key?(bird)
if pigeon[bird].has_key?(info)
pigeon[bird][info] << trait.to_s
els... | 35,676 |
https://github.com/tobyweston/radiate/blob/master/src/main/scala/bad/robot/radiate/teamcity/TeamCityObject.scala | Github Open Source | Open Source | Apache-2.0 | 2,020 | radiate | tobyweston | Scala | Code | 4 | 18 | package bad.robot.radiate.teamcity
trait TeamCityObject
| 43,126 |
https://github.com/4z3/nixpkgs/blob/master/nixos/modules/services/networking/iodined.nix | Github Open Source | Open Source | MIT | 2,022 | nixpkgs | 4z3 | null | Spoken | 249 | 629 | # NixOS module for iodine, ip over dns daemon
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.iodined;
iodinedUser = "iodined";
in
{
### configuration
options = {
services.iodined = {
enable = mkOption {
type = types.bool;
default = false;
description ... | 5,319 |
https://github.com/nuxy/amazon_s3_sync/blob/master/js/amazon_s3_sync.js | Github Open Source | Open Source | MIT | null | amazon_s3_sync | nuxy | JavaScript | Code | 63 | 197 | (function($) {
Drupal.behaviors.amazon_s3_sync = {
attach: function(context, settings) {
var table = $('#edit-aws-regions');
// Enable Endpoint options for selected Regions.
function enableSelected() {
var options = $('#edit-endpoint option');
$('tbody .form-checkbox', table).e... | 52,384 |
https://github.com/jusjus112/frontity-test/blob/master/wermedia/node_modules/frontity/dist/src/commands/create-package.d.ts | Github Open Source | Open Source | Apache-2.0 | null | frontity-test | jusjus112 | TypeScript | Code | 29 | 67 | import { EventPromised } from "../utils/eventPromised";
import { Options } from "../steps/create-package";
declare type EventTypes = "error" | "message";
declare const _default: (options?: Options) => EventPromised<EventTypes>;
export default _default;
| 25,470 |
https://github.com/Tr-1234/seahub/blob/master/media/assets/scripts/app/views/starred-file.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | seahub | Tr-1234 | JavaScript | Code | 235 | 858 | define([
'jquery',
'underscore',
'backbone',
'common',
'jquery.magnific-popup',
'app/views/starred-file-item',
'app/collections/starred-files',
], function($, _, Backbone, Common, magnificPopup, StarredFileItem,
StarredFilesCollection) {
'use strict';
var StarredFileView = Backb... | 10,312 |
https://github.com/ankityddv/Hostel-OP-/blob/master/HCI/View Controllers/TabBarVC/MenuSubVC/AppIconTableViewCell.swift | Github Open Source | Open Source | MIT | 2,021 | Hostel-OP- | ankityddv | Swift | Code | 64 | 211 | //
// AppIconTableViewCell.swift
// HCI
//
// Created by Ankit on 03/10/20.
// Give me suggestion on twitter @ankityddv (www.twitter.com/ankityddv)
import UIKit
class AppIconTableViewCell: UITableViewCell {
@IBOutlet weak var logoImageView: UIImageView!
@IBOutlet weak var iconTitile: UILabel!
ov... | 17,452 |
https://github.com/Chiquitaprabhu/activiti-demo/blob/master/node_modules/@alfresco/js-api/_esm2015/src/api/gs-core-rest-api/api/transfers.api.js | Github Open Source | Open Source | MIT | null | activiti-demo | Chiquitaprabhu | JavaScript | Code | 283 | 683 | /*!
* @license
* Copyright 2018 Alfresco Software, Ltd.
*
* 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 la... | 5,324 |
https://github.com/d0scoo1/naga_contracts/blob/master/mainnet/contracts/0x927e1e532d25958c1c8cd4908ab8d1b27d3978e8_Borrower/contracts/protocol/core/CreditLine.sol | Github Open Source | Open Source | MIT | 2,023 | naga_contracts | d0scoo1 | Gerber Image | Code | 347 | 1,082 | // SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import "./GoldfinchConfig.sol";
import "./BaseUpgradeablePausable.sol";
import "../../interfaces/IERC20withDec.sol";
/**
* @title CreditLine
* @notice A "dumb" state container that represents the agreement between an Underwri... | 42,991 |
https://github.com/lfaureyt/rx-player/blob/master/src/manifest/representation_index/static.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | rx-player | lfaureyt | TypeScript | Code | 389 | 871 | /**
* Copyright 2015 CANAL+ Group
*
* 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 t... | 53,274 |
https://github.com/excaliburjs/Excalibur/blob/master/src/spec/WebGLUtilSpec.ts | Github Open Source | Open Source | BSD-2-Clause | 2,023 | Excalibur | excaliburjs | TypeScript | Code | 154 | 963 | import * as ex from '@excalibur';
describe('WebGL Util', () => {
it('can return the size of a gl type in bytes', () => {
const canvas = document.createElement('canvas');
const context = new ex.ExcaliburGraphicsContextWebGL({
canvasElement: canvas,
backgroundColor: ex.Color.Red
});
const ... | 41,875 |
https://github.com/ikuz/camkes/blob/master/apps/picoserver/components/Echo/src/echo.c | Github Open Source | Open Source | BSD-2-Clause | 2,020 | camkes | ikuz | C | Code | 366 | 1,146 | /*
* Copyright 2019, Data61
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
* ABN 41 687 119 230.
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(DATA... | 26,713 |
https://github.com/ReneNyffenegger/ToyLang/blob/master/lite/main.py | Github Open Source | Open Source | MIT | 2,020 | ToyLang | ReneNyffenegger | Python | Code | 175 | 671 | from lark import Lark, exceptions
from lite_ast import *
from lite_transformer import LiteTransformer
from lite_errors import *
import os
import sys
__version__ = "1.0.3"
def get_correct_path(relative_path):
try:
base_path = sys.__MEIPASS
except:
base_path = os.path.abspath(".")
retu... | 10,931 |
https://github.com/krishnarafay/ruckstack/blob/master/builder/internal/docker/docker.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | ruckstack | krishnarafay | Go | Code | 584 | 2,024 | package docker
import (
"archive/zip"
"context"
"fmt"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/filters"
"github.com/docker/docker/api/types/network"
"github.com/docker/docker/client"
"github.com/docker/docker/pkg/jsonmessage"
"git... | 34,180 |
https://github.com/jeremylong/DependencyCheck/blob/master/core/src/main/java/org/owasp/dependencycheck/xml/assembly/GrokHandler.java | Github Open Source | Open Source | EPL-1.0, MPL-1.0, Apache-2.0, LicenseRef-scancode-unknown-license-reference, MPL-1.1 | 2,023 | DependencyCheck | jeremylong | Java | Code | 635 | 1,429 | /*
* This file is part of dependency-check-core.
*
* 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 ... | 27,465 |
https://github.com/Yannic/core/blob/master/src/docker/ros/BUILD.bazel | Github Open Source | Open Source | Apache-2.0 | 2,020 | core | Yannic | Starlark | Code | 140 | 496 | package(default_visibility = ["//visibility:public"])
load("@io_bazel_rules_docker//container:container.bzl", "container_image")
load("@io_bazel_rules_docker//python:image.bzl", "py_image")
# Add du(1), /bin/sh and /usr/bin/env to the image.
# du(1) is used on startup to see the disk usage due to logs (which will be
... | 40,914 |
https://github.com/agotetyx/Foodie-Choosey-3D-Godot-/blob/master/.import/onionHalf.obj-6619d1aed1583a3d24570b60fb690b0a.md5 | Github Open Source | Open Source | CC0-1.0 | 2,020 | Foodie-Choosey-3D-Godot- | agotetyx | null | Spoken | 2 | 53 | source_md5="3fa6cb468e9844d109687572a058abb6"
dest_md5="da0ddd6c092588c6a04971d54be6946f"
| 31,778 |
https://github.com/Xyene/Markus/blob/master/app/assets/stylesheets/sections.scss | Github Open Source | Open Source | MIT | 2,021 | Markus | Xyene | SCSS | Code | 7 | 29 | @import 'common/core';
.table {
margin-top: $dimen-vertical;
}
| 18,172 |
https://github.com/sqf-ice/OpenCrypto/blob/master/downloads.sh | Github Open Source | Open Source | Apache-2.0 | 2,020 | OpenCrypto | sqf-ice | Shell | Code | 217 | 1,672 | #
# Copyright 2020 Andrew Li, Gavin Li
#
# li.andrew.mail@gmail.com
# gavinux@gmail.com
#
# 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/LI... | 4,926 |
https://github.com/OpenWaterAnalytics/epanet-dev/blob/master/src/Elements/pattern.cpp | Github Open Source | Open Source | MIT, LicenseRef-scancode-public-domain | 2,022 | epanet-dev | OpenWaterAnalytics | C++ | Code | 377 | 994 | /* EPANET 3
*
* Copyright (c) 2016 Open Water Analytics
* Licensed under the terms of the MIT License (see the LICENSE file for details).
*
*/
#include "pattern.h"
#include "Utilities/mempool.h"
#include <limits>
using namespace std;
//----------------------------------------------------------------------------... | 54,259 |
https://github.com/dgreid/platform2/blob/master/biod/ec_command_factory.cc | Github Open Source | Open Source | BSD-3-Clause | 2,021 | platform2 | dgreid | C++ | Code | 101 | 415 | // Copyright 2019 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "biod/ec_command_factory.h"
#include "biod/fp_flashprotect_command.h"
#include "biod/fp_info_command.h"
namespace biod {
std::unique_ptr<EcC... | 45,238 |
https://github.com/JsonBin/WBAlamofire/blob/master/Source/WBAlBaseRequest.swift | Github Open Source | Open Source | MIT | 2,019 | WBAlamofire | JsonBin | Swift | Code | 1,225 | 3,007 | //
// WBAlBaseRequest.swift
// WBAlamofire
//
// Created by zwb on 17/3/31.
// Copyright © 2017年 HengSu Technology. All rights reserved.
//
import Foundation
import Alamofire
#if os(iOS)
import UIKit
#endif
/// WBAlBaseRequest是实现BaseRequest的类,是完成基础的默认参数的设置,
/// 在这里面实现所有的基本参数的重写
/// WBAlBaseRequest is to rea... | 20,811 |
https://github.com/kimdhoe/kimdhoe.github.io/blob/master/src/pages/sol-lewitt/wall-drawing-122.js | Github Open Source | Open Source | MIT | 2,019 | kimdhoe.github.io | kimdhoe | JavaScript | Code | 710 | 2,086 | import React from 'react'
import { css } from 'glamor'
import random from 'canvas-sketch-util/random'
import Layout from '../../components/layout'
const LINE_WIDTH = 2
class Sol122 extends React.Component {
canvas = React.createRef()
state = {
width: 0,
height: 0,
}
componentDidMount () {
const... | 50,210 |
https://github.com/couchand/tinyprofiler-client/blob/master/src/fetch.coffee | Github Open Source | Open Source | MIT | null | tinyprofiler-client | couchand | CoffeeScript | Code | 68 | 155 | # fetch a profile from the server
xtend = require 'xtend'
defaults =
path: "tp"
module.exports = fetcher = (opts) ->
options = xtend {}, defaults, opts
unless window.fetch
throw new Error "No fetch global available, too lazy to fallback to XHR."
fetch = (id, cb) ->
window.fetch "/#{options.path}/#{... | 6,849 |
https://github.com/yminchen/ROB590_One_Leg_Hopper/blob/master/EventsFcn/EventsFcn_Cstance.m | Github Open Source | Open Source | MIT | 2,017 | ROB590_One_Leg_Hopper | yminchen | MATLAB | Code | 33 | 70 | function [position,isterminal,direction] = EventsFcn_Cstance(t,x,L)
position = x(4); % The value that we want to be zero
isterminal = 1; % Halt integration
direction = 1; % The direction that the zero is approached | 7,759 |
https://github.com/mekanism/Mekanism/blob/master/src/main/java/mekanism/client/jei/machine/NucleosynthesizingRecipeCategory.java | Github Open Source | Open Source | MIT | 2,023 | Mekanism | mekanism | Java | Code | 247 | 1,354 | package mekanism.client.jei.machine;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import mekanism.api.chemical.gas.GasStack;
import mekanism.api.math.FloatingLong;
import mekanism.api.recipes.NucleosynthesizingRecipe;
import mekanism.client.gui.element.GuiInnerScreen;
import mekanis... | 22,607 |
https://github.com/vbondarevsky/c-plus-plus-specialization/blob/master/yellow/week4/merge_sort/CMakeLists.txt | Github Open Source | Open Source | MIT | 2,019 | c-plus-plus-specialization | vbondarevsky | CMake | Code | 7 | 50 | cmake_minimum_required(VERSION 3.13)
project(merge_sort)
set(CMAKE_CXX_STANDARD 14)
add_executable(merge_sort main.cpp) | 46,405 |
https://github.com/kevinchandra940/Instagram-Engagement-Calculator/blob/master/node_modules/@sindresorhus/string-hash/index.js | Github Open Source | Open Source | MIT | 2,020 | Instagram-Engagement-Calculator | kevinchandra940 | JavaScript | Code | 27 | 71 | 'use strict';
const fnv1a = require('@sindresorhus/fnv1a');
const stringHash = string => fnv1a(string);
module.exports = stringHash;
// TODO: remove this in the next major version
module.exports.default = stringHash;
| 44,054 |
https://github.com/kokizzu/go-sonic-json/blob/master/issue_test/issue138_test.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | go-sonic-json | kokizzu | Go | Code | 249 | 633 | /*
* Copyright 2021 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 11,458 |
https://github.com/LauLamanApps/ecurring-api/blob/master/src/Http/Exception/ApiCallException.php | Github Open Source | Open Source | MIT | 2,018 | ecurring-api | LauLamanApps | PHP | Code | 13 | 67 | <?php
declare(strict_types=1);
namespace LauLamanApps\eCurring\Http\Exception;
use LauLamanApps\eCurring\Exception\eCurringException;
final class ApiCallException extends eCurringException
{
}
| 42,162 |
https://github.com/cmhoc/backbone/blob/master/google-interface/auth.go | Github Open Source | Open Source | MIT | null | backbone | cmhoc | Go | Code | 70 | 244 | package google
import (
"backbone/tools"
"fmt"
"golang.org/x/net/context"
"golang.org/x/oauth2/google"
"gopkg.in/Iwark/spreadsheet.v2"
"io/ioutil"
)
//for use in other sheets related functions
var sheet *spreadsheet.Service
func GoogleAuth() error {
data, err := ioutil.ReadFile(tools.Conf.GetString("googletok... | 19,019 |
https://github.com/Jean-Baptiste-Lasselle/deploiement-usine-logicielle.com/blob/master/app/assets/styles/widgets/course/summary/summary.less | Github Open Source | Open Source | Apache-2.0 | null | deploiement-usine-logicielle.com | Jean-Baptiste-Lasselle | Less | Code | 22 | 103 |
.summary mark{
background-color: transparent;
}
.summary .romana_section_title{
padding-bottom: 40px;
}
.summary.aside h2{
font-weight: 700;
font-size: 30px;
}
.summary.aside .romana_section_title{
padding-bottom: 20px;
}
| 8,315 |
https://github.com/601695931/sdc/blob/master/openecomp-be/lib/openecomp-sdc-validation-lib/openecomp-sdc-validation-api/src/main/java/org/openecomp/core/validation/types/FileValidationContext.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | sdc | 601695931 | Java | Code | 181 | 394 | /*-
* ============LICENSE_START=======================================================
* SDC
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
* ===================================================================... | 6,351 |
https://github.com/reputation-network/rey-sdk-js/blob/master/dist/structs/proof.js | Github Open Source | Open Source | MIT | null | rey-sdk-js | reputation-network | JavaScript | Code | 105 | 350 | "use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("../utils");
const session_1 = __importDefault(require("./session"));
const sign... | 24,746 |
https://github.com/dtahir57/realEstate/blob/master/app/Http/Controllers/RolesController.php | Github Open Source | Open Source | MIT | null | realEstate | dtahir57 | PHP | Code | 250 | 807 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Spatie\Permission\Models\Role;
use Spatie\Permission\Models\Permission;
use App\Http\Requests\RolesRequest;
class RolesController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Respons... | 38,077 |
https://github.com/pawelmarkowski/cmsplugin-filer/blob/master/cmsplugin_filer_file/locale/pl_PL/LC_MESSAGES/django.po | Github Open Source | Open Source | 2,020 | cmsplugin-filer | pawelmarkowski | Gettext Catalog | Code | 153 | 632 | # SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
# Translators:
# Mateusz Marzantowicz <mmarzantowicz@osdf.com.pl>, 2013
# Michal Bielicki <michal.bielicki@roamingengineer.com>, 2013
msgid ""
msgstr ""
"Project-Id-V... | 25,461 | |
https://github.com/gp16/ocv-lite/blob/master/src/engine/commands/CmdDivide.java | Github Open Source | Open Source | BSD-3-Clause | null | ocv-lite | gp16 | Java | Code | 139 | 400 | package engine.commands;
import engine.AbstractCommand;
import engine.Engine;
import engine.Parameter;
import engine.Type;
import org.opencv.core.Core;
import org.opencv.core.Mat;
/**
*
* @author AmrGamal
*/
public class CmdDivide extends AbstractCommand {
@Override
protected Parameter[] getParamsOnce() {... | 35,863 |
https://github.com/phatblat/macOSPrivateFrameworks/blob/master/PrivateFrameworks/PhotoLibraryPrivate/RDVersionLongLivedQuery.h | Github Open Source | Open Source | MIT | 2,022 | macOSPrivateFrameworks | phatblat | C | Code | 94 | 454 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import <PhotoLibraryPrivate/RDAlbumVersionsQuery.h>
@class NSDate, NSIndexSet, PFCoalescer, PFDispatchQueue, RDAdaptiveTimeCoalescer;
@interface RDVersionLongLivedQuery : RDAlbum... | 48,747 |
https://github.com/xdvalue/mcoding/blob/master/base_dependencies/cms_module/src/main/webapp/WEB-INF/view/cms/activity/toAddView.jsp | Github Open Source | Open Source | Apache-2.0 | 2,017 | mcoding | xdvalue | null | Spoken | 411 | 2,541 | <%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<link rel="stylesheet" type="text/css"
href="${basePath}resources/metronic_v2.0.2/assets/plugins/bootstrap-markdown/css/bootstrap-markdown.min.css" />
<link rel="style... | 12,019 |
https://github.com/IoTSharp/IoTSharp/blob/master/ClientApp/src/views/iot/devices/designer/pannels/opcua/opcuapointlist.vue | Github Open Source | Open Source | Apache-2.0, MIT | 2,023 | IoTSharp | IoTSharp | Vue | Code | 519 | 2,276 | <template>
<div>
<el-form ref="tableRulesRef" :model="state.tableData" size="small">
<el-table :data="state.tableData.data" table-layout="auto">
<el-table-column v-for="(item, index) in state.tableData.header" :key="index" show-overflow-tooltip
:prop="item.prop" :width="item.width" :label="item.label">
... | 4,250 |
https://github.com/OS2World/DEV-UTIL-ScitechOS_PML/blob/master/src/pm/win32/_pmwin32.asm | Github Open Source | Open Source | Naumen, Condor-1.1, MS-PL | null | DEV-UTIL-ScitechOS_PML | OS2World | Assembly | Code | 286 | 627 | ;****************************************************************************
;*
;* SciTech OS Portability Manager Library
;*
;* ========================================================================
;*
;* The contents of this file are subject to the SciTech MGL Public
;* License Version 1.0 (... | 39,329 |
https://github.com/clevertonh/tds-eclipse/blob/master/br.com.totvs.tds.tycho/br.com.totvs.tds.tycho.bundles/br.com.totvs.tds.server/src/br/com/totvs/tds/server/jobs/BuildPatchProcessType.java | Github Open Source | Open Source | MIT | 2,019 | tds-eclipse | clevertonh | Java | Code | 107 | 330 | package br.com.totvs.tds.server.jobs;
/**
* Enum representando os tipos de processo que podem ser utilizados na geração de patchs.
*/
public enum BuildPatchProcessType {
UNDEFINED(-1, Messages.BuildPatchProcessType_Undefined), //
BY_COMPARISON(0, Messages.BuildPatchProcessType_By_comparasion), //
BY_RPO(1, Mess... | 32,604 |
https://github.com/inesc-id/SafeAudit/blob/master/src/lib/homomorphic_authentication_library_Java/src/homomorphic_authentication_library_Java/crypto/integrity_proofs/data_objects/challenge/data/FileAuditingObject.java | Github Open Source | Open Source | MIT | null | SafeAudit | inesc-id | Java | Code | 215 | 665 | package homomorphic_authentication_library_Java.crypto.integrity_proofs.data_objects.challenge.data;
import homomorphic_authentication_library_Java.homo_hashing.FileBlockHasher;
import homomorphic_authentication_library_Java.io.DataManipulator;
import java.util.ArrayList;
import java.util.Collection;
import java.util... | 20,351 |
https://github.com/mreetyunjaya/MixewayFrontend/blob/master/src/app/pages/extra-components/ci-operations/ci-operations.component.scss | Github Open Source | Open Source | MIT | 2,020 | MixewayFrontend | mreetyunjaya | SCSS | Code | 8 | 25 | nb-list-item {
padding: 5px !important;
margin: 0;
}
| 19,718 |
https://github.com/Flexberry/NewPlatform.Flexberry.ORM/blob/master/NewPlatform.Flexberry.ORM.Test.Objects/DetailUpdateObjectTest.cs | Github Open Source | Open Source | MIT | 2,023 | NewPlatform.Flexberry.ORM | Flexberry | C# | Code | 679 | 2,143 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | 31,510 |
https://github.com/OpenST/platform-api/blob/master/tools/helpers/Deploy.js | Github Open Source | Open Source | MIT | 2,020 | platform-api | OpenST | JavaScript | Code | 416 | 1,351 | 'use strict';
/**
* This is helper class for deploying contract.
*
* @module lib/chainSetup/helpers/Deploy
*/
const rootPrefix = '../..',
responseHelper = require(rootPrefix + '/lib/formatter/response'),
logger = require(rootPrefix + '/lib/logger/customConsoleLogger');
/**
* Constructor for Deploy helper cl... | 8,608 |
https://github.com/momo-i/Mekanism/blob/master/src/main/java/mekanism/common/recipe/impl/FluidSlurryToSlurryIRecipe.java | Github Open Source | Open Source | MIT | 2,022 | Mekanism | momo-i | Java | Code | 84 | 495 | package mekanism.common.recipe.impl;
import javax.annotation.Nonnull;
import mekanism.api.chemical.slurry.SlurryStack;
import mekanism.api.recipes.FluidSlurryToSlurryRecipe;
import mekanism.api.recipes.inputs.FluidStackIngredient;
import mekanism.api.recipes.inputs.chemical.SlurryStackIngredient;
import mekanism.commo... | 30,051 |
https://github.com/D-D-EINA-Calendar/CalendarWebClient/blob/master/src/tests/features/scheduler/exportData/ical/infraestructure/repositories/exportData.repository.test.ts | Github Open Source | Open Source | MIT | null | CalendarWebClient | D-D-EINA-Calendar | TypeScript | Code | 124 | 526 | import { Result } from "../../../../../../../core/config/result";
import { icalData } from "../../../../../../../features/scheduler/exportData/ical/infraestructure/data_sources/Ical.data";
import { icalRepo } from "../../../../../../../features/scheduler/exportData/ical/infraestructure/repositories/Ical.repositories";
... | 15,853 |
https://github.com/eteplus/leetcode/blob/master/rust/src/problems/s219_contains_duplicate_ii.rs | Github Open Source | Open Source | MIT | 2,022 | leetcode | eteplus | Rust | Code | 123 | 336 | struct Solution;
impl Solution {
pub fn contains_nearby_duplicate(nums: Vec<i32>, k: i32) -> bool {
let n = k as usize;
let mut map = std::collections::HashMap::new();
for (i, num) in nums.iter().enumerate() {
if let Some(m) = map.get(num) {
if i - *m <= n {
... | 30,917 |
https://github.com/ricardoacq/proyectoweb/blob/master/resources/views/registrarrequisito.blade.php | Github Open Source | Open Source | MIT | null | proyectoweb | ricardoacq | PHP | Code | 69 | 384 | @extends('master')
@section('encabezado')
<div class="row">
<div class="col-xs-12 text-center well">
<h1>Registrar Nuevo requisito</h1>
</div>
</div>
@stop
@section('contenido')
<div class="container">
<div class="row">
<div class="col-xs-12">
<form action="{{url('/guardarrequisit... | 44,220 |
https://github.com/zooniverse/edu-api-front-end/blob/master/src/modules/wildcam-classrooms/text.es.js | Github Open Source | Open Source | Apache-2.0 | null | edu-api-front-end | zooniverse | JavaScript | Code | 645 | 1,923 | const TEXT_ES = {
TITLES: {
CLASSROOM: 'Aula',
CREATE_NEW_CLASSROOM: 'Crear un salón de clases nuevo',
EDIT_CLASSROOM: 'Editar el aula',
ASSIGNMENTS: 'Asignaciones',
CREATE_NEW_ASSIGNMENT: 'Crear una nueva asignaciones',
EDIT_ASSIGNMENT: 'Editar el asignaciones',
YOUR_ASSIGNMENTS: 'Tus asi... | 10,696 |
https://github.com/appium/appium-uiautomator2-driver/blob/master/test/functional/commands/general/ime-e2e-specs.js | Github Open Source | Open Source | Apache-2.0 | 2,023 | appium-uiautomator2-driver | appium | JavaScript | Code | 143 | 546 | import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
import { APIDEMOS_CAPS } from '../../desired';
import { initSession, deleteSession } from '../../helpers/session';
chai.should();
chai.use(chaiAsPromised);
const unicodeImeId = 'io.appium.settings/.UnicodeIME';
describe('apidemo - IME', functio... | 20,153 |
https://github.com/Abandenz/OpenClassicAPI/blob/master/src/main/java/ch/spacebase/openclassic/api/block/model/Quad.java | Github Open Source | Open Source | MIT | 2,013 | OpenClassicAPI | Abandenz | Java | Code | 488 | 1,098 | package ch.spacebase.openclassic.api.block.model;
import java.util.Arrays;
import java.util.List;
import ch.spacebase.openclassic.api.render.RenderHelper;
/**
* A quad face used in models.
*/
public class Quad {
protected int id;
private Vertex vertices[] = new Vertex[4];
private SubTexture texture;
private M... | 24,622 |
https://github.com/riotkit-org/backup-repository/blob/master/server/src/Domain/Storage/Exception/StorageException.php | Github Open Source | Open Source | Apache-2.0 | 2,022 | backup-repository | riotkit-org | PHP | Code | 168 | 676 | <?php declare(strict_types=1);
namespace App\Domain\Storage\Exception;
use App\Domain\Backup\Exception\BackupException;
use App\Domain\Errors;
class StorageException extends BackupException
{
/**
* @return static
*/
public static function fromFileNotFoundCause(\Throwable $previous = null)
{
... | 46,556 |
https://github.com/studiojms/aprendendo-spring-mvc/blob/master/src/main/java/br/com/jmsstudio/controller/ProdutoController.java | Github Open Source | Open Source | MIT | 2,017 | aprendendo-spring-mvc | studiojms | Java | Code | 177 | 826 | package br.com.jmsstudio.controller;
import br.com.jmsstudio.infra.FileManager;
import br.com.jmsstudio.model.Produto;
import br.com.jmsstudio.model.TipoPreco;
import br.com.jmsstudio.repository.ProdutoRepository;
import br.com.jmsstudio.validation.ProdutoValidator;
import org.springframework.beans.factory.annotation.... | 32,339 |
https://github.com/comprakt/comprakt-fuzz-tests/blob/master/output/c51df871a4df4f2683ce6670c611a96e.java | Github Open Source | Open Source | Apache-2.0, MIT | null | comprakt-fuzz-tests | comprakt | Java | Code | 511 | 2,590 | class GVpGkNwz {
public void[] SajhX9OrX6;
public boolean bMc0M;
public int[][] Jun () {
int[][] TvrPO8oW21;
boolean pp9uFSKKvNpe = null.bVPPj02jEJlnHI = !a9ZVDk27PZFEIM[ ccb5txnF[ !!true.m]];
boolean[][] qX6IoojB;
boolean yNHSpCt4_i;
--false.tktTv();
int B... | 50,585 |
https://github.com/M4RC3L05/fp-php/blob/master/tests/lists/IndexOfTest.php | Github Open Source | Open Source | MIT | null | fp-php | M4RC3L05 | PHP | Code | 58 | 222 | <?php
namespace Tests\Lists;
use PHPUnit\Framework\TestCase;
use function FPPHP\Lists\indexOf;
class IndexOfTest extends TestCase
{
public function test_it_should_give_the_position_of_the_first_ocurrence()
{
$res = indexOf(3)([-1, 3, 3, 0, 1, 2, 3, 4]);
$this->assertEquals(1, $res);
... | 15,639 |
https://github.com/fimex/sistema/blob/master/frontend/assets/js/angular.almas.programacion.js | Github Open Source | Open Source | BSD-3-Clause | 2,015 | sistema | fimex | JavaScript | Code | 256 | 1,286 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
app.controller('ProgramacionAlmas', function($scope, $filter, ngTableParams, $http){
$scope.semanas = [];
$scope.semanal ... | 14,950 |
https://github.com/Alex-Lin5/freedom/blob/master/sifive_e31_rtl_eval_21G1.01.00/rtl/testbench/_EVAL_2_assert.sv | Github Open Source | Open Source | Apache-2.0 | null | freedom | Alex-Lin5 | null | Spoken | 7,546 | 30,969 | //
// Copyright (c) 2016-2020 SiFive, Inc. -- Proprietary and Confidential
// All Rights Reserved.
//
// NOTICE: All information contained herein is, and remains the
// property of SiFive, Inc. The intellectual and technical concepts
// contained herein are proprietary to SiFive, Inc. and may be covered
// by U.S. and ... | 47,176 |
https://github.com/AndresMunozB/FUDEA/blob/master/resources/views/auth/register.blade.php | Github Open Source | Open Source | MIT | null | FUDEA | AndresMunozB | PHP | Code | 232 | 1,015 | @extends('layouts.inicio')
@php ($pagina = 'registro')
@section('title')
Registrarse
@endsection
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<form class="form-horizontal" role="form" method="POST" action="{{ route('register') }}">
... | 31,188 |
https://github.com/sebastienrousseau/faster-exchange-core/blob/master/contracts/tokens/FasterExchangeToken.sol | Github Open Source | Open Source | MIT | 2,021 | faster-exchange-core | sebastienrousseau | Solidity | Code | 900 | 1,905 | // SPDX-License-Identifier: MIT
/**
*
* Faster Exchange
* The High-Performance Transaction Credits Platform
*
* Copyright 2021 Sebastien Rousseau. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwa... | 406 |
https://github.com/HMartyrossian/logging-log4net/blob/master/buildtools/docker/builder-netstandard/Dockerfile | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-generic-cla | 2,017 | logging-log4net | HMartyrossian | Dockerfile | Code | 29 | 71 | # Name of container: docker-ubuntu-latest-nant
FROM microsoft/dotnet
# set the maintainer of this docker image
MAINTAINER "dev@logging.apache.org"
# install dependencies
RUN apt-get update && apt-get install -y nant git
| 37,788 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.