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/bguerout/ava-native/blob/master/test/fixture/inspect-arg.js | Github Open Source | Open Source | MIT | 2,021 | ava-native | bguerout | JavaScript | Code | 11 | 39 | import test from '../../';
test(t => {
t.true(process.execArgv[0].indexOf('--inspect') === 0);
});
| 3,604 |
https://github.com/GabrielJulio/Analise-De-Algoritimos/blob/master/BubbleSort.py | Github Open Source | Open Source | MIT | 2,019 | Analise-De-Algoritimos | GabrielJulio | Python | Code | 39 | 113 | def bubble_sort(vetor):
final = len(vetor)
while final > 0:
posicao = 0
while posicao < final - 1:
if vetor[posicao] > vetor[posicao + 1]:
vetor[posicao], vetor[posicao + 1] = vetor[posicao + 1], vetor[posicao]
posicao += 1
final -= 1
| 7,070 |
https://github.com/Yorko/gender-unbiased_BERT-based_pronoun_resolution/blob/master/frozen_model/scripts/feat_group2_subject_in_url.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | gender-unbiased_BERT-based_pronoun_resolution | Yorko | Python | Code | 93 | 306 | import pandas as pd
def scrape_url(url):
"""
Get the title of the wikipedia page and replace "_" with white space
"""
return url[29:].lower().replace("_", " ")
def check_name_in_string(name, string):
"""
Check whether the name string is a substring of another string (i.e. wikipedia title)
... | 40,208 |
https://github.com/phamvanhungmixi/contractz/blob/master/js/token/balance.js | Github Open Source | Open Source | MIT | 2,019 | contractz | phamvanhungmixi | JavaScript | Code | 30 | 120 | const config = require("../config");
const contract = require("../contract")("PBToken", config.contracts[0]);
const web3 = require("../web3");
contract.methods
.balanceOf(config.accounts[0])
.call()
.then((result) => {
console.log("Token balance is", web3.utils.fromWei(result, "ether"));
})
.catch((err) ... | 32,564 |
https://github.com/geneontology/noctua-models/blob/master/models/MGI_MGI_1923649.ttl | Github Open Source | Open Source | CC-BY-4.0 | 2,023 | noctua-models | geneontology | Turtle | Code | 1,048 | 12,477 |
<http://model.geneontology.org/MGI_MGI_1923649> a <http://www.w3.org/2002/07/owl#Ontology> .
<http://geneontology.org/lego/evidence> a <http://www.w3.org/2002/07/owl#AnnotationProperty> .
<http://geneontology.org/lego/hint/layout/x> a <http://www.w3.org/2002/07/owl#AnnotationProperty> .
<http://geneontology.org/leg... | 48,965 |
https://github.com/tuluce/iRun/blob/master/pages/index.js | Github Open Source | Open Source | MIT | 2,022 | iRun | tuluce | JavaScript | Code | 117 | 413 | import React from 'react';
import Head from 'next/head';
import App from '../app';
const rootUrl = 'https://irun.fyi';
const HomePage = () => {
return (
<>
<Head>
<link href='https://unpkg.com/normalize.css@^7.0.0' rel='stylesheet' />
<link href='https://unpkg.com/@blueprintjs/icons@^3.4.... | 25,075 |
https://github.com/dpgrubb13/riscv-boom/blob/master/src/main/scala/common/microop.scala | Github Open Source | Open Source | Apache-2.0 | null | riscv-boom | dpgrubb13 | Scala | Code | 985 | 2,316 | //******************************************************************************
// Copyright (c) 2015, The Regents of the University of California (Regents).
// All Rights Reserved. See LICENSE for license details.
//------------------------------------------------------------------------------
//---------------------... | 14,982 |
https://github.com/zoxjs/graphql-plugins/blob/master/lib/SubscriptionResolver.ts | Github Open Source | Open Source | MIT | null | graphql-plugins | zoxjs | TypeScript | Code | 404 | 1,149 | import {GraphQLResolveInfo} from 'graphql';
import {$$asyncIterator} from 'iterall';
import {EventEmitter} from 'events';
export interface ISubscriptionResolver<T = any, R = T>
{
subscribe(source, args, context, info: GraphQLResolveInfo): AsyncIterator<T>
resolve(source, args, context, info: GraphQLResolveInfo... | 47,800 |
https://github.com/CorrosionClient/Verus-AntiCheat-SourceCode-Reup-1/blob/master/src/me/levansj01/verus/compat/packets/VPacketPlayOutEntityVelocity.java | Github Open Source | Open Source | MIT | 2,021 | Verus-AntiCheat-SourceCode-Reup-1 | CorrosionClient | Java | Code | 52 | 166 | package me.levansj01.verus.compat.packets;
import me.levansj01.verus.compat.*;
public abstract class VPacketPlayOutEntityVelocity extends VPacket
{
protected int motX;
protected int motY;
protected int motZ;
protected int id;
public int getMotX() {
return this.motX;
}
pub... | 30,220 |
https://github.com/nprapps/graphics-archive/blob/master/2020/02/graphics-js/iowa-alignments-20200127/graphic.js | Github Open Source | Open Source | FSFAP | 2,021 | graphics-archive | nprapps | JavaScript | Code | 1,299 | 4,300 | // Global vars
var pym = require("./lib/pym");
var ANALYTICS = require("./lib/analytics");
require("./lib/webfonts");
var { isMobile } = require("./lib/breakpoints");
var pymChild;
var { COLORS, makeTranslate, classify, formatStyle, fmtComma, wrapText } = require("./lib/helpers");
var fmtComma = s => s.toLocaleStrin... | 4,521 |
https://github.com/Mercally/Demos.Net/blob/master/Web/WebApp/Helper/CalculadoraHelper.cs | Github Open Source | Open Source | Apache-2.0 | null | Demos.Net | Mercally | C# | Code | 156 | 567 | using Microsoft.ServiceBus.Messaging;
using System;
using System.Configuration;
using System.Net.Http;
using System.Net.Http.Headers;
using WebApp.Models;
namespace WebApp.Helper
{
public class CalculadoraHelper
{
string Uri = "http://localhost:57607/api/Calculadora";
public int Get()... | 20,024 |
https://github.com/Dbevan/SunderingShadows/blob/master/d/av_rooms/lurue/dekumage_b4.c | Github Open Source | Open Source | MIT | 2,021 | SunderingShadows | Dbevan | C | Code | 318 | 770 | // File created with /daemon/persistent_room_d.c
#include <std.h>
inherit "/cmds/avatar/avatar_room.c";
void create()
{
::create();
set_name("dekumage_b4");
set_property("indoors",1);
set_property("light",-1);
set_property("no teleport",1);
set_terrain("stone building");
set_travel("slick ... | 9,318 |
https://github.com/mohameddrweesh/s2flex2/blob/master/s2flex2/src/main/java/org/seasar/flex2/core/format/amf3/io/reader/impl/Amf3IntReaderImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,013 | s2flex2 | mohameddrweesh | Java | Code | 311 | 802 | /*
* Copyright 2004-2007 the Seasar Foundation and the Others.
*
* 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 ... | 18,516 |
https://github.com/huang123aini/AudioEffect/blob/master/TXTAudioEffects/TXTAudioEffects/Classes/audioeffects/biquad/snd.h | Github Open Source | Open Source | MIT | 2,020 | AudioEffect | huang123aini | C | Code | 95 | 274 | //
// snd.h
// ReEncoder
//
// Created by huangshiping on 2019/11/1.
// Copyright © 2019 huangshiping. All rights reserved.
//
#ifndef snd_h
#define snd_h
#include <stdbool.h>
#include <stddef.h>
typedef struct
{
float L; // left channel sample
float R; // right channel sample
} sf_sample_st;
typedef st... | 19,421 |
https://github.com/bktsh/scala-practice/blob/master/.worksheet/src/scalatour.twitterSamples.scala | Github Open Source | Open Source | Apache-2.0 | null | scala-practice | bktsh | Scala | Code | 84 | 300 | package scalatour
object twitterSamples {;import org.scalaide.worksheet.runtime.library.WorksheetSupport._; def main(args: Array[String])=$execute{;$skip(66);
val chars = 'a' to 'z';System.out.println("""chars : scala.collection.immutable.NumericRange.Inclusive[Char] = """ + $show(chars ));$skip(121);
val perms =... | 47,893 |
https://github.com/quanganhbn168/Doantotnghiep/blob/master/resources/views/frontend/partrial/info.blade.php | Github Open Source | Open Source | MIT | null | Doantotnghiep | quanganhbn168 | PHP | Code | 36 | 148 | @isset($data)
<h4>Hiện tại đang có</h4>
<ul>
<li>{{$data->count()}} dự án đang đợi nhà thầu</li>
<li>{{$data->whereMonth('created_at', '=', date('m'))->count()}} dự án được đăng trong 15 ngày qua</li>
<li>{{$data->whereDay('created_at', '=', date('d'))->count()}} dự án được đăng trong 24h qua</li>
<... | 45,577 |
https://github.com/bestkay/manage-system/blob/master/app/Admin/Actions/Patient/Sign.php | Github Open Source | Open Source | MIT | null | manage-system | bestkay | PHP | Code | 87 | 505 | <?php
namespace App\Admin\Actions\Patient;
use Encore\Admin\Actions\RowAction;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Request;
use App\Admin\Model\Patient;
use App\Admin\Model\Doctor;
class Sign extends RowAction
{
public $name = '签到';
public function handle(Model $model, Request $reque... | 1,994 |
https://github.com/miguelhp373/Curso_PHP7_Do_Basico_Ao_Intermediario/blob/master/Curso/Modulo 01 - Sintaxe Básica/Material 01/exercicios/08_dowhile/exercicio_02.php | Github Open Source | Open Source | MIT | 2,021 | Curso_PHP7_Do_Basico_Ao_Intermediario | miguelhp373 | PHP | Code | 113 | 278 | <?php
/*
* Crie um loop com dowhile que exiba dentro de um elemento <div> o índice atual,
* porém quando o índice de repetição for 2, 6 e 10, troque a cor de fundo apenas desta div.
* O loop começa de 0 e vai até 12.
*/
?>
<!doctype html>
<html lang="pt-br">
<head>
<title>Repetição FOR 2</title>
... | 48,287 |
https://github.com/stevorated/server-graphql-apollo-express/blob/master/src/resolvers/lastNotifications.js | Github Open Source | Open Source | MIT-0 | 2,019 | server-graphql-apollo-express | stevorated | JavaScript | Code | 373 | 869 | import { LastNotification, User } from '../models'
import { UserInputError } from 'apollo-server-core'
import mongoose from 'mongoose'
const { ObjectId } = mongoose.Types
export default {
Query: {
getLastNotifications: async (root, {
limit = 10,
skip = 0,
sort = -1,
unread = true,
... | 3,553 |
https://github.com/zeruth/quest-helper/blob/master/src/main/java/com/questhelper/quests/recipefordisaster/RFDGoblins.java | Github Open Source | Open Source | BSD-2-Clause | 2,023 | quest-helper | zeruth | Java | Code | 1,061 | 4,267 | /*
* Copyright (c) 2021, Zoinkwiz
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions... | 6,933 |
https://github.com/xlnwel/g2rl/blob/master/replay/func.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | g2rl | xlnwel | Python | Code | 228 | 994 | from replay.uniform import UniformReplay
from replay.per import ProportionalPER
from replay.eps import EpisodicReplay
from replay.seq import SequentialReplay
from replay.sper import SequentialPER
from replay.local import *
replay_type = dict(
uniform=UniformReplay,
per=ProportionalPER,
episodic=EpisodicRe... | 32,147 |
https://github.com/differentdevelopment/dwfw/blob/master/src/app/Http/Controllers/Api/V1/AuthController.php | Github Open Source | Open Source | MIT | null | dwfw | differentdevelopment | PHP | Code | 469 | 2,266 | <?php
namespace App\Http\Controllers\Api\V1;
use Carbon\Carbon;
use Different\Dwfw\app\Traits\LoggableApi;
use Illuminate\Support\Str;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Hash;
use App\Http\Requests\Api\BaseApiFormReques... | 25,760 |
https://github.com/sakharovaan/hydrus-unleashed/blob/master/include/ClientImportGallery.py | Github Open Source | Open Source | WTFPL | 2,019 | hydrus-unleashed | sakharovaan | Python | Code | 2,697 | 12,694 | from . import ClientConstants as CC
from . import ClientDownloading
from . import ClientImportFileSeeds
from . import ClientImportGallerySeeds
from . import ClientImporting
from . import ClientImportOptions
from . import ClientNetworkingJobs
from . import ClientPaths
from . import HydrusConstants as HC
from . import Hy... | 1,208 |
https://github.com/thewtex/mmmccormick.com/blob/master/src/gauss_pulse.py | Github Open Source | Open Source | MIT | null | mmmccormick.com | thewtex | Python | Code | 85 | 212 | width = 60.
height = 25.
from scipy import signal
import numpy as np
import matplotlib.pyplot as plt
time = np.linspace(-1, 1, 50, endpoint=True)
pulse = signal.gausspulse(time, fc=2)
plt.plot(time, pulse)
# plt.show()
output = " points='"
xmid = height / 2
for ii in range(len(pulse)):
x = float(ii) / ... | 3,597 |
https://github.com/SERE026/OERP/blob/master/src/main/java/com/juzi/oerp/model/dto/analysis/DataGroupColumnDTO.java | Github Open Source | Open Source | MIT | 2,021 | OERP | SERE026 | Java | Code | 38 | 157 | package com.juzi.oerp.model.dto.analysis;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @author Juzi
* @date 2020/7/22 10:49
*/
@Data
@ApiModel(description = "考生性别对比")
public class DataGroupColumnDTO {
@ApiModelProperty("月份")
private Stri... | 11,662 |
https://github.com/wwalpha/pocket-cards/blob/master/backend/nodejs/core/src/services/b0/b006.ts | Github Open Source | Open Source | Apache-2.0 | 2,019 | pocket-cards | wwalpha | TypeScript | Code | 105 | 316 | import { Request } from 'express';
import { DBHelper, DateUtils } from '@utils';
import { Words } from '@queries';
import { APIs, Tables } from 'typings';
/**
* グループ情報検索
*
* GET /groups/:groupId/status
*/
export default async (req: Request<APIs.B006Params, any, APIs.B006Request, any>): Promise<APIs.B006Response> =... | 26,147 |
https://github.com/hugonasciutti/Exercises/blob/master/Jest/0/public/__tests__/sum.spec.js | Github Open Source | Open Source | MIT | 2,018 | Exercises | hugonasciutti | JavaScript | Code | 72 | 290 | import { sum } from '../javascripts/sum';
describe('function sum()', () => {
it('adds 1 + 2 equal 3', () => {
expect(sum(1, 2)).toBe(3);
expect(sum(5, 5)).toBe(10);
expect(sum(10.0, 5.0)).toBe(15);
});
it('more than 2 arguments', () => {
expect(sum(1, 2, 10)).toBe(3);
expect(sum(1, 2, 9, 10)... | 13,354 |
https://github.com/microsoft/accessibility-insights-web/blob/master/src/tests/unit/tests/common/message-creators/card-selection-message-creator.test.ts | Github Open Source | Open Source | MIT | 2,023 | accessibility-insights-web | microsoft | TypeScript | Code | 320 | 1,282 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import {
BaseActionPayload,
CardSelectionPayload,
RuleExpandCollapsePayload,
} from 'background/actions/action-payloads';
import { BaseTelemetryData, TelemetryEventSource } from 'common/extension-telemetry-events... | 33,286 |
https://github.com/shroudedcode/apk-mitm/blob/master/src/tasks/modify-manifest.ts | Github Open Source | Open Source | MIT | 2,022 | apk-mitm | shroudedcode | TypeScript | Code | 142 | 447 | import * as fs from '../utils/fs'
import xml = require('xml-js')
export default async function modifyManifest(
path: string,
debuggable = false,
mapsApiKey = '',
) {
const document = xml.xml2js(await fs.readFile(path, 'utf-8')) as xml.Element
const manifest = document.elements?.find(el => el.name === 'manif... | 37,869 |
https://github.com/fandomfilms/corkscrew-master/blob/master/src/css/_modal.scss | Github Open Source | Open Source | MIT | 2,016 | corkscrew-master | fandomfilms | SCSS | Code | 142 | 511 | .dx-modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba($black, .6);
&.animate-in {
display: block;
animation-name: fadeIn;
animation-duration: .3s;
animation-fill-mode: both;
.modal-content {... | 34,355 |
https://github.com/FFittkau/ExplorViz/blob/master/src-external/de/cau/cs/kieler/klay/layered/p4nodes/bk/BKAlignedLayout.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | ExplorViz | FFittkau | Java | Code | 1,595 | 3,559 | /*
* KIELER - Kiel Integrated Environment for Layout Eclipse RichClient
*
* http://www.informatik.uni-kiel.de/rtsys/kieler/
*
* Copyright 2015 by
* + Christian-Albrechts-University of Kiel
* + Department of Computer Science
* + Real-Time and Embedded Systems Group
*
* This code is provided under the t... | 24,492 |
https://github.com/StefanMaron/MSDyn365BC.Code.History/blob/master/BaseApp/Source/Base Application/FinancialMgt/Dimensions/DimensionSetEntries.Query.al | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT, LicenseRef-scancode-warranty-disclaimer | 2,023 | MSDyn365BC.Code.History | StefanMaron | null | Spoken | 55 | 194 | query 260 "Dimension Set Entries"
{
Caption = 'Dimension Set Entries';
elements
{
dataitem(Dimension_Set_Entry; "Dimension Set Entry")
{
column(Dimension_Set_ID; "Dimension Set ID")
{
}
column(Dimension_Code; "Dimension Code")
{
... | 12,299 |
https://github.com/DXYyang/SDP/blob/master/sourcedata/camel-camel-1.6.0/camel-core/src/main/java/org/apache/camel/util/CollectionHelper.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | SDP | DXYyang | Java | Code | 469 | 898 | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | 28,821 |
https://github.com/jalgamestudios/FataMirage/blob/master/FataMirage/Core/Particles/ParticleBound.cs | Github Open Source | Open Source | MIT | 2,014 | FataMirage | jalgamestudios | C# | Code | 79 | 235 | using SharpDX;
using System;
using System.Collections.Generic;
using System.Text;
namespace FataMirage.Core.Particles
{
class ParticleBound
{
RectangleF bounds;
public List<Particle> particles;
public void Update(float elapsedTime)
{
foreach (var particle in particl... | 33,501 |
https://github.com/sadrulhc/chromium/blob/master/chromeos/components/diagnostics_ui/resources/memory_card.js | Github Open Source | Open Source | BSD-3-Clause | 2,020 | chromium | sadrulhc | JavaScript | Code | 224 | 852 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'chrome://resources/cr_elements/icons.m.js';
import 'chrome://resources/polymer/v3_0/iron-icon/iron-icon.js';
import './data_point.js';
import './d... | 1,562 |
https://github.com/jdelon02/civitest1/blob/master/vendor/civicrm/civicrm-core/CRM/Campaign/Form/Search/Petition.php | Github Open Source | Open Source | MIT | null | civitest1 | jdelon02 | PHP | Code | 373 | 1,034 | <?php
/*
+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2019 |
+---------------------... | 4,624 |
https://github.com/CodedLadiesInnovateTech/-python-challenge-solutions/blob/master/GodwillOnyewuchi/Phase 1/Python Basic 2/day 16 task/task10.py | Github Open Source | Open Source | MIT | 2,021 | -python-challenge-solutions | CodedLadiesInnovateTech | Python | Code | 54 | 105 | # Write a Python function to find a distinct pair of numbers whose product is odd from a sequence of integer values
List = [-2, 5, -10, 5, -4]
for i in range(len(List)):
for j in range(len(List)):
if i != j:
product = List[i] * List[j]
if product + product > 0:
prin... | 25,202 |
https://github.com/simpledigital/copay/blob/master/src/pages/integrations/product-search/product-search-page/product-search-page.ts | Github Open Source | Open Source | MIT | null | copay | simpledigital | TypeScript | Code | 202 | 755 | import { Component, OnInit, ViewChild } from '@angular/core';
import { NavController } from 'ionic-angular';
import { BuyCardPage } from '../buy-card/buy-card';
import { ActionSheetProvider } from '../../../../providers';
import { GiftCardProvider } from '../../../../providers/gift-card/gift-card';
import { CardConfi... | 38,644 |
https://github.com/codejs-net/WebAPI-ASP-Dotnet-Core/blob/master/WebApi/Services/RolePermissions/RolePermissionService.cs | Github Open Source | Open Source | MIT | 2,021 | WebAPI-ASP-Dotnet-Core | codejs-net | C# | Code | 139 | 485 | using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using WebApi.App;
using WebApi.Entities;
namespace WebApi.Services.RolePermissions
{
public class RolePermissionService:IRolePermissionService
{
private AppDbContext _c... | 37,800 |
https://github.com/OasisDEX/xDex/blob/master/src/instant/TradingSide.tsx | Github Open Source | Open Source | Apache-2.0 | null | xDex | OasisDEX | TypeScript | Code | 245 | 765 | /*
* Copyright (C) 2020 Maker Ecosystem Growth Holdings, INC.
*/
import { BigNumber } from 'bignumber.js';
import * as React from 'react';
import { createNumberMask } from 'text-mask-addons/dist/textMaskAddons';
import { getToken } from '../blockchain/config';
import { User } from '../blockchain/user';
import { Off... | 32,148 |
https://github.com/emsad87/css-framework/blob/master/scss/components/_buttons.scss | Github Open Source | Open Source | MIT | null | css-framework | emsad87 | SCSS | Code | 113 | 374 | @use "../design/colors";
// BASE BUTTON STRUCTURE
.btn {
display: inline-block;
padding: 0.5rem 1rem;
white-space: nowrap;
vertical-align: middle;
text-align: center;
cursor: pointer;
}
// BUTTON COLORS
@each $name, $color in colors.$theme-colors {
@if $name == "light" {
.btn-#{$name} {
backgr... | 7,011 |
https://github.com/xiongfang/UnrealCS/blob/master/Script/UnrealEngine/GeneratedScriptFile/UCheatManager.cs | Github Open Source | Open Source | MIT | 2,022 | UnrealCS | xiongfang | C# | Code | 888 | 2,014 | using System;
namespace UnrealEngine
{
public partial class UCheatManager:UObject
{
/// <summary>Executes commands listed in CheatScript.ScriptName ini section of DefaultGame.ini</summary>
public extern void CheatScript(FString ScriptName);
/// <summary>Backwards compatibility exec function for people used to i... | 50,696 |
https://github.com/florix/DLX/blob/master/synthesis/DLX_synthesis_cfg/a.b-DataPath.core/a.b.c-execute.vhd | Github Open Source | Open Source | MIT | null | DLX | florix | VHDL | Code | 1,135 | 3,070 | library ieee;
use ieee.std_logic_1164.all;
-- Units present in this block (refer to DP schematic):
-- adder1
-- adder2
-- jreg_mux21
-- concatenate16
-- oprnd1_mux41
-- oprnd2_mux41
-- regaddr_mux21
-- forwarding unit
-- alusrc_mux21
-- ALU
-- plus4_adder
-- branch_circ
-- PSW
-- link_mux21... | 38,672 |
https://github.com/yojoots/sig-lab/blob/master/factom/convert.py | Github Open Source | Open Source | MIT | null | sig-lab | yojoots | Python | Code | 135 | 791 | import base58
import identitykeys
from hashlib import sha256
from sys import argv
# import factom_keys.fct as fct
try:
user_input = argv[1]
# This doesn't seem to work as expected:
"""
factoid_private_key = fct.FactoidPrivateKey(seed_bytes=bytes.fromhex(user_input))
print(f"FCT (private): {factoid... | 28,647 |
https://github.com/awraihangt/Watchdog_Discord_Bot/blob/master/Bot/cogs/Auto Moderation/Swearing.py | Github Open Source | Open Source | MIT | 2,020 | Watchdog_Discord_Bot | awraihangt | Python | Code | 264 | 1,383 | from better_profanity import profanity
from discord.ext import commands
from utils import sql
from utils.functions import func
from cogs.Core.Rules import Rules
from cogs.Core.Language import Language
class SwearFilter(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.Cog.listener()
... | 14,030 |
https://github.com/tsun7170/SwiftSDAIap242/blob/master/Sources/SwiftSDAIap242/entity-ap242/M/mechanical_design_geometric_presentation_representation.swift | Github Open Source | Open Source | MIT | 2,022 | SwiftSDAIap242 | tsun7170 | Swift | Code | 7,207 | 32,796 | /* file: mechanical_design_geometric_presentation_representation.swift generated: Mon Jan 3 16:32:52 2022 */
/* This file was generated by the EXPRESS to Swift translator "exp2swift",
derived from STEPcode (formerly NIST's SCL).
exp2swift version: v.1.0.1, derived from stepcode v0.8 as of 2019/11/23
WARNING... | 51,775 |
https://github.com/henriqueholanda/photoprism/blob/master/internal/server/server.go | Github Open Source | Open Source | MIT | null | photoprism | henriqueholanda | Go | Code | 143 | 476 | package server
import (
"context"
"fmt"
"net/http"
"github.com/gin-gonic/gin"
"github.com/photoprism/photoprism/internal/config"
"github.com/photoprism/photoprism/internal/event"
)
var log = event.Log
// Start the REST API server using the configuration provided
func Start(ctx context.Context, conf *config.Co... | 6,449 |
https://github.com/Xilinx/Vitis_Libraries/blob/master/solver/L2/include/hw/MatrixDecomposition/getrf_nopivot.hpp | Github Open Source | Open Source | Apache-2.0 | 2,023 | Vitis_Libraries | Xilinx | C++ | Code | 735 | 1,557 | /*
* Copyright (C) 2019-2022, Xilinx, Inc.
* Copyright (C) 2022-2023, Advanced Micro Devices, 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/licens... | 23,550 |
https://github.com/amitsarkar007/Selenium-Practice/blob/master/06.iFrameForm/index.js | Github Open Source | Open Source | MIT | null | Selenium-Practice | amitsarkar007 | JavaScript | Code | 78 | 540 | const { Builder, By, Key } = require("selenium-webdriver");
const driver = new Builder().forBrowser("firefox").build();
async function iFrameForm() {
try {
await driver.get(
"https://rori4.github.io/selenium-practice/#/pages/practice/iframe-form"
);
await driver.switchTo().fram... | 13,495 |
https://github.com/MarinX/golang_sdk/blob/master/yip_app.go | Github Open Source | Open Source | Apache-2.0 | null | golang_sdk | MarinX | Go | Code | 110 | 380 | package yuansfer
//Prepay does the mobile payment for the In-APP and/or WeChat Mini program solutions.
type Prepay struct {
GroupNo string `json:"merGroupNo,omitempty"`
MerchantNo string `json:"merchantNo"`
StoreNo string `json:"storeNo"`
VerifySign string `json:"verifySign"`
Currency string `js... | 2,816 |
https://github.com/capturetechnologies/stored/blob/master/object.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | stored | capturetechnologies | Go | Code | 2,770 | 8,208 | package stored
import (
"fmt"
"reflect"
"strings"
"github.com/apple/foundationdb/bindings/go/src/fdb"
"github.com/apple/foundationdb/bindings/go/src/fdb/directory"
"github.com/apple/foundationdb/bindings/go/src/fdb/subspace"
"github.com/apple/foundationdb/bindings/go/src/fdb/tuple"
)
// Object is an abstracti... | 39,337 |
https://github.com/AMS21/PreyRun/blob/master/src/Prey/prey_soundleadincontroller.cpp | Github Open Source | Open Source | MIT | 2,021 | PreyRun | AMS21 | C++ | Code | 612 | 1,989 | #include "../idlib/precompiled.h"
#pragma hdrstop
#include "prey_local.h"
CLASS_DECLARATION( idClass, hhSoundLeadInController )
END_CLASS
/*
================
hhSoundLeadInController::hhSoundLeadInController
HUMANHEAD: aob
================
*/
hhSoundLeadInController::hhSoundLeadInController() {
leadInShader = NULL;... | 47,004 |
https://github.com/hanstheman83/Reaper_UnityVR/blob/master/ReaperRemote/Assets/Core/Scripts/ManagersAndControllers/DrawingBoardController.cs | Github Open Source | Open Source | MIT | null | Reaper_UnityVR | hanstheman83 | C# | Code | 55 | 261 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR.Interaction.Toolkit;
using Core.Controls;
[RequireComponent(typeof(XRGrabInteractable))]
public class DrawingBoardController : MonoBehaviour
{
ControllerHand controlledBy = ControllerHand.None;
public void OnSe... | 4,068 |
https://github.com/aquanstudy/U8Project/blob/master/u8sdk_sanxing/src/main/java/com/u8/sdk/SanXingUser.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | U8Project | aquanstudy | Java | Code | 85 | 362 | package com.u8.sdk;
import android.app.Activity;
import com.u8.sdk.utils.Arrays;
public class SanXingUser extends U8UserAdapter {
private String[] suppertMethods = { "login", "logout","switchLogin", "exit", "submitExtraData", "showAccountCenter" };
public SanXingUser(Activity context) {
try{
SanXingSDK.get... | 16,010 |
https://github.com/gckoeppel/serverless-slack-lunch-hunter/blob/master/src/clients/eurest.js | Github Open Source | Open Source | MIT | null | serverless-slack-lunch-hunter | gckoeppel | JavaScript | Code | 170 | 632 | 'use strict';
const btoa = require('btoa');
const rp = require('request-promise-native');
const baseURL = 'https://clients.eurest.ch/api/Menu/';
module.exports = {
name: 'Eurest',
/**
* requests today's menu offers from `clients.eurest.ch` API
* @param outletId id of outlet to request menu offers from
* ... | 31,664 |
https://github.com/ywy2090/bcos-crypto/blob/master/cmake/InstallInclude.cmake | Github Open Source | Open Source | Apache-2.0 | 2,022 | bcos-crypto | ywy2090 | CMake | Code | 29 | 166 | set(DESTINATION_INCLUDE_DIR "${CMAKE_INSTALL_INCLUDEDIR}/bcos-crypto")
install(
DIRECTORY "hash"
DESTINATION "${DESTINATION_INCLUDE_DIR}"
FILES_MATCHING PATTERN "*.h"
)
install(
DIRECTORY "signature"
DESTINATION "${DESTINATION_INCLUDE_DIR}"
FILES_MATCHING PATTERN "*.h"
)
install(
DIRECTORY ... | 33,937 |
https://github.com/HVish/streetsupport-web/blob/master/src/pages/locations/_swep.hbs | Github Open Source | Open Source | MIT | null | streetsupport-web | HVish | null | Spoken | 90 | 349 | ---
title: Severe Weather Emergency Accommodation in locationName - Street Support
description: Severe Weather Emergency Accommodation provision in locationName.
image: https://streetsupport.net/assets/img/og/street-support.png
layout: default.hbs
permalink: false
jsBundle: swep
section: locationId
page: locationId-adv... | 42,610 |
https://github.com/bsideup/groovy-macro-methods/blob/master/src/main/java/ru/trylogic/groovy/macro/runtime/Macro.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | groovy-macro-methods | bsideup | Java | Code | 25 | 122 | package ru.trylogic.groovy.macro.runtime;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
*
* @author Sergei Egorov <bsideup@gmail.com>
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.M... | 8,662 |
https://github.com/AC32006-Team11/delivrhyno/blob/master/DBMSUpdateRestaurant.php | Github Open Source | Open Source | MIT | 2,016 | delivrhyno | AC32006-Team11 | PHP | Code | 262 | 968 | <?php include 'header.php'; ?>
<?php function updateRestaurant()
{
include 'dbConnect.php';
$restaurantID = $_POST["restaurantID"];
$restaurant_name = $_POST["restaurant_name"];
$restaurant_description = $_POST["restaurant_description"];
$street = $_POST["street"];
$county = $_POST["county"];... | 43,384 |
https://github.com/ezkat/linkedevents/blob/master/events/migrations/0041_rebuild_organization_mptt_index.py | Github Open Source | Open Source | MIT | 2,021 | linkedevents | ezkat | Python | Code | 70 | 233 | # -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2017-07-11 15:35
from __future__ import unicode_literals
import mptt
from django.db import migrations
def forward(apps, schema_editor):
# the zero mptt fields won't do, we need a treemanager to build the mptt tree
manager = mptt.managers.TreeManager()
... | 52,741 |
https://github.com/moshg/rust-std-ja/blob/master/src/test/ui/lifetimes/lifetime-errors/liveness-assign-imm-local-notes.rs | Github Open Source | Open Source | MIT, BSD-3-Clause, NCSA, Apache-2.0, LicenseRef-scancode-other-permissive, BSD-2-Clause | 2,018 | rust-std-ja | moshg | Rust | Code | 202 | 447 | // Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | 6,126 |
https://github.com/ItzWarty/Dargon.Courier/blob/master/Dargon.Courier/Messaging/NetworkBroadcaster.cs | Github Open Source | Open Source | Naumen, Condor-1.1, MS-PL | null | Dargon.Courier | ItzWarty | C# | Code | 14 | 48 | using System;
namespace Dargon.Courier.Messaging {
public interface NetworkBroadcaster {
void SendCourierPacket<TPayload>(TPayload payload);
}
}
| 1,934 |
https://github.com/qeo/qeo-core/blob/master/sample-qgauge/qgaugereader/CorePlotHeaders/CPTColor.h | Github Open Source | Open Source | curl | 2,020 | qeo-core | qeo | C | Code | 166 | 522 | /*
* Copyright (c) 2016 - Qeo LLC
*
* The source code form of this Qeo Open Source Project component is subject
* to the terms of the Clear BSD license.
*
* You can redistribute it and/or modify it under the terms of the Clear BSD
* License (http://directory.fsf.org/wiki/License:ClearBSD). See LICENSE file
* fo... | 50,165 |
https://github.com/pToxProject/pTox/blob/master/cmake/Findlibfilteraudio.cmake | Github Open Source | Open Source | MIT | null | pTox | pToxProject | CMake | Code | 106 | 535 | # - Try to find FilterAudio
# Once done this will define
# LIBFILTERAUDIO_FOUND - System has FilterAudio
# LIBFILTERAUDIO_INCLUDE_DIRS - The FilterAudio include directories
# LIBFILTERAUDIO_LIBRARIES - The libraries needed to use FilterAudio
# LIBFILTERAUDIO_DEFINITIONS - Compiler switches required for using Filter... | 1,676 |
https://github.com/jfturcot/webduino/blob/master/examples/Web_HelloWorld/Web_HelloWorld.pde | Github Open Source | Open Source | MIT | 2,010 | webduino | jfturcot | null | Spoken | 359 | 672 | /* Web_HelloWorld.pde - very simple Webduino example */
#include "Ethernet.h"
#include "WebServer.h"
/* CHANGE THIS TO YOUR OWN UNIQUE VALUE. The MAC number should be
* different from any other devices on your network or you'll have
* problems receiving packets. */
static uint8_t mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, ... | 11,739 |
https://github.com/pocketgems/XLE2/blob/master/Tools/ToolsRig/VisualisationUtils.cpp | Github Open Source | Open Source | MIT | 2,020 | XLE2 | pocketgems | C++ | Code | 2,585 | 12,339 | // Copyright 2015 XLGAMES Inc.
//
// Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#include "VisualisationUtils.h"
#include "../../SceneEngine/LightDesc.h"
#include "../../SceneEngine/LightingParserContext.h"
#include "../../... | 38,545 |
https://github.com/rsoftone/virmap/blob/master/aggreg_stats/aggreg_stats_workbook.py | Github Open Source | Open Source | Apache-2.0 | null | virmap | rsoftone | Python | Code | 899 | 3,269 | # Copyright 2020 University of New South Wales
#
# 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 o... | 44,037 |
https://github.com/LGDEMO/pearl/blob/master/gem-admin/src/main/resources/static/plugins/menus/src/styles/_vars.scss | Github Open Source | Open Source | MIT | 2,022 | pearl | LGDEMO | SCSS | Code | 8 | 28 | $basicContext__color : #4393e6 !default;
$basicContext__zIndex : 1000 !default; | 23,283 |
https://github.com/tekumseh12/chat/blob/master/app/Http/Controllers/ChatMessagesController.php | Github Open Source | Open Source | MIT | null | chat | tekumseh12 | PHP | Code | 95 | 380 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use App\Models\User;
use App\Models\Message;
use App\Jobs\skuska;
use App\Events\messageSend;
use Illuminate\Support\Facades\DB;
class ChatMessagesController extends Controller
{
public function sendMessage(Re... | 27,131 |
https://github.com/stanimirvasilev/oo-banking-online-web-sp-000/blob/master/lib/bank_account.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain | 2,020 | oo-banking-online-web-sp-000 | stanimirvasilev | Ruby | Code | 56 | 158 | require"pry"
class BankAccount
attr_reader :name
attr_accessor :balance, :status
def initialize(name)
@name = name
@balance = 1000
@status = "open"
end
def name
@name
end
def deposit(deposit)
@balance += (deposit)
end
def display_balance
"Your balance is $#{@balance}."
end
def valid?
self.status == "o... | 31,190 |
https://github.com/Supernova123/chargeflask/blob/master/docs/html/search/classes_4.js | Github Open Source | Open Source | MIT | 2,018 | chargeflask | Supernova123 | JavaScript | Code | 6 | 100 | var searchData=
[
['permissions',['Permissions',['../classapp_1_1users_1_1permissions_1_1_permissions.html',1,'app::users::permissions']]],
['prioritytype',['PriorityType',['../classapp_1_1charges_1_1models_1_1_priority_type.html',1,'app::charges::models']]]
];
| 22,579 |
https://github.com/joao-fontenele/simple-go-api/blob/master/src/server/main.go | Github Open Source | Open Source | MIT | 2,020 | simple-go-api | joao-fontenele | Go | Code | 239 | 672 | package main
import (
"context"
"encoding/json"
"fmt"
"log"
"net/http"
)
type helloWorldResponse struct {
Message string `json:"message"` // `json:"message" renames the field for marshalling`
}
// defining this type is optional for unmarshalling, but for clarity of the code
// it's better to define it. It also... | 30,735 |
https://github.com/hyamero/portfolio/blob/master/utilities/GlobalContext.tsx | Github Open Source | Open Source | MIT | 2,022 | portfolio | hyamero | TypeScript | Code | 79 | 234 | import React, { useRef, useContext, createContext, useState } from "react";
interface GlobalContextProps {
aboutRef: React.RefObject<HTMLDivElement>;
loaderComplete: boolean;
setLoaderComplete: React.Dispatch<React.SetStateAction<boolean>>;
}
const GlobalContext = createContext<GlobalContextProps>(
{} as Glob... | 45,451 |
https://github.com/rustychris/schism/blob/master/src/Utility/Pre-Processing/gen_nudge.f90 | Github Open Source | Open Source | Apache-2.0 | 2,022 | schism | rustychris | null | Spoken | 161 | 745 | ! Generate nudging factors on a rotated elliptical-zone
! Works for mixed tri/quad
! Input: hgrid.gr3; center @ the mouth; rx,ry,rat,rmax; rotating angle (angle made from
! x-axis of hgrid.gr3 to the x-axis in which the elliptical-zone is defined)
! Output: nudge.gr3 ([s,t,uv,elev]_nudge.gr... | 13,858 |
https://github.com/magnatronmaster/backend-fantastic-event/blob/master/utils/schemas/organizer.js | Github Open Source | Open Source | MIT | 2,020 | backend-fantastic-event | magnatronmaster | JavaScript | Code | 49 | 196 | const Joi = require('joi');
const { id_eventSchema } = require('./event');
const id_organizerSchema = Joi.string().guid({ version: ['uuidv4'] });
const createorganizerSchema = Joi.object({
email_organizers: Joi.array()
.items(Joi.string().email().required())
.required(),
id_event: id_eventSchema.required(... | 14,671 |
https://github.com/ringch/hnsl/blob/master/guns-admin/src/main/webapp/static/modular/irrb/canalbase/canalbase_info.js | Github Open Source | Open Source | Apache-2.0 | null | hnsl | ringch | JavaScript | Code | 511 | 2,127 | /**
* 初始化渠道基本信息详情对话框
*/
var CanalBaseInfoDlg = {
canalBaseInfoData: {},
validateFields: {
canalId: {
validators: {
notEmpty: {
message: '编号不能为空'
},
}
}, canalCode: {
validators: {
notEmpty: ... | 6,780 |
https://github.com/yimengfan/BDFramework.Core/blob/master/HybridCLRData/il2cpp_plus_repo/libil2cpp/hybridclr/metadata/VTableSetup.h | Github Open Source | Open Source | MIT, Apache-2.0 | 2,023 | BDFramework.Core | yimengfan | C++ | Code | 215 | 906 | #pragma once
#include <vector>
#include <unordered_map>
#include "metadata/Il2CppTypeHash.h"
#include "metadata/Il2CppTypeCompare.h"
#include "../CommonDef.h"
#include "MetadataUtil.h"
namespace hybridclr
{
namespace metadata
{
struct GenericClassMethod
{
const Il2CppType* type;
const Il2CppMethodDefinition* ... | 46,680 |
https://github.com/NiceLabs/ts-import-plugin/blob/master/test/test/antd.test.ts | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,018 | ts-import-plugin | NiceLabs | TypeScript | Code | 115 | 361 | import { expect } from "chai";
import { dedent } from "ts-dedent";
import { makeCompiler } from "../src/utils";
describe("should compile with antd", () => {
const compiler = makeCompiler({
libraryName: "antd", // or antd-mobile
libraryPath: "es",
moduleName: "kebabCase",
// # antd-... | 12,405 |
https://github.com/pulp-platform/mempool/blob/master/toolchain/riscv-isa-sim/riscv/insns/fcvt_w_h.h | Github Open Source | Open Source | LicenseRef-scancode-bsd-3-clause-jtag, GPL-3.0-or-later, MIT, LicenseRef-scancode-unknown-license-reference, GPL-1.0-or-later, LLVM-exception, Apache-2.0, BSD-3-Clause | 2,023 | mempool | pulp-platform | C | Code | 9 | 62 | require_extension(EXT_ZFH);
require_fp;
softfloat_roundingMode = RM;
WRITE_RD(sext32(f16_to_i32(f16(FRS1), RM, true)));
set_fp_exceptions;
| 34,913 |
https://github.com/HonzaKopecky/kimai2/blob/master/src/API/Model/TimesheetConfig.php | Github Open Source | Open Source | MIT | 2,019 | kimai2 | HonzaKopecky | PHP | Code | 198 | 628 | <?php
declare(strict_types=1);
/*
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\API\Model;
final class TimesheetConfig
{
/**
* See here: https://www.kim... | 9,948 |
https://github.com/theexiile1305/showcase-wca/blob/master/src/Routes/AuthRoute.tsx | Github Open Source | Open Source | MIT | 2,020 | showcase-wca | theexiile1305 | TSX | Code | 63 | 164 | import React from 'react';
import { Redirect, Route, RouteProps } from 'react-router-dom';
import { isAuthenticated } from 'src/Api/firebase/authentication';
import { SIGN_IN } from '.';
export type AuthRouteProps = RouteProps
// eslint-disable-next-line react/prop-types
const AuthRoute: React.FC<AuthRouteProps> = ({... | 46,265 |
https://github.com/sedc-codecademy/skwd9-09-aspnetwebapi/blob/master/G6/Class 14/SEDC.NoteApp2/SEDC.NoteApp2.Dto/Models/UserDto.cs | Github Open Source | Open Source | MIT | null | skwd9-09-aspnetwebapi | sedc-codecademy | C# | Code | 60 | 124 | using System.Collections.Generic;
namespace SEDC.NoteApp2.Dto.Models
{
public class UserDto
{
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Username { get; set; }
public string Address { get; set; }
... | 40,082 |
https://github.com/cevero/hal/blob/master/src/hal/target/portal.c | Github Open Source | Open Source | MIT | 2,021 | hal | cevero | C | Code | 940 | 2,875 | /*
* MIT License
*
* Copyright(c) 2011-2020 The Maintainers of Nanvix
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* ... | 13,231 |
https://github.com/asmita-tilave/web-test/blob/master/resources/views/team.blade.php | Github Open Source | Open Source | MIT | null | web-test | asmita-tilave | PHP | Code | 66 | 307 | @extends('layouts.vue')
@section('header')
<header class="text-gray-600 body-font border-b-2 border-inherit">
<div class="container mx-auto flex flex-wrap pt-5 flex-col md:flex-row items-center ">
<div class="md:w-64 flex-shrink-0 flex link-align">
<a class="link-style">Tree</a>
<a class=... | 12,428 |
https://github.com/GoogleCloudPlatform/gcloud-trace-java/blob/master/sdk/implementation/src/test/java/com/google/cloud/trace/SdkVersionTest.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | gcloud-trace-java | GoogleCloudPlatform | Java | Code | 25 | 129 | package com.google.cloud.trace;
import static com.google.common.truth.Truth.assertThat;
import org.junit.Test;
public class SdkVersionTest {
@Test
public void testGet() {
String version = SdkVersion.get();
assertThat(version).isNotEmpty();
assertThat(version).doesNotContain("project.version");
as... | 23,719 |
https://github.com/twofortyfouram-private/android-monorepo/blob/master/spackleLib/src/androidTest/java/com/twofortyfouram/spackle/internal/ClockImplTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | android-monorepo | twofortyfouram-private | Java | Code | 237 | 720 | /*
* android-spackle
* https://github.com/twofortyfouram/android-monorepo
* Copyright (C) 2008–2018 two forty four a.m. LLC
*
* 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:... | 27,667 |
https://github.com/cdnjs/cdnjs/blob/master/ajax/libs/multiscroll.js/0.2.2/jquery.multiscroll.js | Github Open Source | Open Source | MIT | 2,023 | cdnjs | cdnjs | JavaScript | Code | 2,430 | 8,208 | /*!
* multiscroll.js 0.2.2
* https://github.com/alvarotrigo/multiscroll.js
* @license MIT licensed
*
* Copyright (C) 2016 alvarotrigo.com - A project by Alvaro Trigo
*/
(function($, window, document, Math, undefined) {
$.fn.multiscroll = function(options) {
var MS = $.fn.multiscroll;
// Crea... | 38,565 |
https://github.com/hilburn/TheVault/blob/master/test/thevault/junit/test/RecipeWrapperTest.java | Github Open Source | Open Source | RSA-MD | 2,015 | TheVault | hilburn | Java | Code | 316 | 1,340 | package thevault.junit.test;
import thevault.collections.ItemStackMap;
import thevault.collections.ItemStackSet;
import thevault.junit.minecraft.runner.MCTestRunner;
import thevault.recipes.FurnaceWrapper;
import thevault.recipes.IRecipeWrapper;
import thevault.recipes.RecipeWrapper;
import net.minecraft.item.ItemStac... | 39,150 |
https://github.com/dactiv/basic-service/blob/master/message/src/main/java/com/github/dactiv/basic/message/config/AttachmentConfig.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | basic-service | dactiv | Java | Code | 121 | 453 | package com.github.dactiv.basic.message.config;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import java.util.Collections;
import java.util.List;
/**
... | 14,754 |
https://github.com/glenncai/classical-Chinese-library/blob/master/seeddms-5.1.9/views/bootstrap/class.ViewFolder1.php | Github Open Source | Open Source | MIT | null | classical-Chinese-library | glenncai | PHP | Code | 1,372 | 6,794 | <?php
/**
* Implementation of ViewFolder view
*
* @category DMS
* @package SeedDMS
* @license GPL 2
* @version @version@
* @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright Copyright (C) 2002-2005 Markus Westphal,
* 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli,
* 2... | 9,049 |
https://github.com/Akshay-Hegde/Discography/blob/master/language/english/discography_lang.php | Github Open Source | Open Source | WTFPL | 2,013 | Discography | Akshay-Hegde | PHP | Code | 251 | 962 | <?php
// stream
$lang['disco:stream:albums_desc'] = 'Discography Albums';
$lang['disco:stream:tracks_desc'] = 'Discography Tracks';
// title
$lang['disco:title'] = 'Discography';
// sections
$lang['disco:section:albums'] = 'Albums';
$lang['disco:section:tracks'] = 'Tracks';
// shortcuts
$lang['disco:shortcut:add_al... | 16,370 |
https://github.com/vmflzja/sms/blob/master/src/com/sms/server/service/MethodNotFoundException.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | sms | vmflzja | Java | Code | 117 | 241 | package com.sms.server.service;
import java.util.Arrays;
/**
* Thrown if service method is not found so call throws exception
*/
public class MethodNotFoundException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = 7559230924102506068L;
/**
* Creates exception with ... | 18,101 |
https://github.com/tdupont750/xunit/blob/master/src/xunit.runner.reporters/QuietReporterMessageHandler.cs | Github Open Source | Open Source | Apache-2.0 | 2,016 | xunit | tdupont750 | C# | Code | 53 | 175 | namespace Xunit.Runner.Reporters
{
public class QuietReporterMessageHandler : DefaultRunnerReporterMessageHandler
{
public QuietReporterMessageHandler(IRunnerLogger logger) : base(logger) { }
protected override bool Visit(ITestAssemblyDiscoveryStarting discoveryStarting)
=> true;
... | 15,510 |
https://github.com/baumandm/insights-explorer/blob/master/packages/backend/migrations/0008_insight_delete.down.sql | Github Open Source | Open Source | Apache-2.0 | 2,022 | insights-explorer | baumandm | SQL | Code | 6 | 19 | ALTER TABLE iex.insight DROP COLUMN deleted_at;
| 30,998 |
https://github.com/meyerbaptiste/core/blob/master/tests/Bridge/Symfony/Messenger/DataTransformerTest.php | Github Open Source | Open Source | MIT | 2,021 | core | meyerbaptiste | PHP | Code | 302 | 1,391 | <?php
/*
* This file is part of the API Platform project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace ApiPlatform\Core\Tests\Bridge\Symfony\Messeng... | 45,311 |
https://github.com/savannahar68/COVID19-Online_Justice_Court-/blob/master/shared/src/business/useCases/caseAssociationRequest/submitPendingCaseAssociationRequestInteractor.js | Github Open Source | Open Source | LicenseRef-scancode-public-domain, CC0-1.0 | 2,020 | COVID19-Online_Justice_Court- | savannahar68 | JavaScript | Code | 125 | 436 | const { UnauthorizedError } = require('../../../errors/errors');
const {
isAuthorized,
ROLE_PERMISSIONS,
} = require('../../../authorization/authorizationClientService');
/**
* submitPendingCaseAssociationRequestInteractor
*
* @param {object} providers the providers object
* @param {object} providers.applicat... | 33,018 |
https://github.com/SOL-Space-Operating-Linux/meta-tegra/blob/master/recipes-bsp/tegra-binaries/tegra-nvs-service/nvs-service.init | Github Open Source | Open Source | MIT | 2,022 | meta-tegra | SOL-Space-Operating-Linux | Shell | Code | 50 | 168 | #! /bin/sh
DAEMON=/usr/sbin/nvs-service
NAME=nvs-service
DESC="NVIDIA embedded sensor HAL daemon"
test -x $DAEMON || exit 0
case "$1" in
start|restart)
echo -n "Running $DESC: "
$DAEMON $ARGS < /dev/null > /dev/null 2>&1 &
echo "[OK]"
;;
stop)
;;
*)
N=/etc/init.d/$NAME
... | 40,137 |
https://github.com/TelerikAcademy/SchoolAcademy/blob/master/2015-10-Java-Fundamentals-1/03. Operators-and-expressions/demos/BitwiseOperatorsContinuation.java | Github Open Source | Open Source | MIT | 2,021 | SchoolAcademy | TelerikAcademy | Java | Code | 65 | 155 | public class BitwiseOperatorsContinuation {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int number = scanner.nextInt();
int position = scanner.nextInt();
int mask = 1 << position;
int result = mask & number;
result = result >> position;
if (res... | 10,879 |
https://github.com/getcahoots/provider-torial/blob/master/lib/sync/transform.js | Github Open Source | Open Source | MIT | null | provider-torial | getcahoots | JavaScript | Code | 141 | 372 | /*
* cahoots-provider-torial
*
* Copyright Cahoots.pw
* MIT Licensed
*
*/
/**
* @author André König <andre@cahoots.ninja>
*
*/
'use strict';
function extractCahoot (entry) {
var cahoot = {};
cahoot.organization = {};
cahoot.organization.name = entry.name;
cahoot.organization.info = entry.ur... | 24,967 |
https://github.com/andoshin11/twterm/blob/master/lib/twterm/friendship.rb | Github Open Source | Open Source | MIT | 2,016 | twterm | andoshin11 | Ruby | Code | 237 | 840 | module Twterm
class Friendship
STATUSES = %i(
blocking
following
following_requested
muting
).freeze
attr_reader :status, :from, :to
@@instances = []
@@user_ids = Set.new
def initialize(status, from, to)
fail ArgumentError,
'' unless STATUSES.include? s... | 24,355 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.