Search is not available for this dataset
id
stringlengths
1
8
text
stringlengths
72
9.81M
addition_count
int64
0
10k
commit_subject
stringlengths
0
3.7k
deletion_count
int64
0
8.43k
file_extension
stringlengths
0
32
lang
stringlengths
1
94
license
stringclasses
10 values
repo_name
stringlengths
9
59
800
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
8
Allow constructors with more than 1 parameter to be mocked
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
801
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
8
Allow constructors with more than 1 parameter to be mocked
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
802
<NME> README.md <BEF> # aws-sdk-mock AWSome mocks for Javascript aws-sdk services. [![Build Status](https://img.shields.io/travis/dwyl/aws-sdk-mock/master.svg?style=flat-square)](https://travis-ci.org/dwyl/aws-sdk-mock) [![codecov.io](https://img.shields.io/codecov/c/github/dwyl/aws-sdk-mock/master.svg?style=flat-squ...
1
Merge pull request #204 from r1b/master
1
.md
md
apache-2.0
dwyl/aws-sdk-mock
803
<NME> README.md <BEF> # aws-sdk-mock AWSome mocks for Javascript aws-sdk services. [![Build Status](https://img.shields.io/travis/dwyl/aws-sdk-mock/master.svg?style=flat-square)](https://travis-ci.org/dwyl/aws-sdk-mock) [![codecov.io](https://img.shields.io/codecov/c/github/dwyl/aws-sdk-mock/master.svg?style=flat-squ...
1
Merge pull request #204 from r1b/master
1
.md
md
apache-2.0
dwyl/aws-sdk-mock
804
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
8
Fix chained calls usage with mocked methods
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
805
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
8
Fix chained calls usage with mocked methods
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
806
<NME> index.js <BEF> 'use strict'; /** * Helpers to mock the AWS SDK Services using sinon.js under the hood * Export two functions: * - mock * - restore * * Mocking is done in two steps: * - mock of the constructor for the service on AWS * - mock of the method on the service **/ const sinon = require('sinon'); const t...
2
made restoreService more robust
1
.js
js
apache-2.0
dwyl/aws-sdk-mock
807
<NME> index.js <BEF> 'use strict'; /** * Helpers to mock the AWS SDK Services using sinon.js under the hood * Export two functions: * - mock * - restore * * Mocking is done in two steps: * - mock of the constructor for the service on AWS * - mock of the method on the service **/ const sinon = require('sinon'); const t...
2
made restoreService more robust
1
.js
js
apache-2.0
dwyl/aws-sdk-mock
808
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; AWS.config.para...
72
Merge pull request #253 from thomaux/jest
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
809
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; AWS.config.para...
72
Merge pull request #253 from thomaux/jest
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
810
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
2
indent req.send function body
2
.js
test
apache-2.0
dwyl/aws-sdk-mock
811
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
2
indent req.send function body
2
.js
test
apache-2.0
dwyl/aws-sdk-mock
812
<NME> workflow.yml <BEF> name: Node CI on: [push, pull_request] jobs: test: runs-on: ${{ matrix.os }} strategy: matrix: node-version: [12.x, 14.x, 16.x] os: [ubuntu-latest, windows-latest, macos-latest] steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 ...
1
add nodejs18 to ci settings
1
.yml
github/workflows/workflow
apache-2.0
dwyl/aws-sdk-mock
813
<NME> workflow.yml <BEF> name: Node CI on: [push, pull_request] jobs: test: runs-on: ${{ matrix.os }} strategy: matrix: node-version: [12.x, 14.x, 16.x] os: [ubuntu-latest, windows-latest, macos-latest] steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 ...
1
add nodejs18 to ci settings
1
.yml
github/workflows/workflow
apache-2.0
dwyl/aws-sdk-mock
814
<NME> README.md <BEF> # aws-sdk-mock AWSome mocks for Javascript aws-sdk services. [![Build Status](https://img.shields.io/travis/dwyl/aws-sdk-mock/master.svg?style=flat-square)](https://travis-ci.org/dwyl/aws-sdk-mock) [![codecov.io](https://img.shields.io/codecov/c/github/dwyl/aws-sdk-mock/master.svg?style=flat-squ...
2
update readme with correct import examples
2
.md
md
apache-2.0
dwyl/aws-sdk-mock
815
<NME> README.md <BEF> # aws-sdk-mock AWSome mocks for Javascript aws-sdk services. [![Build Status](https://img.shields.io/travis/dwyl/aws-sdk-mock/master.svg?style=flat-square)](https://travis-ci.org/dwyl/aws-sdk-mock) [![codecov.io](https://img.shields.io/codecov/c/github/dwyl/aws-sdk-mock/master.svg?style=flat-squ...
2
update readme with correct import examples
2
.md
md
apache-2.0
dwyl/aws-sdk-mock
816
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
29
Merge pull request #49 from mikkelfish/master
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
817
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
29
Merge pull request #49 from mikkelfish/master
0
.js
test
apache-2.0
dwyl/aws-sdk-mock
818
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
99
upgrade packages
99
.js
test
apache-2.0
dwyl/aws-sdk-mock
819
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
99
upgrade packages
99
.js
test
apache-2.0
dwyl/aws-sdk-mock
820
<NME> README.md <BEF> # aws-sdk-mock AWSome mocks for Javascript aws-sdk services. [![Build Status](https://travis-ci.org/dwyl/aws-sdk-mock.svg?branch=master&style=flat-square)](https://travis-ci.org/dwyl/aws-sdk-mock) [![codecov.io](https://codecov.io/github/dwyl/aws-sdk-mock/coverage.svg?branch=master&style=flat-sq...
2
change badges in readme to use Shields.io for "flat-square"
2
.md
md
apache-2.0
dwyl/aws-sdk-mock
821
<NME> README.md <BEF> # aws-sdk-mock AWSome mocks for Javascript aws-sdk services. [![Build Status](https://travis-ci.org/dwyl/aws-sdk-mock.svg?branch=master&style=flat-square)](https://travis-ci.org/dwyl/aws-sdk-mock) [![codecov.io](https://codecov.io/github/dwyl/aws-sdk-mock/coverage.svg?branch=master&style=flat-sq...
2
change badges in readme to use Shields.io for "flat-square"
2
.md
md
apache-2.0
dwyl/aws-sdk-mock
822
<NME> index.d.ts <BEF> declare module 'aws-sdk-mock' { function mock(service: string, method: string, replace: any): void; function mock( service: string, method: string, replace: (params: any, callback: (err: any, data: any) => void) => void ): void; function remock(service: string, method: strin...
4
'reorder'
3
.ts
d
apache-2.0
dwyl/aws-sdk-mock
823
<NME> index.d.ts <BEF> declare module 'aws-sdk-mock' { function mock(service: string, method: string, replace: any): void; function mock( service: string, method: string, replace: (params: any, callback: (err: any, data: any) => void) => void ): void; function remock(service: string, method: strin...
4
'reorder'
3
.ts
d
apache-2.0
dwyl/aws-sdk-mock
824
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
5
Update "Modules with multi-parameter..." test to assert on returned type
5
.js
test
apache-2.0
dwyl/aws-sdk-mock
825
<NME> index.test.js <BEF> 'use strict'; const tap = require('tap'); const test = tap.test; const awsMock = require('../index.js'); const AWS = require('aws-sdk'); const isNodeStream = require('is-node-stream'); const concatStream = require('concat-stream'); const Readable = require('stream').Readable; const jest = req...
5
Update "Modules with multi-parameter..." test to assert on returned type
5
.js
test
apache-2.0
dwyl/aws-sdk-mock
826
<NME> README.md <BEF> # aws-sdk-mock AWSome mocks for Javascript aws-sdk services. [![Build Status](https://img.shields.io/travis/dwyl/aws-sdk-mock/master.svg?style=flat-square)](https://travis-ci.org/dwyl/aws-sdk-mock) [![codecov.io](https://img.shields.io/codecov/c/github/dwyl/aws-sdk-mock/master.svg?style=flat-squ...
52
Merge pull request #187 from wzr1337/wzr1337-patch-1-typescript-example
0
.md
md
apache-2.0
dwyl/aws-sdk-mock
827
<NME> README.md <BEF> # aws-sdk-mock AWSome mocks for Javascript aws-sdk services. [![Build Status](https://img.shields.io/travis/dwyl/aws-sdk-mock/master.svg?style=flat-square)](https://travis-ci.org/dwyl/aws-sdk-mock) [![codecov.io](https://img.shields.io/codecov/c/github/dwyl/aws-sdk-mock/master.svg?style=flat-squ...
52
Merge pull request #187 from wzr1337/wzr1337-patch-1-typescript-example
0
.md
md
apache-2.0
dwyl/aws-sdk-mock
828
<NME> README.md <BEF> # aws-sdk-mock AWSome mocks for Javascript aws-sdk services. [![Build Status](https://img.shields.io/travis/dwyl/aws-sdk-mock/master.svg?style=flat-square)](https://travis-ci.org/dwyl/aws-sdk-mock) [![codecov.io](https://img.shields.io/codecov/c/github/dwyl/aws-sdk-mock/master.svg?style=flat-squ...
24
Merge pull request #223 from TastefulElk/master
24
.md
md
apache-2.0
dwyl/aws-sdk-mock
829
<NME> README.md <BEF> # aws-sdk-mock AWSome mocks for Javascript aws-sdk services. [![Build Status](https://img.shields.io/travis/dwyl/aws-sdk-mock/master.svg?style=flat-square)](https://travis-ci.org/dwyl/aws-sdk-mock) [![codecov.io](https://img.shields.io/codecov/c/github/dwyl/aws-sdk-mock/master.svg?style=flat-squ...
24
Merge pull request #223 from TastefulElk/master
24
.md
md
apache-2.0
dwyl/aws-sdk-mock
830
<NME> NativeMethods.cs <BEF> using System; using System.Runtime.InteropServices; [module: DefaultCharSet(CharSet.Unicode)] namespace HidLibrary { internal static class NativeMethods { internal const int FILE_FLAG_OVERLAPPED = 0x40000000; internal const short FILE_SHARE_READ = 0x1; int...
9
Fix for #3 and #23 the blocking CloseDevice()
3
.cs
cs
mit
mikeobrien/HidLibrary
831
<NME> NativeMethods.cs <BEF> using System; using System.Runtime.InteropServices; [module: DefaultCharSet(CharSet.Unicode)] namespace HidLibrary { internal static class NativeMethods { internal const int FILE_FLAG_OVERLAPPED = 0x40000000; internal const short FILE_SHARE_READ = 0x1; int...
9
Fix for #3 and #23 the blocking CloseDevice()
3
.cs
cs
mit
mikeobrien/HidLibrary
832
<NME> HidReport.cs <BEF> using System; namespace HidLibrary { public class HidReport { private byte _reportId; private byte[] _data = new byte[] {}; private readonly HidDeviceData.ReadStatus _status; public HidReport(int reportSize) { Array.Resize(ref _...
1
Fixes #26 reported by @marekr.
1
.cs
cs
mit
mikeobrien/HidLibrary
833
<NME> HidReport.cs <BEF> using System; namespace HidLibrary { public class HidReport { private byte _reportId; private byte[] _data = new byte[] {}; private readonly HidDeviceData.ReadStatus _status; public HidReport(int reportSize) { Array.Resize(ref _...
1
Fixes #26 reported by @marekr.
1
.cs
cs
mit
mikeobrien/HidLibrary
834
<NME> HidLibrary.nuspec <BEF> <?xml version="1.0" encoding="UTF-8"?> <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> <metadata> <id>hidlibrary</id> <version>$version$</version> <title>Hid Library</title> <authors>Mike O'Brien</authors> <description>This libr...
5
Add netstandard2 target to nuspec file.
0
.nuspec
nuspec
mit
mikeobrien/HidLibrary
835
<NME> HidLibrary.nuspec <BEF> <?xml version="1.0" encoding="UTF-8"?> <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> <metadata> <id>hidlibrary</id> <version>$version$</version> <title>Hid Library</title> <authors>Mike O'Brien</authors> <description>This libr...
5
Add netstandard2 target to nuspec file.
0
.nuspec
nuspec
mit
mikeobrien/HidLibrary
836
<NME> NativeMethods.cs <BEF> using System; using System.Runtime.InteropServices; [module: DefaultCharSet(CharSet.Unicode)] namespace HidLibrary { internal static class NativeMethods { internal const int FILE_FLAG_OVERLAPPED = 0x40000000; internal const short FILE_SHARE_READ = 0x1; int...
3
Fixed WriteReport stalling problem on Windows 10 .NET4.6.2
3
.cs
cs
mit
mikeobrien/HidLibrary
837
<NME> NativeMethods.cs <BEF> using System; using System.Runtime.InteropServices; [module: DefaultCharSet(CharSet.Unicode)] namespace HidLibrary { internal static class NativeMethods { internal const int FILE_FLAG_OVERLAPPED = 0x40000000; internal const short FILE_SHARE_READ = 0x1; int...
3
Fixed WriteReport stalling problem on Windows 10 .NET4.6.2
3
.cs
cs
mit
mikeobrien/HidLibrary
838
<NME> README.md <BEF> <h3>NOTE: Support is VERY limited for this library. It is almost impossible to troubleshoot issues with so many devices and configurations. The community may be able to offer some assistance <i>but you will largely be on your own</i>. If you submit an issue, please include a relevant code snippet ...
1
Updated the readme
1
.md
md
mit
mikeobrien/HidLibrary
839
<NME> README.md <BEF> <h3>NOTE: Support is VERY limited for this library. It is almost impossible to troubleshoot issues with so many devices and configurations. The community may be able to offer some assistance <i>but you will largely be on your own</i>. If you submit an issue, please include a relevant code snippet ...
1
Updated the readme
1
.md
md
mit
mikeobrien/HidLibrary
840
<NME> ErrorKeyValuePairTests.java <BEF> package com.github.structlog4j; import static org.junit.Assert.*; import com.github.structlog4j.samples.TestSecurityContext; import oracle.jrockit.jfr.jdkevents.ThrowableTracer; import org.junit.Before; import org.junit.Test; import org.slf4j.impl.LogEntry; import org.slf4j.imp...
2
0.2: added mandatory context supplier
1
.java
java
mit
jacek99/structlog4j
841
<NME> README.md <BEF> # structlog4j Structured logging API for Java, with default logback implementation Just pass in key/value pairs as parameters (all keys **must** be String, values can be anything), e.g. log.info("Starting processing", "user", securityContext.getPrincipal().getName(), ...
112
Updated docs
2
.md
md
mit
jacek99/structlog4j
842
<NME> NativeMethods.cs <BEF> using System; using System.Runtime.InteropServices; [module: DefaultCharSet(CharSet.Unicode)] namespace HidLibrary { internal static class NativeMethods { internal const int FILE_FLAG_OVERLAPPED = 0x40000000; internal const short FILE_SHARE_READ = 0x1; int...
5
Fixes for ReadReport timeouts and lost reports after wait timeouts (#80)
2
.cs
cs
mit
mikeobrien/HidLibrary
843
<NME> NativeMethods.cs <BEF> using System; using System.Runtime.InteropServices; [module: DefaultCharSet(CharSet.Unicode)] namespace HidLibrary { internal static class NativeMethods { internal const int FILE_FLAG_OVERLAPPED = 0x40000000; internal const short FILE_SHARE_READ = 0x1; int...
5
Fixes for ReadReport timeouts and lost reports after wait timeouts (#80)
2
.cs
cs
mit
mikeobrien/HidLibrary
844
<NME> HidDevice.cs <BEF> using System; using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; namespace HidLibrary { public class HidDevice : IHidDevice { public event InsertedEventHandler Inserted; public event RemovedEventHandler Removed; private...
1
Function was leaking handles. I am no professional coder but this catched my eye. Patch fixed it for me.
0
.cs
cs
mit
mikeobrien/HidLibrary
845
<NME> HidDevice.cs <BEF> using System; using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; namespace HidLibrary { public class HidDevice : IHidDevice { public event InsertedEventHandler Inserted; public event RemovedEventHandler Removed; private...
1
Function was leaking handles. I am no professional coder but this catched my eye. Patch fixed it for me.
0
.cs
cs
mit
mikeobrien/HidLibrary
846
<NME> build.gradle <BEF> apply plugin: 'java' repositories { mavenCentral() } dependencies { // Lombok is KING compileOnly "org.projectlombok:lombok:$lombokVersion" compile "org.slf4j:slf4j-api:$slf4jVersion" testCompile project(":structlog4j-test") testCompileOnly "org.projectlombok:lombok:...
0
Gradle fixes for Bintray jcenter
6
.gradle
gradle
mit
jacek99/structlog4j
847
<NME> NativeMethods.cs <BEF> using System; using System.Runtime.InteropServices; [module: DefaultCharSet(CharSet.Unicode)] namespace HidLibrary { internal static class NativeMethods { internal const int FILE_FLAG_OVERLAPPED = 0x40000000; internal const short FILE_SHARE_READ = 0x1; int...
1
Merge pull request #34 from ptrandem/master
1
.cs
cs
mit
mikeobrien/HidLibrary
848
<NME> NativeMethods.cs <BEF> using System; using System.Runtime.InteropServices; [module: DefaultCharSet(CharSet.Unicode)] namespace HidLibrary { internal static class NativeMethods { internal const int FILE_FLAG_OVERLAPPED = 0x40000000; internal const short FILE_SHARE_READ = 0x1; int...
1
Merge pull request #34 from ptrandem/master
1
.cs
cs
mit
mikeobrien/HidLibrary
849
<NME> README.md <BEF> <h3>NOTE: Support is VERY limited for this library. It is almost impossible to troubleshoot issues with so many devices and configurations. The community may be able to offer some assistance <i>but you will largely be on your own</i>. If you submit an issue, please include a relevant code snippet ...
2
Updated readme.
0
.md
md
mit
mikeobrien/HidLibrary
850
<NME> README.md <BEF> <h3>NOTE: Support is VERY limited for this library. It is almost impossible to troubleshoot issues with so many devices and configurations. The community may be able to offer some assistance <i>but you will largely be on your own</i>. If you submit an issue, please include a relevant code snippet ...
2
Updated readme.
0
.md
md
mit
mikeobrien/HidLibrary
851
<NME> NativeMethods.cs <BEF> using System; using System.Runtime.InteropServices; using System.Text; namespace HidLibrary { namespace HidLibrary { internal static class NativeMethods { internal const int FILE_FLAG_OVERLAPPED = 0x40000000; internal const short FILE_SHARE_READ = 0x1; ...
3
Changed implementation of Product, Manufacturer, and SerialNumber getters to match the rest of the API
4
.cs
cs
mit
mikeobrien/HidLibrary
852
<NME> NativeMethods.cs <BEF> using System; using System.Runtime.InteropServices; using System.Text; namespace HidLibrary { namespace HidLibrary { internal static class NativeMethods { internal const int FILE_FLAG_OVERLAPPED = 0x40000000; internal const short FILE_SHARE_READ = 0x1; ...
3
Changed implementation of Product, Manufacturer, and SerialNumber getters to match the rest of the API
4
.cs
cs
mit
mikeobrien/HidLibrary
853
<NME> HidLibrary.csproj <BEF> <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFrameworks>net20;net35;net40;net45;netstandard2</TargetFrameworks> <Version>3.2.49</Version> <Company>Ultraviolet Catastrophe</Company> <Copyright>Copyright © 2011 Ultraviolet Catastrophe</Copyright> <Pac...
3
Update copyright range
2
.csproj
csproj
mit
mikeobrien/HidLibrary
854
<NME> HidLibrary.csproj <BEF> <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFrameworks>net20;net35;net40;net45;netstandard2</TargetFrameworks> <Version>3.2.49</Version> <Company>Ultraviolet Catastrophe</Company> <Copyright>Copyright © 2011 Ultraviolet Catastrophe</Copyright> <Pac...
3
Update copyright range
2
.csproj
csproj
mit
mikeobrien/HidLibrary
855
<NME> HidDevice.cs <BEF> using System; using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; namespace HidLibrary { public class HidDevice : IHidDevice { public event InsertedEventHandler Inserted; public event RemovedEventHandler Removed; private...
3
Fix #62: Increase buffer size for device string read operations.
3
.cs
cs
mit
mikeobrien/HidLibrary
856
<NME> HidDevice.cs <BEF> using System; using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; namespace HidLibrary { public class HidDevice : IHidDevice { public event InsertedEventHandler Inserted; public event RemovedEventHandler Removed; private...
3
Fix #62: Increase buffer size for device string read operations.
3
.cs
cs
mit
mikeobrien/HidLibrary
857
<NME> xunit.runner.visualstudio.targets <BEF> ADDFILE <MSG> Added missing packages because I don't have package restore setup for this build. <DFF> @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <Target Name="AddX...
20
Added missing packages because I don't have package restore setup for this build.
0
.targets
runner
mit
mikeobrien/HidLibrary
858
<NME> xunit.runner.visualstudio.targets <BEF> ADDFILE <MSG> Added missing packages because I don't have package restore setup for this build. <DFF> @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <Target Name="AddX...
20
Added missing packages because I don't have package restore setup for this build.
0
.targets
runner
mit
mikeobrien/HidLibrary
859
<NME> README.md <BEF> <h3>NOTE: Support is VERY limited for this library. It is almost impossible to troubleshoot issues with so many devices and configurations. The community may be able to offer some assistance <i>but you will largely be on your own</i>. If you submit an issue, please include a relevant code snippet ...
2
Update readme
0
.md
md
mit
mikeobrien/HidLibrary
860
<NME> README.md <BEF> <h3>NOTE: Support is VERY limited for this library. It is almost impossible to troubleshoot issues with so many devices and configurations. The community may be able to offer some assistance <i>but you will largely be on your own</i>. If you submit an issue, please include a relevant code snippet ...
2
Update readme
0
.md
md
mit
mikeobrien/HidLibrary
861
<NME> HidLibrary.csproj <BEF> <?xml version="1.0" encoding="utf-8"?> <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <ProductVersion>8.0.30703</ProductVersion> ...
6
Remove things that the SDK already takes care of
54
.csproj
csproj
mit
mikeobrien/HidLibrary
862
<NME> HidLibrary.csproj <BEF> <?xml version="1.0" encoding="utf-8"?> <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <ProductVersion>8.0.30703</ProductVersion> ...
6
Remove things that the SDK already takes care of
54
.csproj
csproj
mit
mikeobrien/HidLibrary
863
<NME> NativeMethods.cs <BEF> using System; using System.Runtime.InteropServices; namespace HidLibrary { internal static class NativeMethods { internal const int FILE_FLAG_OVERLAPPED = 0x40000000; internal const short FILE_SHARE_READ = 0x1; internal const short FILE_SHARE_WRITE = ...
18
Merge pull request #119 from Techsola/unicode
16
.cs
cs
mit
mikeobrien/HidLibrary
864
<NME> NativeMethods.cs <BEF> using System; using System.Runtime.InteropServices; namespace HidLibrary { internal static class NativeMethods { internal const int FILE_FLAG_OVERLAPPED = 0x40000000; internal const short FILE_SHARE_READ = 0x1; internal const short FILE_SHARE_WRITE = ...
18
Merge pull request #119 from Techsola/unicode
16
.cs
cs
mit
mikeobrien/HidLibrary
865
<NME> NativeMethods.cs <BEF> using System; using System.Runtime.InteropServices; [module: DefaultCharSet(CharSet.Unicode)] namespace HidLibrary { internal static class NativeMethods { internal const int FILE_FLAG_OVERLAPPED = 0x40000000; internal const short FILE_SHARE_READ = 0x1; int...
2
Remove the intermediate byte[] heap allocation
2
.cs
cs
mit
mikeobrien/HidLibrary
866
<NME> NativeMethods.cs <BEF> using System; using System.Runtime.InteropServices; [module: DefaultCharSet(CharSet.Unicode)] namespace HidLibrary { internal static class NativeMethods { internal const int FILE_FLAG_OVERLAPPED = 0x40000000; internal const short FILE_SHARE_READ = 0x1; int...
2
Remove the intermediate byte[] heap allocation
2
.cs
cs
mit
mikeobrien/HidLibrary
867
<NME> AssemblyInfo.cs <BEF> ADDFILE <MSG> Added two simple examples of communicating with a Griffin PowerMate. <DFF> @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the follo...
36
Added two simple examples of communicating with a Griffin PowerMate.
0
.cs
cs
mit
mikeobrien/HidLibrary
868
<NME> AssemblyInfo.cs <BEF> ADDFILE <MSG> Added two simple examples of communicating with a Griffin PowerMate. <DFF> @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the follo...
36
Added two simple examples of communicating with a Griffin PowerMate.
0
.cs
cs
mit
mikeobrien/HidLibrary
869
<NME> SLoggerFactory.java <BEF> package com.github.structlog4j; import lombok.experimental.UtilityClass; /** * Structured logger factory * @author Jacek Furmankiewicz */ @UtilityClass public class SLoggerFactory { /** * Returns logger for explicit name */ public ILogger getLogger(String name) { ...
4
updated docs
0
.java
java
mit
jacek99/structlog4j
870
<NME> NativeMethods.cs <BEF> using System; using System.Runtime.InteropServices; [module: DefaultCharSet(CharSet.Unicode)] namespace HidLibrary { internal static class NativeMethods { internal const int FILE_FLAG_OVERLAPPED = 0x40000000; internal const short FILE_SHARE_READ = 0x1; int...
1
#33 - Added GetFeature functionality
1
.cs
cs
mit
mikeobrien/HidLibrary
871
<NME> NativeMethods.cs <BEF> using System; using System.Runtime.InteropServices; [module: DefaultCharSet(CharSet.Unicode)] namespace HidLibrary { internal static class NativeMethods { internal const int FILE_FLAG_OVERLAPPED = 0x40000000; internal const short FILE_SHARE_READ = 0x1; int...
1
#33 - Added GetFeature functionality
1
.cs
cs
mit
mikeobrien/HidLibrary
872
<NME> Main.Designer.cs <BEF> namespace TestHarness { partial class Main { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </...
16
Merge pull request #120 from Techsola/housekeeping
16
.cs
Designer
mit
mikeobrien/HidLibrary
873
<NME> Main.Designer.cs <BEF> namespace TestHarness { partial class Main { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </...
16
Merge pull request #120 from Techsola/housekeeping
16
.cs
Designer
mit
mikeobrien/HidLibrary
874
<NME> NativeMethods.cs <BEF> using System; using System.Runtime.InteropServices; [module: DefaultCharSet(CharSet.Unicode)] namespace HidLibrary { internal static class NativeMethods { internal const int FILE_FLAG_OVERLAPPED = 0x40000000; internal const short FILE_SHARE_READ = 0x1; int...
3
Merge pull request #106 from vostrenkov/master
3
.cs
cs
mit
mikeobrien/HidLibrary
875
<NME> NativeMethods.cs <BEF> using System; using System.Runtime.InteropServices; [module: DefaultCharSet(CharSet.Unicode)] namespace HidLibrary { internal static class NativeMethods { internal const int FILE_FLAG_OVERLAPPED = 0x40000000; internal const short FILE_SHARE_READ = 0x1; int...
3
Merge pull request #106 from vostrenkov/master
3
.cs
cs
mit
mikeobrien/HidLibrary
876
<NME> HidDevice.cs <BEF> using System; using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; namespace HidLibrary { public class HidDevice : IHidDevice { public event InsertedEventHandler Inserted; public event RemovedEventHandler Removed; private...
3
Merge pull request #64 from amullins83/master
3
.cs
cs
mit
mikeobrien/HidLibrary
877
<NME> HidDevice.cs <BEF> using System; using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; namespace HidLibrary { public class HidDevice : IHidDevice { public event InsertedEventHandler Inserted; public event RemovedEventHandler Removed; private...
3
Merge pull request #64 from amullins83/master
3
.cs
cs
mit
mikeobrien/HidLibrary
878
<NME> NativeMethods.cs <BEF> using System; using System.Runtime.InteropServices; [module: DefaultCharSet(CharSet.Unicode)] namespace HidLibrary { internal static class NativeMethods { internal const int FILE_FLAG_OVERLAPPED = 0x40000000; internal const short FILE_SHARE_READ = 0x1; int...
7
Merge pull request #18 from thammer/master
7
.cs
cs
mit
mikeobrien/HidLibrary
879
<NME> NativeMethods.cs <BEF> using System; using System.Runtime.InteropServices; [module: DefaultCharSet(CharSet.Unicode)] namespace HidLibrary { internal static class NativeMethods { internal const int FILE_FLAG_OVERLAPPED = 0x40000000; internal const short FILE_SHARE_READ = 0x1; int...
7
Merge pull request #18 from thammer/master
7
.cs
cs
mit
mikeobrien/HidLibrary
880
<NME> HidFastReadDevice.cs <BEF> using System.Threading.Tasks; namespace HidLibrary { public class HidFastReadDevice : HidDevice { internal HidFastReadDevice(string devicePath, string description = null) : base(devicePath, description) { } // FastRead assumes that the device is co...
2
Add NET5_0 or greater compatibility (#133)
2
.cs
cs
mit
mikeobrien/HidLibrary
881
<NME> HidFastReadDevice.cs <BEF> using System.Threading.Tasks; namespace HidLibrary { public class HidFastReadDevice : HidDevice { internal HidFastReadDevice(string devicePath, string description = null) : base(devicePath, description) { } // FastRead assumes that the device is co...
2
Add NET5_0 or greater compatibility (#133)
2
.cs
cs
mit
mikeobrien/HidLibrary
882
<NME> TestLoggerFactory.java <BEF> ADDFILE <MSG> JUnit tests added for key/value pairs <DFF> @@ -0,0 +1,16 @@ +package org.slf4j.impl; + +import org.slf4j.ILoggerFactory; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** + * Test Logger Factory for tests + * @author Jacek Furmankiewicz + */ +public cla...
16
JUnit tests added for key/value pairs
0
.java
java
mit
jacek99/structlog4j
883
<NME> Tests.csproj <BEF> <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' =...
22
Make HidDevices.EnumerateDevices internal for use with other enumerators. Add HidFastReadEnumerator. Convert NUnit tests to XUnit.
9
.csproj
csproj
mit
mikeobrien/HidLibrary
884
<NME> Tests.csproj <BEF> <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' =...
22
Make HidDevices.EnumerateDevices internal for use with other enumerators. Add HidFastReadEnumerator. Convert NUnit tests to XUnit.
9
.csproj
csproj
mit
mikeobrien/HidLibrary
885
<NME> Extensions.cs <BEF> using System.Text; namespace HidLibrary { public static class Extensions { public static string ToUTF8String(this byte[] buffer) { var value = Encoding.UTF8.GetString(buffer); return value.Remove(value.IndexOf((char)0)); } ...
9
Obsolete and hide unused extension methods that were unnecessarily exposed in previous releases
1
.cs
cs
mit
mikeobrien/HidLibrary
886
<NME> Extensions.cs <BEF> using System.Text; namespace HidLibrary { public static class Extensions { public static string ToUTF8String(this byte[] buffer) { var value = Encoding.UTF8.GetString(buffer); return value.Remove(value.IndexOf((char)0)); } ...
9
Obsolete and hide unused extension methods that were unnecessarily exposed in previous releases
1
.cs
cs
mit
mikeobrien/HidLibrary
887
<NME> NativeMethods.cs <BEF> using System; using System.Runtime.InteropServices; [module: DefaultCharSet(CharSet.Unicode)] namespace HidLibrary { internal static class NativeMethods { internal const int FILE_FLAG_OVERLAPPED = 0x40000000; internal const short FILE_SHARE_READ = 0x1; int...
3
Merge pull request #127 from mjmatthiesen/mjmatthiesen/fix-native-methods
3
.cs
cs
mit
mikeobrien/HidLibrary
888
<NME> NativeMethods.cs <BEF> using System; using System.Runtime.InteropServices; [module: DefaultCharSet(CharSet.Unicode)] namespace HidLibrary { internal static class NativeMethods { internal const int FILE_FLAG_OVERLAPPED = 0x40000000; internal const short FILE_SHARE_READ = 0x1; int...
3
Merge pull request #127 from mjmatthiesen/mjmatthiesen/fix-native-methods
3
.cs
cs
mit
mikeobrien/HidLibrary
889
<NME> README.md <BEF> ![Structlog4J](img/logo.png) Structured logging Java, on top of the SLF4J API. Designed to generate easily parsable log messages for consumption in services such as LogStash, Splunk, ElasticSearch, etc. ## Adding to your project The artifacts for this library are published to the popular Bintra...
5
Updated docs
5
.md
md
mit
jacek99/structlog4j
890
<NME> IHidDevice.cs <BEF> using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace HidLibrary { public delegate void InsertedEventHandler(); public delegate void RemovedEventHandler(); public enum DeviceMode { NonOverlapped = 0, Overlapped = 1 ...
17
Merge pull request #51 from sblakemore/async_interface
3
.cs
cs
mit
mikeobrien/HidLibrary
891
<NME> IHidDevice.cs <BEF> using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace HidLibrary { public delegate void InsertedEventHandler(); public delegate void RemovedEventHandler(); public enum DeviceMode { NonOverlapped = 0, Overlapped = 1 ...
17
Merge pull request #51 from sblakemore/async_interface
3
.cs
cs
mit
mikeobrien/HidLibrary
892
<NME> README.md <BEF> <h3>NOTE: Support is VERY limited for this library. It is almost impossible to troubleshoot issues with so many devices and configurations. The community may be able to offer some assistance <i>but you will largely be on your own</i>. If you submit an issue, please include a relevant code snippet ...
17
Added contributors to the readme.
2
.md
md
mit
mikeobrien/HidLibrary
893
<NME> README.md <BEF> <h3>NOTE: Support is VERY limited for this library. It is almost impossible to troubleshoot issues with so many devices and configurations. The community may be able to offer some assistance <i>but you will largely be on your own</i>. If you submit an issue, please include a relevant code snippet ...
17
Added contributors to the readme.
2
.md
md
mit
mikeobrien/HidLibrary
894
<NME> Tests.csproj <BEF> <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="..\packages\xunit.runner.visualstudio.2.1.0\build\net20\xunit.runner.visualstudio.props" Condition="Exists('..\packages\xu...
8
Target Net Standard 2.0 (#105)
92
.csproj
csproj
mit
mikeobrien/HidLibrary
895
<NME> Tests.csproj <BEF> <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="..\packages\xunit.runner.visualstudio.2.1.0\build\net20\xunit.runner.visualstudio.props" Condition="Exists('..\packages\xu...
8
Target Net Standard 2.0 (#105)
92
.csproj
csproj
mit
mikeobrien/HidLibrary
896
<NME> README.md <BEF> ![Structlog4J](img/logo.png) Structured logging Java, on top of the SLF4J API. Designed to generate easily parsable log messages for consumption in services such as LogStash, Splunk, ElasticSearch, etc. ## Adding to your project The artifacts for this library are published to the popular Bintra...
1
fixed up docs
1
.md
md
mit
jacek99/structlog4j
897
<NME> HidDevices.cs <BEF> using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Runtime.InteropServices; namespace HidLibrary { public class HidDevices { private static Guid _hidClassGuid = Guid.Empty; public static bool IsConnected(string d...
6
Add Override to Enumerate by UsagePage (#124)
0
.cs
cs
mit
mikeobrien/HidLibrary
898
<NME> HidDevices.cs <BEF> using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Runtime.InteropServices; namespace HidLibrary { public class HidDevices { private static Guid _hidClassGuid = Guid.Empty; public static bool IsConnected(string d...
6
Add Override to Enumerate by UsagePage (#124)
0
.cs
cs
mit
mikeobrien/HidLibrary
899
<NME> StructLog4J.java <BEF> package com.github.structlog4j; import lombok.experimental.UtilityClass; import java.util.Optional; import java.util.function.Function; /** * Common settings * * @author Jacek Furmakiewicz */ @UtilityClass // Lombok public class StructLog4J { static final String VALUE_NULL = "nu...
0
cleanup
2
.java
java
mit
jacek99/structlog4j