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/documentcloud/documentcloud-pages/blob/master/src/js/views/note.js | Github Open Source | Open Source | MIT | 2,020 | documentcloud-pages | documentcloud | JavaScript | Code | 400 | 1,325 | (function(){
var DCEmbedToolbelt = window.DCEmbedToolbelt;
var DocumentCloud = window.DocumentCloud;
var $ = DocumentCloud.$;
var _ = DocumentCloud._;
var Backbone = DocumentCloud.Backbone;
var definition = DocumentCloud.embed.definition;
var data = Do... | 33,100 |
https://github.com/schophil/census/blob/master/server/src/main/java/lb/census/model/Subject.java | Github Open Source | Open Source | MIT | 2,018 | census | schophil | Java | Code | 118 | 319 | package lb.census.model;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* @author phili
* @since 23-Nov-2015
*/
@Entity
@Table(name = "census_subjects")
public class Subject implements Serializable {
... | 8,336 |
https://github.com/jesielviana/gatsby-themes/blob/master/themes/gatsby-theme-minimal-blog/src/components/blog-list-item.tsx | Github Open Source | Open Source | MIT | null | gatsby-themes | jesielviana | TypeScript | Code | 155 | 449 | /** @jsx jsx */
import React from 'react'
import { jsx, Link as TLink } from 'theme-ui'
import { Box } from '@theme-ui/components'
import { Link } from 'gatsby'
import ItemTags from './item-tags'
import IconTime from '../assets/time.svg'
type BlogListItemProps = {
post: {
slug: string
title: string
date:... | 51,090 |
https://github.com/Alex-----/lwjgl3/blob/master/modules/lwjgl/bullet/src/templates/kotlin/bullet/templates/btCollisionObject.kt | Github Open Source | Open Source | BSD-3-Clause | null | lwjgl3 | Alex----- | Kotlin | Code | 569 | 3,127 | /*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
*/
package bullet.templates
import bullet.*
import org.lwjgl.generator.*
val btCollisionObject = "BTCollisionObject".nativeClass(Module.BULLET, prefixMethod = "bt", binding = BULLET_BINDING_DELEGATE) {
opaque_p(
"... | 10,680 |
https://github.com/andreeadeac22/graph_coattention/blob/master/pretrained_mol_sim/Theano-master/theano/sandbox/cuda/tests/test_extra_ops.py | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,020 | graph_coattention | andreeadeac22 | Python | Code | 785 | 3,263 | # Skip test if cuda_ndarray is not available.
from __future__ import absolute_import, print_function, division
import itertools
from nose.plugins.skip import SkipTest
import numpy as np
from six.moves import xrange
import theano.sandbox.cuda as cuda_ndarray
if cuda_ndarray.cuda_available is False:
raise SkipTest(... | 16,655 |
https://github.com/cms-sw/cmssw/blob/master/CommonTools/Statistics/src/IncompleteGammaComplement.h | Github Open Source | Open Source | Apache-2.0 | 2,023 | cmssw | cms-sw | C++ | Code | 51 | 132 | #ifndef IncompleteGammaComplement_H
#define IncompleteGammaComplement_H
/** \class IncompleteGammaComplement
* Computes the complement Q(a,x)=1-P(a,x) of the incomplete gamma function.
* Computes its natural logarithm, useful for comparing very small values.
* source: Numerical Recipes
*/
class IncompleteGamm... | 8,218 |
https://github.com/tweenn/fe-three-houses-tool/blob/master/src/assets/handlers/namespace-initializer.js | Github Open Source | Open Source | MIT | null | fe-three-houses-tool | tweenn | JavaScript | Code | 61 | 202 |
export default () => {
window.feth = {
data: {
processed: {},
original: {
characters: [],
charactersImage: {},
charactersSupportLevels: {},
houses: {},
housesBanner: {},
housesAffiliations: {},
routes: {},
routesExclusiveCharacters: {}
}
},
database: {
connector: {},
... | 52,639 |
https://github.com/taisukef/capture5sec.js/blob/master/gif-capture5sec.js | Github Open Source | Open Source | MIT | 2,021 | capture5sec.js | taisukef | JavaScript | Code | 106 | 312 | import { html2image } from "https://taisukef.github.io/html2canvas/es/html2image.js";
import { GIF } from "https://taisukef.github.io/gifencoder/GIF.js";
import { downloadFile } from "https://js.sabae.cc/downloadFile.js";
import { sleep } from "https://js.sabae.cc/sleep.js";
let capturing = false;
const capture5sec =... | 32,133 |
https://github.com/ykafia/naga/blob/master/src/span.rs | Github Open Source | Open Source | Apache-2.0, MIT | 2,021 | naga | ykafia | Rust | Code | 264 | 576 | use std::ops::Range;
/// A source code span, used for error reporting.
#[derive(Clone, Copy, Debug, PartialEq, Default)]
pub struct Span {
start: u32,
end: u32,
}
impl Span {
/// Creates a new `Span` from a range of byte indices
///
/// Note: end is exclusive, it doesn't belong to the `Span`
p... | 1,621 |
https://github.com/PierreVieira/AndroidApps/blob/master/Compose/PhillipLackner/02-RowsColumnsBasicSizing/app/src/main/java/com/example/rowandcolumn/MainActivity.kt | Github Open Source | Open Source | MIT | null | AndroidApps | PierreVieira | Kotlin | Code | 65 | 314 | package com.example.rowandcolumn
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foun... | 51,516 |
https://github.com/Ga-hou/cc-server/blob/master/src/system/user/user.service.ts | Github Open Source | Open Source | MIT | null | cc-server | Ga-hou | TypeScript | Code | 521 | 1,725 | import { HttpException, HttpStatus, Injectable, Logger } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { In, Repository } from 'typeorm';
import { classToPlain } from 'class-transformer';
import { ulid } from 'ulid';
import { UserEntity } from './user.entity';
import { ResponseInterf... | 29,592 |
https://github.com/OljaKli/IntelliJDeodorant/blob/master/src/main/java/core/ast/association/AssociationDetection.java | Github Open Source | Open Source | MIT | null | IntelliJDeodorant | OljaKli | Java | Code | 492 | 1,816 | package core.ast.association;
import core.ast.ClassObject;
import core.ast.FieldInstructionObject;
import core.ast.FieldObject;
import core.ast.MethodObject;
import core.ast.SystemObject;
import java.util.ArrayList;
import java.util.List;
import java.util.ListIterator;
import javax.swing.tree.DefaultMutableTreeNode;... | 33,048 |
https://github.com/VictorGoic0/webtesting-iv-guided/blob/master/api/server.spec.js | Github Open Source | Open Source | MIT | 2,019 | webtesting-iv-guided | VictorGoic0 | JavaScript | Code | 86 | 256 | const request = require("supertest");
const server = require("./server.js");
// testing endpoints
// returns correct status code
describe("server.js", () => {
describe("GET /", () => {
it("should respond with 200 OK", () => {
return request(server)
.get("/")
.then(res => {
expect(... | 13,911 |
https://github.com/builtforme/swatchjs-koa/blob/master/test/expose.test.js | Github Open Source | Open Source | MIT | 2,017 | swatchjs-koa | builtforme | JavaScript | Code | 1,313 | 4,084 | const Koa = require('koa');
const koaBunyanLogger = require('koa-bunyan-logger');
const bunyan = require('bunyan');
const http = require('http');
const swatch = require('swatchjs');
const request = require('supertest');
const { expect } = require('chai');
const expose = require('../lib/expose');
const silentLogger ... | 44,347 |
https://github.com/yansievre/unitatis-melius/blob/master/UMDebug/UMDebugSettings.cs | Github Open Source | Open Source | MIT | null | unitatis-melius | yansievre | C# | Code | 135 | 418 | using System;
using UnityEngine;
namespace Plugins.UMDebug
{
internal class UMDebugException : Exception
{
public UMDebugException(string message) : base(message)
{
}
}
public static class UMDebugFinder
{
private static IUMDebugSettings _instance;
public sta... | 49,591 |
https://github.com/simonecid/cmssw/blob/master/DQMServices/Components/python/DQMFastTimerService_cff.py | Github Open Source | Open Source | 2,016 | cmssw | simonecid | Python | Code | 204 | 588 | import FWCore.ParameterSet.Config as cms
# instrument the process with the FastTimerService
from HLTrigger.Timer.FastTimerService_cfi import FastTimerService
# this is currently ignored in 7.x, and always uses the real time clock
FastTimerService.useRealTimeClock = False
# enable specific features
FastTime... | 7,620 | |
https://github.com/lyric-com/idol/blob/master/src/es6/idol/flow/schema/Module.js | Github Open Source | Open Source | MIT | null | idol | lyric-com | JavaScript | Code | 54 | 107 | // @flow
// This file was scaffolded by idol_flow. Feel free to edit as you please. It can be regenerated by deleting the file and rerunning idol_flow.;
import type { SchemaModulePayload } from "../codegen/schema/Module";
import { SchemaModuleFactory } from "../codegen/schema/Module";
export interface ModulePayload... | 27,829 |
https://github.com/AlexandraMaquet/studious-octo-robot/blob/master/server/routes.ts | Github Open Source | Open Source | MIT | 2,018 | studious-octo-robot | AlexandraMaquet | TypeScript | Code | 93 | 492 | import * as express from 'express';
import CatCtrl from './controllers/cat';
import ArticleCtrl from './controllers/article';
import UserCtrl from './controllers/user';
import Cat from './models/cat';
import Article from './models/article';
import User from './models/user';
export default function setRoutes(app) {
... | 27,347 |
https://github.com/elhamdehghan/cc/blob/master/app/Http/Controllers/TextMessageController.php | Github Open Source | Open Source | MIT | null | cc | elhamdehghan | PHP | Code | 32 | 98 | <?php
namespace App\Http\Controllers;
use App\TextMessage;
use Illuminate\Http\Request;
class TextMessageController extends Controller
{
public static function send($mobile,$body)
{
TextMessage::create([
'mobile' => $mobile,
'body' => $body,
]);
// TODO: send... | 34,823 |
https://github.com/mrc-ide/squire/blob/master/man/elderly_pop.Rd | Github Open Source | Open Source | MIT | 2,022 | squire | mrc-ide | R | Code | 41 | 119 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{elderly_pop}
\alias{elderly_pop}
\title{Elderly Population}
\format{
A data.frame
}
\usage{
elderly_pop
}
\description{
Population of 80-84, 85-89 and 90+ by age group and country
}
\keyword{datasets}
| 7,171 |
https://github.com/yrong/redis-jwt-token-auth/blob/master/.env | Github Open Source | Open Source | MIT | 2,019 | redis-jwt-token-auth | yrong | Shell | Code | 6 | 35 | NODE_NAME=auth
SCHEMA_TYPE=cmdb
AUTH_VERSION=`git rev-parse HEAD`
NODE_ENV=development
| 17,521 |
https://github.com/visva-io/primer-react/blob/master/lib-esm/CircleOcticon.js | Github Open Source | Open Source | MIT | null | primer-react | visva-io | JavaScript | Code | 125 | 378 | function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
i... | 37,170 |
https://github.com/guatedude2/curse-mummy-maze/blob/master/src/states/maze.js | Github Open Source | Open Source | MIT | 2,015 | curse-mummy-maze | guatedude2 | JavaScript | Code | 92 | 341 | import PhaserGameState from 'phaser-game-state';
import PhaserGame from 'phaser-game';
import Phaser from 'phaser';
import PhaserTouchControl from 'phaser-touch-control';
import Map from '../objects/map';
var cursors, space;
class Preload extends PhaserGameState{
constructor(game) {
this.game = game;
}
cre... | 22,797 |
https://github.com/utiasASRL/vtr3/blob/master/main/src/vtr_vision/include/vtr_vision/modules/localization/tod_recognition_module.hpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | vtr3 | utiasASRL | C++ | Code | 406 | 950 | // Copyright 2021, Autonomous Space Robotics Lab (ASRL)
//
// 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 appli... | 12,859 |
https://github.com/NamelessHoodie/ToolName/blob/master/ToolName/MVVM/View/SoulsFormatsTester.xaml.cs | Github Open Source | Open Source | MIT | 2,021 | ToolName | NamelessHoodie | C# | Code | 329 | 1,078 | using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Forms;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows... | 8,062 |
https://github.com/javier-aguilar/Crate/blob/master/code/api/src/modules/userproduct/resolvers.js | Github Open Source | Open Source | MIT | null | Crate | javier-aguilar | JavaScript | Code | 167 | 394 | // App Imports
import models from '../../setup/models'
// Get userproduct by user
export async function getByUser(parentValue, {}, { auth }) {
if(auth.user && auth.user.id > 0) {
return await models.UserProduct.findAll({
where: {
userId: auth.user.id
},
include: [
{model: models... | 36,598 |
https://github.com/anushka-2001/Eventure/blob/master/src/cart.php | Github Open Source | Open Source | MIT | 2,021 | Eventure | anushka-2001 | PHP | Code | 589 | 3,138 | <?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="author" content="Eventure">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Cart</title>
<link rel='sty... | 36,849 |
https://github.com/cruze-io/cruze-web/blob/master/app/components/Navigation/index.js | Github Open Source | Open Source | MIT | null | cruze-web | cruze-io | JavaScript | Code | 208 | 840 | import React, {Component, PropTypes} from 'react'
import Radium from 'radium'
import loadScript from '../../helpers/loadScript'
import styles from './styles'
import Text from '../Text'
const PROP_TYPES = {
longitude: PropTypes.number,
latitude: PropTypes.number,
destLatitude: PropTypes.number,
destLongitude: P... | 8,422 |
https://github.com/seyuboglu/weakly-supervised-petct/blob/master/pet_ct/data/image_transforms.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | weakly-supervised-petct | seyuboglu | Python | Code | 1,018 | 2,899 | """
Functional implementation of several basic data-augmentation transforms
for pytorch video inputs.
Sources:
- https://github.com/hassony2/torch_videovision
- https://github.com/YU-Zhiyang/opencv_transforms_torchvision
"""
import numbers
import random
import cv2
# from matplotlib import pyplot as plt
import numpy ... | 50,997 |
https://github.com/wentbackward/lisp_mu/blob/master/CMakeLists.txt | Github Open Source | Open Source | MIT | 2,016 | lisp_mu | wentbackward | CMake | Code | 31 | 179 | # cmake_minimum_required(VERSION <specify CMake version here>)
project(list2)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c11 -ansi -static-libgcc ")
set(SOURCE_FILES main.c lisp_mu.c tinyprintf.c)
add_executable(list2 ${SOURCE_FILES})
set(REPL_FILES repl.c lisp_mu.c tinyprintf.c)
add_executable(repl ${REPL_FILES})... | 43,807 |
https://github.com/Juzley/grpc/blob/master/src/python/src/grpc/framework/base/packets/_reception.py | Github Open Source | Open Source | BSD-3-Clause | 2,015 | grpc | Juzley | Python | Code | 1,204 | 3,926 | # Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | 31,299 |
https://github.com/antony/web-components-benchmark/blob/master/todomvc/slim.js/js/my-todo.js | Github Open Source | Open Source | MIT | 2,021 | web-components-benchmark | antony | JavaScript | Code | 134 | 467 | Slim.tag(
'my-todo',
`
<style>
h1 {
font-size: 100px;
font-weight: 100;
text-align: center;
color: rgba(175, 47, 47, 0.15);
}
section {
background: #fff;
margin: 130px 0 40px 0;
position: relative;
... | 35,320 |
https://github.com/OlivierBlanvillain/lms-utils/blob/master/util/src/main/scala/lms/ZeroVal.scala | Github Open Source | Open Source | MIT | 2,017 | lms-utils | OlivierBlanvillain | Scala | Code | 251 | 507 | package lms
import scala.lms.common._
import scala.lms.internal._
/**
* @author Sandro Stucki
*
* Generate a "zero" value for a given type.
*
* The apply method of this object can be used to generate a constant
* "zero" value for a given type `T` like so:
*
* {{{
* val zero = zeroVal[T]
* }}}
*
* The re... | 44,246 |
https://github.com/NCEAS/arcticdatautils/blob/master/man/create_dummy_attributes_dataframe.Rd | Github Open Source | Open Source | CC-BY-SA-4.0, Apache-2.0 | 2,022 | arcticdatautils | NCEAS | R | Code | 82 | 223 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helpers.R
\name{create_dummy_attributes_dataframe}
\alias{create_dummy_attributes_dataframe}
\title{Create test attributes data.frame}
\usage{
create_dummy_attributes_dataframe(numberAttributes, factors = NULL)
}
\arguments{
\item{numberAttri... | 1,729 |
https://github.com/giturra/athena/blob/master/src/_math.cpp | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, BSD-2-Clause | 2,017 | athena | giturra | C++ | Code | 1,108 | 3,825 | #include "_math.h"
#include "_serialization.h"
#include <cmath>
#include <cstdlib>
#include <new>
#include <climits>
#include <vector>
#include <utility>
#include <random>
#include <unordered_set>
#include <cstring>
#ifdef __APPLE__
#define omp_get_num_threads() 1
#define omp_get_thread_num() 0
#else
extern "C" {
#inc... | 19,973 |
https://github.com/jbarz1/sagemaker-python-sdk/blob/master/src/sagemaker/local/image.py | Github Open Source | Open Source | Apache-2.0 | null | sagemaker-python-sdk | jbarz1 | Python | Code | 3,577 | 11,324 | # Copyright 2017-2020 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" fil... | 20,093 |
https://github.com/lieahau/Online-Judge-Solution/blob/master/Codeforces/318A_Even Odds.cpp | Github Open Source | Open Source | MIT | 2,020 | Online-Judge-Solution | lieahau | C++ | Code | 81 | 154 | /*
People who don't work hard
don't have the right
to be envious of the people with talent.
People fail because
they don't understand
the hard work necessary to be successful.
*/
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long int n, k;
cin >> n >> k;
if(k <=... | 31,575 |
https://github.com/Aemande123/I-Like-Wood/blob/master/src/main/java/yamahari/ilikewood/data/loot_table/ILikeWoodBlockLootTables.java | Github Open Source | Open Source | MIT | null | I-Like-Wood | Aemande123 | Java | Code | 438 | 3,448 | package yamahari.ilikewood.data.loot_table;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import net.minecraft.advancements.criterion.EnchantmentPredicate;
import net.minecraft.advancements.criterion.ItemPredicate;
import net.minecraft.advancements.criterion.MinMaxBounds;
import net.min... | 24,123 |
https://github.com/jitsi/libjitsi/blob/master/src/main/java/org/jitsi/impl/neomedia/codec/audio/silk/SumSqrShift.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | libjitsi | jitsi | Java | Code | 552 | 1,084 | /*
* Copyright @ 2015 Atlassian Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 2,668 |
https://github.com/fabmax/kool/blob/master/kool-core/src/commonMain/kotlin/de/fabmax/kool/modules/ksl/model/KslProcessor.kt | Github Open Source | Open Source | Apache-2.0 | 2,023 | kool | fabmax | Kotlin | Code | 186 | 645 | package de.fabmax.kool.modules.ksl.model
import de.fabmax.kool.util.logE
class KslProcessor {
private val processorState = KslProcessorState()
fun process(hierarchy: KslHierarchy) {
hierarchy.globalScope.updateModel()
processScope(hierarchy.globalScope)
}
private fun processScope(sco... | 3,318 |
https://github.com/uluyol/heyp-agents/blob/master/go/intradc/montecarlo/feedbacksim_config.go | Github Open Source | Open Source | MIT | 2,022 | heyp-agents | uluyol | Go | Code | 341 | 1,582 | package montecarlo
import (
"github.com/uluyol/heyp-agents/go/intradc/dists"
"github.com/uluyol/heyp-agents/go/intradc/feedbacksim"
"github.com/uluyol/heyp-agents/go/intradc/sampling"
)
type FeedbackScenarioTemplate struct {
MaxHostUsage float64 `json:"maxHostUsage"`
LOP... | 19,063 |
https://github.com/chrisjcox79/go-m3ua/blob/master/go.mod | Github Open Source | Open Source | MIT | 2,020 | go-m3ua | chrisjcox79 | Go Module | Code | 15 | 132 | module github.com/wmnsk/go-m3ua
require (
github.com/google/go-cmp v0.5.2
github.com/ishidawataru/sctp v0.0.0-20180918013207-6e2cb1366111
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c
github.com/pkg/errors v0.9.1
)
go 1.15
| 26,770 |
https://github.com/Rohit484/Distribution/blob/master/a/aws-sdk/src/main/scala/typings/awsSdk/inspectorMod/DurationRange.scala | Github Open Source | Open Source | MIT | 2,020 | Distribution | Rohit484 | Scala | Code | 158 | 541 | package typings.awsSdk.inspectorMod
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@js.native
trait DurationRange extends js.Object {
/**
* The maximum value of the duration range. Must be less than or equal ... | 13,154 |
https://github.com/bkusumakar/ReactiveMongo/blob/master/driver/src/main/scala/api/commands/commands.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | ReactiveMongo | bkusumakar | Scala | Code | 945 | 3,042 | package reactivemongo.api.commands
import scala.concurrent.{ ExecutionContext, Future }
import reactivemongo.api.{
Cursor,
CursorOptions,
Collection,
DB,
SerializationPack,
Session,
ReadPreference
}
import reactivemongo.api.bson.buffer.WritableBuffer
import reactivemongo.core.protocol.{ Reply, Response... | 18,554 |
https://github.com/afterloe/node.js/blob/master/day_6/lib/udpIpServer.js | Github Open Source | Open Source | MIT | 2,020 | node.js | afterloe | JavaScript | Code | 80 | 264 | /**!
* afterloe - day_6/lib/udpIpServer.js
*
* Copyright(c) afterloe.
* ISC Licensed
*
* Authors:
* afterloe <afterloeliu@jwis.cn> (https://github.com/afterloe)
*/
"use strict";
var _dgram = require('dgram');
var _dgram2 = _interopRequireDefault(_dgram);
function _interopRequireDefault(obj) { return obj &&... | 8,679 |
https://github.com/attiasas/GameDevIS/blob/master/src/GDIS/engine/entities/Entity.java | Github Open Source | Open Source | MIT | null | GameDevIS | attiasas | Java | Code | 145 | 399 | package GDIS.engine.entities;
import GDIS.engine.render.orientation.Transform;
import GDIS.tools.Component;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* Created By: Assaf, On 02/11/2021
* Description:
*/
public class Entity
{
public final long id;
private EntityManager m... | 37,578 |
https://github.com/antonygunawan94/TextRank/blob/master/convert/language_test.go | Github Open Source | Open Source | MIT | 2,021 | TextRank | antonygunawan94 | Go | Code | 24 | 123 | package convert
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestTokenizeText(t *testing.T) {
lang := NewLanguage()
lang.SetActiveLanguage("hu")
lang.SetWords("hu", []string{"word1"})
assert.Equal(t, true, lang.IsStopWord("word1"))
assert.Equal(t, false, lang.IsStopWord("word2"))
}
| 31,160 |
https://github.com/apache/netbeans/blob/master/ide/hudson/src/org/netbeans/modules/hudson/api/HudsonInstance.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | netbeans | apache | Java | Code | 920 | 2,019 | /*
* 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 ... | 49,394 |
https://github.com/KinRainModulization/KRPublishLibrary/blob/master/KRPublishLibrary/KRPublishLibrary/Publish/Extension/UILabel+Extension.m | Github Open Source | Open Source | MIT | 2,018 | KRPublishLibrary | KinRainModulization | Objective-C | Code | 55 | 176 | //
// UILabel+Extension.m
// Yml
//
// Created by LX on 2017/10/10.
// Copyright © 2017年 xi. All rights reserved.
//
#import "UILabel+Extension.h"
@implementation UILabel (Extension)
+ (instancetype)labelWithText:(NSString *)text textColor:(UIColor *)color fontSize:(CGFloat)fontSize {
UILabel * label = [[UIL... | 46,828 |
https://github.com/OpenAPITools/openapi-generator/blob/master/samples/client/petstore/objc/core-data/SwaggerClient/Core/SWGLogger.m | Github Open Source | Open Source | Apache-2.0 | 2,023 | openapi-generator | OpenAPITools | Objective-C | Code | 180 | 659 | #import "SWGLogger.h"
@interface SWGLogger ()
@end
@implementation SWGLogger
+ (instancetype) sharedLogger {
static SWGLogger *shardLogger = nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
shardLogger = [[self alloc] init];
});
return shardLogger;
}
#pragma mark - Lo... | 32,277 |
https://github.com/MarcoLotto/ScaenaFramework/blob/master/Graphics/include/BackBufferWriterStage.h | Github Open Source | Open Source | MIT | 2,018 | ScaenaFramework | MarcoLotto | C++ | Code | 119 | 244 | /**********************************
* SCAENA FRAMEWORK
* Author: Marco Andrés Lotto
* License: MIT - 2016
**********************************/
#pragma once
#include "RenderStage.h"
class BackBufferWriterStage : virtual public RenderStage{
public:
BackBufferWriterStage() : RenderStage(){}
// Define el nombre del st... | 38,007 |
https://github.com/tutumagi/pitaya/blob/master/examples/demo/chat/main.go | Github Open Source | Open Source | MIT | 2,021 | pitaya | tutumagi | Go | Code | 389 | 1,346 | package main
import (
"context"
"fmt"
"log"
"net/http"
"strconv"
"time"
"strings"
"github.com/spf13/viper"
"github.com/tutumagi/pitaya"
"github.com/tutumagi/pitaya/acceptor"
"github.com/tutumagi/pitaya/component"
"github.com/tutumagi/pitaya/config"
"github.com/tutumagi/pitaya/groups"
"github.com/tutuma... | 477 |
https://github.com/KernelErr0r/Raven/blob/master/Raven/Raven/CommandManager.cs | Github Open Source | Open Source | MIT | 2,019 | Raven | KernelErr0r | C# | Code | 245 | 763 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace Raven
{
public class CommandManager : ICommandManager
{
public ICommandDispatcher Dispatcher { get; } = new CommandDispatcher();
private List<CommandPlaceholder> commands = new List<Co... | 8,087 |
https://github.com/IreneZhou0129/PyLucene-assignment/blob/master/java/org/apache/pylucene/store/PythonDirectory.java | Github Open Source | Open Source | Apache-2.0 | null | PyLucene-assignment | IreneZhou0129 | Java | Code | 270 | 685 | /* ====================================================================
* 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
*
* U... | 13,914 |
https://github.com/Ollhax/GameHax/blob/master/Framework/Converters/PropertyPropertyDescriptor.cs | Github Open Source | Open Source | MIT, CC-BY-2.5 | 2,018 | GameHax | Ollhax | C# | Code | 69 | 229 | using System;
using System.Reflection;
namespace MG.Framework.Converters
{
internal class PropertyPropertyDescriptor : MemberPropertyDescriptor
{
// Fields
private PropertyInfo property;
// Methods
public PropertyPropertyDescriptor(PropertyInfo property)
: base(property)
{
this.property = property;... | 31,599 |
https://github.com/jtimonen/cmdstan/blob/master/src/cmdstan/write_datetime.hpp | Github Open Source | Open Source | BSD-3-Clause | null | cmdstan | jtimonen | C++ | Code | 86 | 347 | #ifndef CMDSTAN_WRITE_DATETIME_HPP
#define CMDSTAN_WRITE_DATETIME_HPP
#include <stan/callbacks/writer.hpp>
#include <stan/version.hpp>
#include <chrono>
#include <iomanip>
#include <string>
namespace cmdstan {
void write_datetime(stan::callbacks::writer& writer) {
const std::time_t current_datetime
= std::ch... | 11,537 |
https://github.com/alex-90/wodo/blob/master/themes/bootstrap/views/layouts/wodo.php | Github Open Source | Open Source | BSD-3-Clause | 2,013 | wodo | alex-90 | PHP | Code | 119 | 608 | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/favicon.ico" rel="icon" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/styles.css" />
<title><?php echo CHtml::encode($this->pageTit... | 25,003 |
https://github.com/Carlos-Del-Valle/Fullstack-Open-University-of-Helsinki-Exercises/blob/master/part-2/Exercises 2.11.-2.14./my-app/src/components/Weather.js | Github Open Source | Open Source | MIT | null | Fullstack-Open-University-of-Helsinki-Exercises | Carlos-Del-Valle | JavaScript | Code | 120 | 372 | import React, { useState, useEffect } from "react";
import axios from "axios";
import WeatherInfo from "./WeatherInfo";
const Weather = ({ query }) => {
const [condition, setCondition] = useState({});
const [hasCondition, setHasCondition] = useState(false);
const key = process.env.REACT_APP_OPENWEATHERMAP... | 32,720 |
https://github.com/DynamoDS/designscript-archive/blob/master/UIs/Editor/DesignScriptEditor/DesignScriptEditorUi/TextEditorControl/TextEditorControl.xaml.cs | Github Open Source | Open Source | Apache-2.0 | 2,020 | designscript-archive | DynamoDS | C# | Code | 3,763 | 13,154 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Windows.Automation.Peers;
using System.Windows.Automation;
using System.Windows.Controls.Primitives;
using System.Windows.Controls;
using System.Windows... | 33,329 |
https://github.com/KengoTODA/spotbugs-gradle-plugin-v2/blob/master/src/main/groovy/com/github/spotbugs/snom/SpotBugsTask.groovy | Github Open Source | Open Source | Apache-2.0 | 2,020 | spotbugs-gradle-plugin-v2 | KengoTODA | Groovy | Code | 1,336 | 4,298 | /*
* Copyright 2019 SpotBugs team
*
* <p>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
*
* <p>http://www.apache.org/licenses/LICENSE-2.0
*
* <p>Unless required by applicable law or agreed... | 2,455 |
https://github.com/Tiime-Software/CrossIndustryInvoice/blob/master/src/DataType/EN16931/PayeePartyCreditorFinancialAccount.php | Github Open Source | Open Source | MIT | 2,023 | CrossIndustryInvoice | Tiime-Software | PHP | Code | 237 | 1,067 | <?php
declare(strict_types=1);
namespace Tiime\CrossIndustryInvoice\DataType\EN16931;
use Tiime\EN16931\BusinessTermsGroup\CreditTransfer;
use Tiime\EN16931\DataType\Identifier\PaymentAccountIdentifier;
class PayeePartyCreditorFinancialAccount extends \Tiime\CrossIndustryInvoice\DataType\BasicWL\PayeePartyCreditorF... | 6,631 |
https://github.com/chadstachowicz/MindsMesh-Alloy/blob/master/Resources/alloy/controllers/moodle_class.js | Github Open Source | Open Source | Apache-2.0 | 2,014 | MindsMesh-Alloy | chadstachowicz | JavaScript | Code | 1,325 | 5,356 | function Controller() {
function reloadNotifications() {
modalTableView.data = [];
xhr = getNotificationsGrouped(Titanium.App.Properties.getString("mmat"));
xhr.onload = function() {
var response = this.responseText;
user = JSON.parse(response);
if (user.u... | 18,858 |
https://github.com/Achaindev/Achain_ubuntu/blob/master/Chain/libraries/client/WalletApi.cpp | Github Open Source | Open Source | MIT | 2,018 | Achain_ubuntu | Achaindev | C++ | Code | 4,316 | 18,257 | #include <client/Client.hpp>
#include <client/ClientImpl.hpp>
#include <utilities/KeyConversion.hpp>
#include <utilities/Words.hpp>
#include <utilities/CommonApi.hpp>
#include <wallet/Config.hpp>
#include <wallet/Exceptions.hpp>
#include <fc/crypto/aes.hpp>
#include <fc/network/http/connection.hpp>
#include <fc/networ... | 25,699 |
https://github.com/v-user1098new/Automatic-Image-Captioning-using-CNN-LSTM-deep-neural-networks-and-flask/blob/master/captionbot/setup.py | Github Open Source | Open Source | MIT | 2,020 | Automatic-Image-Captioning-using-CNN-LSTM-deep-neural-networks-and-flask | v-user1098new | Python | Code | 21 | 127 | from setuptools import setup
setup(name='captionbot',
version='0.1.4',
description='Simple API wrapper for https://www.captionbot.ai/',
url='http://github.com/krikunts/captionbot',
author='Tatiana Krikun',
author_email='krikunts@gmail.com',
license='MIT',
packages=['captionbot... | 51,284 |
https://github.com/DTU-R3/VRClient/blob/master/Assets/Scripts/ROS/ROSBridgeLib/std_msgs/BoolMsg.cs | Github Open Source | Open Source | BSD-3-Clause | null | VRClient | DTU-R3 | C# | Code | 95 | 271 | using SimpleJSON;
/*
* @brief ROSBridgeLib
* @author Michael Jenkin, Robert Codd-Downey, Andrew Speers and Miquel Massot Campos
*/
namespace ROSBridgeLib
{
namespace std_msgs
{
public class BoolMsg : ROSBridgeMsg
{
private bool _data;
public BoolMsg(JSONNode msg)
... | 26,325 |
https://github.com/popovdenis/bezopasnost/blob/master/system/application/views/admin/help_answer.php | Github Open Source | Open Source | MIT | null | bezopasnost | popovdenis | PHP | Code | 33 | 134 | <?php
$str = "";
$selected = "";
$editable = "";
foreach ($questions as $question)
{
$str .= '<span id="answer_title" class="'.$editable.'" name="note">'.$question->note.'</span>
<span style="display: none;" name="note_id">'.$question->note_id.'</span>
<span style="display: none;" name="question_id">'.$quest... | 25,187 |
https://github.com/katelaan/sloth/blob/master/benchmarks/list-symbolic-heaps/two-separate-nonempty-lists.smt2 | Github Open Source | Open Source | MIT | 2,021 | sloth | katelaan | null | Spoken | 20 | 87 | (declare-const a sl.list.loc)
(declare-const b sl.list.loc)
(assert (sl.sepcon (sl.sepcon (sl.list a) (sl.list b))
(sl.sepcon (sl.list.neq a sl.list.null)
(sl.list.neq b sl.list.null))))
| 13,935 |
https://github.com/erijonhson/pluspop/blob/master/PlusPop/jTestes/core/RankingTest.java | Github Open Source | Open Source | Apache-2.0 | null | pluspop | erijonhson | Java | Code | 464 | 2,187 | package core;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import exception.ConversaoDeDataException;
import exception.CriaPostException;
import exception.EmailInvalidoException;
import exception.NomeUsuar... | 34,697 |
https://github.com/bonedaddy/clutch/blob/master/backend/api/config/service/authz/v1/authz.pb.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | clutch | bonedaddy | Go | Code | 1,476 | 5,286 | // Code generated by protoc-gen-go. DO NOT EDIT.
// source: config/service/authz/v1/authz.proto
package authzv1
import (
fmt "fmt"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
proto "github.com/golang/protobuf/proto"
v1 "github.com/lyft/clutch/backend/api/api/v1"
math "math"
)
// Reference imports to ... | 48,825 |
https://github.com/chrkj/ChessEngine/blob/master/Assets/UI/BoardUI.cs | Github Open Source | Open Source | MIT | null | ChessEngine | chrkj | C# | Code | 403 | 1,263 | using Chess.Core;
using UnityEngine;
namespace Chess.UI
{
public class BoardUI : MonoBehaviour
{
public PieceTheme pieceTheme;
public float pieceScale = 0.3f;
public float pieceDepth = -0.1f;
public float selectedPieceDepth = -0.2f;
public Color darkColor = new Color(0.5... | 33,600 |
https://github.com/assadali007/api/blob/master/features/bootstrap/FeatureContext.php | Github Open Source | Open Source | MIT | 2,021 | api | assadali007 | PHP | Code | 176 | 522 | <?php
use Behat\Behat\Context\Context;
use Behat\Gherkin\Node\PyStringNode;
use Behat\Gherkin\Node\TableNode;
/**
* Defines application features from the specific context.
*/
class FeatureContext implements Context
{
/**
* Initializes context.
*
* Every scenario gets its own context instance.
... | 17,213 |
https://github.com/facebookresearch/pytorch3d/blob/master/pytorch3d/common/linear_with_repeat.py | Github Open Source | Open Source | MIT, BSD-3-Clause | 2,023 | pytorch3d | facebookresearch | Python | Code | 264 | 797 | # Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import math
from typing import Tuple
import torch
import torch.nn.functional as F
from torch.nn import init, P... | 51,481 |
https://github.com/spidi123q/thoughtifies/blob/master/js/node_modules/angular-ui-scroll/test/BasicSetupSpec.js | Github Open Source | Open Source | MIT | null | thoughtifies | spidi123q | JavaScript | Code | 219 | 1,417 | /*global describe, beforeEach, module, inject, it, spyOn, expect, $, runTest */
describe('uiScroll', function () {
'use strict';
beforeEach(module('ui.scroll'));
beforeEach(module('ui.scroll.test.datasources'));
describe('basic setup', function () {
var scrollSettings = {datasource: 'myEmptyDa... | 15,985 |
https://github.com/malav2110/oli-torus/blob/master/assets/src/components/parts/janus-text-flow/quill-utils.ts | Github Open Source | Open Source | MIT | 2,022 | oli-torus | malav2110 | TypeScript | Code | 804 | 2,537 | import Delta from 'quill-delta';
import { CSSProperties } from 'react';
interface JanusMarkupNode {
tag: string;
href?: string;
style: CSSProperties;
children: JanusMarkupNode[];
text?: string;
customCssClass?: string;
src?: string;
}
const appendToStringProperty = (append: string, str?: string) => {
... | 12,005 |
https://github.com/AlphaSystemSolution/docbook-2-docx/blob/master/docx-builder/src/test/java/com/alphasystem/docbook/builder/test/OrderedListTest.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | docbook-2-docx | AlphaSystemSolution | Java | Code | 134 | 433 | package com.alphasystem.docbook.builder.test;
import org.docbook.model.ListItem;
import org.docbook.model.OrderedList;
import org.docbook.model.SimplePara;
import org.testng.annotations.Test;
import static com.alphasystem.docbook.builder.test.DataFactory.*;
import static com.alphasystem.util.IdGenerator.nextId;
/**
... | 45,446 |
https://github.com/ebiken/zebra-coreswitch/blob/master/vendor/github.com/hash-set/zebra/bgp/community_list_test.go | Github Open Source | Open Source | Apache-2.0 | null | zebra-coreswitch | ebiken | Go | Code | 141 | 324 | // Copyright 2017 zebra project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | 22,836 |
https://github.com/JetBrains/intellij-plugins/blob/master/flex/src/com/intellij/javascript/flex/refactoring/moveMembers/ActionScriptMoveMembersProcessor.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | intellij-plugins | JetBrains | Java | Code | 707 | 3,080 | // Copyright 2000-2018 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 agreed ... | 27,853 |
https://github.com/myl7/refine-google-search/blob/master/refine-google-search.user.js | Github Open Source | Open Source | MIT | null | refine-google-search | myl7 | JavaScript | Code | 318 | 1,097 | // ==UserScript==
// @name myl7 refines Google Search
// @namespace https://github.com/myl7/refine-google-search
// @version 0.1.2
// @description Simple script to refine Google Search experience. Copy the code to arrange by youself if you do not want another user script.
// @copyright ... | 42,155 |
https://github.com/Rhuagh/amethyst/blob/master/amethyst_audio/src/output.rs | Github Open Source | Open Source | Apache-2.0, MIT-0, MIT | null | amethyst | Rhuagh | Rust | Code | 485 | 1,141 | //! Provides structures and functions used to get audio outputs.
// We have to use types from this to provide an output iterator type.
use std::fmt::{Debug, Formatter, Result as FmtResult};
use std::io::Cursor;
use cpal::{default_endpoint, endpoints};
use cpal::EndpointsIterator;
use rodio::{Decoder, Endpoint, Sink, ... | 40,176 |
https://github.com/ranapk/codingstrokes/blob/master/resources/views/homesearch.blade.php | Github Open Source | Open Source | MIT | 2,020 | codingstrokes | ranapk | Blade | Code | 75 | 358 | @extends('layouts.app')
@section('title')
Search | Codingstrokes
@endsection
@section('content')
<div class="container">
<div class="center-screen">
<div class="homeSearchText">
<blockquote class="blockquote text-center text-success">
<p>{!! $dailyquote->blockquote !!}</p>... | 20,067 |
https://github.com/stevekeol/remax/blob/master/packages/remax-cli/src/__tests__/integration/fixtures/circularDependence/src/pages/circularDependency1.js | Github Open Source | Open Source | MIT | 2,021 | remax | stevekeol | JavaScript | Code | 15 | 30 | import { C } from './circularDependency2';
const A = 'A';
export { A, C };
| 22,983 |
https://github.com/cslee266/quora-clone/blob/master/app/controllers/questions_controller.rb | Github Open Source | Open Source | MIT | 2,017 | quora-clone | cslee266 | Ruby | Code | 16 | 66 | get '/questions/:id' do
@question = Question.find_by(params[:id])
erb :"questions/all_answers"
end
post '/questions' do
Question.create(params[:question])
redirect "/users/my_questions"
end | 16,801 |
https://github.com/PxGame/XMLib.AM.Example/blob/master/Assets/XMLib/XMLib.Common/Runtime/Utility/ByteAngle.cs | Github Open Source | Open Source | MIT | 2,022 | XMLib.AM.Example | PxGame | C# | Code | 149 | 485 | /*
* 作者:Peter Xiang
* 联系方式:565067150@qq.com
* 文档: https://github.com/PxGame
* 创建时间: 2021/1/24 23:59:01
*/
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace XMLib
{
/// <summary>
/// ByteAngle
/// </summary>
public static class ByteAngle
{
public ... | 27,503 |
https://github.com/cometchuck/spnati/blob/master/editor source/SPNATI Character Editor/Actions/TimelineActions/ModifyWidgetLengthTimelineAction.cs | Github Open Source | Open Source | MIT | 2,021 | spnati | cometchuck | C# | Code | 192 | 659 | using System;
using System.Windows.Forms;
using Desktop;
using SPNATI_Character_Editor.EpilogueEditor;
namespace SPNATI_Character_Editor.Actions.TimelineActions
{
/// <summary>
/// Resizing the end point of a widget that has no keyframes
/// </summary>
public class ModifyWidgetLengthTimelineAction : ITimelineActi... | 16,465 |
https://github.com/yunayr/StudtNote-SQL/blob/master/牛客網練習題/牛客網SQL84.sql | Github Open Source | Open Source | BSD-2-Clause | null | StudtNote-SQL | yunayr | SQL | Code | 32 | 128 | -- 查询在2025年内投递简历的岗位和数量,并且按数量降序排序
SELECT
job,
sum(num) as cnt
FROM resume_info
WHERE date < '2026-01-01' -- 也可以寫「date BETWEEN '2025-01-01' AND '2025-12-31'」或「year(date) = 2025」
AND date > '2024-12-31'
GROUP BY job
ORDER BY cnt DESC; | 19,769 |
https://github.com/ldwqh0/edc/blob/master/java/edc-meta-parent/edc-meta-impl/src/main/java/com/xyyh/edc/meta/entity/Table.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | edc | ldwqh0 | Java | Code | 77 | 308 | package com.xyyh.edc.meta.entity;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.OrderBy;
import com.xyyh.edc.common.entity.AbstractEntity;
import lombok.Getter;
import lo... | 52,664 |
https://github.com/FlamingTempura/bibtex-tidy/blob/master/test/bibliographies/biber/encoding2.bib | Github Open Source | Open Source | MIT | 2,023 | bibtex-tidy | FlamingTempura | null | Spoken | 24 | 62 | % This is a UTF-8 encoded file
@BOOK{testŠ,
YEAR = {1999},
AUTHOR = {Edward Encalcer},
TITLE = {Šome title},
PUBLISHER = {A press}
}
| 42,712 |
https://github.com/SamGalanakis/FlowCompare/blob/master/models/scene_seg_PAConv/model/pointnet2/pointnet2_modules.py | Github Open Source | Open Source | MIT | 2,022 | FlowCompare | SamGalanakis | Python | Code | 637 | 2,042 | from typing import List
import torch
import torch.nn as nn
import torch.nn.functional as F
from models.scene_seg_PAConv.lib.pointops.functions import pointops
from models.scene_seg_PAConv.util import block
class _PointNet2SAModuleBase(nn.Module):
def __init__(self):
super().__init__()
self.npoin... | 4,789 |
https://github.com/mattermost/mattermost-plugin-github/blob/master/webapp/src/reducers/index.js | Github Open Source | Open Source | Apache-2.0 | 2,023 | mattermost-plugin-github | mattermost | JavaScript | Code | 480 | 1,718 | // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {combineReducers} from 'redux';
import ActionTypes from '../action_types';
import Constants from '../constants';
function connected(state = false, action) {
switch (action.type) {
case Actio... | 43,385 |
https://github.com/chenGit1763113879QQ/irplus/blob/master/ir_core/src/edu/ur/ir/institution/InstitutionalCollectionSecurityService.java | Github Open Source | Open Source | Apache-2.0, LGPL-2.0-or-later | 2,020 | irplus | chenGit1763113879QQ | Java | Code | 886 | 1,621 | /**
Copyright 2008 University of Rochester
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 a... | 42,370 |
https://github.com/ahmedalkhashab/Baking-App-Kotlin/blob/master/libraries/data/src/main/java/com/example/eziketobenna/bakingapp/data/model/IngredientEntity.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | Baking-App-Kotlin | ahmedalkhashab | Kotlin | Code | 15 | 51 | package com.example.eziketobenna.bakingapp.data.model
data class IngredientEntity(
val quantity: Double,
val measure: String,
val ingredient: String
)
| 26,105 |
https://github.com/Linyiii/11775-hw1/blob/master/hw1_code/asr/11775_asr/HVC6066.srt | Github Open Source | Open Source | Apache-2.0 | 2,019 | 11775-hw1 | Linyiii | null | Spoken | 57 | 129 | 1
00:00:00.090 --> 00:00:09.740
first thing when they lose lose the d._v._d. to get out away just need to pride also
2
00:00:09.740 --> 00:00:41.030
that whole side let's carefully remove the top cover
3
00:00:41.030 --> 00:00:53.650
next step is to remove the conductors from dry
4
00:00:53.650 --> 00:00:56.680
and ... | 18,960 |
https://github.com/LRG00/learn-nestjs/blob/master/src/message/create.message.dto.ts | Github Open Source | Open Source | MIT | null | learn-nestjs | LRG00 | TypeScript | Code | 50 | 160 | import { IsString, IsInt, IsDateString } from 'class-validator';
export class CreateMessageDto {
// @IsInt()
// readonly id: number;
@IsInt()
readonly user_id: number;
@IsInt()
readonly to_user_id: number;
@IsString()
content: string;
// @IsDateString()
// readonly created_time: Date;
@IsInt... | 33,391 |
https://github.com/dotnettricks/azure-project/blob/master/ePizzaHub.Entities/CartItem.cs | Github Open Source | Open Source | MIT | null | azure-project | dotnettricks | C# | Code | 84 | 186 | using System;
using System.Text.Json.Serialization;
namespace ePizzaHub.Entities
{
public class CartItem
{
public CartItem()
{
// required by EF
}
public CartItem(int itemId, int quantity, decimal unitPrice)
{
ItemId = itemId;
UnitPr... | 34,539 |
https://github.com/CC-lee/nicholasblog/blob/master/nicholasblog-admin/src/app/pages/article/article-create/article-create.service.spec.ts | Github Open Source | Open Source | MIT | null | nicholasblog | CC-lee | TypeScript | Code | 40 | 133 | /* tslint:disable:no-unused-variable */
import { TestBed, async, inject } from '@angular/core/testing';
import { ArticleCreateService } from './article-create.service';
describe('Service: ArticleCreate', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [ArticleCreateService]
});
... | 38,887 |
https://github.com/sporchia/alttp_vt_randomizer/blob/master/app/Item/Upgrade/Health.php | Github Open Source | Open Source | MIT | 2,023 | alttp_vt_randomizer | sporchia | PHP | Code | 89 | 204 | <?php
namespace ALttP\Item\Upgrade;
use ALttP\Item;
use ALttP\World;
/**
* Health Capacity type Item
*/
class Health extends Item
{
public $power = 1;
/**
* Create a new Item
*
* @param string $name Unique name of item
* @param array $bytes data to write to Location addre... | 48,592 |
https://github.com/maiduyduc/device-mng-core/blob/master/resources/views/apps/dashboard/ajax/ajax-message.blade.php | Github Open Source | Open Source | MIT | null | device-mng-core | maiduyduc | PHP | Code | 208 | 1,047 | <div class="modal-header">
<h5 class="modal-title">
Mã công văn: CV-{{ str_pad($code[0]->id, 5 ,'0', STR_PAD_LEFT) }}
<br>
<p>Ngày tạo: {{ $code[0]->updated_at }}</p>
</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">... | 17,722 |
https://github.com/mrchrisadams/basil/blob/master/lib/basil/email.rb | Github Open Source | Open Source | MIT | 2,012 | basil | mrchrisadams | Ruby | Code | 477 | 1,198 | require 'net/imap'
module Basil
# Note: to prevent "catch-up" spam the first time this is enabled or
# renabled after breaking (say it ain't so!), I recommend clearing
# the bot's inbox (manually or by running a CLI instance).
module Email
# Looping it its own Thread, check the configured email address on
... | 5,554 |
https://github.com/J1939G/ITP/blob/master/less/page.less | Github Open Source | Open Source | MIT | null | ITP | J1939G | Less | Code | 35 | 113 | @font-face {
font-family: SSPB;
src: url("../fonts/SSPB.ttf")
}
body {
margin: 0px;
padding: 0px;
scroll-behavior: smooth;
border: 0px;
font-family: SSPB, sans-serif;
}
@keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
} | 39,041 |
https://github.com/pulumi/pulumi-kubernetes-crds/blob/master/operators/global-load-balancer-operator/dotnet/Kubernetes/Crds/Operators/GlobalLoadBalancerOperator/Redhatcop/V1Alpha1/Outputs/GlobalRouteDiscoveryStatusClusterReferenceStatuses.cs | Github Open Source | Open Source | Apache-2.0 | null | pulumi-kubernetes-crds | pulumi | C# | Code | 199 | 415 | // *** WARNING: this file was generated by crd2pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.Kubernetes.Types.O... | 7,474 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.