file_path stringlengths 3 280 | file_language stringclasses 66
values | content stringlengths 1 1.04M | repo_name stringlengths 5 92 | repo_stars int64 0 154k | repo_description stringlengths 0 402 | repo_primary_language stringclasses 108
values | developer_username stringlengths 1 25 | developer_name stringlengths 0 30 | developer_company stringlengths 0 82 |
|---|---|---|---|---|---|---|---|---|---|
ssce_messages_not_processed/launch/run_until_fail.launch.py | Python | # Copyright 2023 Open Source Robotics Foundation, 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... | wjwwood/ssce_messages_not_processed | 0 | Python | wjwwood | William Woodall | ||
ssce_messages_not_processed/scripts/sender.py | Python | #!/usr/bin/env python3
# Copyright 2023 Open Source Robotics Foundation, 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 req... | wjwwood/ssce_messages_not_processed | 0 | Python | wjwwood | William Woodall | ||
ssce_messages_not_processed/src/receiver.cpp | C++ | // Copyright 2023 Open Source Robotics Foundation, 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 appli... | wjwwood/ssce_messages_not_processed | 0 | Python | wjwwood | William Woodall | ||
examples/countdown_plugin.py | Python | import imgviz
import numpy as np
from imshow.plugins import base
class Plugin(base.Plugin):
@staticmethod
def add_arguments(parser):
# define additional command line options
parser.add_argument(
"--number", type=int, default=10, help="number to count down from"
)
numb... | wkentaro/imshow | 13 | Imshow - Flexible and Customizable Image Display with Python | Python | wkentaro | Kentaro Wada | mujin |
imshow/__init__.py | Python | import importlib.metadata
from imshow._imshow import imshow # noqa: F401
__version__ = importlib.metadata.version("imshow")
| wkentaro/imshow | 13 | Imshow - Flexible and Customizable Image Display with Python | Python | wkentaro | Kentaro Wada | mujin |
imshow/__main__.py | Python | import argparse
import importlib.machinery
import os
import sys
import imshow
import imshow.plugins
from imshow import _args
def main():
parser = argparse.ArgumentParser(add_help=False)
parser.add_argument(
"--help",
"-h",
action="store_true",
help="show this help message and ... | wkentaro/imshow | 13 | Imshow - Flexible and Customizable Image Display with Python | Python | wkentaro | Kentaro Wada | mujin |
imshow/_args.py | Python | import glob
import os
from collections.abc import Iterable
# https://github.com/pallets/click/blob/cab9483a30379f9b8e3ddb72d5a4e88f88d517b6/src/click/utils.py#L578 # noqa: E501
def expand_args(
args: Iterable[str],
*,
user: bool = True,
env: bool = True,
glob_recursive: bool = True,
) -> list[str... | wkentaro/imshow | 13 | Imshow - Flexible and Customizable Image Display with Python | Python | wkentaro | Kentaro Wada | mujin |
imshow/_generators.py | Python | import types
from typing import Any
class CachedGenerator:
def __init__(self, generator: types.GeneratorType) -> None:
self._exhausted: bool = False
self._generator = generator
self._yielded: list = []
@property
def exhausted(self) -> bool:
return self._exhausted
def ... | wkentaro/imshow | 13 | Imshow - Flexible and Customizable Image Display with Python | Python | wkentaro | Kentaro Wada | mujin |
imshow/_imshow.py | Python | import sys
import types
from collections.abc import Callable
from typing import Any
import numpy as np
import pyglet
from imshow import _generators
from imshow import _pyglet
def imshow(
items: Any,
*,
keymap: dict | None = None,
get_image_from_item: Callable | None = None,
get_title_from_item: ... | wkentaro/imshow | 13 | Imshow - Flexible and Customizable Image Display with Python | Python | wkentaro | Kentaro Wada | mujin |
imshow/_paths.py | Python | import os.path
import PIL.Image
def get_image_filepaths(files_or_dirs, recursive=False, filter_by_ext=True):
supported_image_extensions = {
ext
for ext, fmt in PIL.Image.registered_extensions().items()
if fmt in PIL.Image.OPEN
}
for file_or_dir in files_or_dirs:
if os.path... | wkentaro/imshow | 13 | Imshow - Flexible and Customizable Image Display with Python | Python | wkentaro | Kentaro Wada | mujin |
imshow/_pyglet.py | Python | import numpy as np
import PIL.Image
import pyglet
def initialize_window(
aspect_ratio: float, caption: str | None = None
) -> pyglet.window.Window:
display: pyglet.canvas.Display = pyglet.canvas.Display()
screen: pyglet.canvas.Screen = display.get_default_screen()
max_window_width: int = int(round(sc... | wkentaro/imshow | 13 | Imshow - Flexible and Customizable Image Display with Python | Python | wkentaro | Kentaro Wada | mujin |
imshow/plugins/__init__.py | Python | # flake8: noqa: F401
from imshow.plugins import base
from imshow.plugins import mark
from imshow.plugins import tile
| wkentaro/imshow | 13 | Imshow - Flexible and Customizable Image Display with Python | Python | wkentaro | Kentaro Wada | mujin |
imshow/plugins/base.py | Python | import imgviz
import numpy as np
from imshow import _paths
class Plugin:
@staticmethod
def add_arguments(parser):
parser.add_argument(
"files_or_dirs",
nargs="*",
help="files or dirs that contain images",
)
parser.add_argument(
"--recurs... | wkentaro/imshow | 13 | Imshow - Flexible and Customizable Image Display with Python | Python | wkentaro | Kentaro Wada | mujin |
imshow/plugins/mark.py | Python | import argparse
import os
import sys
import numpy as np
import pyglet
from imshow.plugins import base
class Plugin(base.Plugin):
@staticmethod
def add_arguments(parser: argparse.ArgumentParser):
base.Plugin.add_arguments(parser=parser)
parser.add_argument(
"--mark-file",
... | wkentaro/imshow | 13 | Imshow - Flexible and Customizable Image Display with Python | Python | wkentaro | Kentaro Wada | mujin |
imshow/plugins/tile.py | Python | import itertools
import os
import imgviz
import numpy as np
from imshow.plugins import base
try:
from itertools import batched # type: ignore[attr-defined]
except ImportError:
def batched(iterable, n): # type: ignore[no-redef]
if n < 1:
raise ValueError("n must be >= 1")
return... | wkentaro/imshow | 13 | Imshow - Flexible and Customizable Image Display with Python | Python | wkentaro | Kentaro Wada | mujin |
jqk/__main__.py | Python | import argparse
import json
import os
import sys
import pkg_resources
import rich.console
import rich.pretty
import rich.text
class Key:
def __init__(self, jqkey):
self._jqkey = jqkey
def __repr__(self):
return f"\033[1;34m{self._jqkey}\033[0m"
class StrData:
def __init__(self, value):... | wkentaro/jqk-python | 3 | Render a JSON with jq patterns. Faster version in Rust -> https://github.com/wkentaro/jqk | Python | wkentaro | Kentaro Wada | mujin |
export_onnx.py | Python | #!/usr/bin/env python3
import pathlib
import typing
import imgviz
import numpy as np
import onnxruntime
import PIL.Image
import torch
from loguru import logger
from numpy.typing import NDArray
from osam._models.yoloworld.clip import tokenize
from torchvision.transforms import v2
from infer_torch import get_replace_f... | wkentaro/sam3-onnx | 49 | ONNX export and inference for SAM3. | Python | wkentaro | Kentaro Wada | mujin |
infer_onnx.py | Python | #!/usr/bin/env python3
import argparse
import pathlib
import sys
import typing
import cv2
import imgviz
import numpy as np
import onnxruntime
import PIL.Image
from loguru import logger
from numpy.typing import NDArray
from osam._models.yoloworld.clip import tokenize
def parse_args() -> argparse.Namespace:
parse... | wkentaro/sam3-onnx | 49 | ONNX export and inference for SAM3. | Python | wkentaro | Kentaro Wada | mujin |
infer_torch.py | Python | #!/usr/bin/env python3
import sys
import imgviz
import numpy as np
import PIL.Image
import torch
from loguru import logger
from infer_onnx import parse_args
def get_replace_freqs_cis(module):
if hasattr(module, "freqs_cis"):
freqs_cos = module.freqs_cis.real.float()
freqs_sin = module.freqs_cis... | wkentaro/sam3-onnx | 49 | ONNX export and inference for SAM3. | Python | wkentaro | Kentaro Wada | mujin |
.yarn/plugins/plugin-remove-postinstall.cjs | JavaScript | module.exports = {
name: 'plugin-remove-postinstall',
factory: () => ({
hooks: {
beforeWorkspacePacking(workspace, rawManifest) {
delete rawManifest.scripts.postinstall;
},
},
}),
};
| wojtekmaj/is-valid-ein | 2 | Check if a number is a valid Employer Identification Number (EIN) | TypeScript | wojtekmaj | Wojciech Maj | Rewardo, Codete |
src/index.spec.ts | TypeScript | import { describe, expect, it } from 'vitest';
import isValidEIN from './index.js';
describe('isValidEIN', () => {
it('returns false for no input', () => {
// @ts-expect-error-next-line
const result = isValidEIN();
expect(result).toBe(false);
});
it('returns false for non-numeric input', () => {
... | wojtekmaj/is-valid-ein | 2 | Check if a number is a valid Employer Identification Number (EIN) | TypeScript | wojtekmaj | Wojciech Maj | Rewardo, Codete |
src/index.ts | TypeScript | export default function isValidEIN(rawEin: string | number): boolean {
if (!rawEin) {
return false;
}
const rawString = rawEin.toString();
// reject any letters
if (/[a-z]/i.test(rawString)) {
return false;
}
// strip non-digit characters
const ein = rawString.replace(/\D/g, '');
// EIN mu... | wojtekmaj/is-valid-ein | 2 | Check if a number is a valid Employer Identification Number (EIN) | TypeScript | wojtekmaj | Wojciech Maj | Rewardo, Codete |
vitest.config.ts | TypeScript | import { defineConfig } from 'vitest/config';
import type { ViteUserConfig } from 'vitest/config';
const config: ViteUserConfig = defineConfig({
test: {
watch: false,
},
});
export default config;
| wojtekmaj/is-valid-ein | 2 | Check if a number is a valid Employer Identification Number (EIN) | TypeScript | wojtekmaj | Wojciech Maj | Rewardo, Codete |
.yarn/plugins/@yarnpkg/plugin-nolyfill.cjs | JavaScript | /* eslint-disable */
//prettier-ignore
module.exports = {
name: "@yarnpkg/plugin-nolyfill",
factory: function (require) {
"use strict";var plugin=(()=>{var p=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var l=(t=>typeof require<"u"?re... | wojtekmaj/react-docx | 1 | Render DOCX documents with React | TypeScript | wojtekmaj | Wojciech Maj | Rewardo, Codete |
.github/template-cleanup.sh | Shell | #!/bin/bash
IFS='/' read -ra REPOARR <<< "$GITHUB_REPOSITORY"
echo "Repository: ${REPOARR[0]}"
echo "Repository: ${REPOARR[1]}"
rm README.md
mv .github/template-cleanup/README.md README.md
rm .github/workflows/cleanup.yml
rm .github/template-cleanup.sh
sed -i -e "s~%REPOSITORY%~$GITHUB_REPOSITORY~g" README.md
sed -i ... | wojtekmaj/react-native-crash-on-missing-prettier | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/.eslintrc.js | JavaScript | module.exports = {
root: true,
extends: '@react-native',
};
| wojtekmaj/react-native-crash-on-missing-prettier | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/.prettierrc.js | JavaScript | module.exports = {
arrowParens: 'avoid',
singleQuote: true,
trailingComma: 'all',
};
| wojtekmaj/react-native-crash-on-missing-prettier | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/App.tsx | TypeScript (TSX) | /**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
*/
import { NewAppScreen } from '@react-native/new-app-screen';
import { StatusBar, StyleSheet, useColorScheme, View } from 'react-native';
import {
SafeAreaProvider,
useSafeAreaInsets,
} from 'react-native-safe-area-context'... | wojtekmaj/react-native-crash-on-missing-prettier | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/__tests__/App.test.tsx | TypeScript (TSX) | /**
* @format
*/
import React from 'react';
import ReactTestRenderer from 'react-test-renderer';
import App from '../App';
test('renders correctly', async () => {
await ReactTestRenderer.act(() => {
ReactTestRenderer.create(<App />);
});
});
| wojtekmaj/react-native-crash-on-missing-prettier | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/android/app/build.gradle | Gradle | apply plugin: "com.android.application"
apply plugin: "org.jetbrains.kotlin.android"
apply plugin: "com.facebook.react"
/**
* This is the configuration block to customize your React Native Android app.
* By default you don't need to apply any configuration, just uncomment the lines you need.
*/
react {
/* Folde... | wojtekmaj/react-native-crash-on-missing-prettier | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/android/app/src/main/java/com/reproducerapp/MainActivity.kt | Kotlin | package com.reproducerapp
import com.facebook.react.ReactActivity
import com.facebook.react.ReactActivityDelegate
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
import com.facebook.react.defaults.DefaultReactActivityDelegate
class MainActivity : ReactActivity() {
/**
* Returns... | wojtekmaj/react-native-crash-on-missing-prettier | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/android/app/src/main/java/com/reproducerapp/MainApplication.kt | Kotlin | package com.reproducerapp
import android.app.Application
import com.facebook.react.PackageList
import com.facebook.react.ReactApplication
import com.facebook.react.ReactHost
import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHos... | wojtekmaj/react-native-crash-on-missing-prettier | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/android/build.gradle | Gradle | buildscript {
ext {
buildToolsVersion = "36.0.0"
minSdkVersion = 24
compileSdkVersion = 36
targetSdkVersion = 36
ndkVersion = "27.1.12297006"
kotlinVersion = "2.1.20"
}
repositories {
google()
mavenCentral()
}
dependencies {
cla... | wojtekmaj/react-native-crash-on-missing-prettier | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/android/settings.gradle | Gradle | pluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") }
plugins { id("com.facebook.react.settings") }
extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() }
rootProject.name = 'ReproducerApp'
include ':app'
includeBuild('../node_modules/@react... | wojtekmaj/react-native-crash-on-missing-prettier | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/babel.config.js | JavaScript | module.exports = {
presets: ['module:@react-native/babel-preset'],
};
| wojtekmaj/react-native-crash-on-missing-prettier | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/index.js | JavaScript | /**
* @format
*/
import { AppRegistry } from 'react-native';
import App from './App';
import { name as appName } from './app.json';
AppRegistry.registerComponent(appName, () => App);
| wojtekmaj/react-native-crash-on-missing-prettier | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/ios/ReproducerApp/AppDelegate.swift | Swift | import UIKit
import React
import React_RCTAppDelegate
import ReactAppDependencyProvider
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
var reactNativeDelegate: ReactNativeDelegate?
var reactNativeFactory: RCTReactNativeFactory?
func application(
_ application: UIAppli... | wojtekmaj/react-native-crash-on-missing-prettier | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/jest.config.js | JavaScript | module.exports = {
preset: 'react-native',
};
| wojtekmaj/react-native-crash-on-missing-prettier | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/metro.config.js | JavaScript | const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
/**
* Metro configuration
* https://reactnative.dev/docs/metro
*
* @type {import('@react-native/metro-config').MetroConfig}
*/
const config = {};
module.exports = mergeConfig(getDefaultConfig(__dirname), config);
| wojtekmaj/react-native-crash-on-missing-prettier | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/.eslintrc.js | JavaScript | module.exports = {
root: true,
extends: '@react-native',
};
| wojtekmaj/react-native-missing-dom-node-apis-types | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/.prettierrc.js | JavaScript | module.exports = {
arrowParens: 'avoid',
singleQuote: true,
trailingComma: 'all',
};
| wojtekmaj/react-native-missing-dom-node-apis-types | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/App.tsx | TypeScript (TSX) | /**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
*/
import { NewAppScreen } from '@react-native/new-app-screen';
import { StatusBar, StyleSheet, useColorScheme, View } from 'react-native';
import {
SafeAreaProvider,
useSafeAreaInsets,
} from 'react-native-safe-area-context'... | wojtekmaj/react-native-missing-dom-node-apis-types | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/__tests__/App.test.tsx | TypeScript (TSX) | /**
* @format
*/
import React from 'react';
import ReactTestRenderer from 'react-test-renderer';
import App from '../App';
test('renders correctly', async () => {
await ReactTestRenderer.act(() => {
ReactTestRenderer.create(<App />);
});
});
| wojtekmaj/react-native-missing-dom-node-apis-types | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/android/app/build.gradle | Gradle | apply plugin: "com.android.application"
apply plugin: "org.jetbrains.kotlin.android"
apply plugin: "com.facebook.react"
/**
* This is the configuration block to customize your React Native Android app.
* By default you don't need to apply any configuration, just uncomment the lines you need.
*/
react {
/* Folde... | wojtekmaj/react-native-missing-dom-node-apis-types | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/android/app/src/main/java/com/reproducerapp/MainActivity.kt | Kotlin | package com.reproducerapp
import com.facebook.react.ReactActivity
import com.facebook.react.ReactActivityDelegate
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
import com.facebook.react.defaults.DefaultReactActivityDelegate
class MainActivity : ReactActivity() {
/**
* Returns... | wojtekmaj/react-native-missing-dom-node-apis-types | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/android/app/src/main/java/com/reproducerapp/MainApplication.kt | Kotlin | package com.reproducerapp
import android.app.Application
import com.facebook.react.PackageList
import com.facebook.react.ReactApplication
import com.facebook.react.ReactHost
import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHos... | wojtekmaj/react-native-missing-dom-node-apis-types | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/android/build.gradle | Gradle | buildscript {
ext {
buildToolsVersion = "36.0.0"
minSdkVersion = 24
compileSdkVersion = 36
targetSdkVersion = 36
ndkVersion = "27.1.12297006"
kotlinVersion = "2.1.20"
}
repositories {
google()
mavenCentral()
}
dependencies {
cla... | wojtekmaj/react-native-missing-dom-node-apis-types | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/android/settings.gradle | Gradle | pluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") }
plugins { id("com.facebook.react.settings") }
extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() }
rootProject.name = 'ReproducerApp'
include ':app'
includeBuild('../node_modules/@react... | wojtekmaj/react-native-missing-dom-node-apis-types | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/babel.config.js | JavaScript | module.exports = {
presets: ['module:@react-native/babel-preset'],
};
| wojtekmaj/react-native-missing-dom-node-apis-types | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/index.js | JavaScript | /**
* @format
*/
import { AppRegistry } from 'react-native';
import App from './App';
import { name as appName } from './app.json';
AppRegistry.registerComponent(appName, () => App);
| wojtekmaj/react-native-missing-dom-node-apis-types | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/ios/ReproducerApp/AppDelegate.swift | Swift | import UIKit
import React
import React_RCTAppDelegate
import ReactAppDependencyProvider
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
var reactNativeDelegate: ReactNativeDelegate?
var reactNativeFactory: RCTReactNativeFactory?
func application(
_ application: UIAppli... | wojtekmaj/react-native-missing-dom-node-apis-types | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/jest.config.js | JavaScript | module.exports = {
preset: 'react-native',
};
| wojtekmaj/react-native-missing-dom-node-apis-types | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/metro.config.js | JavaScript | const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
/**
* Metro configuration
* https://reactnative.dev/docs/metro
*
* @type {import('@react-native/metro-config').MetroConfig}
*/
const config = {};
module.exports = mergeConfig(getDefaultConfig(__dirname), config);
| wojtekmaj/react-native-missing-dom-node-apis-types | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/.eslintrc.js | JavaScript | module.exports = {
root: true,
extends: '@react-native',
};
| wojtekmaj/react-native-missing-strict-types | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/.prettierrc.js | JavaScript | module.exports = {
arrowParens: 'avoid',
singleQuote: true,
trailingComma: 'all',
};
| wojtekmaj/react-native-missing-strict-types | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/App.tsx | TypeScript (TSX) | /**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
*/
import { NewAppScreen } from '@react-native/new-app-screen';
import { useEffect, useRef } from 'react';
import { StatusBar, StyleSheet, useColorScheme, View } from 'react-native';
import {
SafeAreaProvider,
useSafeAreaInse... | wojtekmaj/react-native-missing-strict-types | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/__tests__/App.test.tsx | TypeScript (TSX) | /**
* @format
*/
import React from 'react';
import ReactTestRenderer from 'react-test-renderer';
import App from '../App';
test('renders correctly', async () => {
await ReactTestRenderer.act(() => {
ReactTestRenderer.create(<App />);
});
});
| wojtekmaj/react-native-missing-strict-types | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/android/app/build.gradle | Gradle | apply plugin: "com.android.application"
apply plugin: "org.jetbrains.kotlin.android"
apply plugin: "com.facebook.react"
/**
* This is the configuration block to customize your React Native Android app.
* By default you don't need to apply any configuration, just uncomment the lines you need.
*/
react {
/* Folde... | wojtekmaj/react-native-missing-strict-types | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/android/app/src/main/java/com/reproducerapp/MainActivity.kt | Kotlin | package com.reproducerapp
import com.facebook.react.ReactActivity
import com.facebook.react.ReactActivityDelegate
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
import com.facebook.react.defaults.DefaultReactActivityDelegate
class MainActivity : ReactActivity() {
/**
* Returns... | wojtekmaj/react-native-missing-strict-types | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/android/app/src/main/java/com/reproducerapp/MainApplication.kt | Kotlin | package com.reproducerapp
import android.app.Application
import com.facebook.react.PackageList
import com.facebook.react.ReactApplication
import com.facebook.react.ReactHost
import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHos... | wojtekmaj/react-native-missing-strict-types | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/android/build.gradle | Gradle | buildscript {
ext {
buildToolsVersion = "36.0.0"
minSdkVersion = 24
compileSdkVersion = 36
targetSdkVersion = 36
ndkVersion = "27.1.12297006"
kotlinVersion = "2.1.20"
}
repositories {
google()
mavenCentral()
}
dependencies {
cla... | wojtekmaj/react-native-missing-strict-types | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/android/settings.gradle | Gradle | pluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") }
plugins { id("com.facebook.react.settings") }
extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() }
rootProject.name = 'ReproducerApp'
include ':app'
includeBuild('../node_modules/@react... | wojtekmaj/react-native-missing-strict-types | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/babel.config.js | JavaScript | module.exports = {
presets: ['module:@react-native/babel-preset'],
};
| wojtekmaj/react-native-missing-strict-types | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/index.js | JavaScript | /**
* @format
*/
import { AppRegistry } from 'react-native';
import App from './App';
import { name as appName } from './app.json';
AppRegistry.registerComponent(appName, () => App);
| wojtekmaj/react-native-missing-strict-types | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/ios/ReproducerApp/AppDelegate.swift | Swift | import UIKit
import React
import React_RCTAppDelegate
import ReactAppDependencyProvider
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
var reactNativeDelegate: ReactNativeDelegate?
var reactNativeFactory: RCTReactNativeFactory?
func application(
_ application: UIAppli... | wojtekmaj/react-native-missing-strict-types | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/jest.config.js | JavaScript | module.exports = {
preset: 'react-native',
};
| wojtekmaj/react-native-missing-strict-types | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
ReproducerApp/metro.config.js | JavaScript | const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
/**
* Metro configuration
* https://reactnative.dev/docs/metro
*
* @type {import('@react-native/metro-config').MetroConfig}
*/
const config = {};
module.exports = mergeConfig(getDefaultConfig(__dirname), config);
| wojtekmaj/react-native-missing-strict-types | 0 | Kotlin | wojtekmaj | Wojciech Maj | Rewardo, Codete | |
sample/Sample.css | CSS | html,
body {
height: 100%;
}
body {
margin: 0;
font-family: 'Segoe UI', Tahoma, sans-serif;
}
.Sample input,
.Sample output,
.Sample button {
font: inherit;
}
.Sample header {
background-color: #323639;
box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
padding: 20px;
color: white;
}
.Sample header h1 {
font... | wojtekmaj/react-recaptcha-v3 | 21 | Integrate Google reCAPTCHA v3 with your React app | TypeScript | wojtekmaj | Wojciech Maj | Rewardo, Codete |
sample/Sample.tsx | TypeScript (TSX) | import { useId, useState } from 'react';
import { ReCaptchaProvider, ReCaptcha } from '@wojtekmaj/react-recaptcha-v3';
import './Sample.css';
export default function Sample() {
const [token, setToken] = useState('');
const inputId = useId();
return (
<div className="Sample">
<header>
<h1>@woj... | wojtekmaj/react-recaptcha-v3 | 21 | Integrate Google reCAPTCHA v3 with your React app | TypeScript | wojtekmaj | Wojciech Maj | Rewardo, Codete |
sample/index.html | HTML | <!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@wojtekmaj/react-recaptcha-v3 sample page</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="./index.tsx"></script>
</body>
</html>
| wojtekmaj/react-recaptcha-v3 | 21 | Integrate Google reCAPTCHA v3 with your React app | TypeScript | wojtekmaj | Wojciech Maj | Rewardo, Codete |
sample/index.tsx | TypeScript (TSX) | import { createRoot } from 'react-dom/client';
import Sample from './Sample.js';
const root = document.getElementById('root');
if (!root) {
throw new Error('Could not find root element');
}
createRoot(root).render(<Sample />);
| wojtekmaj/react-recaptcha-v3 | 21 | Integrate Google reCAPTCHA v3 with your React app | TypeScript | wojtekmaj | Wojciech Maj | Rewardo, Codete |
sample/vite.config.ts | TypeScript | import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
base: './',
plugins: [react()],
});
| wojtekmaj/react-recaptcha-v3 | 21 | Integrate Google reCAPTCHA v3 with your React app | TypeScript | wojtekmaj | Wojciech Maj | Rewardo, Codete |
test/RecaptchaOptions.tsx | TypeScript (TSX) | import { useId } from 'react';
type OptionsProps = {
useRecaptchaNet: boolean;
setUseRecaptchaNet: (value: boolean) => void;
useRecaptchaEnterprise: boolean;
setUseRecaptchaEnterprise: (value: boolean) => void;
reCaptchaKey: string;
setRecaptchaKey: (value: string) => void;
};
export default function Reca... | wojtekmaj/react-recaptcha-v3 | 21 | Integrate Google reCAPTCHA v3 with your React app | TypeScript | wojtekmaj | Wojciech Maj | Rewardo, Codete |
test/Test.css | CSS | body {
margin: 0;
font-family: 'Segoe UI', Tahoma, sans-serif;
}
.Test header {
background-color: #323639;
box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
padding: 20px;
color: white;
}
.Test header h1 {
font-size: inherit;
margin: 0;
}
.Test__container {
display: flex;
flex-direction: row;
flex-wrap: ... | wojtekmaj/react-recaptcha-v3 | 21 | Integrate Google reCAPTCHA v3 with your React app | TypeScript | wojtekmaj | Wojciech Maj | Rewardo, Codete |
test/Test.tsx | TypeScript (TSX) | import { useId, useState } from 'react';
import { ReCaptchaProvider, ReCaptcha } from '@wojtekmaj/react-recaptcha-v3';
import RecaptchaOptions from './RecaptchaOptions.js';
import VisibilityOptions from './VisibilityOptions.js';
import './Test.css';
function onLoadCallback() {
console.log('reCAPTCHA loaded');
}
c... | wojtekmaj/react-recaptcha-v3 | 21 | Integrate Google reCAPTCHA v3 with your React app | TypeScript | wojtekmaj | Wojciech Maj | Rewardo, Codete |
test/VisibilityOptions.tsx | TypeScript (TSX) | import { useId } from 'react';
type VisibilityOptionsProps = {
showInstance1: boolean;
setShowInstance1: (value: boolean) => void;
showInstance2: boolean;
setShowInstance2: (value: boolean) => void;
showInstance3: boolean;
setShowInstance3: (value: boolean) => void;
showInstance4: boolean;
setShowInsta... | wojtekmaj/react-recaptcha-v3 | 21 | Integrate Google reCAPTCHA v3 with your React app | TypeScript | wojtekmaj | Wojciech Maj | Rewardo, Codete |
test/index.html | HTML | <!doctype html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@wojtekmaj/react-recaptcha-v3 test page</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="./index.tsx"></script>
</body>
</html>
| wojtekmaj/react-recaptcha-v3 | 21 | Integrate Google reCAPTCHA v3 with your React app | TypeScript | wojtekmaj | Wojciech Maj | Rewardo, Codete |
test/index.tsx | TypeScript (TSX) | import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import Test from './Test.js';
const root = document.getElementById('root');
if (!root) {
throw new Error('Could not find root element');
}
createRoot(root).render(
<StrictMode>
<Test />,
</StrictMode>,
);
| wojtekmaj/react-recaptcha-v3 | 21 | Integrate Google reCAPTCHA v3 with your React app | TypeScript | wojtekmaj | Wojciech Maj | Rewardo, Codete |
test/vite.config.ts | TypeScript | import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
base: './',
plugins: [react()],
});
| wojtekmaj/react-recaptcha-v3 | 21 | Integrate Google reCAPTCHA v3 with your React app | TypeScript | wojtekmaj | Wojciech Maj | Rewardo, Codete |
.yarn/plugins/plugin-remove-postinstall.cjs | JavaScript | module.exports = {
name: 'plugin-remove-postinstall',
factory: () => ({
hooks: {
beforeWorkspacePacking(workspace, rawManifest) {
delete rawManifest.scripts.postinstall;
},
},
}),
};
| wojtekmaj/vite-plugin-react-fallback-throttle | 36 | Vite plugin for configuring FALLBACK_THROTTLE_MS in React 19 | TypeScript | wojtekmaj | Wojciech Maj | Rewardo, Codete |
src/index.spec.ts | TypeScript | import { describe, expect, it } from 'vitest';
import reactFallbackThrottlePlugin from './index.js';
function runPlugin(
src: string,
id: string,
options?: Parameters<typeof reactFallbackThrottlePlugin>[0],
): string | undefined {
const plugin = reactFallbackThrottlePlugin(options);
return plugin.transform... | wojtekmaj/vite-plugin-react-fallback-throttle | 36 | Vite plugin for configuring FALLBACK_THROTTLE_MS in React 19 | TypeScript | wojtekmaj | Wojciech Maj | Rewardo, Codete |
src/index.ts | TypeScript | import type { PluginOption } from 'vite';
export default function viteReactFallbackThrottlePlugin(throttleMs = 0): {
name: string;
transform: {
filter: { id: { include: string[] } };
handler: (src: string, id: string) => { code: string; map: null };
};
} {
return {
name: 'vite-plugin-react-fallback... | wojtekmaj/vite-plugin-react-fallback-throttle | 36 | Vite plugin for configuring FALLBACK_THROTTLE_MS in React 19 | TypeScript | wojtekmaj | Wojciech Maj | Rewardo, Codete |
vitest.config.ts | TypeScript | import { defineConfig } from 'vitest/config';
import type { ViteUserConfig } from 'vitest/config';
const config: ViteUserConfig = defineConfig({
test: {
watch: false,
},
});
export default config;
| wojtekmaj/vite-plugin-react-fallback-throttle | 36 | Vite plugin for configuring FALLBACK_THROTTLE_MS in React 19 | TypeScript | wojtekmaj | Wojciech Maj | Rewardo, Codete |
2048.html | HTML | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>2048 | 4 Games Challenge</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigi... | wonderwhy-er/4-games-challenge | 0 | 4 classic games built from a single chat session with Desktop Commander. Snake, Pong, Breakout, and 2048. | HTML | wonderwhy-er | Eduard Ruzga | |
breakout.html | HTML | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Breakout | 4 Games Challenge</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crosso... | wonderwhy-er/4-games-challenge | 0 | 4 classic games built from a single chat session with Desktop Commander. Snake, Pong, Breakout, and 2048. | HTML | wonderwhy-er | Eduard Ruzga | |
index.html | HTML | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>4 Games Challenge | AI Built 4 Games While I Cooked Pancakes</title>
<!-- Basic SEO -->
<meta name="description" content="Someone said AI hype is overblow... | wonderwhy-er/4-games-challenge | 0 | 4 classic games built from a single chat session with Desktop Commander. Snake, Pong, Breakout, and 2048. | HTML | wonderwhy-er | Eduard Ruzga | |
pong.html | HTML | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pong | 4 Games Challenge</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigi... | wonderwhy-er/4-games-challenge | 0 | 4 classic games built from a single chat session with Desktop Commander. Snake, Pong, Breakout, and 2048. | HTML | wonderwhy-er | Eduard Ruzga | |
snake.html | HTML | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Snake | 4 Games Challenge</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorig... | wonderwhy-er/4-games-challenge | 0 | 4 classic games built from a single chat session with Desktop Commander. Snake, Pong, Breakout, and 2048. | HTML | wonderwhy-er | Eduard Ruzga | |
install-docker.ps1 | PowerShell | #!/usr/bin/env powershell
param(
[string]$Option = "",
[switch]$Help,
[switch]$Status,
[switch]$Reset,
[switch]$VerboseOutput
)
# Script-level variables for folder and Docker args
$script:Folders = @()
$script:DockerArgs = @()
# Colors and output functions
function Write-Success { param($Message) ... | wonderwhy-er/DesktopCommanderMCP | 5,467 | This is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities | TypeScript | wonderwhy-er | Eduard Ruzga | |
install-docker.sh | Shell | #!/bin/bash
# Desktop Commander Docker Installation Script
set -e
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
# Docker image - can be changed to latest
DOCKER_IMAGE="mcp/desktop-commander:latest"
CONTAINER_NAME="desktop-commander"
# Global f... | wonderwhy-er/DesktopCommanderMCP | 5,467 | This is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities | TypeScript | wonderwhy-er | Eduard Ruzga | |
install.sh | Shell | #!/bin/bash
# Exit on error
set -e
# Function to print error
print_error() {
echo "❌ Error: $1" >&2
}
# Function to print success
print_success() {
echo "✅ $1"
}
# Check if Node.js is installed
if command -v node &> /dev/null; then
NODE_VERSION=$(node -v | cut -d 'v' -f 2)
NODE_MAJOR_VERSION=$(echo ... | wonderwhy-er/DesktopCommanderMCP | 5,467 | This is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities | TypeScript | wonderwhy-er | Eduard Ruzga | |
scripts/analyze-fuzzy-logs.js | JavaScript | #!/usr/bin/env node
import { fuzzySearchLogger } from '../dist/utils/fuzzySearchLogger.js';
// Simple argument parsing
const args = process.argv.slice(2);
let failureThreshold = 0.7;
let limit = 100;
// Parse arguments
for (let i = 0; i < args.length; i++) {
if (args[i] === '--threshold' || args[i] === '-t') {
... | wonderwhy-er/DesktopCommanderMCP | 5,467 | This is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities | TypeScript | wonderwhy-er | Eduard Ruzga | |
scripts/build-mcpb.cjs | JavaScript | #!/usr/bin/env node
/**
* Build script for creating Desktop Commander MCPB bundle
*
* This script:
* 1. Builds the TypeScript project
* 2. Creates a bundle directory structure
* 3. Generates a proper MCPB manifest.json
* 4. Copies the built server and dependencies
* 5. Uses mcpb CLI to create the final .mcpb... | wonderwhy-er/DesktopCommanderMCP | 5,467 | This is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities | TypeScript | wonderwhy-er | Eduard Ruzga | |
scripts/build-ui-runtime.cjs | JavaScript | #!/usr/bin/env node
/**
* Build script that compiles and stages browser UI assets used by MCP tool pages. It centralizes bundling/runtime generation so UI resources are deterministic in local dev and CI.
*/
const path = require('path');
const fs = require('fs/promises');
const { build } = require('esbuild');
const t... | wonderwhy-er/DesktopCommanderMCP | 5,467 | This is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities | TypeScript | wonderwhy-er | Eduard Ruzga | |
scripts/clear-fuzzy-logs.js | JavaScript | #!/usr/bin/env node
import { fuzzySearchLogger } from '../dist/utils/fuzzySearchLogger.js';
// Simple argument parsing
const args = process.argv.slice(2);
let skipConfirmation = false;
// Parse arguments
for (let i = 0; i < args.length; i++) {
if (args[i] === '--yes' || args[i] === '-y') {
skipConfirmation = t... | wonderwhy-er/DesktopCommanderMCP | 5,467 | This is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities | TypeScript | wonderwhy-er | Eduard Ruzga | |
scripts/download-all-ripgrep.cjs | JavaScript | #!/usr/bin/env node
/**
* Download all ripgrep binaries for cross-platform MCPB bundles
*
* This script downloads ripgrep binaries for all supported platforms
* and places them in node_modules/@vscode/ripgrep/bin/ with platform-specific names.
*/
const https = require('https');
const fs = require('fs');
const p... | wonderwhy-er/DesktopCommanderMCP | 5,467 | This is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities | TypeScript | wonderwhy-er | Eduard Ruzga | |
scripts/export-fuzzy-logs.js | JavaScript | #!/usr/bin/env node
import { fuzzySearchLogger } from '../dist/utils/fuzzySearchLogger.js';
import fs from 'fs/promises';
// Simple argument parsing
const args = process.argv.slice(2);
let format = 'csv';
let outputFile = null;
let limit = 1000;
// Parse arguments
for (let i = 0; i < args.length; i++) {
if (args[i... | wonderwhy-er/DesktopCommanderMCP | 5,467 | This is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities | TypeScript | wonderwhy-er | Eduard Ruzga | |
scripts/publish-release.cjs | JavaScript | #!/usr/bin/env node
/**
* Desktop Commander - Complete Release Publishing Script with State Tracking
*
* This script handles the entire release process:
* 1. Version bump
* 2. Build project and MCPB bundle
* 3. Commit and tag
* 4. Publish to NPM
* 5. Publish to MCP Registry
* 6. Verify publications
*
* Fe... | wonderwhy-er/DesktopCommanderMCP | 5,467 | This is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities | TypeScript | wonderwhy-er | Eduard Ruzga | |
scripts/ripgrep-wrapper.js | JavaScript | // Runtime platform detection wrapper for @vscode/ripgrep
// This replaces the original index.js to support cross-platform MCPB bundles
const os = require('os');
const path = require('path');
const fs = require('fs');
function getTarget() {
const arch = process.env.npm_config_arch || os.arch();
switch (os.plat... | wonderwhy-er/DesktopCommanderMCP | 5,467 | This is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities | TypeScript | wonderwhy-er | Eduard Ruzga | |
scripts/sync-version.js | JavaScript | import { readFileSync, writeFileSync } from 'fs';
import path from 'path';
function bumpVersion(version, type = 'patch') {
const [major, minor, patch] = version.split('.').map(Number);
switch(type) {
case 'major':
return `${major + 1}.0.0`;
case 'minor':
return `${major}... | wonderwhy-er/DesktopCommanderMCP | 5,467 | This is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities | TypeScript | wonderwhy-er | Eduard Ruzga |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.