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/fbraem/kwai-api/blob/master/src/kwai/Modules/Users/UseCases/InviteUserCommand.php | Github Open Source | Open Source | MIT | 2,022 | kwai-api | fbraem | PHP | Code | 90 | 216 | <?php
/**
* @package Modules
* @subpackage Users
*/
declare(strict_types = 1);
namespace Kwai\Modules\Users\UseCases;
/**
* InviteUserCommand is a datatransferobject for the usecase InviteUser.
*/
final class InviteUserCommand
{
/**
* Email of the sender
*/
public string $sender_mail;
/**
... | 6,999 |
https://github.com/smirkingman/RealSense-Calibrator/blob/master/UI/Forms/Main/SessionEvents.vb | Github Open Source | Open Source | Apache-2.0 | 2,022 | RealSense-Calibrator | smirkingman | Visual Basic | Code | 363 | 1,272 | Imports System.ComponentModel
Imports System.Threading
Imports Calibrator
Imports NLog
Partial Public Class Main
Private Sub Session_CameraChanged(sender As Object, oldcamera As Camera, newcamera As Camera) Handles _Session.CameraChanged
Try
_Camera = newcamera
StartCamera()
Ca... | 6,843 |
https://github.com/nanditho/UnityTerrain/blob/master/Assets/PlanetTerrain/Scripts/Creator/CameraOrbit.cs | Github Open Source | Open Source | MIT | 2,019 | UnityTerrain | nanditho | C# | Code | 103 | 416 | using UnityEngine;
using System.Collections;
public class CameraOrbit : MonoBehaviour {
public Transform planet;
private PlanetData ps;
private Camera cam;
private float distance = 1000f;
private float rotateSpeed = 50f;
void Start() {
ps = planet.GetComponent<PlanetTerrain>().planet;
cam = gameObject.Get... | 15,676 |
https://github.com/Evil1991/bitrixdock/blob/master/www/html/bitrix/modules/main/lib/phonenumber/metadataprovider.php | Github Open Source | Open Source | MIT | 2,022 | bitrixdock | Evil1991 | PHP | Code | 257 | 971 | <?php
namespace Bitrix\Main\PhoneNumber;
use Bitrix\Main\IO\File;
use Bitrix\Main\SystemException;
class MetadataProvider
{
protected $metadata;
protected $codeToCountries;
protected static $instance;
const PARSED_METADATA_FILENAME = 'metadata.php';
protected function __construct()
{
$this->loadMetadata()... | 36,617 |
https://github.com/a316523235/go-study/blob/master/spider/v1.go | Github Open Source | Open Source | Apache-2.0 | null | go-study | a316523235 | Go | Code | 230 | 955 | package spider
import (
"fmt"
"github.com/PuerkitoBio/goquery"
"io/ioutil"
"net/http"
"os"
"strconv"
"time"
)
//创建文件夹
func CreateDateDir(basePath string) {
_, err := os.Stat("./images/" + basePath)
if err != nil {
fmt.Println("不存在文件")
if os.IsNotExist(err) {
err := os.Mkdir("./images/"+basePath, os.Mo... | 1,169 |
https://github.com/anicholson/mode-mode/blob/master/server/features/step_definitions/mode_steps.rb | Github Open Source | Open Source | MIT | null | mode-mode | anicholson | Ruby | Code | 45 | 194 | Given(/^the following mode list:$/) do |table|
allow(YAML).to receive(:load_file).and_return(modes: table.symbolic_hashes)
@modes_repo = Application['modes_repository']
end
When(/^I load the modes$/) do
@pre_load_count = @modes_repo.count
loader = Application['mode_loader']
loader.load_modes
@lol = "Pre:... | 39,466 |
https://github.com/ScottishCovidResponse/Contact-Tracing-Model/blob/master/src/main/java/uk/co/ramp/statistics/types/Infection.java | Github Open Source | Open Source | BSD-2-Clause | 2,020 | Contact-Tracing-Model | ScottishCovidResponse | Java | Code | 17 | 77 | package uk.co.ramp.statistics.types;
import org.immutables.gson.Gson;
import org.immutables.value.Value;
@Value.Immutable
@Gson.TypeAdapters
public interface Infection {
int seed();
int infections();
}
| 38,595 |
https://github.com/abdelazeem201/-Radar-Display-using-FPGA/blob/master/RTL/Address_Generator.vhd | Github Open Source | Open Source | MIT | null | -Radar-Display-using-FPGA | abdelazeem201 | VHDL | Code | 75 | 258 | library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_unsigned.ALL;
entity addr is
Port ( reset,clk : in STD_LOGIC;
y_axis : out STD_LOGIC;
dout : out STD_LOGIC_VECTOR (8 downto 0));
end addr;
architecture Behavioral of addr is
signal reg: std_logic_vector(8 downto 0):="1000011... | 32,724 |
https://github.com/zhoujiajia123/zchat/blob/master/src/main/java/com/zj/zchat/shiro/ShiroConfiguration.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | zchat | zhoujiajia123 | Java | Code | 216 | 1,586 | package com.zj.zchat.shiro;
import org.apache.shiro.authc.credential.HashedCredentialsMatcher;
import org.apache.shiro.codec.Base64;
import org.apache.shiro.spring.LifecycleBeanPostProcessor;
import org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor;
import org.apache.shiro.spring.web.Shi... | 18,212 |
https://github.com/yangliuy/Intent-Aware-Ranking-Transformers/blob/master/IART/utils/preprocess.py | Github Open Source | Open Source | MIT | 2,021 | Intent-Aware-Ranking-Transformers | yangliuy | Python | Code | 2,405 | 8,184 | # -*- coding: utf-8 -*-
from __future__ import print_function
from nltk.tokenize import word_tokenize
import jieba
import sys
import numpy as np
from nltk.corpus import stopwords as nltk_stopwords
from nltk.stem import SnowballStemmer
from tqdm import tqdm
sys.path.append('../inputs')
sys.path.append('../utils')
fro... | 24,809 |
https://github.com/josealbertohm/boom-homework/blob/master/src/main/java/com/spring/boom/credit/homework/company/CompanyRepository.java | Github Open Source | Open Source | Apache-2.0 | null | boom-homework | josealbertohm | Java | Code | 18 | 95 | package com.spring.boom.credit.homework.company;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;
@Repository
public interface CompanyRepository extends JpaRepository<Company, Long>,... | 26,427 |
https://github.com/shuwang1992/WebClient-Vue/blob/master/stories/UITimeline.stories.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | WebClient-Vue | shuwang1992 | JavaScript | Code | 71 | 297 | import MapgisUiTimeline from "../ui/src/components/timeline/Timeline.vue";
export default {
title: "界面/时间轴",
component: MapgisUiTimeline,
argTypes: {
},
};
const Template = (args, { argTypes }) => ({
props: Object.keys(argTypes),
components: { MapgisUiTimeline },
data() {
return {
};
},
meth... | 23,215 |
https://github.com/mogmog/beetroute/blob/master/src/components/Cards/HDObservationCard/mapper.js | Github Open Source | Open Source | MIT | 2,018 | beetroute | mogmog | JavaScript | Code | 51 | 237 | const db = require('./db')
const JM = require('json-mapper');
const mapping = {
title : 'factbook.name',
subtitle : 'factbook.people.population.total',
subsubtitle : 'data.people.languages.language',
map : 'map'
};
const merge = db.mergeObject({component : 'CountryInfoCard', data : {}, k... | 24,618 |
https://github.com/develmax/Crm.Sdk.Core/blob/master/Microsoft.Crm.Sdk.Proxy/Messages/AddSolutionComponentRequest.cs | Github Open Source | Open Source | MIT | null | Crm.Sdk.Core | develmax | C# | Code | 310 | 803 | using Microsoft.Xrm.Sdk;
using System;
using System.Runtime.Serialization;
namespace Microsoft.Crm.Sdk.Messages
{
/// <summary>Contains the data that is needed to add a solution component to an unmanaged solution.</summary>
[DataContract(Namespace = "http://schemas.microsoft.com/crm/2011/Contracts")]
public sea... | 1,914 |
https://github.com/sidasu92/pynet_test_dev/blob/master/day2/classes_ex2.py | Github Open Source | Open Source | Apache-2.0 | null | pynet_test_dev | sidasu92 | Python | Code | 86 | 344 | class NetworkDevice(object):
def __init__(self, ip_addr, username, password ):
self.ip_addr = ip_addr
self.username = username
self.password = password
self.serial_number = ""
self.vendor = ""
self.model = ""
self.os_version = ""
self.uptime = ""
... | 12,968 |
https://github.com/DojoDev/laravel-dojodelivery/blob/master/resources/views/admin/clients/edit.blade.php | Github Open Source | Open Source | MIT | 2,016 | laravel-dojodelivery | DojoDev | Blade | Code | 52 | 222 | @extends('app')
@section('content')
<div class="container">
<div class="row">
<header>
<h1>Client Edit: {{ $client->user->name }}</h1>
<hr>
</header>
@include('errors._check')
{!! Form::model($client , ['class'=>'form-horizontal'], ['route'=>['admin.clients.update', $client-... | 4,089 |
https://github.com/princeleo/yii-base/blob/master/common/log/ActionLog.php | Github Open Source | Open Source | BSD-3-Clause | null | yii-base | princeleo | PHP | Code | 270 | 939 | <?php
/**
* Author: Richard <chenz@snsshop.cn>
* Date: 2016/11/28
* Time: 16:22
*/
namespace app\common\log;
use app\models\ActionLogModel;
use yii\base\Object;
class ActionLog extends Object
{
public $system;
public $resourceTypes;
protected $request;
const ADD = 'add';
const DELETE = 'de... | 29,951 |
https://github.com/qqxliufeng/YXYX_NEW/blob/master/src/store/getters.js | Github Open Source | Open Source | MIT | null | YXYX_NEW | qqxliufeng | JavaScript | Code | 84 | 277 | const getters = {
sidebar: state => state.app.sidebar,
size: state => state.app.size,
device: state => state.app.device,
visitedViews: state => state.tagsView.visitedViews,
cachedViews: state => state.tagsView.cachedViews,
token: state => state.user.token,
avatar: state => state.user.avatar,
name: state... | 16,099 |
https://github.com/CESNET/velia/blob/master/src/system/LLDPCallback.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | velia | CESNET | C++ | Code | 161 | 628 | /*
* Copyright (C) 2020 CESNET, https://photonics.cesnet.cz/
*
* Written by Tomáš Pecka <tomas.pecka@fit.cvut.cz>
*
*/
#include <numeric>
#include "LLDPCallback.h"
#include "utils/log.h"
namespace velia::system {
LLDPCallback::LLDPCallback(std::shared_ptr<LLDPDataProvider> lldp)
: m_log(spdlog::get("system"... | 4,455 |
https://github.com/octoblu/meshblu-connector-configurator-windows-registry/blob/master/command.js | Github Open Source | Open Source | MIT | null | meshblu-connector-configurator-windows-registry | octoblu | JavaScript | Code | 155 | 554 | #!/usr/bin/env node
const OctoDash = require("octodash")
const packageJSON = require("./package.json")
const { MeshbluConnectorConfigurator } = require("./lib/configurator")
const CLI_OPTIONS = [
{
names: ["connector-home"],
type: "string",
required: true,
env: "MESHBLU_CONNECTOR_HOME",
help: "Ba... | 34,353 |
https://github.com/anskuratov/ar-mr-therapy/blob/master/Assets/Resources/Spider/fear_end.fbx.meta | Github Open Source | Open Source | MIT | 2,019 | ar-mr-therapy | anskuratov | Unity3D Asset | Code | 1,866 | 9,819 | fileFormatVersion: 2
guid: bf0743a76451ef342bc3f40f9ed6a3cb
timeCreated: 1523181283
licenseType: Free
ModelImporter:
serializedVersion: 19
fileIDToRecycleName:
100000: body
100002: body 1
100004: //RootNode
100006: hel_l_control
100008: hel_r_control
100010: ikHandle
100012: ikHandle_0_l... | 38,654 |
https://github.com/Sonoport/freesound-java/blob/master/src/test/java/com/sonoport/freesound/response/mapping/SoundListMappingTest.java | Github Open Source | Open Source | Apache-2.0 | 2,014 | freesound-java | Sonoport | Java | Code | 221 | 536 | /*
* Copyright 2014 Sonoport (Asia) Pte Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 9,567 |
https://github.com/nathansamson/OMF/blob/master/external/frisbee/imagezip/extfs/linux_types.h | Github Open Source | Open Source | MIT | 2,015 | OMF | nathansamson | C | Code | 34 | 142 | #ifndef _LINUX_TYPES_H
#define _LINUX_TYPES_H
#include <sys/types.h>
typedef u_int8_t __u8;
typedef u_int16_t __u16;
typedef u_int32_t __u32;
typedef u_int64_t __u64;
typedef int8_t __s8;
typedef int16_t __s16;
typedef int32_t __s32;
typedef int64_t __s64;
#endif /* _LINUX_TYPES_H */
| 15,146 |
https://github.com/Matheus-Peres/backend/blob/master/shared/jsservice/request.js | Github Open Source | Open Source | MIT | 2,021 | backend | Matheus-Peres | JavaScript | Code | 175 | 724 | "use strict";
class Request {
constructor(service, msg) {
this.service = service;
this.source = msg.source;
this.worker = msg.worker;
this.request = msg.request_id;
this.type = msg.request_type;
this.msg = msg;
this.streaming = false;
this.alive = true;
}
finish() {
this.alive = false;
delet... | 35,269 |
https://github.com/slavapestov/swift/blob/master/lib/ASTSectionImporter/CMakeLists.txt | Github Open Source | Open Source | Apache-2.0, Swift-exception | 2,016 | swift | slavapestov | CMake | Code | 6 | 46 | add_swift_library(swiftASTSectionImporter
ASTSectionImporter.cpp
LINK_LIBRARIES swiftBasic
COMPONENT_DEPENDS core)
| 13,261 |
https://github.com/PyTechMike/js-this-car/blob/master/test/spec.test.js | Github Open Source | Open Source | MIT | null | js-this-car | PyTechMike | JavaScript | Code | 496 | 1,795 | import car from '../src/js/car';
describe('Module "car"', () => {
beforeEach(() => {
spyOn(car, 'drive').and.callThrough();
spyOn(car, 'put').and.callThrough();
spyOn(car, 'land').and.callThrough();
});
describe('has a correct interface with a property', () => {
it('"color" that is a String', () => {
e... | 25,261 |
https://github.com/dgouvea/code-template-repository/blob/master/repository-generator/src/main/java/coderepository/MavenDependencyManager.java | Github Open Source | Open Source | MIT | 2,016 | code-template-repository | dgouvea | Java | Code | 81 | 447 | package coderepository;
import java.util.Objects;
public class MavenDependencyManager extends DependencyManager {
@Override
public String getName() {
return "Maven";
}
@Override
public String getSettingFileName() {
return "pom.xml";
}
@Override
protected String toString(Dependency dependency) {
Str... | 30,911 |
https://github.com/yuwenbai/rex_study/blob/master/01/Assets/Editor/XUPort/Mods/Xcode/Categories/UIImage+ScaleImage.h | Github Open Source | Open Source | MIT | 2,018 | rex_study | yuwenbai | Objective-C | Code | 37 | 156 | //
// UIImage+ScaleImage.h
// Unity-iPhone
//
// Created by kang on 2017/9/14.
//
//
#import <UIKit/UIKit.h>
@interface UIImage (ScaleImage)
/**
生成微信分享缩略图
@return 二进制缩略图数据
*/
- (NSData *) getImageData;
+ (UIImage *)scaleImage:(UIImage *)image toScale:(float)scaleSize;
+ (UIImage *)getLaunchImageName;
@end
| 6,103 |
https://github.com/macsux/steeltoe/blob/master/src/Messaging/src/RabbitMQ/Data/MessagePropertiesBuilder.cs | Github Open Source | Open Source | Apache-2.0 | null | steeltoe | macsux | C# | Code | 170 | 371 | // Copyright 2017 the original author or 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable la... | 34,663 |
https://github.com/Kney-Delach/OpenGL-Rendering/blob/master/OpenGL-Rendering-Engine/Sandbox/Resources/Environment_Scene/Shaders/Explosion/ExplosionGeometry.glsl | Github Open Source | Open Source | MIT | null | OpenGL-Rendering | Kney-Delach | GLSL | Code | 214 | 736 | /***************************************************************************
* Filename : ExplosionGeometry.glsl
* Name : Ori Lazar
* Date : 26/10/2019
* Description : Geometry shader used to explode a spaceship for the animation sequence.
.---.
.'_:___".
|__ --==|
[ ] :[|
|__| I=[|
/ / _... | 4,285 |
https://github.com/danielsogl/ngx-gallery/blob/master/lib/core/src/services/gallery-ref.ts | Github Open Source | Open Source | MIT | 2,018 | ngx-gallery | danielsogl | TypeScript | Code | 435 | 1,262 | import { BehaviorSubject } from 'rxjs/BehaviorSubject';
import { filter } from 'rxjs/operators/filter';
import { Observable } from 'rxjs/Observable';
import { defaultConfig, defaultState } from '../utils/gallery.default';
import {
GalleryState,
GalleryConfig,
GalleryAction,
GalleryItem
} from '../models';
expo... | 16,316 |
https://github.com/SamuraiCrow/RetroMode.library-mos/blob/master/retromode_files/main/retroDrawVideo.c | Github Open Source | Open Source | MIT | 2,020 | RetroMode.library-mos | SamuraiCrow | C | Code | 1,944 | 5,637 | /* :ts=4
* $VER: retroDrawVideo.c $Revision$ (16-Oct-2017)
*
* This file is part of retromode.
*
* Copyright (c) 2017 LiveForIt Software.
* MIT License.
*
* $Id$
*
* $Log$
*
*
*/
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <exec/exec.h>
#include <proto/exec.h>
#include <dos/do... | 41,180 |
https://github.com/steveharter/corefxlab/blob/master/src/System.Text.JsonLab.Serialization/System/Text/Json/Serialization/Policies/EnumerableConverterAttribute.cs | Github Open Source | Open Source | MIT | 2,019 | corefxlab | steveharter | C# | Code | 79 | 170 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections;
namespace System.Text.Json.Serialization.Policies
{
[AttributeUsage(AttributeTargets... | 13,800 |
https://github.com/doc22940/rreusser.github.io/blob/master/src/lib/default-idyll-components/menu.js | Github Open Source | Open Source | MIT | 2,020 | rreusser.github.io | doc22940 | JavaScript | Code | 82 | 393 | import React from 'react';
import classNames from 'classnames';
class Menu extends React.Component {
constructor (props) {
super(props);
this.state = {
expanded: false
};
this.handleClick = this.handleClick.bind(this);
}
handleClick () {
this.setState({expanded: !this.state.expanded});... | 30,976 |
https://github.com/gnzlbg/ispc-rs/blob/master/examples/aobench/src/main.rs | Github Open Source | Open Source | MIT | null | ispc-rs | gnzlbg | Rust | Code | 148 | 411 | #[macro_use]
extern crate ispc;
extern crate image;
extern crate rand;
use rand::Rng;
ispc_module!(ao);
fn main() {
let width = 256;
let height = 256;
let n_samples = 16;
let mut fimg = vec![0.0; width * height];
let mut rng = rand::thread_rng();
// We need a random seed for each scanline of ... | 15,038 |
https://github.com/cassie01/PumpLibrary/blob/master/TestCase/FreeTest/test_FreeTest_part_008.py | Github Open Source | Open Source | Apache-2.0 | null | PumpLibrary | cassie01 | Python | Code | 35 | 207 | from TestCase.check_pump_status import *
class TestFreeTest(unittest.TestCase):
"""
FreeTest Part 8 test case
"""
"""
Part 8
1.获取累计量A;
2.执行排气操作,使排气量达到最大值6mL后停止;
3.获取累计量B。
获取的累计量A与B数值一致。
"""
def test_FreeTest_part_008(self):
# 获取累计量
checkPumpStatus()
... | 45,914 |
https://github.com/fanfilmu/tpr2016/blob/master/scalarm/spec/scalarm/experiment_spec.rb | Github Open Source | Open Source | MIT | 2,016 | tpr2016 | fanfilmu | Ruby | Code | 175 | 494 | require 'spec_helper'
describe Scalarm::Experiment do
let(:experiment) { described_class.new }
let(:input_file_data) { {}.to_json }
before do
allow(File).to receive(:read).with('input.json').and_return(input_file_data)
end
describe '#inputs' do
subject { experiment.inputs }
context 'for empty i... | 38,165 |
https://github.com/PaulMB/media-adapter/blob/master/media-adapter-synology/src/main/webapp/javascript/adapter/form/GlobalConfigurationPanel.js | Github Open Source | Open Source | Apache-2.0 | null | media-adapter | PaulMB | JavaScript | Code | 121 | 545 | /*global Ext,SYNO,Media*/
Ext.define('Media.adapter.form.GlobalConfigurationPanel', {
extend: 'SYNO.SDS.Utils.FormPanel',
constructor: function (config) {
Ext.apply(this, config);
this.executorComboBox = new SYNO.ux.ComboBox({
anchor: '100%',
width: 'auto',
f... | 15,266 |
https://github.com/xiao333ma/XMWebView/blob/master/Example/XMWebView/XMTest1ViewController.h | Github Open Source | Open Source | MIT | 2,020 | XMWebView | xiao333ma | C | Code | 30 | 122 | //
// XMTest1ViewController.h
// XMWebView_Example
//
// Created by 马贞赛 on 3/27/20.
// Copyright © 2020 xiao3333ma@gmail.com. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface XMTest1ViewController : UIViewController
@end
NS_ASSUME_NONNULL_END
| 34,124 |
https://github.com/katascope/Glyphics/blob/master/Glyphics/GlyphicsLibrary/Atomics/Atomics.TriangleUnitCube.cs | Github Open Source | Open Source | BSD-2-Clause | 2,016 | Glyphics | katascope | C# | Code | 435 | 1,485 | #region Copyright
/*Copyright (c) 2015, Katascope
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and th... | 2,967 |
https://github.com/Phoenix-GH/BisnerXamarin/blob/master/Bisner.Mobile.Core/Models/General/Notifications/INotification.cs | Github Open Source | Open Source | MIT | 2,018 | BisnerXamarin | Phoenix-GH | C# | Code | 63 | 165 | using System;
using Bisner.Mobile.Core.Models.Base;
namespace Bisner.Mobile.Core.Models.General.Notifications
{
public interface INotification : IItemBase, IDisplayUser
{
Guid RelatedItemId { get; set; }
string NotificationType { get; set; }
DateTime CreationDateTime { get; set; }
... | 183 |
https://github.com/m90/go-chatbase/blob/master/client.go | Github Open Source | Open Source | MIT | 2,019 | go-chatbase | m90 | Go | Code | 283 | 643 | package chatbase
// Client wraps a Chatbase API Key and can be used to
// generate messages, events and link
type Client string
// New returns a new Client using the given Chatbase API Key
func New(apiKey string) *Client {
c := Client(apiKey)
return &c
}
func (c *Client) String() string {
return string(*c)
}
// ... | 27,715 |
https://github.com/wajayanath/micro/blob/master/vue-admin/src/secure/roles/RolesCreate.vue | Github Open Source | Open Source | MIT | null | micro | wajayanath | Vue | Code | 157 | 573 | <template>
<form @submit.prevent="submit">
<div class="form-group row">
<label class="col-sm-2 col-form-label">Name</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="name" id="name" v-model="name"/>
</div>
</div>
... | 48,636 |
https://github.com/vividos/WhereToFly/blob/master/src/App/UnitTest/Views/WeatherDashboardPageTest.cs | Github Open Source | Open Source | BSD-2-Clause | 2,022 | WhereToFly | vividos | C# | Code | 80 | 262 | using Microsoft.VisualStudio.TestTools.UnitTesting;
using WhereToFly.App.Core.Views;
namespace WhereToFly.App.UnitTest.Views
{
/// <summary>
/// Unit tests for WeatherDashboardPage class
/// </summary>
[TestClass]
public class WeatherDashboardPageTest
{
/// <summary>
/// Sets u... | 25,032 |
https://github.com/flypig5211/zf-admin/blob/master/zf/src/main/java/com/chinazhoufan/admin/modules/bas/dao/AddTestDataDao.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | zf-admin | flypig5211 | Java | Code | 64 | 306 | /**
* Copyright © 2012-2014 <a href="https://github.com/chinazhoufan/admin">JeeSite</a> All rights reserved.
*/
package com.chinazhoufan.admin.modules.bas.dao;
import com.chinazhoufan.admin.common.persistence.CrudDao;
import com.chinazhoufan.admin.common.persistence.annotation.MyBatisDao;
import com.chinazhoufa... | 36,490 |
https://github.com/chikage8640/apils-translate/blob/master/setruntime.py | Github Open Source | Open Source | MIT | null | apils-translate | chikage8640 | Python | Code | 141 | 723 | import sys
import os
import shutil
import urllib.error
import urllib.request
import zipfile
# ダウンロードする
def fileDownload(url,filepath):
try:
urllib.request.urlretrieve(url, filepath)
return 0
except urllib.error as e:
print(e)
print("Failed to download [" + url + "].")
sy... | 2,482 |
https://github.com/KouChengjian/manyou/blob/master/library/src/main/java/com/acg12/lib/utils/ForegroundUtil.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | manyou | KouChengjian | Java | Code | 186 | 527 | package com.acg12.lib.utils;
import android.app.Activity;
import android.app.Application;
import android.os.Bundle;
import android.widget.TextView;
public class ForegroundUtil implements Application.ActivityLifecycleCallbacks {
private final static String TAG = ForegroundUtil.class.getName();
private Activit... | 48,756 |
https://github.com/reubenjohn/AEvo2D/blob/master/Assets/Creature/Actuator/IActuator.cs | Github Open Source | Open Source | MIT | 2,020 | AEvo2D | reubenjohn | C# | Code | 23 | 69 | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public interface IActuator
{
int InputCount { get; }
void Act(ArraySegment<float> activations);
IEnumerable<string> GetLabels();
}
| 29,976 |
https://github.com/dorateq/accumulo/blob/master/core/src/main/thrift/security.thrift | Github Open Source | Open Source | Apache-2.0 | null | accumulo | dorateq | Thrift | Code | 194 | 390 | /*
* 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 not u... | 29,801 |
https://github.com/ElCuboNegro/Kronos-Torre/blob/master/src/backend/lib/config/config.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | Kronos-Torre | ElCuboNegro | JavaScript | Code | 51 | 222 | 'use strict';
const crypto = require('crypto');
const pjson = require('../../package.json');
exports.environment = {
NAME: pjson.name,
PORT: Number(process.env.PORT ?? 3000),
VERSION: pjson.version,
DEBUG: process.env.DEBUG == 'TRUE',
DB: {
USERNAME: process.env.DB_USERNAME,
PASSWORD: process.env.DB... | 35,267 |
https://github.com/valerijakoncar/diplomski/blob/master/app/Http/Controllers/admin/ActivityController.php | Github Open Source | Open Source | MIT | null | diplomski | valerijakoncar | PHP | Code | 32 | 111 | <?php
namespace App\Http\Controllers\admin;
use App\Http\Controllers\Controller;
use App\Models\Activity;
use Illuminate\Http\Request;
class ActivityController extends Controller
{
public function sortActivity(Request $request){
$am = new Activity();
$act = $am->sortActivity($request->input("sort... | 33,499 |
https://github.com/loranger32/weight_tracker_roda/blob/master/db/migrations/022_add_final_constraints_on_batches_target_column.rb | Github Open Source | Open Source | MIT | 2,021 | weight_tracker_roda | loranger32 | Ruby | Code | 48 | 241 | Sequel.migration do
up do
alter_table(:batches) do
set_column_not_null :target
c = Sequel[:target]
add_constraint(:target_format, c.like("AA__A%") | c.like("Ag__A%") | c.like("AQ__A%"))
add_constraint(:encrypted_target_length, Sequel.char_length(c) >= 88)
add_constraint(:enc_base64_t... | 831 |
https://github.com/markthethomas/quill/blob/master/src/server/routes/errors.js | Github Open Source | Open Source | MIT | 2,016 | quill | markthethomas | JavaScript | Code | 64 | 219 | import PrettyError from 'pretty-error';
export default function handleErrors(err, req, res) {
if (err.name === 'UnauthorizedError') {
res.status(401)
.send('Unauthorized');
}
if (process.env.NODE_ENV === 'development') {
// dev error handler (more verbose)
console.error(err);
console.error(... | 37,879 |
https://github.com/jakobrichert/RichDAO/blob/master/algovenv/lib/python3.8/site-packages/nacl/bindings/crypto_kx.py | Github Open Source | Open Source | MIT | 2,022 | RichDAO | jakobrichert | Python | Code | 599 | 2,282 | # Copyright 2018 Donald Stufft and individual contributors
#
# 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... | 2,133 |
https://github.com/molly7657/flavortowntrip/blob/master/server/api/restaurants.js | Github Open Source | Open Source | MIT | 2,021 | flavortowntrip | molly7657 | JavaScript | Code | 55 | 165 | const router = require('express').Router()
const {Restaurant} = require('../db/models')
module.exports = router
router.get('/', async (req, res, next) => {
try {
const restaurants = await Restaurant.findAll()
res.json(restaurants)
} catch (err) {
next(err)
}
})
router.get('/:id', async (req, res, ne... | 35,401 |
https://github.com/starl1n/Xamarin.Forms-Samples-of-Clases/blob/master/Clase 09/Proyectos/XamarinFormsClase09/XamarinFormsClase09/ControlesPersonalizados/EntryPersonalizado.cs | Github Open Source | Open Source | MIT | null | Xamarin.Forms-Samples-of-Clases | starl1n | C# | Code | 15 | 44 | using System;
using Xamarin.Forms;
namespace XamarinFormsClase09
{
public class EntryPersonalizado : Entry
{
}
}
| 6,867 |
https://github.com/imec-int/federated-learning-lib/blob/master/examples/PHR/aggregator/aggregator.ddl | Github Open Source | Open Source | IBM-pibs | null | federated-learning-lib | imec-int | SQL | Code | 28 | 97 | CREATE SCHEMA results;
CREATE TABLE results.nbAdmissionsByGender(
sourceDatabase CHARACTER VARYING(64),
gender CHARACTER VARYING(64),
admissionHour INTEGER,
count INTEGER
);
CREATE TABLE results.sofaScores(
sourceDatabase CHARACTER VARYING(64),
sofaAvg REAL,
sofaStd REAL
); | 23,961 |
https://github.com/genious97/ImageManipulation/blob/master/ImageManipulation/Blurer.cs | Github Open Source | Open Source | MIT | 2,019 | ImageManipulation | genious97 | C# | Code | 277 | 843 | using System;
using System.Collections.Generic;
using System.Windows.Media;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ImageManipulation
{
class Blurer
{
CopyableBitmap _inputImage;
public Blurer(CopyableBitmap inputImage)
{
_inputImage ... | 31,603 |
https://github.com/MGelein/paralleloi/blob/master/src/trb1914/paralleloi/data/Text.java | Github Open Source | Open Source | MIT | null | paralleloi | MGelein | Java | Code | 287 | 680 | package trb1914.paralleloi.data;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import trb1914.paralleloi.Comparison;
import trb1914.paralleloi.Paralleloi;
/**
* This text object holds the methods used for a loaded text
* to inte... | 12,367 |
https://github.com/chrismcgraw60/chocosolver/blob/master/src/test/java/org/clafer/ir/IrArithmXYTest.java | Github Open Source | Open Source | MIT | 2,019 | chocosolver | chrismcgraw60 | Java | Code | 125 | 515 | package org.clafer.ir;
import org.chocosolver.solver.Solver;
import org.chocosolver.solver.constraints.Constraint;
import org.chocosolver.solver.variables.IntVar;
import org.chocosolver.solver.variables.Variable;
import org.chocosolver.solver.variables.impl.FixedBoolVarImpl;
import org.chocosolver.solver.variables.imp... | 29,095 |
https://github.com/kimhanui/2020-InterfaceApp-api/blob/master/src/main/java/com/infe/app/web/dto/PostsListResponseDto.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | 2020-InterfaceApp-api | kimhanui | Java | Code | 55 | 206 | package com.infe.app.web.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.infe.app.domain.posts.Posts;
import lombok.Getter;
import java.time.LocalDateTime;
@Getter
public class PostsListResponseDto {
private Long id;
private String title;
private String content;
@JsonFormat(shape ... | 4,155 |
https://github.com/jquorning/iNow/blob/master/source/decoration.adb | Github Open Source | Open Source | blessing | 2,020 | iNow | jquorning | Ada | Code | 248 | 586 | --
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
-- May you find forgiveness for yourself and forgive others.
-- May you share freely, not taking more than you give.
--
with Symbols;
package body Decoration is
... | 4,987 |
https://github.com/MinexAutomation/R5T.NetStandard.IO.Serialization/blob/master/source/R5T.NetStandard.IO.Serialization/Code/Classes/XmlFileSerializer.cs | Github Open Source | Open Source | MIT | null | R5T.NetStandard.IO.Serialization | MinexAutomation | C# | Code | 69 | 233 | using System;
namespace R5T.NetStandard.IO.Serialization
{
public static class XmlFileSerializer
{
public static T Deserialize<T>(string xmlFilePath)
{
using (var fileStream = FileStreamHelper.NewRead(xmlFilePath))
{
var output = XmlStreamSerializer.Des... | 33,114 |
https://github.com/orclassiq/amazon-braket-sdk-python/blob/master/examples/job.py | Github Open Source | Open Source | Apache-2.0 | null | amazon-braket-sdk-python | orclassiq | Python | Code | 153 | 411 | # Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompany... | 19,552 |
https://github.com/ckooma001c/Comcast-traffic_control/blob/master/traffic_router/core/src/main/java/com/comcast/cdn/traffic_control/traffic_router/core/cache/CacheLocationManager.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | Comcast-traffic_control | ckooma001c | Java | Code | 205 | 414 | /*
* Copyright 2015 Comcast Cable Communications Management, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | 40,147 |
https://github.com/ZLValien/erda/blob/master/modules/openapi/component-protocol/scenarios/action/components/actionForm/testplan-run_test.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | erda | ZLValien | Go | Code | 313 | 1,242 | // Copyright (c) 2021 Terminus, 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 agree... | 20,335 |
https://github.com/tiaanduplessis/jormat/blob/master/test.js | Github Open Source | Open Source | MIT | 2,018 | jormat | tiaanduplessis | JavaScript | Code | 39 | 118 | 'use strict'
const jormat = require('./')
const { milliseconds } = require('jormat-formatters')
test('should be defined', () => {
expect(jormat).toBeDefined()
})
test('should format and parse', () => {
const { format, parse } = jormat(milliseconds)
expect(format(9000)).toBe('9 seconds')
expect(parse('6 minu... | 13,479 |
https://github.com/SMKrizan/WoodlandConsultingLLC/blob/master/client/src/pages/About/index.js | Github Open Source | Open Source | MIT | 2,021 | WoodlandConsultingLLC | SMKrizan | JavaScript | Code | 275 | 696 | import React from 'react';
import './about.css'
import {useSpring, animated} from 'react-spring'
function About() {
const propsMove2 = useSpring(
{opacity: 1,
from: {scale:10,transform: 'scale(0.5)'},
to: { scale: 150, transform: 'scale(1)', freq: '0.0, 0.0' },
... | 19,138 |
https://github.com/G-Node/GCA-Web/blob/master/test/frontend/conftest.py | Github Open Source | Open Source | BSD-2-Clause | 2,021 | GCA-Web | G-Node | Python | Code | 265 | 1,535 | import pytest
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.action_chains import ActionChains
import Cookies
# Firefox-workaround, as mov... | 29,046 |
https://github.com/ibrahim85/Predicting-Text-Readability-using-Natural-Language-Processing-Methods/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,019 | Predicting-Text-Readability-using-Natural-Language-Processing-Methods | ibrahim85 | Ignore List | Code | 19 | 109 | # dataset
data/WeeBit/
data/weebit.csv
data/weebit_train.csv
data/weebit_test.csv
# features
features/weebit_train_with_features.csv
features/weebit_test_with_features.csv
# saved ML models
ml_models/models/saved_models
# other
**/__pycache__/
.ipynb_checkpoints
| 17,350 |
https://github.com/AragondaJyosna/chainladder-python/blob/master/chainladder/methods/mack.py | Github Open Source | Open Source | MIT | 2,019 | chainladder-python | AragondaJyosna | Python | Code | 600 | 2,289 | """
:ref:`chainladder.methods<methods>`.MackChainladder
===================================================
:ref:`MackChainladder<mack>` produces the same IBNR results as the deterministic
approach, but ldf selection happens in a regression framework that allows for
the calculation of prediction errors. The Mack Chai... | 28,072 |
https://github.com/dekbanbanproject/rpst/blob/master/database/migrations/2021_06_13_100034_create_page_groups_table.php | Github Open Source | Open Source | MIT | 2,021 | rpst | dekbanbanproject | PHP | Code | 63 | 279 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePageGroupsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
if (!Schema::hasTable('page_... | 7,032 |
https://github.com/octoshell/octoshell-v2/blob/master/config/initializers/jruby_sendmail_fix.rb | Github Open Source | Open Source | MIT | 2,023 | octoshell-v2 | octoshell | Ruby | Code | 90 | 339 | # got if from here: http://stackoverflow.com/questions/8746699/rails-app-wont-send-mail-via-sendmail-under-jruby
if RUBY_ENGINE == 'jruby'
module Mail
class Sendmail
def initialize(values)
self.settings = { :location => '/usr/sbin/sendmail',
:arguments => '-i -t... | 45,852 |
https://github.com/Peterkoricar/Open-Lab-03.05/blob/master/Open-Lab-03.05/Comparator.cs | Github Open Source | Open Source | MIT | null | Open-Lab-03.05 | Peterkoricar | C# | Code | 24 | 88 | using System;
using System.Text.RegularExpressions;
namespace Open_Lab_03._05
{
public class Comparator
{
public bool MatchCaseInsensitive(string str1, string str2)
{
return (Regex.IsMatch(str1,str2, RegexOptions.IgnoreCase));
}
}
}
| 17,325 |
https://github.com/ricardolopes86/nvm-exercises/blob/master/exercise2/build.py | Github Open Source | Open Source | Apache-2.0 | null | nvm-exercises | ricardolopes86 | Python | Code | 106 | 362 | """
This script will compile/build our application exercise2.py
"""
import py_compile
import os
def build():
"""
Function that will be used to build our application.
"""
print("\033[1;33;40mCompiling our application...\033[0m")
py_compile.compile("exercise2.py", "build/app.pyc")
print("\033[1;32... | 11,017 |
https://github.com/deamont66/yottly-hlidacstatu/blob/master/src/app/models/Contract.ts | Github Open Source | Open Source | MIT | null | yottly-hlidacstatu | deamont66 | TypeScript | Code | 53 | 147 | import { Contractor } from 'app/models/Contractor';
import { Client } from 'app/models/Client';
import { Checkable } from 'app/models/Checkable';
export interface ContractData extends Omit<Contract, 'contractors' | 'checked'> {
contractors: Omit<Contractor, 'checked'>[];
client: Omit<Client, 'contracts' | 'checked... | 44,297 |
https://github.com/AgavisJSC/station-mobile/blob/master/src/screens/NoInternet.tsx | Github Open Source | Open Source | Apache-2.0 | 2,021 | station-mobile | AgavisJSC | TSX | Code | 183 | 574 | import React, { ReactElement, useEffect, useState } from 'react'
import { Icon, Text } from 'components'
import StatusBar from 'components/StatusBar'
import { SafeAreaView } from 'react-native-safe-area-context'
import { StyleSheet } from 'react-native'
import NetInfo, {
NetInfoState,
} from '@react-native-community/... | 11,312 |
https://github.com/Bayusyaits/personal_web/blob/master/resources/assets/frontend/sass/partials/_mixins.scss | Github Open Source | Open Source | MIT | null | personal_web | Bayusyaits | SCSS | Code | 294 | 1,127 | // rem fallback - credits: http://zerosixthree.se/
@function calculateRem($size) {
$remSize: $size / 16px;
@return $remSize * 1rem;
}
@mixin round($size) {
border-radius: 100%;
width: $size;
height: $size;
margin-left: auto;
margin-right: auto;
}
@mixin font-size($size) {
font-size: $size;
font-si... | 23,895 |
https://github.com/TiagoDanin-Forks/hacktoberfest/blob/master/src/pages/minha-area.tsx | Github Open Source | Open Source | RSA-MD | 2,021 | hacktoberfest | TiagoDanin-Forks | TypeScript | Code | 198 | 639 | import React, { useEffect, useState } from 'react'
import { Grid } from '@material-ui/core'
//Internal Components
import Layout from '@components/layout'
import { PersonalDataForm, ShippingForm } from '@components/forms'
import User, { UserProps } from '@services/user'
import { Snackbar } from '@material-ui/core'
imp... | 43,792 |
https://github.com/Novelate/NovelateEngine/blob/master/source/novelate/submain.d | Github Open Source | Open Source | LicenseRef-scancode-free-unknown, MIT | 2,020 | NovelateEngine | Novelate | D | Code | 31 | 82 | module novelate.submain;
version (NOVELATE_CUSTOM_MAIN)
{
}
else
{
/// Entry point when no custom entry point is specified.
private void main()
{
import novelate.core : initialize, run;
initialize();
run();
}
}
| 26,705 |
https://github.com/isgasho/kira/blob/master/kira-lua/src/event.rs | Github Open Source | Open Source | MIT | 2,020 | kira | isgasho | Rust | Code | 107 | 424 | use std::sync::atomic::{AtomicUsize, Ordering};
use kira::Event;
use mlua::prelude::*;
static NEXT_EVENT_INDEX: AtomicUsize = AtomicUsize::new(0);
#[derive(Debug, Copy, Clone)]
pub struct CustomEvent(pub usize);
impl CustomEvent {
pub fn new() -> Self {
let index = NEXT_EVENT_INDEX.fetch_add(1, Ordering::Relaxed... | 20,405 |
https://github.com/dwrensha/miniF2F/blob/master/lean/src/test/imo-2007-a6.lean | Github Open Source | Open Source | MIT | null | miniF2F | dwrensha | Lean | Code | 91 | 164 | /-
Copyright (c) 2021 OpenAI. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kunhao Zheng
-/
import data.real.nnreal
import data.real.basic
import algebra.big_operators.basic
open_locale big_operators
example (a : ℕ → nnreal) (h₀ : ∑ x in finset.range 100, (( a (x + 1... | 29,632 |
https://github.com/lmichaelis/OpenGothic/blob/master/game/graphics/visualobjects.h | Github Open Source | Open Source | MIT | null | OpenGothic | lmichaelis | C | Code | 209 | 843 | #pragma once
#include <Tempest/Signal>
#include "objectsbucket.h"
class SceneGlobals;
class AnimMesh;
class Sky;
class VisualObjects final {
public:
VisualObjects(const SceneGlobals& globals, const std::pair<Tempest::Vec3, Tempest::Vec3>& bbox);
~VisualObjects();
ObjectsBucket::Item get(const StaticM... | 37,769 |
https://github.com/bots-house/share-file-bot/blob/master/bot/middleware.go | Github Open Source | Open Source | MIT | 2,021 | share-file-bot | bots-house | Go | Code | 307 | 1,275 | package bot
import (
"context"
"encoding/json"
"fmt"
"strconv"
"strings"
tgbotapi "github.com/bots-house/telegram-bot-api"
"github.com/fatih/structs"
"github.com/friendsofgo/errors"
"github.com/getsentry/sentry-go"
"github.com/bots-house/share-file-bot/pkg/log"
"github.com/bots-house/share-file-bot/pkg/tg... | 31,337 |
https://github.com/mittachaitu/bootstrap/blob/master/gke-openebs/hack/install-openebs-0.5-operator.sh | Github Open Source | Open Source | Apache-2.0 | 2,021 | bootstrap | mittachaitu | Shell | Code | 8 | 94 | kubectl apply -f https://raw.githubusercontent.com/openebs/openebs/v0.5/k8s/openebs-operator.yaml
kubectl apply -f https://raw.githubusercontent.com/openebs/openebs/v0.5/k8s/openebs-storageclasses.yaml
| 50,353 |
https://github.com/ChuniMuni/RED/blob/master/src/RobotFrameworkCore/org.robotframework.ide.core-functions/src/test/java/org/rf/ide/core/testdata/text/write/txt/tables/variables/update/ListVariablesUpdateTest.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | RED | ChuniMuni | Java | Code | 44 | 139 | /*
* Copyright 2016 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.rf.ide.core.testdata.text.write.txt.tables.variables.update;
import org.rf.ide.core.testdata.text.write.tables.variables.update.AListVariablesUpdateTest;
/**
* @au... | 22,283 |
https://github.com/dick-the-deployer/dick/blob/master/dick-web/src/test/java/com/dickthedeployer/dick/web/service/DickYmlServiceTest.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | dick | dick-the-deployer | Java | Code | 160 | 628 | /*
* Copyright dick the deployer.
*
* 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 ... | 32,357 |
https://github.com/gulfofmaine/Neracoos-1-Buoy-App/blob/master/src/Features/StatefulMap/actionTypes.ts | Github Open Source | Open Source | MIT | 2,021 | Neracoos-1-Buoy-App | gulfofmaine | TypeScript | Code | 12 | 27 | /**
* Map state action types
*/
export const SET_VIEW = "map_state/view/set"
| 6,085 |
https://github.com/HulinCedric/live-it-rich/blob/master/src/Live It Rich/BillingForm.Designer.vb | Github Open Source | Open Source | MIT | null | live-it-rich | HulinCedric | Visual Basic | Code | 568 | 2,481 | <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class BillingForm
Inherits System.Windows.Forms.Form
'Form remplace la méthode Dispose pour nettoyer la liste des composants.
<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overrides Sub Dispose(ByVal disposing As Bo... | 31,294 |
https://github.com/ewqasd200g/hhvm/blob/master/hphp/hack/src/hhbc/hhbc_hhas.ml | Github Open Source | Open Source | PHP-3.01, Zend-2.0, BSD-3-Clause | 2,017 | hhvm | ewqasd200g | OCaml | Code | 1,124 | 2,737 | (**
* Copyright (c) 2017, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
module B = Buf... | 21,623 |
https://github.com/IanSavchenko/AdventOfCode2018/blob/master/23/task.js | Github Open Source | Open Source | MIT | 2,019 | AdventOfCode2018 | IanSavchenko | JavaScript | Code | 313 | 841 | let _ = require('lodash');
let fs = require('fs');
let util = require('../util');
// INPUT PROCESSING
let data = fs.readFileSync(__dirname + '/input.txt', 'utf8').trim();
let inp = util.splitLines(data).map(row => {
row = row.trim().split('<');
let bot = {};
let pos = row[1].split('>')[0].split(',').map(el => +e... | 20,341 |
https://github.com/james-d12/whitehatbootcamp/blob/master/src/module1/week1/scooter-hire/classes/Customer.js | Github Open Source | Open Source | Unlicense | null | whitehatbootcamp | james-d12 | JavaScript | Code | 356 | 864 | const Scooter = require('./Scooter')
const ElectricScooter = require('./ElectricScooter')
const ChargeStation = require('./ChargeStation')
/**
* Customer has name, money and a current scooter.
* @property {String} firstName - The firstname of the customer
* @property {String} lastname - The lastname of the custom... | 36,809 |
https://github.com/obecto/gattakka/blob/master/src/main/scala/com/obecto/gattakka/genetics/descriptors/LongGene.scala | Github Open Source | Open Source | MIT | 2,019 | gattakka | obecto | Scala | Code | 143 | 411 | package com.obecto.gattakka.genetics.descriptors
import scala.math.BigInt
object LongGeneDescriptor {
def apply(bits: Int): LongGeneDescriptor = {
LongGeneDescriptor(0, 1l << bits)
}
}
case class LongGeneDescriptor(val from: Long, val to: Long) extends GeneDescriptor {
assert(to >= from)
val range: Long ... | 17,551 |
https://github.com/gcmvanloon/IEC-60870/blob/master/IEC60870/IE/IeProtectionOutputCircuitInformation.cs | Github Open Source | Open Source | MIT | 2,016 | IEC-60870 | gcmvanloon | C# | Code | 168 | 473 | using System.IO;
using IEC60870.IE.Base;
namespace IEC60870.IE
{
internal class IeProtectionOutputCircuitInformation : InformationElement
{
private readonly int value;
public IeProtectionOutputCircuitInformation(bool generalCommand, bool commandToL1, bool commandToL2,
bool command... | 28,606 |
https://github.com/kei-uma/cms2017/blob/master/vendor/engines/consult_management/lib/consult_management.rb | Github Open Source | Open Source | MIT | 2,017 | cms2017 | kei-uma | Ruby | Code | 5 | 17 | require "consult_management/engine"
module ConsultManagement
end
| 19,622 |
https://github.com/JannisBush/code_relation_prediction/blob/master/pytorch/run_classifier_ba.py | Github Open Source | Open Source | Apache-2.0 | null | code_relation_prediction | JannisBush | Python | Code | 2,432 | 8,199 | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
# Modifications copyright (C) 2019 Jannis Rautenstrauch
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file excep... | 38,443 |
https://github.com/P79N6A/demo/blob/master/100-RollingNotice-master/RollingNotice/CustomNoticeCell.h | Github Open Source | Open Source | MIT, Apache-2.0 | 2,018 | demo | P79N6A | Objective-C | Code | 32 | 107 | //
// CustomNoticeCell.h
// RollingNotice
//
// Created by qm on 2017/12/8.
// Copyright © 2017年 qm. All rights reserved.
//
#import "GYNoticeViewCell.h"
@interface CustomNoticeCell : GYNoticeViewCell
- (void)noticeCellWithArr:(NSArray *)arr forIndex:(NSUInteger)index;
@end
| 9,339 |
https://github.com/fo-dicom/fo-dicom/blob/master/FO-DICOM.Core/IO/Buffer/EvenLengthBuffer.cs | Github Open Source | Open Source | MIT, MS-PL, OFFIS, IJG, LicenseRef-scancode-warranty-disclaimer, BSD-2-Clause, LicenseRef-scancode-unknown-license-reference | 2,023 | fo-dicom | fo-dicom | C# | Code | 394 | 890 | // Copyright (c) 2012-2023 fo-dicom contributors.
// Licensed under the Microsoft Public License (MS-PL).
using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
namespace FellowOakDicom.IO.Buffer
{
/// <summary>
/// Wrapper class for uneven length buffers that needs to be repres... | 31,792 |
https://github.com/johnrulon/TechTime/blob/master/NullObjectExample/NullObjectExample/NullWorkStrategy.cs | Github Open Source | Open Source | MIT | null | TechTime | johnrulon | C# | Code | 37 | 110 | namespace NullObjectExample
{
using System;
using Common.Strategies;
public class NullWorkStrategy : WorkStrategy
{
public override string StrategyText
{
get
{
return "...";
}
}
public override void StartStrategy()
{
// do nothing
Console.WriteLine("Null strategy.");
}
}
} | 49,148 |
https://github.com/Cian747/job/blob/master/app/models/user.py | Github Open Source | Open Source | MIT | 2,021 | job | Cian747 | Python | Code | 103 | 451 | from app import db
from werkzeug.security import generate_password_hash,check_password_hash
from flask_login import UserMixin
from app import login_manager
from datetime import datetime
class User(UserMixin,db.Model):
__tablename__ = 'users'
id = db.Column(db.Integer,primary_key = True)
roles_id = db.Colu... | 371 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.