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/ssedano/vlcrc/blob/master/lib/vlcrc/core.rb | Github Open Source | Open Source | MIT | 2,012 | vlcrc | ssedano | Ruby | Code | 927 | 2,174 | require 'socket'
require 'timeout'
module VLCRC
# Number of seconds to wait for a response before deciding that there
# is no message waiting in the socket.
WAIT = 0.2
# Bindings for accessing VLC media player over a TCP socket.
class VLC
# Attempt to connect to the given TCP socket, return new VLC ob... | 21,898 |
https://github.com/qingfeng2021/qingfeng/blob/master/qingfeng-shiro/src/main/java/com/qingfeng/framework/servlet/Customlister.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | qingfeng | qingfeng2021 | Java | Code | 38 | 140 | package com.qingfeng.framework.servlet;
import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;
/**
* Created by anxingtao on 2018-8-19.
*/
//@WebListener
public class Customlister implements ServletRequestListener {
@Override
public void requestDestroyed(ServletRequestEvent s... | 19,796 |
https://github.com/karlorg/tripping-octo-bear/blob/master/BuildPHPTest.hx | Github Open Source | Open Source | CC0-1.0 | 2,014 | tripping-octo-bear | karlorg | Haxe | Code | 39 | 96 | /*
* non-compilation build steps for producing PHP test target
*/
import BuildLib;
class BuildPHPTest {
static private inline var inPath = "server-files";
static private inline var outPath = "php-test";
static public function main() {
BuildLib.CopyRecursive.copyDirContents(inPath, outPath);
}
} | 1,047 |
https://github.com/pascal-xie/vercolib_pcie/blob/master/hardware/src/host_channel/tx_dma_writer_buffer.vhd | Github Open Source | Open Source | BSD-3-Clause | 2,020 | vercolib_pcie | pascal-xie | VHDL | Code | 506 | 1,328 | library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
use work.transceiver_128bit_types.all;
use work.pcie.all;
use work.host_channel_types.all;
use work.utils.all;
entity writer_buffer is
generic(
debug : boolean := false
);
port (
clk : in std_logic;
rst : in std_logic;
i_vld : in std_lo... | 11,149 |
https://github.com/omcho420/gta-open/blob/master/gamemodes/core/admin/admin_cmd_lvl5.inc | Github Open Source | Open Source | Apache-2.0 | 2,020 | gta-open | omcho420 | null | Spoken | 70 | 238 | ACMD:[5]setadmin(playerid, params[])
{
new target, level;
if(sscanf(params, "ui", target, level)) return SendSyntaxMsg(playerid, "/setadmin [player] [level]");
if(target == INVALID_PLAYER_ID) return SendErrorMsg(playerid, "INVALID PLAYER!");
if(level < 0 || level > MAX_ADMIN_LEVELS)
{
return... | 19,774 |
https://github.com/vapeter/instrumentCatalog/blob/master/backend/src/main/java/eu/vargapeter/instrumentcatalog/services/impl/FileUploadServiceImpl.java | Github Open Source | Open Source | MIT | null | instrumentCatalog | vapeter | Java | Code | 61 | 286 | package eu.vargapeter.instrumentcatalog.services.impl;
import eu.vargapeter.instrumentcatalog.services.FileUploadService;
import eu.vargapeter.instrumentcatalog.util.Constans;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
impor... | 27,119 |
https://github.com/manboubird/scalding/blob/master/scalding-core/src/test/scala/com/twitter/scalding/AlgebraicReductionsTest.scala | Github Open Source | Open Source | Apache-2.0 | null | scalding | manboubird | Scala | Code | 241 | 878 | /*
Copyright 2012 Twitter, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distr... | 7,172 |
https://github.com/adidas/m3d-engine/blob/master/src/main/scala/com/adidas/analytics/util/DistCpWrapper.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | m3d-engine | adidas | Scala | Code | 72 | 298 | package com.adidas.analytics.util
import org.apache.hadoop.conf.Configuration
import org.apache.hadoop.fs.Path
import org.apache.hadoop.mapreduce.Job
import org.apache.hadoop.tools.{DistCp, DistCpOptions}
import scala.collection.JavaConverters._
class DistCpWrapper(conf: Configuration, sources: Seq[Path], target: Pa... | 17,080 |
https://github.com/stanton119/data-analysis/blob/master/TimeSeries/neural_prophet/ar_net.py | Github Open Source | Open Source | Apache-2.0 | null | data-analysis | stanton119 | Python | Code | 235 | 905 | # %% [markdown]
# # Neural prophet - ARNet
# Build a model to predict multiple future time steps.
# This is broken at the moment. Increasing `n_forecasts` > 1 causes the library to crash.
#
# Import some relevant libraries:
# %%
import numpy as np
import pandas as pd
from time import process_time, time
import matplotl... | 11,266 |
https://github.com/justinlubin/dotfiles/blob/master/config.fish | Github Open Source | Open Source | MIT | null | dotfiles | justinlubin | Fish | Code | 469 | 1,353 | # Path
set -gx PATH \
~/.local/bin \
~/.cabal/bin \
~/bin \
~/.cargo/bin \
~/Library/Python/2.7/bin \
~/Library/Python/3.9/bin \
/usr/local/smlnj/bin \
~/.go/bin \
$PATH
# Global variables
set -gx EDITOR 'vim'
set -gx GOPATH ~/.go
# Shell configuration
set fish_greeting
if status --is-interactiv... | 44,211 |
https://github.com/jonvestal/of-switch-tester/blob/master/ryu/Dockerfile | Github Open Source | Open Source | MIT | 2,021 | of-switch-tester | jonvestal | Dockerfile | Code | 75 | 209 | FROM alpine:latest
ENV RYU_PACKAGES "curl python3 py3-setuptools py3-pip py3-greenlet py3-lxml py3-msgpack git"
RUN apk --update add apk-tools \
&& apk add ${RYU_PACKAGES} \
&& rm -rf /var/lib/apt/lists/* \
&& git clone https://github.com/timofei-durakov/ryu \
&& pip3 install --upgrade pip \
&& cd ryu \
&& git ... | 27,292 |
https://github.com/cipher10111/fabbl-backend/blob/master/src/server.js | Github Open Source | Open Source | MIT | 2,022 | fabbl-backend | cipher10111 | JavaScript | Code | 91 | 255 | import express from "express";
import dotenv from "dotenv";
import http from "http";
import { Server } from "socket.io";
// project imports
import configureExpress from "./config/appConfig.js";
import connectSocket from "./config/socketConfig.js";
import connectDB from "./config/db.js";
dotenv.config();
const app = e... | 26,551 |
https://github.com/amoscardino/renamer-core/blob/master/Commands/ShowCommand.cs | Github Open Source | Open Source | MIT | 2,022 | renamer-core | amoscardino | C# | Code | 158 | 424 | using System.Threading.Tasks;
using McMaster.Extensions.CommandLineUtils;
using RenamerCore.Services;
namespace RenamerCore.Commands
{
[Command("s", FullName = "Show Renamer", Description = "Renames show episode files based on The Movie DB searches.")]
[HelpOption]
public class ShowCommand
{
[O... | 5,832 |
https://github.com/TanxiangCode/WebApiClient/blob/master/WebApiClient/Internal/HttpHandlers/HttpHandlerProvider.cs | Github Open Source | Open Source | MIT | 2,020 | WebApiClient | TanxiangCode | C# | Code | 237 | 936 | using System;
using System.Linq;
using System.Net.Http;
using System.Reflection;
namespace WebApiClient
{
/// <summary>
/// HttpHandler提供者
/// </summary>
static class HttpHandlerProvider
{
/// <summary>
/// HttpMessageInvoker的HttpMessageHandler字段获取委托
/// </summary>
... | 14,047 |
https://github.com/sboulema/BabyTracker/blob/master/BabyTracker/Models/TemperatureModel.cs | Github Open Source | Open Source | MIT | 2,022 | BabyTracker | sboulema | C# | Code | 18 | 39 | namespace BabyTracker.Models
{
public class TemperatureModel : EntryModel
{
public double Temperature { get; set; }
}
}
| 21,910 |
https://github.com/mzapotoczny/dependency-parser/blob/master/libs/blocks/blocks/filter.py | Github Open Source | Open Source | MIT, BSD-3-Clause | 2,017 | dependency-parser | mzapotoczny | Python | Code | 674 | 1,649 | from inspect import isclass
import re
from blocks.bricks.base import ApplicationCall, BoundApplication, Brick
from blocks.roles import has_roles
def get_annotation(var, cls):
"""A helper function to retrieve an annotation of a particular type.
Notes
-----
This function returns the first annotation o... | 17,624 |
https://github.com/Jeswang/Distribution/blob/master/t/tensorflow__tfjs-converter/src/main/scala/typings/tensorflowTfjsConverter/compiledApiMod/ITensorShape.scala | Github Open Source | Open Source | MIT | 2,020 | Distribution | Jeswang | Scala | Code | 69 | 282 | package typings.tensorflowTfjsConverter.compiledApiMod
import typings.tensorflowTfjsConverter.compiledApiMod.TensorShape.IDim
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation._
trait ITensorShape extends js.Object {
/** TensorShape dim */
var dim: js.UndefOr[js.Array[IDim] | ... | 27,663 |
https://github.com/mysticaltech/jstat/blob/master/test/distribution/noncentralt-test.js | Github Open Source | Open Source | MIT | 2,022 | jstat | mysticaltech | JavaScript | Code | 126 | 687 | var vows = require('vows');
var assert = require('assert');
var suite = vows.describe('jStat.distribution');
require('../env.js');
suite.addBatch({
'non-central-t cdf': {
'topic': function() {
return jStat;
},
//Checked against R pt(x,df,ncp)
'check cdf calculation': function(jStat) {
va... | 15,296 |
https://github.com/bsf2dev/bsf/blob/master/Source/Scripting/bsfScript/Generated/BsScriptPARTICLE_ORBIT_DESC.generated.cpp | Github Open Source | Open Source | MIT | 2,022 | bsf | bsf2dev | C++ | Code | 193 | 1,064 | //********************************* bs::framework - Copyright 2018-2019 Marko Pintera ************************************//
//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
#include "BsScriptPARTICLE_ORBIT_DESC.generated.h"
#include "BsMonoMet... | 32,956 |
https://github.com/hqpko/gomod/blob/master/go.mod | Github Open Source | Open Source | MIT | 2,019 | gomod | hqpko | Go Module | Code | 11 | 62 | module github.com/hqpko/gomod
go 1.12
require (
github.com/hqpko/gosh v0.0.2
github.com/urfave/cli v1.20.0
)
| 27,696 |
https://github.com/Bumares/Point-of-view/blob/master/.import/elevator45.png-f4927afaff3bfa0a51ddebb2f90ada9f.md5 | Github Open Source | Open Source | CC0-1.0 | 2,021 | Point-of-view | Bumares | null | Spoken | 2 | 53 | source_md5="0cd5aaed2464daf526a015d18aa7a031"
dest_md5="b4505024d8168aa03e3a396c8d811264"
| 46,167 |
https://github.com/ancrist/apitest/blob/master/src/solutions/untexturedobjects/gl/dynamicbuffer.cpp | Github Open Source | Open Source | Unlicense | 2,017 | apitest | ancrist | C++ | Code | 281 | 1,290 | #include "pch.h"
#include "dynamicbuffer.h"
#include "framework/gfx_gl.h"
// --------------------------------------------------------------------------------------------------------------------
// --------------------------------------------------------------------------------------------------------------------
// -... | 9,492 |
https://github.com/oyorooms/hue/blob/master/desktop/core/ext-py/python-ldap-2.3.13/Demo/Lib/ldif/ldifcopy.py | Github Open Source | Open Source | Apache-2.0, Python-2.0 | 2,019 | hue | oyorooms | Python | Code | 85 | 229 | """
ldifcopy - reads LDIF from stdin, retrieve values by URL and
write resulting LDIF to stdout
Written by Michael Stroeder <michael@stroeder.com>
$Id: ldifcopy.py,v 1.2 2001/12/12 22:04:49 stroeder Exp $
This example translates the naming context of data read from
input, sanitizes some attributes, maps/r... | 46,042 |
https://github.com/saudet/deeplearning4j/blob/master/deeplearning4j/deeplearning4j-scaleout/spark/dl4j-spark/src/main/java/org/deeplearning4j/spark/util/serde/StorageLevelDeserializer.java | Github Open Source | Open Source | MIT, BSD-3-Clause, Apache-2.0, LicenseRef-scancode-generic-cla | 2,019 | deeplearning4j | saudet | Java | Code | 182 | 492 | /*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... | 22,869 |
https://github.com/yzraeu/SOLID-samples/blob/master/SOLID-samples/5 - D/Solution/Interfaces/IEmailHelper.cs | Github Open Source | Open Source | MIT | 2,018 | SOLID-samples | yzraeu | C# | Code | 23 | 67 | namespace SOLID.samples.DIP.Solution
{
public interface IEmailHelper
{
bool IsValid(string email);
void Send(string to, string subject, string body, string from = "no-reply@system.net");
}
}
| 41,500 |
https://github.com/rbqren000/realm-cocoa/blob/master/Realm/Tests/PrimitiveArrayPropertyTests.tpl.m | Github Open Source | Open Source | Apache-2.0 | 2,023 | realm-cocoa | rbqren000 | Objective-C | Code | 5,598 | 24,158 | ////////////////////////////////////////////////////////////////////////////
//
// Copyright 2017 Realm Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/li... | 42,669 |
https://github.com/wenfeifei/HttpReports/blob/master/test/HttpReports.Test/PostgreSQLStorageTest.cs | Github Open Source | Open Source | MIT | 2,021 | HttpReports | wenfeifei | C# | Code | 58 | 276 | using System.Threading.Tasks;
using HttpReports.Storage.PostgreSQL;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace HttpReports.Test
{
[TestClass]
public class PostgreSQLStorageTest : StorageTest<IHttpReportsStorage>
{
private Postgre... | 14,742 |
https://github.com/meg-gutshall/borrow-buddy/blob/master/spec/rails_helper.rb | Github Open Source | Open Source | MIT | 2,023 | borrow-buddy | meg-gutshall | Ruby | Code | 213 | 531 | # This file is copied to spec/ when you run 'rails generate rspec:install'
require 'spec_helper'
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
# Prevent database truncation if the environment is production
abort("The Rails environment is running in production mode!") if Rail... | 25,005 |
https://github.com/particl/particl-core/blob/master/test/functional/feature_part_usbdevice.py | Github Open Source | Open Source | MIT | 2,023 | particl-core | particl | Python | Code | 688 | 3,560 | #!/usr/bin/env python3
# Copyright (c) 2018-2020 The Particl Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
import os
import json
import configparser
from test_framework.test_particl import (
ParticlTestFrame... | 21,663 |
https://github.com/roor0/dispatch/blob/master/src/dispatch/static/dispatch/src/incident_priority/api.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | dispatch | roor0 | JavaScript | Code | 46 | 177 | import API from "@/api"
const resource = "/incident_priorities"
export default {
getAll(options) {
return API.get(`${resource}`, { params: { ...options } })
},
get(incidentPriorityId) {
return API.get(`${resource}/${incidentPriorityId}`)
},
create(payload) {
return API.post(`${resource}`, paylo... | 24,240 |
https://github.com/niceguy802/warahouse/blob/master/src/wms/service/impl/BookServiceImpl.java | Github Open Source | Open Source | MIT | null | warahouse | niceguy802 | Java | Code | 198 | 1,010 | package com.neu.wms.service.impl;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.neu.wms.dao.BookMapper;
import com.neu.wms.domain.Book;
import com.neu.wms.domain... | 42,324 |
https://github.com/studio-air/Doughnut-Server/blob/master/node_modules/parseurl/HISTORY.md.meta | Github Open Source | Open Source | MIT | 2,021 | Doughnut-Server | studio-air | Unity3D Asset | Code | 4 | 28 | fileFormatVersion: 2
guid: fbedf0f011b8d6d4ea426db4493bd950 | 7,615 |
https://github.com/shadowbq/matrix.dot.files/blob/master/home/.matrix/extensions/ruby/Gemfile | Github Open Source | Open Source | GPL-3.0-only, GPL-2.0-only, MIT | 2,023 | matrix.dot.files | shadowbq | Ruby | Code | 34 | 122 | source 'https://rubygems.org'
gem "pry"
gem "pru"
gem "homesick"
gem "wirble"
gem "gist"
gem "rmate"
local_gemfile = "~/.Gemfile.local"
if File.exists?(local_gemfile)
puts "Loading Gemfile.local ..." if $DEBUG # `ruby -d` or `bundle -v`
instance_eval File.read(local_gemfile)
end
| 21,845 |
https://github.com/mlmontes07/bazaar/blob/master/module/Document/src/Entity/MediaRow.php | Github Open Source | Open Source | BSD-3-Clause | null | bazaar | mlmontes07 | PHP | Code | 596 | 2,267 | <?php
namespace Document\Entity;
use Laminas\Db\RowGateway\AbstractRowGateway;
use Laminas\Db\Adapter\Adapter;
use Laminas\Db\Sql\Sql;
class MediaRow extends AbstractRowGateway
{
protected $id;
protected $filename;
protected $mime_type;
protected $size;
protected $width;
protected $height;
... | 14,046 |
https://github.com/openn2o/jitredis/blob/master/tests/subtask_tool/test/.svn/text-base/suma_sub_task.lua.svn-base | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,021 | jitredis | openn2o | Lua | Code | 1,664 | 6,067 |
--- v 1.1 RDA 实时计算支持
--- +增加告警和行为分析记录
--- +增加上报告警数据
--- v 1.2 CCM1 通用计算支持
--- V 1.2 增加unix tcp监控
local _M = {}
local cjson = require("cjson")
local http = require("http");
local apollo= require("suma_apollo_server");
local cache_ngx = ngx.shared.ngx_share_dict;
local worker_id = ngx.worker.id();
local _m... | 26,640 |
https://github.com/freirecristiane/tcc_siaw/blob/master/scrumtaskboard/src/br/com/scrumtaskboard/model/bean/Priority.java | Github Open Source | Open Source | MIT | null | tcc_siaw | freirecristiane | Java | Code | 47 | 155 | package br.com.scrumtaskboard.model.bean;
public enum Priority {
HIGHEST("Highest", 1),
HIGH("High", 2),
MEDIUM("Medium", 3),
LOW("Low", 4),
LOWEST("Lowest", 5);
private String label;
private int value;
private Priority(String label, int value){
this.label = label;
this.value = value;
}
public St... | 3,803 |
https://github.com/dsc/E3_analysis/blob/master/src/metrics/threshold.py | Github Open Source | Open Source | BSD-3-Clause | 2,013 | E3_analysis | dsc | Python | Code | 665 | 2,014 |
__author__ = "Ryan Faulkner"
__date__ = "December 6th, 2012"
__license__ = "GPL (version 2 or later)"
from datetime import timedelta
import collections
import os
import src.utils.multiprocessing_wrapper as mpw
import user_metric as um
from src.etl.aggregator import decorator_builder, boolean_rate
from query_calls imp... | 18,929 |
https://github.com/jiangdongguo/AndroidUSBCamera/blob/master/libuvc/src/main/jni/localdefines.h | Github Open Source | Open Source | Apache-2.0 | 2,023 | AndroidUSBCamera | jiangdongguo | C | Code | 320 | 798 | /*
* UVCCamera
* library and sample to access to UVC web camera on non-rooted Android device
*
* Copyright (c) 2014-2017 saki t_saki@serenegiant.com
*
* File name: localdefines.h
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licens... | 23,188 |
https://github.com/softwaremill/boot-scala-microservice/blob/master/bootzooka-service/src/main/scala/com/softwaremill/bootzooka/service/PasswordRecoveryService.scala | Github Open Source | Open Source | Apache-2.0 | 2,019 | boot-scala-microservice | softwaremill | Scala | Code | 226 | 841 | package com.softwaremill.bootzooka.service
import config.BootzookaConfig
import com.softwaremill.bootzooka.dao.{PasswordResetCodeDAO, UserDAO}
import templates.EmailTemplatingEngine
import com.softwaremill.bootzooka.domain.User
import com.softwaremill.bootzooka.domain.PasswordResetCode
import org.joda.time.DateTime
im... | 14,012 |
https://github.com/NaceurJed/Tuto-Laravel/blob/master/app/Models/Post.php | Github Open Source | Open Source | MIT | null | Tuto-Laravel | NaceurJed | PHP | Code | 149 | 314 | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Models\Commentaire;//ATTENTION: rajouter le use\... pour atteindre la classe Commentaire
use App\Models\Image; //pour atteindre la class image
use App\Models\Tag; //pour atteindre la clas... | 4,585 |
https://github.com/amir91khan/core/blob/master/CoreJava1/src/innerclass/LTest2.java | Github Open Source | Open Source | Apache-2.0 | null | core | amir91khan | Java | Code | 42 | 129 | package innerclass;
class LocalTest
{
private int data=30;
void display()
{
class Local
{
void msg()
{
System.out.println(data);
}
}
Local l=new Local();
l.msg();
}
}
public class LTest2 {
public static void main(String[] args) {
LocalTest t=new LocalTest();
t... | 32,338 |
https://github.com/ryu-sw/alembic/blob/master/prman/Procedural/ProcMain.cpp | Github Open Source | Open Source | MIT | 2,021 | alembic | ryu-sw | C++ | Code | 1,118 | 2,811 | //-*****************************************************************************
//
// Copyright (c) 2009-2013,
// Sony Pictures Imageworks Inc. and
// Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with ... | 46,956 |
https://github.com/shallowdream1997/more_mch_shop/blob/master/modules/api/models/mch/TongjiMonthDataForm.php | Github Open Source | Open Source | BSD-3-Clause | 2,021 | more_mch_shop | shallowdream1997 | PHP | Code | 310 | 1,290 | <?php
/**
* @link http://www.zjhejiang.com/
* @copyright Copyright (c) 2018 浙江禾匠信息科技有限公司
* @author Lu Wei
*
* Created by IntelliJ IDEA.
* User: luwei
* Date: 2018/5/2
* Time: 14:03
*/
namespace app\modules\api\models\mch;
use app\models\Order;
use app\modules\api\models\ApiModel;
use yii\data\Pagination;
c... | 9,926 |
https://github.com/Phara0h/WaspsWithBazookas/blob/master/node_modules/fastify/test/http2/http2.test.js | Github Open Source | Open Source | MIT, BSD-3-Clause, BSD-2-Clause | 2,023 | WaspsWithBazookas | Phara0h | JavaScript | Code | 31 | 129 | 'use strict'
const semver = require('semver')
const tap = require('tap')
if (semver.gt(process.versions.node, '8.8.0')) {
require('./plain')
require('./secure')
require('./secure-with-fallback')
require('./unknown-http-method')
require('./missing-http2-module')
require('./closing')
} else {
tap.pass('Sk... | 2,957 |
https://github.com/rdeiser/krima/blob/master/grimas/DeletePortfolio/DeletePortfolio.php | Github Open Source | Open Source | CC-BY-4.0 | 2,023 | krima | rdeiser | PHP | Code | 23 | 127 | <?php
require_once("../grima-lib.php");
class DeletePortfolio extends GrimaTask {
function do_task() {
$port = new ElectronicPortfolio();
$port->loadFromAlmaX($this['portfolio_id']);
$port->deleteFromAlma();
$this->addMessage('success',"Deleted portfolio {$port['portfolio_id']}: {$port['title']}");
}
}
De... | 36,921 |
https://github.com/Earthman100/spyder/blob/master/external-deps/spyder-kernels/spyder_kernels/utils/tests/test_lazymodules.py | Github Open Source | Open Source | MIT | 2,022 | spyder | Earthman100 | Python | Code | 133 | 333 | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright (c) 2009- Spyder Kernels Contributors
#
# Licensed under the terms of the MIT License
# (see spyder_kernels/__init__.py for details)
# ---------------------------------------------------------------------... | 36,579 |
https://github.com/lfaz/kukkuu-ui/blob/master/src/domain/event/partial/OccurrenceInfo.tsx | Github Open Source | Open Source | MIT | 2,020 | kukkuu-ui | lfaz | TSX | Code | 165 | 689 | import React, { FunctionComponent } from 'react';
import { useTranslation } from 'react-i18next';
import joinClassNames from 'classnames';
import styles from './occurrenceInfo.module.scss';
import clockIcon from '../../../assets/icons/svg/clock.svg';
import calendarIcon from '../../../assets/icons/svg/calendar.svg';
i... | 22,402 |
https://github.com/anoff/techradar/blob/master/cypress/integration/radar.spec.js | Github Open Source | Open Source | MIT | 2,019 | techradar | anoff | JavaScript | Code | 197 | 923 | /// <reference types="Cypress" />
require('../support/cy-all')
const devices = ['macbook-15', 'macbook-13', 'iphone-x']
context('Radar', () => {
before(() => {
cy.clean()
cy.gohome()
cy.login('rick', { setAlias: true }) // bootstrap the rick radar into the wiped database
cy.visit('/logout')
cy.ge... | 43,612 |
https://github.com/alisenai/Alloy/blob/master/Source/Archetype.h | Github Open Source | Open Source | MIT | 2,022 | Alloy | alisenai | C | Code | 726 | 2,429 | #pragma once
#include <utility>
#include "ComponentTypeTraits.h"
#include "Containers/BitSet.h"
#include "Pool.h"
namespace X
{
class Archetype
{
public:
explicit Archetype() : pool(),
componentMask(Internal::ComponentTypeTraits::CurrentCount()),
forwardArch... | 13,379 |
https://github.com/DanielYangsw/spring-cloud-sofastack-samples/blob/master/sofastack-cloud-sys-accounting/src/main/java/io/sofastack/cloud/accounting/dao/BillMapper.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | spring-cloud-sofastack-samples | DanielYangsw | Java | Code | 45 | 228 | package io.sofastack.cloud.accounting.dao;
import io.sofastack.cloud.common.model.BillDetails;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
/**
* @author: guolei.sgl (guolei.sgl@antfin.com) 2019/3/12 6:20 PM
* @since:
**/
@Mapper
public interface BillMapper {
/**
... | 27,825 |
https://github.com/TIBHannover/orkg-frontend/blob/master/src/components/ArticleBuilder/MarkdownEditor/styled.js | Github Open Source | Open Source | MIT | 2,023 | orkg-frontend | TIBHannover | JavaScript | Code | 47 | 142 | import styled from 'styled-components';
export const MarkdownContainer = styled.p`
overflow: auto;
blockquote {
color: rgba(0, 0, 0, 0.5);
padding-left: 1.5em;
border-left: 5px solid rgba(0, 0, 0, 0.1);
}
table td,
table th {
border: 1px solid #c4c4c4;
paddin... | 25,187 |
https://github.com/cdnjs/cdnjs/blob/master/ajax/libs/excalibur/0.25.0-alpha.7052/Particles.js | Github Open Source | Open Source | MIT | 2,023 | cdnjs | cdnjs | JavaScript | Code | 1,652 | 4,542 | var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProp... | 29,962 |
https://github.com/Superalgos/Superalgos/blob/master/Projects/Algorithmic-Trading/TS/Function-Libraries/TradingFunctions.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | Superalgos | Superalgos | JavaScript | Code | 438 | 1,855 | exports.newAlgorithmicTradingFunctionLibrariesTradingFunctions = function () {
/*
This module contains the functions that are used at Simulations.
*/
const MODULE_NAME = "Trading Functions"
let thisObject = {
earlyCheckIfWeNeedToStopTheSimulation: earlyCheckIfWeNeedToStopTheSimulation
}... | 42,828 |
https://github.com/intensifier/NeoAxisEngine/blob/master/Sources/Engine/NeoAxis.Core/Libraries/BulletSharp/SoftBody/AlignedNoteArray.cs | Github Open Source | Open Source | IJG | null | NeoAxisEngine | intensifier | C# | Code | 274 | 1,049 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using static BulletSharp.UnsafeNativeMethods;
namespace BulletSharp.SoftBody
{
public class AlignedNoteArrayDebugView
{
private AlignedNoteArray _array;
public AlignedNoteArrayDebugView(AlignedNoteArray array)
{
_array = array;
}
... | 20,186 |
https://github.com/rostacik/jqModalDialogParam/blob/master/jqModalDialogParam/Scripts/nestedModal/modalDialogTwo.js | Github Open Source | Open Source | Apache-2.0 | null | jqModalDialogParam | rostacik | JavaScript | Code | 5 | 39 | $(document).ready(function () {
$("#content").text(window.parent.$(window.frameElement.parentElement).data("modalDataProperty"));
}); | 35,021 |
https://github.com/cobed95/electron-react-mobx-boilerplate/blob/master/app/store/counterStore.js | Github Open Source | Open Source | MIT | null | electron-react-mobx-boilerplate | cobed95 | JavaScript | Code | 71 | 189 | import { observable, action } from 'mobx';
class CounterStore {
@observable count;
constructor() {
this.count = 0;
}
@action.bound
increment() {
this.count += 1
}
@action.bound
decrement() {
this.count -= 1
}
@action.bound
incrementIfOdd() {
if (this.count % 2 === 0)
ret... | 15,781 |
https://github.com/sathninduk/woffice/blob/master/cbc_wp/wp-content/plugins/wise-chat/themes/default/channel-users-widget.tpl | Github Open Source | Open Source | MIT | 2,022 | woffice | sathninduk | null | Spoken | 63 | 184 | <link rel='stylesheet' id='wise_chat_theme_{{ chatId }}-css' href='{{ themeStyles }}' type='text/css' media='all' />
<div id='{{ chatId }}' class='wcContainer wcChannelUsersWidget {% if title %} wcWindowTitleIncluded {% endif title %}'>
{% if title %}
<div class='wcWindowTitle'>{{ title }}</div>
{% end... | 15,269 |
https://github.com/jrpool/rallytree/blob/master/planTree.js | Github Open Source | Open Source | MIT | 2,022 | rallytree | jrpool | JavaScript | Code | 747 | 1,868 | // Serves the planification report page.
const servePlanReport = op => {
const {err, fs, globals, reportPrep, reportScriptPrep, servePage} = op;
fs.readFile('planReport.html', 'utf8')
.then(
htmlContent => {
const newHTMLContent = htmlContent.replace(
'__planHow__', globals.planHow === 'use' ? '... | 26,859 |
https://github.com/fabiitch/NztGdx/blob/master/src/main/java/com/nzt/gdx/debug/perf/PerformanceFrame.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | NztGdx | fabiitch | Java | Code | 280 | 882 | package com.nzt.gdx.debug.perf;
import com.badlogic.ashley.core.EntitySystem;
import com.badlogic.gdx.utils.Array;
import com.nzt.gdx.screen.AbstractScreen;
/**
* Simple static class to Use PerformanceContainer
* //TODO Utilisé un jour com.badlogic.gdx.utils.PerformanceCounter
*/
public class PerformanceFrame {
... | 16,970 |
https://github.com/cailidz/android-auto-companion-android/blob/master/calendarsync/src/com/google/android/connecteddevice/calendarsync/android/CalendarSyncAccess.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | android-auto-companion-android | cailidz | Java | Code | 672 | 2,076 | package com.google.android.connecteddevice.calendarsync.android;
import static com.google.common.base.Preconditions.checkState;
import android.content.ContentResolver;
import android.os.Handler;
import android.os.HandlerThread;
import androidx.annotation.Nullable;
import androidx.annotation.VisibleForTesting;
import ... | 32,819 |
https://github.com/gregfelice/ansible-playbooks/blob/master/host_vars/mcmurdo.constantlabs.com | Github Open Source | Open Source | MIT | 2,016 | ansible-playbooks | gregfelice | DIGITAL Command Language | Code | 19 | 56 |
allowed_extra_ports: [ 8080, 2812, 7990, 9092, 8090, 5701, 8085, 7999 ]
disallowed_extra_ports: [ 2182, 80, 443, 111, 2049 ]
| 37,860 |
https://github.com/kcsry/lippukala/blob/master/lippukala/admin.py | Github Open Source | Open Source | MIT | 2,019 | lippukala | kcsry | Python | Code | 111 | 442 | from django.contrib.admin import site
from django.contrib.admin.options import ModelAdmin, TabularInline
from lippukala.models import Code, Order
class CodeInline(TabularInline):
model = Code
class OrderAdmin(ModelAdmin):
inlines = [CodeInline]
search_fields = ["reference_number", "address_text", "comm... | 7,298 |
https://github.com/apache/aries-jax-rs-whiteboard/blob/master/integrations/rest-management/rest-management/src/main/java/org/apache/aries/jax/rs/rest/management/internal/RestManagementActivator.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | aries-jax-rs-whiteboard | apache | Java | Code | 488 | 1,924 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 52,127 |
https://github.com/think-cell/range/blob/master/tc/variant.h | Github Open Source | Open Source | BSL-1.0 | 2,022 | range | think-cell | C | Code | 667 | 3,326 |
// think-cell public library
//
// Copyright (C) 2016-2021 think-cell Software GmbH
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
#pragma once
#include "assert_defs.h"
#include "type_traits.h"
#include "functo... | 41,449 |
https://github.com/JahodaPaul/FIT_CTU/blob/master/SI1 - Rogue Game/include/View/GameOverScene.hpp | Github Open Source | Open Source | MIT | 2,022 | FIT_CTU | JahodaPaul | C++ | Code | 151 | 356 | #pragma once
#include "View/Scene.hpp"
#include "View/View.hpp"
#include <iostream>
namespace RG {
namespace View {
//! \class GameOverScene
/*!
* \brief ( descendant of Scene )
* This scene where you end when you die
*/
class GameOverScene : public Scene {
... | 19,481 |
https://github.com/teamrudra/teamrudra.github.io/blob/master/node_modules/react-icons/ti/social-youtube.js | Github Open Source | Open Source | MIT, OFL-1.1, CC-BY-SA-3.0, CC-BY-4.0 | 2,022 | teamrudra.github.io | teamrudra | JavaScript | Code | 61 | 275 |
import React from 'react'
import Icon from 'react-icon-base'
const TiSocialYoutube = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m38 14.3c-0.3-2.5-0.7-4.3-1.7-5-1-0.8-9.6-1-16.3-1s-15.3 0.2-16.3 1c-1 0.7-1.4 2.5-1.7 5s-0.3 4-0.3 5.7 0 3.2 0.3 5.7 0.7 4.3 1.7 5c1 0.8 9.6 1 16.3 1 6.7 0 15.... | 50,740 |
https://github.com/SnowSwordScholar/SodionAuth/blob/master/SodionAuth-Core/src/main/java/red/mohist/sodionauth/core/services/ProxyLoginService.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | SodionAuth | SnowSwordScholar | Java | Code | 363 | 1,579 | /*
* Copyright 2021 Mohist-Community
*
* 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 agree... | 30,876 |
https://github.com/cdnjs/cdnjs/blob/master/ajax/libs/zrender/1.1.1/zrender-original.js | Github Open Source | Open Source | MIT | 2,023 | cdnjs | cdnjs | JavaScript | Code | 20,000 | 54,490 | // Copyright 2006 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ... | 8,370 |
https://github.com/helium/console/blob/master/assets/js/components/channels/community/adafruit/AdafruitUpdateForm.jsx | Github Open Source | Open Source | Apache-2.0 | 2,023 | console | helium | JavaScript | Code | 240 | 784 | import React, { Component } from "react";
import { Typography, Input, Button, Row, Col, Popover } from 'antd';
const { Text } = Typography
import QuestionCircleFilled from '@ant-design/icons/QuestionCircleFilled';
class AdafruitUpdateForm extends Component {
state = {
username: "",
adafruitKey: "",
group... | 25,740 |
https://github.com/jskyler/python-challenge/blob/master/PyPoll/main.py | Github Open Source | Open Source | RSA-MD | null | python-challenge | jskyler | Python | Code | 165 | 900 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Oct 20 19:31:55 2020
@author: justine.skyler
"""
import os
import csv
csvpath=("/Users/justine.skyler/Documents/GitHub/python-challenge/PyPoll/Resources/election_data.csv")
with open(csvpath) as csvfile:
csvreader = csv.reader(csvfile, delimiter... | 23,865 |
https://github.com/estimateone/panther/blob/master/phpstan.neon | Github Open Source | Open Source | MIT | 2,018 | panther | estimateone | null | Spoken | 20 | 81 | parameters:
ignoreErrors:
# Require a redesign of the underlying Symfony components
- '#Panther\\[a-zA-Z\\]+::__construct\(\) does not call parent constructor from Symfony\\Component\\(BrowserKit|DomCrawler)\\[a-zA-Z]+\.#'
| 17,458 |
https://github.com/kknopper/kevinknopp.com/blob/master/src/components/Grid/grid.js | Github Open Source | Open Source | 0BSD | null | kevinknopp.com | kknopper | JavaScript | Code | 36 | 102 | import React from "react"
import PropTypes from "prop-types"
import styles from "./Grid.module.scss"
const Grid = props => {
return (
<div className={styles[props.grid]} >
{props.children}
</div>
)
}
Grid.propTypes = {
children: PropTypes.node.isRequired,
}
export default Grid
| 39,759 |
https://github.com/phr00t/FocusEngine/blob/master/sources/core/Xenko.Core.Tests/TestSerialization.StructLayout.cs | Github Open Source | Open Source | MIT | 2,023 | FocusEngine | phr00t | C# | Code | 179 | 556 | // Copyright (c) Xenko contributors (https://xenko.com) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.
using System;
using System.Runtime.InteropServices;
using Xunit;
using Xenko.Core.Serialization;
nam... | 4,414 |
https://github.com/DavidRela/riceWindows/blob/master/tweaks/optimize-mouse.ps1 | Github Open Source | Open Source | FSFAP | 2,022 | riceWindows | DavidRela | PowerShell | Code | 222 | 831 | # Description
# This script will apply MarkC's mouse acceleration fix (for 100% DPI) and
# disable some accessibility features regarding keyboard input. Additional
# some UI elements will be changed.
# Ask for elevated permissions if required
If (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIde... | 35,525 |
https://github.com/igor06brw/Virtual-Academic---Project/blob/master/application/libraries/KendoWrapper/Kendo/KendoWrappers.php | Github Open Source | Open Source | MIT | 2,016 | Virtual-Academic---Project | igor06brw | PHP | Code | 33 | 105 | <?php
Class KendoWrappers
{
}
spl_autoload_register(function ($class) {
if (strpos($class, "Kendo\\") === 0) {
$path = str_replace('Kendo', '', $class);
$path = __DIR__ . str_replace('\\', '/', $path) . '.php';
require_once $path;
}
});
?>
| 34,448 |
https://github.com/JCMais/apm-nodejs-http-client/blob/master/test/config.js | Github Open Source | Open Source | MIT | null | apm-nodejs-http-client | JCMais | JavaScript | Code | 1,240 | 3,952 | 'use strict'
const path = require('path')
const fs = require('fs')
const getContainerInfo = require('container-info')
const os = require('os')
const ndjson = require('ndjson')
const test = require('tape')
const semver = require('semver')
const utils = require('./lib/utils')
const pkg = require('../package')
const Clie... | 32,341 |
https://github.com/X4/komento/blob/master/src/views/comment-list/replies.tsx | Github Open Source | Open Source | MIT | 2,021 | komento | X4 | TSX | Code | 155 | 525 | import { FC } from "react";
import { Flex, Box, Divider, Link, Icon } from "@chakra-ui/react";
import { HiPlusCircle as ExpandIcon } from "react-icons/hi";
import { darken } from "polished";
import { CommentItemProvider } from "hooks/use-comment-item";
import { useEmbedTheme } from "hooks/use-embed-theme";
import { us... | 41,668 |
https://github.com/bratsche/llvm/blob/master/test/CodeGen/X86/combine-lds.ll | Github Open Source | Open Source | NCSA | 2,009 | llvm | bratsche | LLVM | Code | 32 | 79 | ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep fldl | count 1
define double @doload64(i64 %x) nounwind {
%tmp717 = bitcast i64 %x to double
ret double %tmp717
}
| 40,400 |
https://github.com/yang2012/DJArgus/blob/master/DJArgus/Libs/DJISDK.framework/Headers/DJIGroundStationWaypoint.h | Github Open Source | Open Source | Apache-2.0 | null | DJArgus | yang2012 | C | Code | 110 | 304 | //
// DJIGroundStationWaypoint.h
// DJISDK
//
// Copyright (c) 2015 DJI. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#import <DJISDK/DJIFoundation.h>
@interface DJIGroundStationWaypoint : NSObject
/**
* Coordinate of waypoint (degree)
*/
@property(nonatomic)... | 39,834 |
https://github.com/JPLMLIA/libeos/blob/master/eos/eos.h | Github Open Source | Open Source | Apache-2.0 | null | libeos | JPLMLIA | C | Code | 151 | 490 | #ifndef JPL_EOS
#define JPL_EOS
#include "eos_types_pub.h"
/**
* Calculates library-level memory requirement
*
* This function computes how much memory the library will need if it is
* initialized with the given `params`. The initialization parameters put
* limits on the size of various inputs with which library... | 31,351 |
https://github.com/sillsdev/web-languageforge/blob/master/src/Site/OAuth/SelectAccountAuthorizationParametersTrait.php | Github Open Source | Open Source | MIT | 2,023 | web-languageforge | sillsdev | PHP | Code | 59 | 154 | <?php
namespace Site\OAuth;
/**
* Use this trait in any OAuthProviders you create, so that you don't have to duplicate this code repeatedly
*/
trait SelectAccountAuthorizationParametersTrait
{
protected function getAuthorizationParameters(array $options): array
{
// Default provider adds "approval_p... | 40,544 |
https://github.com/fbeltrao/azure-batch-with-durable-functions/blob/master/src/Custom.Azure.WebJobs.Extensions.AzureBatch/AzureBatchJobAsyncCollector.cs | Github Open Source | Open Source | MIT | 2,022 | azure-batch-with-durable-functions | fbeltrao | C# | Code | 533 | 2,097 | using Microsoft.Azure.Batch;
using Microsoft.Azure.Batch.Auth;
using Microsoft.Azure.Batch.Common;
using Microsoft.Azure.WebJobs;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace Custom.Azure.WebJobs.... | 20,362 |
https://github.com/Chase22/DeepLTranslator/blob/master/src/main/java/de/linus/deepltranslator/DeepLTranslatorBase.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,021 | DeepLTranslator | Chase22 | Java | Code | 401 | 1,248 | package de.linus.deepltranslator;
import com.google.common.net.UrlEscapers;
import com.machinepublishers.jbrowserdriver.JBrowserDriver;
import com.machinepublishers.jbrowserdriver.Settings;
import com.machinepublishers.jbrowserdriver.UserAgent;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.WebElemen... | 2,163 |
https://github.com/yudar1024/spring4-springmvc4-mybatis3-activiti/blob/master/src/main/java/org/crazyit/activiti/TransferOutDelegate.java | Github Open Source | Open Source | MIT | 2,020 | spring4-springmvc4-mybatis3-activiti | yudar1024 | Java | Code | 23 | 102 | package org.crazyit.activiti;
import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;
public class TransferOutDelegate implements JavaDelegate {
@Override
public void execute(DelegateExecution execution) throws Exception {
System.out.println("转出银行扣减款项...");
}
}
| 11,085 |
https://github.com/Seres67/RealisticNetworkStorage/blob/master/src/main/java/com/seres/realisticnetworkstorage/blockentities/BasicGeneratorBlockEntity.java | Github Open Source | Open Source | MIT | 2,020 | RealisticNetworkStorage | Seres67 | Java | Code | 489 | 1,433 | /*
* This file is part of Seres67, licensed under the MIT License (MIT).
*
* Copyright (c) 2020 Seres67
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including... | 25,442 |
https://github.com/beistvan/Java-laborok-2013-2014-1/blob/master/Lab_8_2.java | Github Open Source | Open Source | Unlicense | 2,023 | Java-laborok-2013-2014-1 | beistvan | Java | Code | 322 | 1,242 | /*
* Labor 8., 8.2.: Lab_8_2.java
*/
package lab_8_2;
import java.io.*;
/**
* @author Beregszászi István
* @since 2015.11.12.
*/
public class Lab_8_2 {
public static void main(String[] args) {
//8.2. feladat
//Adva van egy "Termékek" adatbázis, melyet egy szöveges állományba
//... | 41,211 |
https://github.com/lirunsheng/shoppt/blob/master/mestore/application/store/controller/Statistics.php | Github Open Source | Open Source | Apache-2.0 | 2,018 | shoppt | lirunsheng | PHP | Code | 330 | 4,310 | <?php
namespace app\store\controller;
class Statistics extends Common
{
public function index()
{
$beginThismonth=mktime(0,0,0,date('m'),1,date('Y'));
$endThismonth=mktime(23,59,59,date('m'),date('t'),date('Y'));
$ret1=db('order')->where('addtime between '.$beginThismonth.' and '.$endTh... | 30,123 |
https://github.com/WillemElbers/unity-idm/blob/master/web-admin/src/main/java/pl/edu/icm/unity/webadmin/identities/EntityAttributesClassesDialog.java | Github Open Source | Open Source | BSD-3-Clause | null | unity-idm | WillemElbers | Java | Code | 316 | 1,454 | /*
* Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.webadmin.identities;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import pl.edu.icm.unity.exceptions.EngineException;
import pl.edu.i... | 52,162 |
https://github.com/Romuruotsalainen/Warhammer-40-k-Hit-and-wound-calculator/blob/master/to_wound.py | Github Open Source | Open Source | MIT | 2,017 | Warhammer-40-k-Hit-and-wound-calculator | Romuruotsalainen | Python | Code | 147 | 384 | import numpy
class to_wound(object):
def __init__(self, toughness, strength):
self.toughness = toughness
self.strength = strength
def wound(self):
#This piece of code creates a to wound chart with strength y-axis
#and toughness on the x-axis
newArray = numpy.zeros((10, ... | 15,076 |
https://github.com/zthurman/Research/blob/master/CompSci/Java MIT OCW/HelloWorld/src/hello/world/Main.java | Github Open Source | Open Source | BlueOak-1.0.0 | 2,020 | Research | zthurman | Java | Code | 151 | 399 | package hello.world;
class HelloWorld {
public static void main(String[] args) {
// write your code here
System.out.println("Hello World!");
}
}
class Hello2 {
public static void main(String[] args) {
// write your code here
System.out.println("Hello World!");
System.out... | 23,321 |
https://github.com/ypfdev/MikuKit_OC/blob/master/Utils/MCTipsUtils+ErrorCode.m | Github Open Source | Open Source | MIT | 2,021 | MikuKit_OC | ypfdev | Objective-C | Code | 75 | 400 | //
// MCTipsUtils+ErrorCode.m
// MotionCamera
//
// Created by 原鹏飞 on 7/8/20.
// Copyright © 2020 Apeman. All rights reserved.
//
#import "MCTipsUtils+ErrorCode.h"
@implementation MCTipsUtils (ErrorCode)
+ (void)showErrorTipsWithCode:(MCCode)errorCode completionHandler:(void (^ __nullable)(void))completionHandle... | 44,157 |
https://github.com/go-rogue/engine/blob/master/sprites/colours.go | Github Open Source | Open Source | MIT | null | engine | go-rogue | Go | Code | 19 | 60 | package sprites
import rl "github.com/gen2brain/raylib-go/raylib"
// No colour/transparent
var ColourNC = rl.Color{R: 0, G: 0, B: 0, A: 0}
| 8,720 |
https://github.com/KharlamovaAlexandra/Ray_laravel/blob/master/public_html/app/Http/Controllers/Api/LentaOrg/LentaController.php | Github Open Source | Open Source | MIT | 2,021 | Ray_laravel | KharlamovaAlexandra | PHP | Code | 89 | 333 | <?php
namespace App\Http\Controllers\Api\LentaOrg;
use App\Organization;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Support\Facades\DB;
class LentaController extends BaseController
{
public function lenta(Request $request){
$input = $request->all();
... | 21,340 |
https://github.com/JunGroupProductions/mopub-unity-sdk/blob/master/unity-sample-app/Assets/MoPub/Sample/Delight/Source/NonDrawingGraphic.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | mopub-unity-sdk | JunGroupProductions | C# | Code | 56 | 140 | #region Using Statements
using System;
using UnityEngine.UI;
#endregion
namespace Delight
{
/// <summary>
/// Non-drawing graphic to provide raycast target without drawing anything.
/// </summary>
public class RaycastTargetGraphic : Graphic
{
public override void SetMaterialDirty() { retur... | 37,730 |
https://github.com/vistarsoft/git-log-viewer/blob/master/src/modules/common/loader/loader.jsx | Github Open Source | Open Source | MIT | 2,017 | git-log-viewer | vistarsoft | null | Spoken | 57 | 160 | import React from 'react';
export default (props) => {
let {className, isFullscreen } = props;
if (!isFullscreen) {
return (
<div className={'ui active centered text inline loader ' + className}>
{props.text}
</div>
)
}
return (
<div id="modal-loader" className="ui segment glv-loader-full">
... | 13,626 |
https://github.com/i13-msrg/EVA/blob/master/evadmm/matlab/yalmip/@sdpvar/or.m | Github Open Source | Open Source | Apache-2.0 | 2,018 | EVA | i13-msrg | MATLAB | Code | 90 | 278 | function varargout = or(varargin)
%OR (overloaded)
%
% z = or(x,y)
% z = x | y
%
% It is assumed that x and y are binary variables (either explicitely
% declared using BINVAR, or constrained using BINARY.)
%
% See also SDPVAR/AND, SDPVAR/XOR, SDPVAR/NOT, BINVAR, BINARY
switch class(varargin{1})
case 'char... | 8,519 |
https://github.com/thenotsoft/config/blob/master/tests/Integration/InstallCommandTest.php | Github Open Source | Open Source | BSD-3-Clause | null | config | thenotsoft | PHP | Code | 64 | 525 | <?php
declare(strict_types=1);
namespace Yiisoft\Config\Tests\Integration;
final class InstallCommandTest extends ComposerTest
{
public function testWithoutVendor(): void
{
$this->initComposer([
'require' => [
'yiisoft/config' => '*',
'test/a' => '*',
... | 2,884 |
https://github.com/apache/tomee/blob/master/docs/local-client-injection.adoc | Github Open Source | Open Source | Apache-2.0, W3C-19980720, W3C, BSD-3-Clause, CDDL-1.0, MIT | 2,023 | tomee | apache | AsciiDoc | Code | 431 | 828 | = Local Client Injection
:index-group: Testing Techniques
:jbake-date: 2018-12-05
:jbake-type: page
:jbake-status: published
The _`@LocalClient_` annotation (org.apache.openejb.api.LocalClient) is an
innovation that crosses concepts of an Java EE Application Client with a
plain Java SE client. This particular annotati... | 24,796 |
https://github.com/JCVI-Cloud/galaxy-tools-prok/blob/master/lib/galaxy/model/migrate/versions/0032_stored_workflow_slug_column.py | Github Open Source | Open Source | CC-BY-2.5, MIT | 2,014 | galaxy-tools-prok | JCVI-Cloud | Python | Code | 103 | 313 | """
Migration script to add slug column for stored workflow.
"""
from sqlalchemy import *
from migrate import *
from migrate.changeset import *
import logging
log = logging.getLogger( __name__ )
metadata = MetaData( migrate_engine )
def upgrade():
print __doc__
metadata.reflect()
StoredWorkflo... | 27,601 |
https://github.com/LuizZak/Antlr4-Swift/blob/master/Sources/Antlr4/tree/TerminalNodeImpl.swift | Github Open Source | Open Source | MIT | 2,021 | Antlr4-Swift | LuizZak | Swift | Code | 230 | 520 | /* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
*/
public class TerminalNodeImpl: TerminalNode {
public var symbol: Token
public weak var parent: ParseTree?
pu... | 34,185 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.