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/aloehh/react-mobx-demo/blob/master/src/modules/CommentInput/index.js | Github Open Source | Open Source | MIT | null | react-mobx-demo | aloehh | JavaScript | Code | 9 | 21 | // import "./CommentInput.scss";
export { default } from "./CommentInput";
| 39,095 |
https://github.com/podgorniy/javascript-toolbox/blob/master/make_iterable.js | Github Open Source | Open Source | MIT | 2,022 | javascript-toolbox | podgorniy | JavaScript | Code | 56 | 185 | function make_iterable (func) {
var arr_proto;
arr_proto = Array.prototype;
return function (el) {
var res,
args,
i;
res = [];
args = [undefined].concat(arr_proto.slice.call(arguments, 1));
if ('length' in el) {
for (i = 0; i < el.length; i += 1) {
args.splice(0,1,el[i]);
res[i] = func.app... | 4,147 |
https://github.com/LinqLover/Squot/blob/master/src/VersionControl.package/VersionHistoryWalk.class/instance/excludeAncestorsOfAll..st | Github Open Source | Open Source | MIT | 2,022 | Squot | LinqLover | null | Spoken | 11 | 41 | history walking
excludeAncestorsOfAll: aCollectionOfVersions
aCollectionOfVersions do: [:each | self excludeAncestorsOf: each]. | 46,730 |
https://github.com/rebpdx/LuxCore/blob/master/src/slg/samplers/sobolsequence.cpp | Github Open Source | Open Source | Apache-2.0 | 2,020 | LuxCore | rebpdx | C++ | Code | 289 | 647 | /***************************************************************************
* Copyright 1998-2018 by authors (see AUTHORS.txt) *
* *
* This file is part of LuxCoreRender. *
* ... | 14,930 |
https://github.com/PavelSynek/skaut-inventarizace/blob/master/app/src/main/java/cz/skaut/warehousemanager/soap/RoleUpdate.java | Github Open Source | Open Source | MIT | 2,015 | skaut-inventarizace | PavelSynek | Java | Code | 58 | 285 | package cz.skaut.warehousemanager.soap;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Path;
import org.simpleframework.xml.Root;
import cz.skaut.warehousemanager.WarehouseApplication;
import cz.skaut.warehousemanager.helper.C;
@Root(name = "soap:Envelope")
public class RoleUpdate extends Bas... | 36,239 |
https://github.com/richardsimms/ronascrubs/blob/master/packages/landing-gatsby/src/containers/Charity/MilestoneBlock/milestoneBlock.style.js | Github Open Source | Open Source | MIT | 2,020 | ronascrubs | richardsimms | JavaScript | Code | 521 | 1,591 | import styled from 'styled-components';
import { themeGet } from 'styled-system';
import bgImage from 'common/src/assets/image/charity/packets.jpg';
const BlockWrapper = styled.div`
width: 100%;
margin: 81px 0;
padding: 60px;
background-image: url(${bgImage});
background-repeat: no-repeat;
background-size:... | 33,521 |
https://github.com/anCRONIK/cookbook-app-system/blob/master/backend-api/src/main/java/net/ancronik/cookbook/backend/api/web/dto/recipe/RecipeModel.java | Github Open Source | Open Source | MIT | null | cookbook-app-system | anCRONIK | Java | Code | 96 | 374 | package net.ancronik.cookbook.backend.api.web.dto.recipe;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRootName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import net.ancronik.cookbook.back... | 9,417 |
https://github.com/sglab/OpenIRT/blob/master/OpenIRT/src/handler.cpp | Github Open Source | Open Source | BSD-2-Clause | 2,020 | OpenIRT | sglab | C++ | Code | 192 | 579 | /********************************************************************
created: 2010/02/05
file path: D:\Projects\Redering\OpenIRT\src
file base: handler
file ext: cpp
author: Tae-Joon Kim (tjkim@tclab.kaist.ac.kr)
comment: Handler has global variables for handling parameters
***********************************... | 48,268 |
https://github.com/akshaysridhar/CLIMA/blob/master/test/Mesh/mpi_getpartition.jl | Github Open Source | Open Source | Apache-2.0 | 2,019 | CLIMA | akshaysridhar | Julia | Code | 100 | 374 | using Test
using MPI
using CLIMA.Mesh.BrickMesh
using Random
function main()
MPI.Init()
comm = MPI.COMM_WORLD
crank = MPI.Comm_rank(comm)
csize = MPI.Comm_size(comm)
Nelemtotal = 113
Random.seed!(1234);
globalcode = randperm(Nelemtotal)
@assert csize > 1
bs = [(i==1) ? (1:0) :
BrickMesh.li... | 19,497 |
https://github.com/gary-archer/oauth.mobileweb.ios/blob/master/Source/Plumbing/Errors/ErrorFactory.swift | Github Open Source | Open Source | MIT | null | oauth.mobileweb.ios | gary-archer | Swift | Code | 783 | 1,861 | import Foundation
/*
* A class to manage error translation
*/
struct ErrorFactory {
static let AppAuthNamespace = "org.openid.appauth."
/*
* Translate a general exception into a form ready for display
*/
static func fromException(
error: Error,
errorCode: String? = nil,
... | 28,537 |
https://github.com/C-Duv/pika/blob/master/pika/adapters/blocking_connection.py | Github Open Source | Open Source | BSD-3-Clause | null | pika | C-Duv | Python | Code | 9,113 | 26,226 | """The blocking connection adapter module implements blocking semantics on top
of Pika's core AMQP driver. While most of the asynchronous expectations are
removed when using the blocking connection adapter, it attempts to remain true
to the asynchronous RPC nature of the AMQP protocol, supporting server sent
RPC comman... | 40,130 |
https://github.com/adewale2018/enye-challenge/blob/master/src/App.js | Github Open Source | Open Source | MIT | null | enye-challenge | adewale2018 | JavaScript | Code | 68 | 184 | import React from "react";
import "./App.css";
import Navbar from "./components/AppNavbar";
import { Switch, Route } from "react-router-dom";
import Home from "./components/Home";
import RegistrationForm from "./components/RegistrationForm";
import Users from "./components/Users";
import NotFound from "./components/Not... | 14,935 |
https://github.com/elastest/elastest-device-emulator-service/blob/master/demo/examples/SensorExample/bin/openmtc-sensor-example | Github Open Source | Open Source | Apache-2.0 | 2,020 | elastest-device-emulator-service | elastest | Shell | Code | 7 | 21 | #!/usr/bin/env bash
exec python -m sensorexample $@
| 15,250 |
https://github.com/unisonweb/unison/blob/master/parser-typechecker/src/Unison/Typechecker/Extractor.hs | Github Open Source | Open Source | MIT, BSD-3-Clause | 2,023 | unison | unisonweb | Haskell | Code | 1,945 | 4,072 | module Unison.Typechecker.Extractor where
import Control.Monad.Reader
import Data.List qualified as List
import Data.List.NonEmpty (NonEmpty)
import Data.Set qualified as Set
import Unison.Blank qualified as B
import Unison.ConstructorReference (ConstructorReference)
import Unison.Pattern (Pattern)
import Unison.Prelu... | 35,051 |
https://github.com/Core-Game-Project-2016/nebula-trifid/blob/master/code/render/physics/havok/havokcontactlistener.cc | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, BSD-2-Clause | 2,016 | nebula-trifid | Core-Game-Project-2016 | C++ | Code | 460 | 1,999 | //------------------------------------------------------------------------------
// havokcontactlistener.cc
// (C) 2013-2014 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "physics/contactlistener.h"
#include "con... | 17,577 |
https://github.com/cloudextend/contrib-netsuite-servicemgr/blob/master/Celigo.ServiceManager.NetSuite/src/INetSuiteClientFactory.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | contrib-netsuite-servicemgr | cloudextend | C# | Code | 25 | 88 | using SuiteTalk;
namespace Celigo.ServiceManager.NetSuite
{
public interface INetSuiteClientFactory
{
INetSuiteClient CreateClient(TbaUserToken userToken, IConfigurationProvider configurationProvider = null);
INetSuiteClient CreateClient(ITokenPassportProvider passportProvider, IConfiguration... | 14,140 |
https://github.com/iammowgoud/class_notebooks/blob/master/dataset/dataset/split.py | Github Open Source | Open Source | MIT | null | class_notebooks | iammowgoud | Python | Code | 74 | 171 | class Split:
"""
This class represents a split from a dataset, it will assign
each dataframe partition passed as argument to a different
attribute of the class: 'train', 'test' (and 'validation').
The class method 'split' performs the splitting of the dataframe
passed, according to the paramete... | 7,119 |
https://github.com/minkcv/pinballnx/blob/master/games/pinball/source/ptarget.cpp | Github Open Source | Open Source | MIT | 2,021 | pinballnx | minkcv | C++ | Code | 283 | 1,202 | #include "ptarget.h"
PTarget::PTarget(C2DRenderer* renderer, b2World& world, int targetGroupID, int layerID) {
m_layerID = layerID;
m_flashTimer = 0;
m_currentTarget = 0;
m_frame = 0;
vector<vector<float>> shapes = m_targetGroups.at(targetGroupID);
for (size_t s = 0; s < shapes.size(); s++) {
... | 8,058 |
https://github.com/DualRTC-io/DualRTC.io-Demo/blob/master/views/main.jade | Github Open Source | Open Source | MIT | null | DualRTC.io-Demo | DualRTC-io | null | Spoken | 129 | 701 | //
//form(name="pollMain")
// div.clearfix
// p.pull-left: a.btn.btn-primary(href="#/poll/new")
// span.glyphicon.glyphicon-pencil
// | 방 등록
// p.pull-right.text-primary
// span.glyphicon.glyphicon-list-alt
// | 총 {{count}}건 등록
//
// div.panel.panel-default
// div.panel-heading
// ... | 37,255 |
https://github.com/gzcharleszhang/course-planner/blob/master/internal/app/handlers/newTimelineHandler/newTimelineHandler_test.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | course-planner | gzcharleszhang | Go | Code | 137 | 546 | // +build all integration
package newTimelineHandler
import (
"context"
"encoding/json"
"github.com/gzcharleszhang/course-planner/internal/app/components/contextKeys"
"github.com/gzcharleszhang/course-planner/internal/app/components/timelines"
"github.com/gzcharleszhang/course-planner/internal/app/components/uti... | 4,905 |
https://github.com/raychiutw/ioc-di-sample/blob/master/src/SampleWithUnity/Repository/ProductRepository.cs | Github Open Source | Open Source | MIT | null | ioc-di-sample | raychiutw | C# | Code | 25 | 71 | using System.Collections.Generic;
namespace SampleWithUnity.Repository
{
public class ProductRepository : IProductRepository
{
public IEnumerable<string> GetAll()
{
return new string[] { "value1", "value2" };
}
}
} | 1,575 |
https://github.com/shanghaif/waibao/blob/master/vue-admin-template/src/layout/components/message-box.vue | Github Open Source | Open Source | MIT | 2,020 | waibao | shanghaif | Vue | Code | 178 | 710 | <template>
<div class="message-con">
<div class="head-con">{{ info.title }}</div>
<div class="message-table-con">
<table class="message-table">
<tr class="message-row">
<td class="left">姓名:{{ info.task.patientName }}</td>
<td class="right">性别:姓名:{{ info.task.sex }}</td>
... | 26,340 |
https://github.com/kubernetes-sigs/gcp-filestore-csi-driver/blob/master/pkg/util/util.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | gcp-filestore-csi-driver | kubernetes-sigs | Go | Code | 1,343 | 3,668 | /*
Copyright 2018 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | 4,605 |
https://github.com/Mugiwaranojo/merrySF/blob/master/src/Merry/Bundle/CoreBundle/Constants/DevicesToshiba.php | Github Open Source | Open Source | MIT | null | merrySF | Mugiwaranojo | PHP | Code | 31 | 119 | <?php
namespace Merry\Bundle\CoreBundle\Constants;
class DevicesToshiba
{
const NAME = 'toshiba';
const COMMAND_ON = '40bf12';
const COMMAND_OFF = '40bf12';
const COMMAND_VOLUP = '40bf1a';
const COMMAND_VOLDOWN = '40bf1e';
const COMMAND_SOURCE = '40bf14';
}
| 34,872 |
https://github.com/elisabettai/osparc-simcore/blob/master/packages/simcore-sdk/tests/integration/test_node_ports_common_dbmanager.py | Github Open Source | Open Source | MIT | null | osparc-simcore | elisabettai | Python | Code | 115 | 462 | # pylint:disable=unused-variable
# pylint:disable=unused-argument
# pylint:disable=redefined-outer-name
import json
from pathlib import Path
from typing import Callable, Dict
from simcore_sdk.node_ports_common.dbmanager import DBManager
pytest_simcore_core_services_selection = [
"migration",
"postgres",
]
p... | 30,077 |
https://github.com/jeffersonaugusto140/react-native-chat/blob/master/src/contexts/Theme.js | Github Open Source | Open Source | MIT | null | react-native-chat | jeffersonaugusto140 | JavaScript | Code | 73 | 238 | import React from 'react';
export const themes = {
light: {
router: {
navigationBarStyle: {
backgroundColor: '#115E54',
},
titleStyle: {
color: '#FFFFFF',
},
backButtonTintColor: '#FFFFFF',
backTitle: 'Back',
},
input: {
... | 40,013 |
https://github.com/qtxasjo/Foundation/blob/master/src/Foundation.Demo/Install/InstallProgressMessenger.cs | Github Open Source | Open Source | Apache-2.0 | null | Foundation | qtxasjo | C# | Code | 89 | 248 | using EPiServer.Logging;
using Mediachase.Commerce.Shared;
using System;
using System.Collections.Generic;
namespace Foundation.Demo.Install
{
public class InstallProgressMessenger : IProgressMessenger
{
private static readonly ILogger _log = LogManager.GetLogger(typeof(InstallProgressMessenger));
... | 47,597 |
https://github.com/TheRockerfly/JRocker-Portfolio/blob/master/data_visualisation/seaborn_residual_regression_graph.py | Github Open Source | Open Source | MIT | null | JRocker-Portfolio | TheRockerfly | Python | Code | 67 | 143 | # -*- coding: utf-8 -*-
"""
Created on Mon Mar 19 17:27:24 2018
@author: james
"""
# Import plotting modules
import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
df = pd.read_csv("") # TODO: just specify a file
# Generate a red residual plot for visualizing how far data points diverge from the... | 43,543 |
https://github.com/BigRefT/bionic_cms/blob/master/vendor/gems/acts-as-taggable-on-1.1.6/spec/acts_as_taggable_on/group_helper_spec.rb | Github Open Source | Open Source | MIT | 2,011 | bionic_cms | BigRefT | Ruby | Code | 62 | 211 | require File.dirname(__FILE__) + '/../spec_helper'
describe "Group Helper" do
before(:each) do
clean_database!
end
describe "grouped_column_names_for method" do
before(:each) do
@taggable = TaggableModel.new(:name => "Bob Jones")
end
it "should return all column names joined for Tag G... | 39,147 |
https://github.com/liuyousama/questionnaire/blob/master/tp5/public/static/js/main.js | Github Open Source | Open Source | PHP-3.0, Apache-2.0 | 2,018 | questionnaire | liuyousama | JavaScript | Code | 96 | 500 | $(function () {
$("#modify").click(function (e) {
e.preventDefault();
$(".panel").slideUp();
$(".modify-panel").slideDown();
});
$("#index").click(function (e) {
e.preventDefault();
$(".panel").slideUp();
$(".index-panel").slideDown();
});
$("#loginO... | 24,363 |
https://github.com/openembedded/meta-openembedded/blob/master/meta-oe/recipes-graphics/xserver-common/xserver-common-1.34/0011-xserver-common-add-support-for-nexus-one-alias-mahim.patch | Github Open Source | Open Source | MIT, GPL-2.0-only | 2,023 | meta-openembedded | openembedded | null | Spoken | 80 | 333 | From dfd832b35b6cb4cf2b6f2b51df7b0999f10c8ca1 Mon Sep 17 00:00:00 2001
From: Martin Jansa <Martin.Jansa@gmail.com>
Date: Wed, 11 Apr 2012 14:41:06 +0200
Subject: [PATCH] xserver-common: add support for nexus one alias mahimahi
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
Upstream-Status: Pending
X11/xse... | 8,290 |
https://github.com/enthought/traits/blob/master/examples/tutorials/doc_examples/examples/simple_adapter.py | Github Open Source | Open Source | CC-BY-3.0, BSD-3-Clause, LicenseRef-scancode-unknown-license-reference | 2,023 | traits | enthought | Python | Code | 120 | 258 | # (C) Copyright 2005-2023 Enthought, Inc., Austin, TX
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in LICENSE.txt and may be redistributed only under
# the conditions described in the aforementioned license. The license
# is also available online at... | 39,726 |
https://github.com/ryu0903/how-to-go-rh/blob/master/app/assets/stylesheets/custom.scss | Github Open Source | Open Source | MIT | 2,020 | how-to-go-rh | ryu0903 | SCSS | Code | 379 | 1,427 |
@mixin box_sizing {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
// navigation
// sessions_new
.checkbox-cursor {
cursor: pointer;
}
#session_remember_me {
width: auto;
margin-left: 0;
}
// users_index
.users {
list-style: none;
margin: 0;
li ... | 50,993 |
https://github.com/XoopsModules25x/altsys/blob/master/xoops_trust_path/libs/altsys/language/spanish/compilehookadmin.php | Github Open Source | Open Source | Cube | 2,016 | altsys | XoopsModules25x | PHP | Code | 551 | 1,550 | <?php
define('_TPLSADMIN_FMT_MSG_ENCLOSEBYCOMMENT', '%d archivos de cache de plantillas han sido enmarcados por comentarios "tplsadmin"') ;
define('_TPLSADMIN_DT_ENCLOSEBYCOMMENT', 'Implantar comentarios') ;
define('_TPLSADMIN_DD_ENCLOSEBYCOMMENT', 'Dos comentarios en html serán implantados al comienzo y al final de c... | 21,604 |
https://github.com/heladiofog/ecommerce_ci/blob/master/application/views/administrador_usuario/editar_rs.php | Github Open Source | Open Source | MIT | 2,015 | ecommerce_ci | heladiofog | PHP | Code | 134 | 785 | <div class='titulo-descripcion'>
<div class='img-hoja'></div>Datos de envío y facturación
<div class='pleca-titulo'></div>
</div>
<div style='margin-top:18px'></div><div class='encabezado-descripcion'>Editar Razón Social</div>
<form id="form_agregar_rs" action="" method="POST">
<div class='form-label'>Nombre o R... | 32,495 |
https://github.com/3tty0n/dacapobench/blob/master/benchmarks/bms/eclipse/plugin/src/org/eclipse/jdt/core/tests/performance/FullSourceWorkspaceCompleteSearchTests.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | dacapobench | 3tty0n | Java | Code | 476 | 1,499 | /*
* Copyright (c) 2000, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contribut... | 41,648 |
https://github.com/it-vbg/mebel.develop/blob/master/admin/view/template/extension/yamodule/check.tpl | Github Open Source | Open Source | Unlicense | null | mebel.develop | it-vbg | null | Spoken | 382 | 1,472 | <?php echo $header; ?><?php echo $column_left;
$is_good = true;
?>
<div id="content">
<div class="page-header">
<div class="container-fluid">
<h3>Проверка настроек</h3>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="col-sm-10 c... | 35,794 |
https://github.com/adam-at-brown/mb_headers/blob/master/src/components/header/components/tests/sub-nav.test.js | Github Open Source | Open Source | RSA-MD | null | mb_headers | adam-at-brown | JavaScript | Code | 360 | 1,856 | import React from "react";
import { render } from "@testing-library/react";
import data from "../../../../assets/data/header_nav";
import SubNav from "../sub_nav";
describe("Subnav", () => {
it("Displays correct title and link by passed data for News group", () => {
const { getByText } = render(
<SubNav li... | 29,390 |
https://github.com/digitalocean/notification-skeleton-plugin/blob/master/src/test/java/com/digitalocean/gocd/webhook/executors/WebhookRequestExecutorTest.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | notification-skeleton-plugin | digitalocean | Java | Code | 120 | 588 | package com.digitalocean.gocd.webhook.executors;
import com.digitalocean.gocd.webhook.HttpClient;
import com.thoughtworks.go.plugin.api.response.GoPluginApiResponse;
import org.json.JSONArray;
import org.json.JSONObject;
import org.junit.Test;
import java.util.Arrays;
import java.util.List;
import static org.junit.A... | 48,168 |
https://github.com/penguinmenac3/babilim/blob/master/babilim/training/callbacks/log_callback.py | Github Open Source | Open Source | MIT | 2,020 | babilim | penguinmenac3 | Python | Code | 340 | 1,296 | import time
from babilim.core import ITensor
from babilim.core.logging import info, log_progress, status, create_checkpoint_structure, get_log_path, warn
from babilim.data import Dataloader
from babilim.core.module import Module
from babilim.training.callbacks.base_callback import BaseCallback
from babilim.training.lo... | 1,694 |
https://github.com/acorg/dark-matter/blob/master/test/test_mutations.py | Github Open Source | Open Source | MIT | 2,023 | dark-matter | acorg | Python | Code | 452 | 1,246 | import six
from unittest import TestCase
from dark.mutations import getAPOBECFrequencies, mutateString
class TestGetAPOBECFrequencies(TestCase):
"""
Tests the getAPOBECFrequencies function
"""
def testCorrectResult(self):
"""
The function should return the right bases.
s: AG... | 40,302 |
https://github.com/powerlang/powerlang/blob/master/pst/vm/pst.h | Github Open Source | Open Source | MIT | 2,022 | powerlang | powerlang | C++ | Code | 65 | 190 | #ifndef _PST_H_
#define _PST_H_
#include <cstdint>
typedef unsigned long ulong;
typedef unsigned short ushort;
typedef unsigned char uchar;
#define WORD_SIZE 8
#define WORD_SIZE_SHIFT 3
namespace pst {
static inline uintptr_t align(uintptr_t value, int alignment) {
return ((value + (alignment-1)) & ~(alignment... | 33,079 |
https://github.com/isystk/java-seaser2-sample/blob/master/web-front/src/main/java/com/isystk/sample/web/front/s2/mai/dto/PasswordRemindMailDto.java | Github Open Source | Open Source | MIT | null | java-seaser2-sample | isystk | Java | Code | 130 | 429 | /**
* MailBase.java
* 2010/10/15 iseyoshitaka
* (c) Copyright 2009 isystk.com Inc. All rights reserved.
*/
package com.isystk.sample.web.front.s2.mai.dto;
import com.isystk.sample.common.s2.mai.dto.BaseMailDto;
/**
* パスワードリマインド(ワンタイムURL記載メール)DTO
*
* @author iseyoshitaka
*/
public class PasswordRemindMailDto ... | 46,751 |
https://github.com/colevandersWands/website/blob/master/src/components/page-sections/home-header/style.js | Github Open Source | Open Source | 0BSD | 2,021 | website | colevandersWands | JavaScript | Code | 25 | 74 | import styled from "styled-components"
export const Container = styled.div`
display: flex;
margin: 60px 0 30px 0;
flex-direction: column;
align-items: center;
max-width: 800px;
z-index: 10;
`
| 33,951 |
https://github.com/stes/it4kids/blob/master/src/dragelem/hatde.cpp | Github Open Source | Open Source | MIT | 2,022 | it4kids | stes | C++ | Code | 121 | 640 | #include "hatde.h"
#include "sprite.h"
HatDE::HatDE(const QString& identifier, const QString& text, const QColor& color, Sprite* sprite, QWidget* parent) :
DraggableElement(identifier, text, color, sprite, parent),
_lowerDock(ScriptDock::Lower, sprite, this)
{
_paramLayout->setContentsMargins(8,6+10,8,6... | 6,604 |
https://github.com/hardpixel/active-bookings/blob/master/lib/active_bookings/booker.rb | Github Open Source | Open Source | MIT | 2,020 | active-bookings | hardpixel | Ruby | Code | 184 | 535 | module ActiveBookings
module Booker
def self.included(base)
base.extend ClassMethods
end
module ClassMethods
##
# Make a model a booker. This allows an instance of a model to claim ownership
# of bookings.
#
# Example:
# class User < ActiveRecord::Base
# ... | 16,778 |
https://github.com/remykusters/DeePyMoD_sensor/blob/master/paper/Advection_diffusion/AD_artificial/sampling/runs/Runs.ipynb | Github Open Source | Open Source | MIT | 2,021 | DeePyMoD_sensor | remykusters | Jupyter Notebook | Code | 472 | 2,108 | {
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"# General imports\n",
"import numpy as np\n",
"import torch\n",
"import random\n",
"\n",
"# DeepMoD functions\n",
"import matplotlib.pylab as plt\n",
"from deepymod imp... | 34,511 |
https://github.com/fdinoff/neovim-java-client/blob/master/src/main/java/com/neovim/SocketNeovim.java | Github Open Source | Open Source | MIT | 2,021 | neovim-java-client | fdinoff | Java | Code | 78 | 293 | package com.neovim;
import com.google.common.net.HostAndPort;
import com.neovim.msgpack.MessagePackRPC;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
public class SocketNeovim implements MessagePackRPC.Connection {
Socket neovim;
InputStream inpu... | 30,650 |
https://github.com/opengeolab/LandslidesSurvey/blob/master/App/www/css/4-modules/_photo-preview.scss | Github Open Source | Open Source | MIT | 2,022 | LandslidesSurvey | opengeolab | SCSS | Code | 97 | 334 | /* PHOTO PREVIEW */
$photo-thm-size : 150px;
$photo-thm-radius : 10px;
.photo-thm-wrapper {
width : 100%;
@include flex-center;
.photo-thm-box {
width : $photo-thm-size;
height : $photo-thm-size;
@include flex-center;
overflow : hidden;
border : 1px solid #C5C5C... | 16,335 |
https://github.com/nugget/phoebot/blob/master/main.go | Github Open Source | Open Source | BSD-2-Clause | 2,020 | phoebot | nugget | Go | Code | 1,770 | 7,641 | //
// Copyright (c) 2019 David McNett. All Rights Reserved.
//
// SPDX-License-Identifier: BSD-2-Clause
//
package main
import (
"fmt"
"os"
"os/signal"
"regexp"
"syscall"
"time"
"github.com/nugget/phoebot/hooks"
"github.com/nugget/phoebot/lib/builddata"
"github.com/nugget/phoebot/lib/config"
"github.com/n... | 4,066 |
https://github.com/lim147/capstone-mini-game-battery-project/blob/master/Assets/Tests/EditModeTests/StorageTests/CatchTheThiefStorageTests.cs | Github Open Source | Open Source | MIT | null | capstone-mini-game-battery-project | lim147 | C# | Code | 476 | 1,867 | using NUnit.Framework;
using Storage;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.TestTools;
using Helper;
namespace EditModeTests
{
namespace StorageTests
{
public class CatchTheThiefStorageTests
{
private CatchTheThiefStorage c... | 40,261 |
https://github.com/shieldwallets/cosmostation-ios/blob/master/Cosmostation/ProtoBuff/ixo_payments_tx.pb.swift | Github Open Source | Open Source | MIT | null | cosmostation-ios | shieldwallets | Swift | Code | 2,889 | 8,380 | // DO NOT EDIT.
// swift-format-ignore-file
//
// Generated by the Swift generator plugin for the protocol buffer compiler.
// Source: ixo/payments/tx.proto
//
// For information on using the generated types, please see the documentation:
// https://github.com/apple/swift-protobuf/
import Foundation
import SwiftProt... | 7,084 |
https://github.com/credfeto/UpdatePackages/blob/master/src/Credfeto.Package/Services/PackageRegistry.cs | Github Open Source | Open Source | MIT | 2,023 | UpdatePackages | credfeto | C# | Code | 349 | 1,366 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Credfeto.Package.Services.LoggingExtensions;
using Microsoft.Extensions.Logging;
using NonBlocking;
using NuGet.Common;
using NuGet.Configuration;
using NuGet.Protocol.Core.Types;
using NuGet.V... | 1,934 |
https://github.com/blackspherefollower/buttplug-csharp/blob/master/Buttplug.Server.Managers.HidManager/HidButtplugDevice.cs | Github Open Source | Open Source | BSD-3-Clause, MIT, Apache-2.0, BSD-2-Clause | 2,018 | buttplug-csharp | blackspherefollower | C# | Code | 265 | 936 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Buttplug.Core;
using HidLibrary;
namespace Buttplug.Server.Managers.HidManager
{
internal abstract class HidButtplugDevice : ButtplugDevice, IDisposable
{
private readonly IHi... | 20,725 |
https://github.com/AlexZhangrj/ep-core/blob/master/src/main/java/com/zhrenjie04/alex/core/exception/PrerequisiteNotSatisfiedException.java | Github Open Source | Open Source | MIT | 2,021 | ep-core | AlexZhangrj | Java | Code | 38 | 126 | package com.zhrenjie04.alex.core.exception;
/**
* @author 张人杰
*/
public class PrerequisiteNotSatisfiedException extends RuntimeException{
private static final long serialVersionUID = 5333685444428757922L;
private final String message;
public PrerequisiteNotSatisfiedException(String message) {
this.message=mes... | 30,992 |
https://github.com/isabella232/house-of-life-chromium/blob/master/content/renderer/video_capture_message_filter.h | Github Open Source | Open Source | BSD-3-Clause | 2,011 | house-of-life-chromium | isabella232 | C++ | Code | 315 | 901 | // Copyright (c) 2011 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.
//
// MessageFilter that handles video capture messages and delegates them to
// video captures. VideoCaptureMessageFilter is operated on IO thread of
... | 28,988 |
https://github.com/mohan-chinnappan-n/datamaps.co/blob/master/src/routes/home/components/EditorAttributes/EditorAttributes.jsx | Github Open Source | Open Source | MIT | null | datamaps.co | mohan-chinnappan-n | null | Spoken | 49 | 187 | import React from 'react'
import style from './EditorAttributes.css'
import AttributeItem from '../AttributeItem/AttributeItem'
const EditorAttributes = () =>
<div className="row center-xs">
<div className="col-xs-10">
<div className={style.container}>
<div className="row around-xs">
<At... | 32,851 |
https://github.com/cpatanarach/view/blob/master/app/LinkDown.php | Github Open Source | Open Source | MIT | null | view | cpatanarach | PHP | Code | 27 | 105 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class LinkDown extends Model
{
protected $table = 'link_down';
protected function linkData(){
return $this->belongsTo('App\LinkData','city_id','id');
}
protected function alert(){
return $this->hasOne('App\Alert','link_down_id'... | 19,139 |
https://github.com/Hironsan/natural-language-preprocessings/blob/master/preprocessings/padding.py | Github Open Source | Open Source | MIT | 2,022 | natural-language-preprocessings | Hironsan | Python | Code | 189 | 422 | from keras.preprocessing.sequence import pad_sequences
def pad_char_sequences(sequences, maxlen=None, dtype='int32',
padding='pre', truncating='pre', value=0.):
"""Pads each sequence to the same length (length of the longest sequence).
If maxlen is provided, any sequence longer than ma... | 46,994 |
https://github.com/jww777/singleApp/blob/master/ctms-dao/src/main/java/com/forceclouds/ctms/dao/mapper/system/BaseUserMapper.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | singleApp | jww777 | Java | Code | 49 | 238 | package com.forceclouds.ctms.dao.mapper.system;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.forceclouds.ctms.dao.entity.system.BaseUser;
import org.apache.ibatis.annotations.Pa... | 9,803 |
https://github.com/SaAPro/DoubleProject/blob/master/Pods/Clarifai-Apple-SDK/Clarifai_Apple_SDK.framework/Headers/CAIDataAsset.h | Github Open Source | Open Source | MIT | null | DoubleProject | SaAPro | C | Code | 111 | 472 | //
// CAIDataAsset.h
// Clarifai-Apple-SDK
//
// Copyright © 2017 Clarifai. All rights reserved.
//
#import <Foundation/Foundation.h>
@class CAIConcept;
@class CAIEmbedding;
@class CAIImage;
typedef NS_ENUM(NSUInteger, CAIDataAssetType) {
CAIDataAssetTypeImage = 0,
CAIDataAssetTypeVideo
} NS_SWIFT_NAME(Da... | 14,527 |
https://github.com/ahrenpradhan/invoices/blob/master/src/renderer/components/common/customForm/index.jsx | Github Open Source | Open Source | MIT | null | invoices | ahrenpradhan | null | Spoken | 226 | 858 | /* eslint-disable react/forbid-prop-types */
/* eslint-disable react/jsx-props-no-spreading */
import PropTypes from 'prop-types';
import { Form } from 'antd';
import ContentWrapper from 'renderer/components/common/contentWrapper';
import TopHeaderTitle from 'renderer/components/common/topHeaderTitle';
import { getObj... | 38,052 |
https://github.com/yavier/FuzzySearch/blob/master/FuzzySearch.podspec | Github Open Source | Open Source | MIT | 2,017 | FuzzySearch | yavier | Ruby | Code | 62 | 229 | Pod::Spec.new do |spec|
spec.name = 'FuzzySearch'
spec.version = '1.1.0'
spec.license = { :type => 'MIT' }
spec.homepage = 'https://github.com/rahulnadella/FuzzySearch'
spec.authors = { 'Rahul Nadella' => 'rahulnadella@yahoo.com' }
spec.summary = 'Utility class to find an app... | 5,221 |
https://github.com/Jchinonso/PostIT/blob/master/client/constants/ActionTypes.js | Github Open Source | Open Source | MIT | null | PostIT | Jchinonso | JavaScript | Code | 91 | 390 | export const CREATE_GROUP_SUCCESS = 'CREATE_GROUP_SUCCESS';
export const CREATE_GROUP_FAILURE = 'CREATE_GROUP_FAILURE';
export const RECEIVE_GROUPS_SUCCESS = 'RECEIVE_GROUPS_SUCCESS';
export const RECEIVE_GROUPS_FAILURE = 'REACEIVE_GROUPS_FAILURE';
export const SELECT_GROUP = 'SELECT_GROUP';
export const GET_GROUP_MESS... | 45,047 |
https://github.com/manishSRM/solvedProblems/blob/master/MyFiles/FROGV.cpp | Github Open Source | Open Source | Apache-2.0 | null | solvedProblems | manishSRM | C++ | Code | 233 | 630 | #include <cstdio>
#include <algorithm>
#include <vector>
#define FOR(A, B, C) for (int A = B; A < C; A++)
#define RFOR(A, B, C) for (int A = B; A >= C; A--)
#define EFOR(A, B, C) for (int A = B; A <= C; A++)
#define PB(B) push_back(B)
using namespace std;
typedef pair<int, int> II;
typedef vector<int> VI;
typedef ve... | 43,179 |
https://github.com/bernalvinicius/DrawerMenu/blob/master/src/navigation/DrawerContent.js | Github Open Source | Open Source | MIT | null | DrawerMenu | bernalvinicius | JavaScript | Code | 102 | 515 | import React from 'react';
import {View, Text} from 'react-native';
import {DrawerItem, DrawerContentScrollView} from '@react-navigation/drawer';
import styles from './styles';
export default (props) => {
return (
<DrawerContentScrollView
{...props}
contentContainerStyle={styles.safeAreaApp}>
<... | 28,809 |
https://github.com/aaleta/thesis_plots/blob/master/Chapter4/FC/zcript_Fig6B.R | Github Open Source | Open Source | Unlicense | 2,020 | thesis_plots | aaleta | R | Code | 60 | 383 | library(ggplot2)
library(ggthemes)
library(ggsci)
library(scales)
source("../../theme.R")
plotB = function(print.plot=F)
{
data = read.table("Data/validity_length.txt",header=T)
p = ggplot(data, aes(x, fill=as.factor(y))) +
theme_thesis() +
geom_histogram(alpha = 0.5, position = 'identity', linetype="blank") +
... | 17,839 |
https://github.com/Culaccino9/react-hwj-admin/blob/master/src/page/Account/AccountList/childrenCmpt/ActListHeader/index.jsx | Github Open Source | Open Source | MIT | 2,021 | react-hwj-admin | Culaccino9 | null | Spoken | 81 | 328 | import React from 'react'
import { useHistory } from 'react-router-dom'
import{
Button,
Tooltip,
Dropdown,
} from 'antd'
import {ReloadOutlined , SettingOutlined} from '@ant-design/icons'
import {ActListHeaderDivStyle} from './style'
import WJTableStting from './tableStting'
export default function WJActLi... | 5,813 |
https://github.com/ShibalIbrahim/Additive-Models-with-Structured-Interactions/blob/master/SparseAMsWithInteractions/src/AMsWithInteractionsL0/L0Path.py | Github Open Source | Open Source | MIT | 2,021 | Additive-Models-with-Structured-Interactions | ShibalIbrahim | Python | Code | 1,252 | 5,371 | from copy import deepcopy
from IPython.display import Math
from ipywidgets import *
import numpy as np
import pandas as pd
from patsy import dmatrix
import scipy.sparse as sp
from scipy.special import comb
from sklearn.metrics import mean_absolute_error, mean_squared_error
from tqdm import notebook
import warnings
def... | 43,715 |
https://github.com/gsputt/theShowmanSTS/blob/master/src/main/java/theShowman/actions/VanishingActAction.java | Github Open Source | Open Source | MIT | null | theShowmanSTS | gsputt | Java | Code | 262 | 1,142 | package theShowman.actions;
import com.evacipated.cardcrawl.mod.stslib.StSLib;
import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.actions.utility.ShowCardAndPoofAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import... | 29,104 |
https://github.com/Django-Yu/dazong/blob/master/dzprj/application/console/controller/ConsoleController.php | Github Open Source | Open Source | Apache-2.0 | 2,017 | dazong | Django-Yu | PHP | Code | 56 | 217 | <?php
namespace app\console\controller ;
use think\Controller;
/**
* 命令行
* @author Chenjx
*
*/
class ConsoleController extends Controller {
protected $app;
protected $beforeActionList = ['cliFilter'] ;
public function cliFilter() {
if (!IS_CLI && !config('app_debug')) {
$domain = $this->request->doma... | 29,521 |
https://github.com/ecommerce-utilities/php-countries/blob/master/codes/lo_LA/cldr-countries.php | Github Open Source | Open Source | MIT | 2,021 | php-countries | ecommerce-utilities | PHP | Code | 598 | 4,997 | <?php return array (
'AD' => 'ອັນດໍລາ',
'AE' => 'ສະຫະລັດອາຫລັບເອມິເລດ',
'AF' => 'ອັຟການິດສະຖານ',
'AI' => 'ອັນກິລາ',
'AL' => 'ແອລເບເນຍ',
'AM' => 'ອາມິເນຍ',
'AN' => 'ເນເທີແລນແອນເທິນ',
'AO' => 'ອັນໂກລາ',
'AR' => 'ອາເຈນຕິນາ່',
'AT' => 'ອົອດສະເຕຼຍ',
'AU' => 'ອົອດສະຕາລີ',
'AW' => 'ອາລູບາ',
'AZ' => '... | 34,384 |
https://github.com/designium/just_chew/blob/master/spec/support/pages/just_chew/clearance/password.rb | Github Open Source | Open Source | MIT | 2,017 | just_chew | designium | Ruby | Code | 5 | 24 | require_relative '../clearance'
module JustChew::Spec::Clearance::Password; end
| 32,027 |
https://github.com/davidqphan/Flickster/blob/master/app/src/main/java/com/codepath/flickster/MovieDetailsActivity.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | Flickster | davidqphan | Java | Code | 285 | 1,257 | package com.codepath.flickster;
import android.os.Bundle;
import android.util.Log;
import android.widget.RatingBar;
import android.widget.TextView;
import com.codepath.flickster.models.Movie;
import com.codepath.flickster.models.Video;
import com.google.android.youtube.player.YouTubeBaseActivity;
import com.google.an... | 17,099 |
https://github.com/QDylan/Learning-/blob/master/Leetcode/599. 两个列表的最小索引总和.py | Github Open Source | Open Source | MIT | 2,020 | Learning- | QDylan | Python | Code | 122 | 662 | # -*- coding: utf-8 -*-
"""
@Time : 2020-10-07 10:58
@Author : QDY
@FileName: 599. 两个列表的最小索引总和.py
@Software: PyCharm
"""
"""
假设Andy和Doris想在晚餐时选择一家餐厅,并且他们都有一个表示最喜爱餐厅的列表,每个餐厅的名字用字符串表示。
你需要帮助他们用最少的索引和找出他们共同喜爱的餐厅。 如果答案不止一个,则输出所有答案并且不考虑顺序。 你可以假设总是存在一个答案。
示例 1:
输入:
["Shogun", "Tapioca Express", "Burger King", "KFC"... | 1,254 |
https://github.com/The-dairywet/CppSharp/blob/master/src/Generator/Utils/FSM/Program.cs | Github Open Source | Open Source | MIT | 2,021 | CppSharp | The-dairywet | C# | Code | 73 | 233 | using System.Collections.Generic;
namespace CppSharp.Utils.FSM{
internal class Program{
private static void Main(string[] args){
var Q = new List<string>{"q0", "q1"};
var Sigma = new List<char>{'0', '1'};
var Delta = new List<Transition>{
new Transition("q0", '0', "q0")... | 27,339 |
https://github.com/laneystroup/metascan/blob/master/scan-example.rb | Github Open Source | Open Source | MIT | 2,015 | metascan | laneystroup | Ruby | Code | 91 | 226 | require 'metascan'
### Create a new scan object ###
scanner = Metascan::Client.new(MY_API_KEY)
### Scan a single file ###
filename = '/bin/bash'
print "Scanning file: #{filename} "
results = scanner.scan_file(filename)
status = nil
until status != nil do
print "."
status = results.clean?(poll: true)
sleep 5
e... | 8,023 |
https://github.com/BrunoVuan/ReCOVER-COVID-19/blob/master/matlab scripts/all_google_forecasts.m | Github Open Source | Open Source | MIT | 2,021 | ReCOVER-COVID-19 | BrunoVuan | MATLAB | Code | 853 | 3,222 | % Generate forecasts for all the regions available from Google opendata
tic;
pop_dat = readtable('demographicsG.csv');
index_dat = readtable('indexG.csv', 'Format','%s%s%s%s%s%s%s%s%s%s%s%s%s%s');
sel_url = 'https://storage.googleapis.com/covid19-open-data/v2/epidemiology.csv';
urlwrite(sel_url, 'dummy.csv');
all_tab ... | 39,637 |
https://github.com/eatkins/zinc/blob/master/zinc/src/test/resources/sources/naha/ClientWithoutAnythingUsed.scala | Github Open Source | Open Source | BSD-3-Clause | 2,020 | zinc | eatkins | Scala | Code | 19 | 61 | package naha
object ClientWithoutAnythingUsed {
val objects = Seq(NormalDependecy)
}
object ClientWithoutAnythingUsed2 {
val strings = Seq(Other.standardMember, Other.implicitMember)
}
| 11,615 |
https://github.com/Chocohead/Rift/blob/master/src/main/java/org/dimdev/rift/listener/client/ClientTickable.java | Github Open Source | Open Source | MIT | 2,019 | Rift | Chocohead | Java | Code | 12 | 47 | package org.dimdev.rift.listener.client;
import net.minecraft.client.Minecraft;
public interface ClientTickable {
void clientTick(Minecraft client);
}
| 44,237 |
https://github.com/phatblat/macOSPrivateFrameworks/blob/master/PrivateFrameworks/Spotlight/SPCoreSpotlightQuery.h | Github Open Source | Open Source | MIT | 2,022 | macOSPrivateFrameworks | phatblat | C | Code | 109 | 514 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import <Spotlight/SPMetadataQuery.h>
@class CSSearchQuery, NSArray, NSMutableDictionary, PRSRankingItemRanker, SPMetadataPattern;
@interface SPCoreSpotlightQuery : SPMetadataQuer... | 174 |
https://github.com/serendipityApe/fect/blob/master/packages/select/select-icon.tsx | Github Open Source | Open Source | MIT | 2,021 | fect | serendipityApe | TSX | Code | 47 | 177 | import { defineComponent } from 'vue'
const SelectIcon = defineComponent({
setup() {
return () => (
<div class="fect-select__icon-context">
<svg
viewBox="0 0 24 24"
width="20px"
height="20px"
stroke-width="1"
stroke-linecap="round"
color="... | 32,593 |
https://github.com/gabriele-annese/laravel-comics/blob/master/resources/sass/partials/_footer.scss | Github Open Source | Open Source | MIT | null | laravel-comics | gabriele-annese | SCSS | Code | 68 | 269 | footer{
width: 100%;
background-color: $black-footer;
color: $primary-color;
.container-footer {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 5rem;
.button{
button{
background-color: transparent;
... | 15,473 |
https://github.com/ChrisLidbury/CLSmith/blob/master/driver/evaluate_program | Github Open Source | Open Source | BSD-3-Clause, BSD-2-Clause | 2,017 | CLSmith | ChrisLidbury | Perl | Code | 1,487 | 5,513 | #!/usr/bin/perl
use strict;
use warnings;
use Benchmark;
use English;
use LockFile::Simple;
use File::Temp qw/ tempfile tempdir /;
use File::Copy;
use Cwd;
# TODO: check for program crash (vs. timeout)
# properly propagate run_program failures upwards
# distinguish between programs that compile and those that run ... | 8,623 |
https://github.com/Violet26/msdn-code-gallery-microsoft/blob/master/Official Windows Platform Sample/Windows 8.1 Store app samples/[C++]-Windows 8.1 Store app samples/Scan Runtime API Sample/C++/ScannerContext.h | Github Open Source | Open Source | MIT | 2,020 | msdn-code-gallery-microsoft | Violet26 | C++ | Code | 852 | 2,654 | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
//
//*********************************************************
#pragma once
namespace SDKSample
{
namespace Common
{
namespace WDE = Windows::Devices::Enumeration;
/// <summ... | 6,350 |
https://github.com/YunLemon/highj/blob/master/src/main/java/org/highj/data/transformer/error_arrow/ErrorArrowCategory.java | Github Open Source | Open Source | MIT | 2,022 | highj | YunLemon | Java | Code | 69 | 228 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.highj.data.transformer.error_arrow;
import org.derive4j.hkt.__;
import org.highj.data.Either;
import org.highj.data.transf... | 11,939 |
https://github.com/maximilianharr/code_snippets/blob/master/cpp/hanser_c_und_linux/svgalib-1.9.25/src/accel.c | Github Open Source | Open Source | BSD-3-Clause | null | code_snippets | maximilianharr | C | Code | 39 | 234 |
#include "vga.h"
#include "timing.h"
#include "accel.h"
int __svgalib_accel_screenpitch;
int __svgalib_accel_bytesperpixel;
int __svgalib_accel_screenpitchinbytes;
int __svgalib_accel_mode;
int __svgalib_accel_bitmaptransparency;
void __svgalib_InitializeAcceleratorInterface(ModeInfo * modeinfo)
{
__svgalib_acc... | 31,709 |
https://github.com/rbkmoney/payouter/blob/master/src/main/java/com/rbkmoney/payouter/service/ReportService.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | payouter | rbkmoney | Java | Code | 25 | 128 | package com.rbkmoney.payouter.service;
import com.rbkmoney.payouter.domain.tables.pojos.Payout;
import com.rbkmoney.payouter.domain.tables.pojos.Report;
import com.rbkmoney.payouter.exception.StorageException;
import java.util.List;
public interface ReportService {
long generateAndSave(List<Payout> payouts) thr... | 35,262 |
https://github.com/lulu116/yiyibushe/blob/master/person_center.php | Github Open Source | Open Source | MIT | null | yiyibushe | lulu116 | PHP | Code | 831 | 4,740 | <?php
require './common/common.php';
//浏览列表
$collect_msg = $db->getDatas('collect','*');
//订单列表
$orders = $db->getDatas('orders','product_id');
foreach($orders as $order_k => $order_v){
$order_product = $db->getDatas('product','*','product_id="'.$order_v["product_id"].'"');
$ord... | 8,024 |
https://github.com/Vanova/ASSERT/blob/master/baseline/tDCF_v1/bosaris_toolkit.1.06/bosaris_toolkit/classes/@Scores/merge.m | Github Open Source | Open Source | MIT, CC-BY-NC-SA-4.0, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-proprietary-license, LicenseRef-scancode-unknown-license-reference | 2,020 | ASSERT | Vanova | MATLAB | Code | 265 | 1,036 | function scr = merge(param1,param2)
% scr = merge(scr_obj_array)
% scr = merge(scr1,scr2)
% Merges Scores objects. The function can be called in two ways: with
% two Scores objects or with an object array of Scores.
% Inputs:
% Either:
% scr1: A Scores object.
% scr2: Another Scores object.
% Or:
% scr_obj_a... | 20,970 |
https://github.com/Multiscale-Genomics/VRE/blob/master/visualizers/jbrowse/JBrowse-1.12.3/src/perl5/TiledImage/MemoryPrimStorage.pm | Github Open Source | Open Source | LGPL-2.1-or-later, Artistic-2.0, LGPL-2.1-only, Apache-2.0 | 2,019 | VRE | Multiscale-Genomics | Perl | Code | 446 | 1,146 | package MemoryPrimStorage;
use strict;
use GD::Image;
use Carp;
BEGIN {
foreach my $field (qw(width height n_primitives globalPrims perTilePrims tileWidthHint verbose)) {
no strict "refs";
*$field = sub {
my $self = shift;
$self->{$field} = shift if @_;
return $self->{$field};
}
}
}
sub GDD... | 2,255 |
https://github.com/tetrapods/core/blob/master/Tetrapod-Core/src/io/tetrapod/core/utils/Util.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | core | tetrapods | Java | Code | 3,459 | 9,066 | package io.tetrapod.core.utils;
import java.io.*;
import java.lang.reflect.*;
import java.net.*;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.security.*;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.regex.*;
import javax.naming.NamingException;
import javax.namin... | 646 |
https://github.com/iarcher367/dropBox-crawler/blob/master/Business/Rest/RestProxy.cs | Github Open Source | Open Source | Apache-2.0 | 2,014 | dropBox-crawler | iarcher367 | C# | Code | 149 | 525 | namespace Crawler.Business.Rest
{
using log4net;
using RestSharp;
using System;
using System.Collections.Generic;
using System.Linq;
public class RestProxy : IRestProxy
{
private static readonly ILog Log = LogManager.GetLogger(typeof(RestProxy));
private readonly IConfig _... | 49,177 |
https://github.com/llenroc/hippocrates/blob/master/spec/factories/anamneses.rb | Github Open Source | Open Source | MIT | 2,017 | hippocrates | llenroc | Ruby | Code | 23 | 79 | FactoryGirl.define do
factory :anamnesis do
medical_history 'medical history'
surgical_history 'surgical history'
allergies 'allergies'
observations 'observations'
habits 'habits'
family_history 'family history'
patient
end
end
| 44,166 |
https://github.com/SilenceHVK/front-ui/blob/master/canvas/draw-wolf/assets/js/app.js | Github Open Source | Open Source | MIT | 2,021 | front-ui | SilenceHVK | JavaScript | Code | 834 | 3,768 | 'use strict';
(function () {
var Draw = {};
/**
* 初始化 Draw 对象
* @param {String} canvas
* @param {Number} width
* @param {Number} height
*/
Draw.init = function (canvas, width, height) {
this.canvas = document.querySelector(canvas);
if (this.canvas) {
... | 45,593 |
https://github.com/jack0331/peddler/blob/master/test/integration/test_recommendations.rb | Github Open Source | Open Source | MIT | null | peddler | jack0331 | Ruby | Code | 39 | 124 | require 'helper'
require 'mws/recommendations'
class TestRecommendations < IntegrationTest
def test_lists_recommendations
clients.each do |client|
res = client.list_recommendations
content = res.parse
skip unless content
refute_empty content
end
end
def test_gets_service_status
... | 4,355 |
https://github.com/LambrechtLab/libresponse/blob/master/index_printing.h | Github Open Source | Open Source | BSD-3-Clause | 2,019 | libresponse | LambrechtLab | C++ | Code | 114 | 370 | #ifndef LIBRESPONSE_INDEX_PRINTING_H_
#define LIBRESPONSE_INDEX_PRINTING_H_
/*!
* @brief Enable printing to streams for all typedefs.
*
* @file
*/
#include "typedefs.h"
std::ostream& operator<<(std::ostream& os, const libresponse::type::indices& i);
std::ostream& operator<<(std::ostream& os, const libresponse::t... | 48,927 |
https://github.com/Jonhson123/WPClipView/blob/master/WPClipView.podspec | Github Open Source | Open Source | MIT | 2,017 | WPClipView | Jonhson123 | Ruby | Code | 76 | 317 | Pod::Spec.new do |s|
s.name = 'WPClipView'
s.version = '1.1.8'
s.summary = 'WPClipView'
s.description = 'a clip view for the image'
s.homepage = 'https://github.com/Jonhson123/WPClipView'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/scre... | 15,727 |
https://github.com/aegersz/Custom_BBCodes_Manager/blob/master/edit_db.php | Github Open Source | Open Source | BSD-2-Clause | null | Custom_BBCodes_Manager | aegersz | PHP | Code | 281 | 893 | <?php
if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
require_once(dirname(__FILE__) . '/SSI.php');
elseif (!defined('SMF'))
exit('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.');
if ((SMF == 'SSI') && !$user_info['is_admin'])
die('Admin prive... | 7,135 |
https://github.com/danielogen/msc_research/blob/master/selected projects/desktop/argouml-VERSION_0_35_1/src/argouml-app/src/org/argouml/persistence/PgmlUtility.java | Github Open Source | Open Source | MIT | 2,021 | msc_research | danielogen | Java | Code | 855 | 1,859 | /* $Id$
*****************************************************************************
* Copyright (c) 2009 Contributors - see below
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and i... | 28,033 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.