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/ti-net/clink-sdk/blob/master/clink-appsdk/IOS/Demo/TOSClientLibDemo/TOSClientKit/Chat/View/cell/ICChatMessageTextTagCell.h | Github Open Source | Open Source | Apache-2.0 | 2,023 | clink-sdk | ti-net | Objective-C | Code | 30 | 107 | //
// ICChatMessageTextTagCell.h
// TOSClientKit
//
// Created by 言 on 2022/9/8.
// Copyright © 2022 YanBo. All rights reserved.
//
#import "ICChatMessageBaseCell.h"
NS_ASSUME_NONNULL_BEGIN
@interface ICChatMessageTextTagCell : ICChatMessageBaseCell
@end
NS_ASSUME_NONNULL_END
| 1,338 |
https://github.com/VigneshMurugan/30-seconds-of-code/blob/master/test/mphToKmph.test.js | Github Open Source | Open Source | CC0-1.0 | 2,020 | 30-seconds-of-code | VigneshMurugan | JavaScript | Code | 22 | 93 | const {mphToKmph} = require('./_30s.js');
test('mphToKmph is a Function', () => {
expect(mphToKmph).toBeInstanceOf(Function);
});
test('Returns kph from mph.', () => {
expect(mphToKmph(10)).toBe(16.09344000614692);
});
| 6,339 |
https://github.com/sysco-middleware/kafka-metadata/blob/master/topic/src/main/scala/no/sysco/middleware/kafka/metadata/topic/infrastructure/KafkaTopicsMetadataRepositoryWrite.scala | Github Open Source | Open Source | MIT | 2,018 | kafka-metadata | sysco-middleware | Scala | Code | 175 | 758 | package no.sysco.middleware.kafka.metadata.topic.infrastructure
import java.util.Properties
import no.sysco.middleware.kafka.metadata.topic.ApplicationConfig
import no.sysco.middleware.kafka.metadata.topic.application.KafkaService.{ RegisterTopicMetadata, RegisteredTopicMetadataAttempt }
import org.apache.kafka.clien... | 18,522 |
https://github.com/itspaiva/DDTank4.1/blob/master/Source Flash/scripts/ddt/data/ConsortiaEventInfo.as | Github Open Source | Open Source | MIT | 2,022 | DDTank4.1 | itspaiva | null | Spoken | 36 | 118 | package ddt.data
{
public class ConsortiaEventInfo
{
public var ID:int;
public var ConsortiaID:int;
public var Date:String;
public var Type:int;
public var NickName:String;
public var EventValue:int;
public var Mana... | 13,487 |
https://github.com/sfofana/Poly-Personal-Advisor/blob/master/Poly-Personal Advisor/src/app/services/repository.service.ts | Github Open Source | Open Source | MIT | 2,020 | Poly-Personal-Advisor | sfofana | TypeScript | Code | 55 | 173 | import { Injectable } from '@angular/core';
import { AngularFireDatabase } from 'angularfire2/database';
import { Observable } from 'rxjs';
import { User } from '../models/user';
@Injectable({
providedIn: 'root'
})
export class RepositoryService {
private userDB = '/PolyPersonalAdvisor/user';
private userQuery ... | 33,367 |
https://github.com/HiWong/damapping/blob/master/integration-test/generated-content-references/src/main/java/fr/javatronic/damapping/test/mappermethod/ConstructorWithMultipleMapperParameters.java | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,015 | damapping | HiWong | Java | Code | 181 | 423 | /**
* Copyright (C) 2013 Sébastien Lesaint (http://www.javatronic.fr/)
*
* 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
*
* Unle... | 52,298 |
https://github.com/trespasserw/MPS/blob/master/editor/editor-runtime/source/jetbrains/mps/nodeEditor/cellMenu/NodeSubstitutePatternEditor.java | Github Open Source | Open Source | Apache-2.0 | null | MPS | trespasserw | Java | Code | 1,424 | 5,023 | /*
* Copyright 2003-2011 JetBrains s.r.o.
*
* 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 agre... | 8,865 |
https://github.com/wyndhamjade/docker-oracle-database/blob/master/start_oracle.sh | Github Open Source | Open Source | MIT | null | docker-oracle-database | wyndhamjade | Shell | Code | 42 | 97 | #!/bin/bash
set -e
# Check that ORACLE_HOME is set
if [ "$ORACLE_HOME" == "" ]; then
echo "ERROR: ORACLE_HOME is not set."
exit 1
fi
# Start listener
lsnrctl start
# Start database
sqlplus / as sysdba << EOF
startup;
exit;
EOF
| 53,907 |
https://github.com/yayosecuence/clinicvet/blob/master/resources/views/bienes_raices/form.blade.php | Github Open Source | Open Source | MIT | null | clinicvet | yayosecuence | PHP | Code | 316 | 1,844 | @extends('layouts.app')
@if(Session::has('Mensaje'))
{{Session::get('Mensaje')}}
@endif
@section('content')
<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
</head>
<!-- Sidebar on click -->
<body>
<div class="container">
<div class="row justify-content-c... | 16,328 |
https://github.com/isratnisa/merge-spmm/blob/master/dataset/europar/lowd/circuit5M/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,020 | merge-spmm | isratnisa | Makefile | Code | 10 | 53 | GRAPH_NAME = circuit5M
GRAPH_URL = https://sparse.tamu.edu/MM/Freescale/circuit5M.tar.gz
include ../common.mk
include ../ufl.mk
| 24,983 |
https://github.com/phonkee/gopypi/blob/master/vendor/github.com/phonkee/go-paginator/paginator.go | Github Open Source | Open Source | MIT | 2,018 | gopypi | phonkee | Go | Code | 747 | 2,158 | /*
paginator imlementation for golang
*/
package paginator
import (
"net/http"
"fmt"
"net/url"
"context"
"strconv"
"strings"
"math"
"github.com/phonkee/go-signals"
"github.com/jinzhu/gorm"
)
/*
Paginator interface
*/
type Paginator interface {
Count(int) Paginator
GetCount() int
Page(int) Paginator
... | 18,645 |
https://github.com/patrockcom/redwoodblog/blob/master/web/src/pages/AboutPage/AboutPage.js | Github Open Source | Open Source | MIT | 2,021 | redwoodblog | patrockcom | JavaScript | Code | 40 | 74 | import { Link, routes } from '@redwoodjs/router'
const AboutPage = () => {
return (
<p>
This site was created to demonstrate my mastery of Redwood: Look on my works, ye might, and despair!
</p>
)
}
export default AboutPage
| 9,878 |
https://github.com/ghatasheh/weather/blob/master/features/home/data/src/main/java/com/hisham/weather/home/data/api/worker/FetchWeatherScheduler.kt | Github Open Source | Open Source | Apache-2.0 | null | weather | ghatasheh | Kotlin | Code | 120 | 404 | package com.hisham.weather.home.data.api.worker
import android.content.Context
import androidx.work.Constraints
import androidx.work.ExistingPeriodicWorkPolicy
import androidx.work.NetworkType
import androidx.work.PeriodicWorkRequestBuilder
import androidx.work.WorkManager
import dagger.hilt.android.qualifiers.Applica... | 7,458 |
https://github.com/GhasemGholi/BS_SHA256/blob/master/makefile | Github Open Source | Open Source | MIT | 2,021 | BS_SHA256 | GhasemGholi | Makefile | Code | 245 | 924 | CXXFLAGS = -g -std=c++17 -march=native -flto -mavx2 -O3 -funroll-loops
PRGM = src/main
SRCS := $(wildcard src/main.cpp)
OBJS := $(SRCS:.cpp=.o)
DEPS := $(OBJS:.o=.d)
.PHONY: all clean
all: $(PRGM)
$(PRGM): $(OBJS)
$(CXX) $(OBJS) -o $@
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
test_largeinput_1000_runs:
for i... | 52,453 |
https://github.com/andremartins31/trabalhoLPS/blob/master/Shopping/features/dao/configuracaoServico.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | trabalhoLPS | andremartins31 | Java | Code | 59 | 328 | import java.io.IOException;
import java.io.BufferedReader;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.s... | 25,716 |
https://github.com/cloudadc/cluster/blob/master/infinispan/quickstart/src/test/java/org/infinispan/quickstart/NamedCacheTest.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | cluster | cloudadc | Java | Code | 91 | 459 | package org.infinispan.quickstart;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.concurrent.TimeUnit;
import org.infinispan.Cache;
import org.infinispan.configuration.cache.ConfigurationBuilder;
import org.infinisp... | 38,197 |
https://github.com/hyperspacedev/hyperspacedev.github.io-src/blob/master/src/pages/404.js | Github Open Source | Open Source | MIT | null | hyperspacedev.github.io-src | hyperspacedev | JavaScript | Code | 165 | 430 | import React from "react"
import { Link } from "gatsby"
import Layout from "../components/layout"
import SEO from "../components/seo"
import { withStyles, Typography, Button } from "@material-ui/core"
const styles = {
root: {
paddingLeft: 64,
paddingRight: 64,
paddingTop: 64,
flexGrow: 1,
paddi... | 27,352 |
https://github.com/mahmoud-nage/Sofra/blob/master/app/Http/Middleware/Authenticate.php | Github Open Source | Open Source | MIT | 2,020 | Sofra | mahmoud-nage | PHP | Code | 74 | 256 | <?php
namespace App\Http\Middleware;
use Illuminate\Auth\Middleware\Authenticate as Middleware;
class Authenticate extends Middleware
{
/**
* Get the path the user should be redirected to when they are not authenticated.
*
* @param \Illuminate\Http\Request $request
* @return string
*/
... | 45,640 |
https://github.com/ayanakshi/journaldev/blob/master/CoreJavaProjects/SingletonExample/src/com/journaldev/singleton/SerializedSingleton.java | Github Open Source | Open Source | MIT | 2,018 | journaldev | ayanakshi | Java | Code | 46 | 143 | package com.journaldev.singleton;
import java.io.Serializable;
public class SerializedSingleton implements Serializable{
private static final long serialVersionUID = -7604766932017737115L;
private SerializedSingleton(){}
private static class SingletonHelper{
private static final SerializedS... | 6,660 |
https://github.com/zoltanszekely21/csharp/blob/master/algorithms/sorting/mergesort.cs | Github Open Source | Open Source | MIT | 2,021 | csharp | zoltanszekely21 | C# | Code | 292 | 658 | using System;
namespace CsharpAlgo
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Enter the Size of Array");
int size = int.Parse(Console.ReadLine()); //Read array size.
Console.WriteLine("Enter the Array elements");
... | 14,694 |
https://github.com/CM123ABC/Quella/blob/master/src/main/java/com/ssrs/service/impl/DictionaryItemServiceImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | Quella | CM123ABC | Java | Code | 38 | 163 | package com.ssrs.service.impl;
import com.ssrs.model.DictionaryItem;
import com.ssrs.mapper.DictionaryItemMapper;
import com.ssrs.service.IDictionaryItemService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类
* </p>
*
* @author ssrs
* ... | 8,641 |
https://github.com/arajitsamanta/hackerrank-practise/blob/master/java/stack/LargestRectanglularAreaInHistogram.java | Github Open Source | Open Source | MIT | null | hackerrank-practise | arajitsamanta | Java | Code | 154 | 434 |
import java.util.Stack;
import java.util.Scanner;
class LargestRectanglularAreaInHistogram {
private static final Scanner scanner = new Scanner(System.in);
// https://www.hackerrank.com/challenges/largest-rectangle/problems
// Complexit: O(n)
static int largestRectangle(int[] hist) {
final S... | 25,856 |
https://github.com/bayusm0506/tpa/blob/master/footer.php | Github Open Source | Open Source | CC-BY-3.0 | null | tpa | bayusm0506 | PHP | Code | 324 | 1,394 | </div>
<!-- start footer -->
<div class="footer_top">
<div class="wrap">
<div class="footer">
<!-- start grids_of_3 -->
<div class="span_of_3">
<div class="span1_of_3">
<h3>kata motivasi</h3>
<p>Tugas kita bukanlah untuk berhasil. Tugas kita adalah untuk mencoba, karena didalam mencoba itulah kita menemukan d... | 19,407 |
https://github.com/joe122139/Intra_Compressed_Sensing/blob/master/function/zigzag.m | Github Open Source | Open Source | BSD-2-Clause | 2,018 | Intra_Compressed_Sensing | joe122139 | MATLAB | Code | 67 | 268 | %Zigzag scanning
%By Ketul Shah and Sagar Shah
%Nirma University
%modified by Ben 2016.11.02
%N= size of N*N matrix;
%1~N
%N+1~2N
%...
function out = zigzag(N);
n = N*N;
im = [1:n];
im = reshape(im,N,N)';
t=0;
l=size(im);
sum=l(2)*l(1); %calculating the M*N
for d=2:sum
c=rem(d,2); %... | 45,547 |
https://github.com/Jofemago/Estructura-de-datos/blob/master/grafos/proyecto final/webinfo.cpp | Github Open Source | Open Source | MIT | null | Estructura-de-datos | Jofemago | C++ | Code | 418 | 1,752 | #include "graph-simple.hh"
#include <iostream>
#include <unordered_map>
using namespace std;
int main() {
/*
AdjList<int, int> g("web-Google.txt");
cout << g.numNodes() << endl;
cout << g.numEdges() << endl;
g.ConverToNotDirected();
cout << g.numNodes() << endl;
cout << g.numEdges() << endl;*/
/*--------... | 9,764 |
https://github.com/Yugontech/SenStick/blob/master/nRF5_SDK_12/components/libraries/usbd/class/hid/kbd/app_usbd_hid_kbd_internal.h | Github Open Source | Open Source | MIT | 2,022 | SenStick | Yugontech | C | Code | 503 | 1,748 | /* Copyright (c) 2016 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferable use... | 37,201 |
https://github.com/morganjk/elm-polymer/blob/master/build.sh | Github Open Source | Open Source | MIT | 2,017 | elm-polymer | morganjk | Shell | Code | 36 | 221 | #!/bin/bash
elm make counter-elm-with-paper-components/Counter.elm --output counter-elm-with-paper-components/card.js
elm make counter-elm-with-paper-components-keyed-nodes/Counter.elm --output counter-elm-with-paper-components-keyed-nodes/card.js
elm make counter-elm-inside-polymer/Counter.elm --output counter-elm-in... | 40,143 |
https://github.com/Cyrilszq/demo-cnode/blob/master/utils/index.js | Github Open Source | Open Source | MIT | 2,017 | demo-cnode | Cyrilszq | JavaScript | Code | 41 | 177 | var xss = require('xss');
var options = {};
//预留可配置xss过滤选项,详情访问https://github.com/leizongmin/js-xss/blob/master/README.zh.md
var myxss = new xss.FilterXSS(options);
//将从服务器读出的时间转成yyyy-mm-dd的形式
exports.parseDate = function (date) {
return date.getFullYear() + '-' + date.getMonth() + 1 + '-' + date.getDay();
};
ex... | 52,399 |
https://github.com/PovilasID/bakalaurinis/blob/master/src/app/components/user/recomendations_feed.jsx | Github Open Source | Open Source | MIT | null | bakalaurinis | PovilasID | null | Spoken | 198 | 773 | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import {firebase, firebaseDb} from '../../utils/firebase';
import {Link} from 'react-router';
import { fetchUser } from '../../actions/firebase_actions';
import Loading from '../helpers/loading'... | 32,042 |
https://github.com/dalehenrich/tode/blob/master/repository/Topez-Server-Core.package/TDAbstractProjectRegistrationDefinition.class/instance/canBeCloned.st | Github Open Source | Open Source | MIT | 2,023 | tode | dalehenrich | null | Spoken | 5 | 17 | testing
canBeCloned
^ self hasGitBasedRepo | 247 |
https://github.com/cement/adback/blob/master/src/main/java/com/en/adback/entity/sys/SysSetting.java | Github Open Source | Open Source | Apache-2.0 | null | adback | cement | Java | Code | 20 | 72 | package com.en.adback.entity.sys;
import com.en.adback.entity.UserAction;
import lombok.Data;
@Data
public class SysSetting extends UserAction {
private int maxAdvertCounts;
private int oneAdvertDuration;
}
| 11,287 |
https://github.com/KentonMurray/pnp/blob/master/src/main/scala/org/allenai/pnp/semparse/ActionSpace.scala | Github Open Source | Open Source | Apache-2.0 | null | pnp | KentonMurray | Scala | Code | 672 | 2,172 | package org.allenai.pnp.semparse
import scala.collection.JavaConverters._
import scala.collection.mutable.MultiMap
import scala.collection.mutable.{Map => MutableMap}
import com.jayantkrish.jklol.ccg.lambda.TypeDeclaration
import com.jayantkrish.jklol.ccg.lambda2.StaticAnalysis
import com.jayantkrish.jklol.ccg.lambda2... | 47,759 |
https://github.com/richardgoater/CovGlobe/blob/master/tailwind.config.js | Github Open Source | Open Source | MIT | 2,022 | CovGlobe | richardgoater | JavaScript | Code | 78 | 316 | const defaultTheme = require('tailwindcss/defaultTheme')
const covinceConfig = require('covince/tailwind.config')
module.exports = {
...covinceConfig,
purge: {
content: [
'./src/**/*.jsx',
'./node_modules/covince/src/**/*.jsx'
]
},
// darkMode: false, // or 'media' or 'class'
theme: {
... | 27,681 |
https://github.com/pulipulichen/Electron-Sticky-Notes/blob/master/win32-helpers/open-item/open-item.au3 | Github Open Source | Open Source | MIT | null | Electron-Sticky-Notes | pulipulichen | null | Spoken | 46 | 186 | #include <Array.au3>
#include <MsgBoxConstants.au3>
;#pragma compile(Icon, '../../app/imgs/icon256.ico')
;FileChangeDir(@ScriptDir)
;ShellExecute("C:\Windows\notepad.exe", "", "", "", @SW_HIDE)
;For $i = 1 To $CmdLine[0]
;ShellExecute('run.bat', $CmdLine[$i], "", "", @SW_HIDE)
;Run($CmdLine[$i])
;Next
For $i =... | 35,168 |
https://github.com/andy9775/pilot/blob/master/public/visifile_drivers/controls/item_3d_old.js | Github Open Source | Open Source | MIT | 2,019 | pilot | andy9775 | JavaScript | Code | 297 | 1,144 | function(args) {
/*
is_app(true)
control_type("VB")
display_name("3d item")
description("This will return the 3d item control")
base_component_id("threedee_item_control")
load_once_from_file(true)
visibility("PRIVATE")
read_only(true)
properties(
[
{
id: "position",
name: ... | 30,051 |
https://github.com/EthereumCommonwealth/etherwallet/blob/master/app/includes/dexns-contract-interact.tpl | Github Open Source | Open Source | BSD-4-Clause, BSD-2-Clause, MIT, LicenseRef-scancode-warranty-disclaimer | 2,023 | etherwallet | EthereumCommonwealth | null | Spoken | 215 | 933 | <div class="row" ng-show="dexns_status === 3">
<!-- Function Selector -->
<div class="btn-group">
<a class="btn btn-default" ng-click="dropdownContracts = !dropdownContracts">
{{selectedFunc == null ? "Select a function" : selectedFunc.name}}<i
class="caret"></i></a>
<... | 12,460 |
https://github.com/levelupai/waldorf/blob/master/script/waldorf_python_setup.sh | Github Open Source | Open Source | Apache-2.0 | 2,021 | waldorf | levelupai | Shell | Code | 297 | 1,066 | #!/bin/bash
# This script downloads the Python interpreter's source code from a
# specified mirror, compiles it and prepares an environment suitable
# for installing Waldorf
# Import configuration variables
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Check config file exists
[ -f ${SCRIPT_DIR}/c... | 39,254 |
https://github.com/deepakvig/deepakvig.github.io/blob/master/app/components/main.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | deepakvig.github.io | deepakvig | JavaScript | Code | 49 | 199 | 'use strict';
const React = require('react');
const PropTypes = React.PropTypes;
const ReactCSSTransitionGroup = require('react-addons-css-transition-group');
const Main = React.createClass({
propTypes: {
location: PropTypes.shape({
pathname: PropTypes.string.isRequired
}).isRequired
... | 17,174 |
https://github.com/bradj/bradjanke.com/blob/master/Makefile | Github Open Source | Open Source | MIT | null | bradjanke.com | bradj | Makefile | Code | 10 | 31 | .PHONY: run
run:
hugo server
.PHONY: build
build:
hugo -D
| 9,663 |
https://github.com/ISS-Security-Team-Delta/RestaurantCollections/blob/master/app/services/create_meal_for_restaurant.rb | Github Open Source | Open Source | MIT | null | RestaurantCollections | ISS-Security-Team-Delta | Ruby | Code | 81 | 223 | # frozen_string_literal: true
require './app/policies/restaurant_policy'
module RestaurantCollections
# Create new configuration for a restaurant
class CreateMealForRestaurant
# Error for owner cannot be collaborator
class ForbiddenError < StandardError
def message
'You are not allowed to ad... | 37,023 |
https://github.com/ArisChoice/AppProvider/blob/master/app/src/main/java/com/app/barber/models/response/AdvanceBookingTimeResponse.java | Github Open Source | Open Source | MIT | null | AppProvider | ArisChoice | Java | Code | 91 | 252 | package com.app.barber.models.response;
import com.google.gson.annotations.SerializedName;
/**
* Created by harish on 22/1/19.
*/
public class AdvanceBookingTimeResponse {
/**
* Message : Success
* Status : 201
* Time : 120
*/
@SerializedName("Message")
private String Message;
... | 29,646 |
https://github.com/mlflabs/unity-test/blob/master/Assets/Images/other/gfx/tiles/Overworld_914.asset.meta | Github Open Source | Open Source | Apache-2.0 | 2,020 | unity-test | mlflabs | Unity3D Asset | Code | 12 | 64 | fileFormatVersion: 2
guid: 289a63360a21543d981a15bfabf8e236
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:
| 11,101 |
https://github.com/Tasemo/intellij-community/blob/master/platform/platform-impl/src/com/intellij/ide/actions/MoveTabRightAction.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | intellij-community | Tasemo | Java | Code | 47 | 111 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.actions;
import javax.swing.*;
/**
* @author Konstantin Bulenkov
*/
final class MoveTabRightAction extends SplitAction {
MoveTabRightAction() {
... | 27,644 |
https://github.com/zhangxinfei/ssm/blob/master/src/main/java/com/soecode/lyf/util/entity/SYAuthPerson.java | Github Open Source | Open Source | MIT | null | ssm | zhangxinfei | Java | Code | 273 | 906 | package com.soecode.lyf.util.entity;
public class SYAuthPerson {
private Integer id;
private String userid;
private Integer usertype;
private String cpmo_cop;
private String wizards;
private String tabletypes;
private String auth;
private String status;
private String userName;
private String... | 16,599 |
https://github.com/Hazelfire/graphql/blob/master/src/Language/GraphQL/AST.hs | Github Open Source | Open Source | BSD-3-Clause | null | graphql | Hazelfire | Haskell | Code | 625 | 1,302 | -- | This module defines an abstract syntax tree for the @GraphQL@ language based on
-- <https://facebook.github.io/graphql/ Facebook's GraphQL Specification>.
--
-- Target AST for Parser.
module Language.GraphQL.AST
( Alias
, Argument(..)
, Definition(..)
, Directive(..)
, Document
, Field(..... | 24,142 |
https://github.com/hulatang/skynet-blockchain/blob/master/setup.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | skynet-blockchain | hulatang | Python | Code | 336 | 1,699 | from setuptools import setup
dependencies = [
"blspy==1.0.6", # Signature library
"skynetvdf==1.0.3.dev8", # timelord and vdf verification
"skynetbip158==1.1.dev3", # bip158-style wallet filters
"skynetpos==1.0.4.dev14", # proof of space
"clvm==0.9.7",
"clvm_rs==0.1.11",
"clvm_tools==0.... | 4,241 |
https://github.com/coderrick/compiler-design/blob/master/llvm-project/llvm/test/CodeGen/RISCV/rv32Zbp.ll | Github Open Source | Open Source | Apache-2.0 | null | compiler-design | coderrick | LLVM | Code | 5,923 | 18,874 | ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -mtriple=riscv32 -verify-machineinstrs < %s \
; RUN: | FileCheck %s -check-prefix=RV32I
; RUN: llc -mtriple=riscv32 -mattr=+experimental-b -verify-machineinstrs < %s \
; RUN: | FileCheck %s -check-prefix=RV32IB
; RUN: llc -mtri... | 28,500 |
https://github.com/YacobBY/DFF/blob/master/pytorch-encoding/encoding/utils/log.py | Github Open Source | Open Source | MIT | 2,022 | DFF | YacobBY | Python | Code | 71 | 391 | import os
import os.path as osp
import logging
import time
import io
def create_logger(log_root_path,log_name):
if not osp.exists(log_root_path):
os.makedirs(log_root_path)
assert osp.exists(log_root_path), '{} does not exist!!'.format(log_root_path)
final_log_path = osp.join(log_root_pat... | 53,202 |
https://github.com/morrison999/aira-flutter/blob/master/lib/components/Utils.dart | Github Open Source | Open Source | MIT | 2,021 | aira-flutter | morrison999 | Dart | Code | 29 | 130 | import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:get/get.dart';
Future<void> airaAnnounce(String text) async {
await SemanticsService.announce(text, TextDirection.ltr,);
}
void airaErrorSnackbar(String title, [String message= ""]) {
Get.snackbar(title, message, sna... | 10,049 |
https://github.com/paulharwood/patchbay/blob/master/config.js | Github Open Source | Open Source | MIT | 2,018 | patchbay | paulharwood | JavaScript | Code | 84 | 275 | const nest = require('depnest')
const Config = require('ssb-config/inject')
const ssbKeys = require('ssb-keys')
const Path = require('path')
const appName = process.env.ssb_appname || 'ssb'
const opts = appName == 'ssb'
? null
: null // require('./default-config.json')
exports.gives = nest('config.sync.load')
exp... | 3,465 |
https://github.com/emiliopedrollo/Switch-Fightstick/blob/master/Joystick.c | Github Open Source | Open Source | MIT | null | Switch-Fightstick | emiliopedrollo | C | Code | 1,596 | 3,664 | /*
Nintendo Switch Fightstick - Proof-of-Concept
Based on the LUFA library's Low-Level Joystick Demo
(C) Dean Camera
Based on the HORI's Pokken Tournament Pro Pad design
(C) HORI
This project implements a modified version of HORI's Pokken Tournament Pro Pad
USB descriptors to allow for the creation of custom contro... | 29,126 |
https://github.com/williambrandler/hail/blob/master/hail/src/main/scala/is/hail/expr/ir/Pretty.scala | Github Open Source | Open Source | MIT | null | hail | williambrandler | Scala | Code | 3,338 | 12,089 | package is.hail.expr.ir
import is.hail.HailContext
import is.hail.backend.ExecuteContext
import is.hail.expr.JSONAnnotationImpex
import is.hail.expr.ir.agg._
import is.hail.expr.ir.functions.RelationalFunctions
import is.hail.types.TableType
import is.hail.types.virtual.{TArray, TInterval, TStream, Type}
import is.hai... | 22,449 |
https://github.com/stefferd/schwachofer/blob/master/public/assets/less/foundation/sticky.less | Github Open Source | Open Source | MIT | null | schwachofer | stefferd | Less | Code | 13 | 48 | .sticky-header {
transition: top 0.2s ease-in-out 0.2s;
&.fixed {
top: -90px;
}
} | 41,507 |
https://github.com/ManageIQ/manageiq-providers-ovirt/blob/master/spec/support/modify_refresh_yml_recording.rb | Github Open Source | Open Source | Apache-2.0 | 2,023 | manageiq-providers-ovirt | ManageIQ | Ruby | Code | 429 | 2,289 | class RecordingModifier
attr_accessor :yml
def initialize(opts)
@yml = Marshal.load(Marshal.dump(opts[:yml]))
end
def add_vm_with_inv
@vm_adder ||= VmAdder.new(:yml => @yml)
@vm_adder.add_with_inv
end
def add_template_with_inv
@template_adder ||= TemplateAdder.new(:yml => @yml)
@templ... | 6,857 |
https://github.com/mertsincan/primereact/blob/master/src/components/chip/Chip.js | Github Open Source | Open Source | MIT | 2,021 | primereact | mertsincan | JavaScript | Code | 232 | 864 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { classNames } from '../utils/ClassNames';
import ObjectUtils from '../utils/ObjectUtils';
export class Chip extends Component {
static defaultProps = {
label: null,
icon: null,
image: null,
remova... | 32,929 |
https://github.com/orta/remission/blob/master/reaction/src/components/publishing/__stories__/related_articles.story.tsx | Github Open Source | Open Source | MIT | 2,017 | remission | orta | TypeScript | Code | 59 | 158 | import { storiesOf } from "@storybook/react"
import * as React from "react"
import { RelatedCanvas, RelatedPanel } from "../fixtures/components"
import RelatedArticlesCanvas from "../related_articles/related_articles_canvas"
import RelatedArticlesPanel from "../related_articles/related_articles_panel"
storiesOf("Publi... | 9,557 |
https://github.com/paul-rogers/drill-test-framework/blob/master/framework/resources/Functional/interpreted_partition_pruning/ctas_auto_partition/hierarchical/data/textSelectPartIN.q | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,020 | drill-test-framework | paul-rogers | null | Spoken | 26 | 108 | alter session set `drill.exec.storage.file.partition.column.label` = 'partition_string1';
select columns[0], columns[1], columns[4], columns[10], columns[13] from `existing_partition_pruning/lineitem_hierarchical_intstring` where dir0 IN (abs(-1993)) and dir1='feb';
alter session set `drill.exec.storage.file.partition.... | 41,009 |
https://github.com/tegarprianiatama/laravelbengkel/blob/master/app/Repositories/DataKasirRepository.php | Github Open Source | Open Source | MIT | 2,022 | laravelbengkel | tegarprianiatama | PHP | Code | 77 | 232 | <?php
namespace App\Repositories;
use App\Models\DataKasir;
use InfyOm\Generator\Common\BaseRepository;
/**
* Class DataKasirRepository
* @package App\Repositories
* @version March 5, 2019, 10:00 am UTC
*
* @method DataKasir findWithoutFail($id, $columns = ['*'])
* @method DataKasir find($id, $columns = ['*'])... | 41,658 |
https://github.com/aws/copilot-cli/blob/master/internal/pkg/stream/cfnstack_test.go | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, MIT, ISC, BSD-2-Clause | 2,023 | copilot-cli | aws | Go | Code | 973 | 4,036 | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package stream
import (
"errors"
"testing"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/service/cloudformation"
"github.com/stretchr/testify/... | 54,083 |
https://github.com/ThuriyaThwin/JavaSE-Projects/blob/master/hotel-application/src/com/jdc/hotel/model/AbstractSecurityModel.java | Github Open Source | Open Source | Apache-2.0 | null | JavaSE-Projects | ThuriyaThwin | Java | Code | 97 | 333 | package com.jdc.hotel.model;
import java.time.format.DateTimeFormatter;
import org.codehaus.jackson.annotate.JsonIgnore;
public abstract class AbstractSecurityModel {
private Security security;
public AbstractSecurityModel() {
security = new Security();
}
public Security getSecurity() {
return security;... | 31,186 |
https://github.com/horak-jan/domy/blob/master/client/src/controllers/pool.js | Github Open Source | Open Source | ISC | 2,021 | domy | horak-jan | JavaScript | Code | 88 | 223 | const Pool = require("../models/pool");
// GET api/pool
// Returns one pool
exports.index = async (req, res) => {
try {
const pool = await Pool.findOne();
res.status(200).json({ PoolPageData: pool });
} catch (error) {
res.status(500).json({ message: error.message });
}
};
// POST api/pool
// c... | 39,544 |
https://github.com/SiThu182/CarticketApi/blob/master/app/Trip.php | Github Open Source | Open Source | MIT | null | CarticketApi | SiThu182 | PHP | Code | 22 | 102 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Trip extends Model
{
protected $fillable = ['class_name','departure_time','arrival_time','local_price','foregin_price','car_id','route_id','status'];
public function routes()
{
return $this->belongsTo('App\Route','route_id');
}
}
| 32,369 |
https://github.com/reach-sh/language-javascript/blob/master/src/Language/JavaScript/Parser/SrcLocation.hs | Github Open Source | Open Source | BSD-3-Clause | null | language-javascript | reach-sh | Haskell | Code | 110 | 235 | {-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric, DeriveAnyClass #-}
module Language.JavaScript.Parser.SrcLocation (
TokenPosn(..)
, tokenPosnEmpty
) where
import Control.DeepSeq (NFData)
import Data.Data
import GHC.Generics (Generic)
-- | `TokenPosn' records the location of a token in the input ... | 24,155 |
https://github.com/ljwall/er-301-units/blob/master/faust-poc/Z2000.lua | Github Open Source | Open Source | MIT | 2,022 | er-301-units | ljwall | Lua | Code | 92 | 266 | local lib = require "faustpoc.libfaustpoc"
local Class = require "Base.Class"
local Unit = require "Unit"
local GainBias = require "Unit.ViewControl.GainBias"
local Encoder = require "Encoder"
local Z2000 = Class {}
Z2000:include(Unit)
function Z2000:init(args)
args.title = "Z2000"
args.mnemonic = "Z2"
Unit.ini... | 46,987 |
https://github.com/ssubu/sentencepiece/blob/master/sentencepiece-sys/bindgen.sh | Github Open Source | Open Source | Apache-2.0 | 2,022 | sentencepiece | ssubu | Shell | Code | 20 | 60 | #!/bin/sh
if ! which bindgen &> /dev/null; then
>&2 echo "Please install bindgen!"
exit 1
fi
bindgen -o src/bindings.rs src/ffi/sentencepiece.h
| 43,044 |
https://github.com/mdlayher/archive/blob/master/c/p2p/server/Makefile | Github Open Source | Open Source | MIT | null | archive | mdlayher | Makefile | Code | 186 | 519 | #
# Authors: Justin Hill, Gordon Keesler, Matt Layher
# Date: 3/21/12
# Updated: 4/1/12
# Project: p2pd
# Module: Makefile
#
# Description:
# Makefile used to assemble p2pd modules
#
#---------- VARIABLES -----------------
# Define C compiler to be used
CC=gcc
# Define flags to be passed to the C compiler
CFLAGS... | 20,916 |
https://github.com/cgroschupp/gophertelekomcloud/blob/master/openstack/rts/v1/stacktemplates/testing/requests_test.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | gophertelekomcloud | cgroschupp | Go | Code | 35 | 225 | package testing
import (
"testing"
"github.com/opentelekomcloud/gophertelekomcloud/openstack/rts/v1/stacktemplates"
th "github.com/opentelekomcloud/gophertelekomcloud/testhelper"
fake "github.com/opentelekomcloud/gophertelekomcloud/testhelper/client"
)
func TestGetTemplate(t *testing.T) {
th.SetupHTTP()
defer ... | 40,757 |
https://github.com/karatsuba/workflowy-link-preview/blob/master/src/background/services/metatags-parser/parseImage.ts | Github Open Source | Open Source | MIT | 2,021 | workflowy-link-preview | karatsuba | TypeScript | Code | 20 | 64 | import Link from '../../../common/models/Link';
const parseImage = (response: Response): Promise<Partial<Link>> =>
Promise.resolve({
url: response.url,
imageUrl: response.url
});
export default parseImage;
| 2,308 |
https://github.com/kostovmichael/react-examples/blob/master/v15.4/app/modules/Toutiao/components/index.jsx | Github Open Source | Open Source | MIT | null | react-examples | kostovmichael | null | Spoken | 386 | 1,406 | import {Tabs, Tab} from 'material-ui/Tabs';
// import SwipeableViews from 'react-swipeable-views';
import Dialog from 'material-ui/Dialog';
import {List, ListItem} from 'material-ui/List';
import Avatar from 'material-ui/Avatar';
import '../style';
export default class Toutiao extends React.Component {
constructor()... | 50,214 |
https://github.com/gemini-hlsw/ocs/blob/master/bundle/edu.gemini.model.p1/src/test/scala/edu/gemini/model/p1/immutable/PartnersSpec.scala | Github Open Source | Open Source | BSD-2-Clause | 2,023 | ocs | gemini-hlsw | Scala | Code | 47 | 148 | package edu.gemini.model.p1.immutable
import org.specs2.mutable._
class PartnersSpec extends Specification {
"The Partners object" should {
"not include the UK, REL-622" in {
NgoPartner.values must have size 7
NgoPartner.forName("UK") must throwA[Exception]
}
"must include Korea, REL-2019" ... | 37,803 |
https://github.com/moneytech/vpkg/blob/master/api/sources.v | Github Open Source | Open Source | MIT | 2,020 | vpkg | moneytech | null | Spoken | 379 | 821 | // vpkg 0.7.1
// https://github.com/vpkg-project/vpkg
//
// Copyright (c) 2020 vpkg developers
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without lim... | 20,720 |
https://github.com/gilbertek/maroon/blob/master/test/examples/dijkstra_test.rb | Github Open Source | Open Source | MIT | 2,014 | maroon | gilbertek | Ruby | Code | 499 | 1,003 | # -*- encoding: utf-8 -*-
require_relative '../test_helper'
require_relative 'data'
require_relative 'calculate_shortest_distance'
require_relative 'calculate_shortest_path'
class DijkstraTest < Minitest::Test
#!/usr/bin/env ruby
# Example in Ruby -- DijkstraTest's algorithm in DCI
# Modified and simplified for a ... | 45,028 |
https://github.com/tvlooy/SecretSanta/blob/master/.gitignore | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, ISC | 2,023 | SecretSanta | tvlooy | Ignore List | Code | 54 | 338 |
###> symfony/framework-bundle ###
/.env.local
/.env.local.php
/.env.*.local
/config/secrets/prod/prod.decrypt.private.php
/public/bundles/
/var/
/vendor/
###< symfony/framework-bundle ###
###> symfony/phpunit-bridge ###
bin/.phpunit/
.phpunit.result.cache
/phpunit.xml
###< symfony/phpunit-bridge ###
.idea
/.web-serv... | 50,647 |
https://github.com/agileobjects/AgileMapper/blob/master/AgileMapper.UnitTests/Dictionaries/WhenMappingOverDictionaryMembers.cs | Github Open Source | Open Source | MIT | 2,022 | AgileMapper | agileobjects | C# | Code | 294 | 1,106 | namespace AgileObjects.AgileMapper.UnitTests.Dictionaries
{
using System.Collections.Generic;
using Common;
using TestClasses;
#if !NET35
using Xunit;
#else
using Fact = NUnit.Framework.TestAttribute;
[NUnit.Framework.TestFixture]
#endif
public class WhenMappingOverDictionaryMembers
{
... | 16,042 |
https://github.com/jwhang/TicketToRide/blob/master/src/jsMain/kotlin/ticketToRide/Formatter.kt | Github Open Source | Open Source | MIT | 2,021 | TicketToRide | jwhang | Kotlin | Code | 142 | 506 | package ticketToRide
import kotlinx.serialization.DeserializationStrategy
import kotlinx.serialization.SerializationStrategy
import kotlinx.serialization.protobuf.ProtoBuf
import org.khronos.webgl.ArrayBuffer
import org.khronos.webgl.Int8Array
import org.khronos.webgl.Uint8Array
import org.w3c.dom.MessageEvent
import ... | 15,225 |
https://github.com/FK7075/lucky-noxml/blob/master/lucky-noxml/src/main/java/com/lucky/jacklamb/servlet/mapping/param/PojoParamPars.java | Github Open Source | Open Source | WTFPL | 2,020 | lucky-noxml | FK7075 | Java | Code | 29 | 112 | package com.lucky.jacklamb.servlet.mapping.param;
import com.lucky.jacklamb.servlet.core.Model;
import java.lang.reflect.Method;
import java.util.Map;
public class PojoParamPars implements ParamPars {
@Override
public Map<String, Object> getParamNameAndValue(Model model, Class<?> controllerClass, Method met... | 31,681 |
https://github.com/IINemo/vdrparser/blob/master/.gitignore | Github Open Source | Open Source | Apache-2.0 | 2,015 | vdrparser | IINemo | Ignore List | Code | 13 | 48 | build/*
.idea/*
*.model
data/
featureWeights
mstparser/output/
*.pyc
results
vdrDescription/
*.tex
*.pdf
*.aux
*.log
| 49,391 |
https://github.com/OpenFortranProject/ofp-sdf/blob/master/CAFe/trans/Makefile | Github Open Source | Open Source | BSD-3-Clause | 2,021 | ofp-sdf | OpenFortranProject | Makefile | Code | 207 | 862 | include ../../make.inc
SYNTAX_DIR = ../../CAFe/syntax
TRANS_DIR = ../../fortran/trans
PP_DIR = ../../fortran/pp
TBL = $(SYNTAX_DIR)/CAFe.tbl
TO_SIM = $(TRANS_DIR)/ofp-simplify
TO_FAST = $(TRANS_DIR)/ofp2fast
TO_PP = $(TRANS_DIR)/fast2pp
PP = $(PP_DIR)/Fortran.pp
CLC = /System/Library/Frameworks/Open... | 48,500 |
https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/SelectionMarkState.Serialization.cs | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, LGPL-2.1-or-later, Apache-2.0, MIT | 2,023 | azure-sdk-for-net | Azure | C# | Code | 82 | 252 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
namespace Azure.AI.FormRecognizer.Models
{
internal static partial class SelectionMarkStateExtensions
{
public static string ToSerialString(this Select... | 27,686 |
https://github.com/centaq/modbus-tester/blob/master/ModBusTester/MainForm.Designer.cs | Github Open Source | Open Source | MIT | null | modbus-tester | centaq | C# | Code | 1,254 | 5,581 | namespace ModBusTester
{
partial class MainForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <pa... | 33,752 |
https://github.com/GmeduoyeClaymore/viewserver/blob/master/viewserver-browser/src/common/utils/toTree.js | Github Open Source | Open Source | MIT | 2,018 | viewserver | GmeduoyeClaymore | JavaScript | Code | 138 | 436 | const Immutable = require("seamless-immutable");
export const nodesAndLinksToState = (links = [], nodes = []) =>
{
const nodesForName = {};
const linksByTarget = {};
const linksBySource = {};
const resultLinks = [];
nodes.forEach(nd => {nodesForName[nd.id] = nd})
links.forEach(ln => {
... | 33,156 |
https://github.com/JOHNKYON/LeetCode/blob/master/src/questions/leetcode394/DecodeString.java | Github Open Source | Open Source | MIT | null | LeetCode | JOHNKYON | Java | Code | 113 | 339 | package questions.leetcode394;
import java.util.Stack;
public class DecodeString {
public String decodeString(String s) {
Stack<String> stack = new Stack<>();
int i=0;
String res = "";
String digit_str = "";
while(i<s.length()){
char c = s.charAt(i);
... | 32,075 |
https://github.com/Comic-Con-Museum/ccm-android/blob/master/app/src/main/java/com/comic_con/museum/ar/injection/CCMComponent.kt | Github Open Source | Open Source | Apache-2.0 | 2,018 | ccm-android | Comic-Con-Museum | Kotlin | Code | 89 | 514 | package com.comic_con.museum.ar.injection
import com.comic_con.museum.ar.MainActivity
import com.comic_con.museum.ar.experience.ExperienceActivity
import com.comic_con.museum.ar.experience.ExperienceFragment
import com.comic_con.museum.ar.experience.content.ContentActivity
import com.comic_con.museum.ar.experience.con... | 43,260 |
https://github.com/dkd/coding-standards/blob/master/PHP_CodeSniffer/typo3/PHP/CodeSniffer/Standards/DkdCollection/Sniffs/Commenting/FileCommentSniff.php | Github Open Source | Open Source | BSD-3-Clause | null | coding-standards | dkd | PHP | Code | 1,495 | 4,444 | <?php
/**
* Parses and verifies the doc comments for files.
*
* @package PHP_CodeSniffer
* @subpackage DkdCollection
* @author Timo Webler <timo.webler@dkd.de>
* @version $Id$
* @link http://pear.php.net/package/PHP_CodeSniffer
*/
if (class_exists('PHP_CodeSniffer_CommentParser_ClassCommentParser', true) === f... | 11,989 |
https://github.com/asadutzaman/ticketing/blob/master/app/Http/Controllers/TicketController.php | Github Open Source | Open Source | MIT | 2,019 | ticketing | asadutzaman | PHP | Code | 345 | 1,188 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Redirect;
use App\Ticket;
use Auth;
use Validator;
class TicketController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\... | 26,138 |
https://github.com/ytomino/drake/blob/master/source/s-fordec.ads | Github Open Source | Open Source | MIT | 2,021 | drake | ytomino | Ada | Code | 62 | 149 | pragma License (Unrestricted);
-- implementation unit
package System.Formatting.Decimal is
pragma Pure;
procedure Image (
Value : Long_Long_Integer;
Item : out String; -- To'Length >= T'Fore + T'Aft + 1 (.)
Fore_Last, Last : out Natural;
Scale : Integer;
Signs : Sign_Marks := ('-',... | 55,640 |
https://github.com/demsasha4yt/IMG-Console/blob/master/IMG.cpp | Github Open Source | Open Source | BSD-2-Clause | 2,017 | IMG-Console | demsasha4yt | C++ | Code | 4,251 | 14,409 | /* ---------------------------------------------------------------------------
** This software is in the public domain, furnished "as is", without technical
** support, and with no warranty, express or implied, as to its usefulness for
** any purpose.
**
** IMG.cpp
** Class to create or edit GTA IMG archives with effi... | 50,792 |
https://github.com/markri/puppet-module-nexus3_rest/blob/master/spec/spec_helper.rb | Github Open Source | Open Source | MIT | 2,020 | puppet-module-nexus3_rest | markri | Ruby | Code | 222 | 956 | # frozen_string_literal: true
require 'webmock/rspec'
require 'simplecov'
SimpleCov.start do
enable_coverage :branch
add_filter 'spec'
track_files 'lib/**/*.rb'
end
RSpec.configure do |c|
c.mock_with :rspec
end
require 'puppetlabs_spec_helper/module_spec_helper'
require 'rspec-puppet-facts'
require 'spec_... | 25,699 |
https://github.com/chetan/bixby-manager/blob/master/app/views/models/check.rb | Github Open Source | Open Source | MIT | 2,021 | bixby-manager | chetan | Ruby | Code | 32 | 116 |
module Bixby
module ApiView
class Check < ::ApiView::Base
for_model ::Check
attributes :all
def convert
super
self[:name] = obj.command.name
self[:runhost_id] = obj.agent.host_id
self[:runhost] = obj.agent.host
self[:command] = render(obj.co... | 51,220 |
https://github.com/99xtechnology/supuna-initiative/blob/master/initiative/src/repository/initiative-review.repository.js | Github Open Source | Open Source | MIT | null | supuna-initiative | 99xtechnology | JavaScript | Code | 374 | 1,185 | import InitiativeReviewCycleModel from '../model/initiative-year-review-cycle.model';
import InitiativeYearReviewCycleReviewModel from '../model/initiative-year-review-cycle-key-contributors.model';
import InitiativeReviewCycleEvaluationCriteriaModel
from '../model/initiative-year-review-cycle-evaluation_criteria.mod... | 50,800 |
https://github.com/craig95/hms-react-native-plugin/blob/master/react-native-hms-account/android/src/main/java/com/huawei/hms/rn/account/modules/SMSManagerModule.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | hms-react-native-plugin | craig95 | Java | Code | 425 | 1,566 | /*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required... | 6,988 |
https://github.com/vince-refiti/Dolphin/blob/master/Core/Object Arts/Samples/Sockets/Net.Examples.cls | Github Open Source | Open Source | MIT | 2,023 | Dolphin | vince-refiti | Apex | Code | 32 | 141 | "Filed out from Dolphin Smalltalk"!
Net
subclass: #'Net.Examples'
instanceVariableNames: ''
classVariableNames: ''
imports: #()
classInstanceVariableNames: ''
classConstants: {}!
Net.Examples guid: (Core.GUID fromString: '{1e785b01-09d9-434d-aa1f-5c0bbe43ea84}')!
Net.Examples isNonInstantiable: true!
Net.Exampl... | 12,954 |
https://github.com/JetBrains/teamcity-rest/blob/master/src/jetbrains/buildServer/server/rest/model/build/matrix/MatrixParameterDescription.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | teamcity-rest | JetBrains | Java | Code | 171 | 464 | /*
* Copyright 2000-2023 JetBrains s.r.o.
*
* 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 agre... | 55,093 |
https://github.com/housmart/json-api-dart/blob/master/test/unit/client/mock_handler.dart | Github Open Source | Open Source | MIT | 2,022 | json-api-dart | housmart | Dart | Code | 26 | 75 | import 'package:json_api/http.dart';
class MockHandler implements HttpHandler {
late HttpRequest request;
late HttpResponse response;
@override
Future<HttpResponse> handle(HttpRequest request) async {
this.request = request;
return response;
}
}
| 35,345 |
https://github.com/pusher/lyft-goruntime/blob/master/snapshot/iface.go | Github Open Source | Open Source | Apache-2.0 | null | lyft-goruntime | pusher | Go | Code | 384 | 628 | package snapshot
import (
"time"
"github.com/lyft/goruntime/snapshot/entry"
)
// Snapshot provides the currently loaded set of runtime values.
type IFace interface {
// Test if a feature is enabled using the built in random generator. This is done by generating
// a random number in the range 0-99 and seeing if ... | 6,458 |
https://github.com/nicholaspiantadosi/GVirtuS/blob/master/plugins/cusolver/demo/dense/eigenvalue_solver/dnsyevd.cu | Github Open Source | Open Source | Apache-2.0 | null | GVirtuS | nicholaspiantadosi | null | Spoken | 501 | 1,788 | /*
* How to compile (assume cuda is installed at /usr/local/cuda/)
* nvcc -c -I/usr/local/cuda/include syevd_example.cpp
* g++ -o a.out syevd_example.o -L/usr/local/cuda/lib64 -lcudart -lcusolver
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <cuda_runtime.h>
#include <cusolverDn.h>
... | 51,069 |
https://github.com/DongElkan/pepfrag/blob/master/pepfrag/cpepfrag.cpp | Github Open Source | Open Source | MIT | 2,021 | pepfrag | DongElkan | C++ | Code | 296 | 1,197 | #include <Python.h>
#include <string>
#include <stdexcept>
#include <unordered_map>
#include <vector>
#include "cpepfrag.h"
#include "converters.h"
#include "iongenerator.h"
#include "ion.h"
#include "mass.h"
Ions generateIons(
IonType type,
const std::vector<double>& masses,
long charge,
const std::vector<Neutra... | 36,959 |
https://github.com/guardian/alexa-skills-lambda/blob/master/src/intentLogic/launch.js | Github Open Source | Open Source | Apache-2.0 | 2,017 | alexa-skills-lambda | guardian | JavaScript | Code | 199 | 634 | const speech = require('../speech').speech
const sound = require('../speech').sound
const randomMsg = require('../helpers').randomMessage
const getStage = require('../helpers').getStage
const UserStore = require('../userStore')
const Moment = require('moment')
module.exports = function () {
const userStore = new Use... | 19,402 |
https://github.com/elbitdigital/fazendatrevoazul/blob/master/public/dist/js/fazendatrevoazul.js | Github Open Source | Open Source | MIT | null | fazendatrevoazul | elbitdigital | JavaScript | Code | 575 | 2,284 | /*!
* Elbit Fazenda Trevo Azul Project v0.0.0 (http://elbit.com.br/)
* Copyright 2013-2016 Elbit Developers
* Licensed under MIT (https://github.com/elbitdigital/base/blob/master/LICENSE)
*/
/* Contact */
/* Contact email manipulation */
var formSentCount = 0;
var formSentCountLimit = 2;
var requestURL = 'h... | 2,821 |
https://github.com/olumidae/WayFarer/blob/master/server/test/test.test.js | Github Open Source | Open Source | MIT | null | WayFarer | olumidae | JavaScript | Code | 793 | 4,135 | import chai from 'chai';
import chaiHttp from 'chai-http';
import app from '../app';
import pool from '../models/db/db';
const { expect } = chai;
chai.use(chaiHttp);
let admintoken = '';
let token = '';
describe('User Authentication', () => {
before((done) => {
const createAdmin = `INSERT INTO users (
id... | 23,081 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.