clone this. Run isort - no change. Make a worktree:
$ git worktree add ../second_tree
$ cat a.py
import sys
import c
| re.compile(""" | |
| % # Percent | |
| (?:\((?P<mapping>[^)]*)\))? # Mapping key | |
| (?P<flag>[#0\-+ ])? # Conversion Flag | |
| (?P<width>\*|\d+)? # Field width | |
| (?P<precision>\.(?:\*?|\d*))? # Precision | |
| [hlL]? # Unused length modifier | |
| (?P<format>[diouxXeEfFgGcrsa%]) # Conversion type |
| #!/bin/bash | |
| # | |
| # Finds and lists commits that are not present upstream. | |
| # | |
| # Searches in and under the current directory for all .git repositories. | |
| # These are then checked for any local commits that are not present in | |
| # any of the upstream repositories, e.g. commits that have been made | |
| # locally and do not have a known backup anywhere else. | |
| # | |
| # This is helpful to know if e.g. a repository can be safely deleted |
| #include <benchmark/benchmark.h> | |
| #include <scitbx/array_family/accessors/c_grid.h> | |
| #include <scitbx/array_family/tiny_types.h> | |
| #include <scitbx/array_family/versa.h> | |
| using namespace scitbx; | |
| static void BM_loop_inside(benchmark::State& state) { | |
| af::versa<bool, af::c_grid<3> > base(af::c_grid<3>(af::tiny<int, 3>(14, 14, 5))); |
| PRFX=$(HOME)/autobuild/build-Linux-pre-release-gtk3-python | |
| CXXFLAGS=-I$(PRFX)/include/python3.6m/ | |
| LDFLAGS=-L$(PRFX)/lib -lpython3.6m -Wl,-rpath=$(PRFX)/lib | |
| all: standalone-python-test | |
| standalone-python-test: standalone-python-test.cc | |
| $(CXX) $^ $(CXXFLAGS) -o $@ $(LDFLAGS) |
| cmake_minimum_required(VERSION 3.8 FATAL_ERROR) | |
| project(ispc_bool) | |
| add_custom_command(OUTPUT booltest.o booltest.h | |
| COMMAND ispc ${CMAKE_SOURCE_DIR}/booltest.ispc -o booltest.o -h booltest.h | |
| DEPENDS booltest.ispc) | |
| add_executable(booltest booltest.cxx booltest.o) | |
| target_include_directories(booltest PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) |
| """ | |
| Read a yum remote repo and get the latest version and url of a package | |
| Prints output to stderr and to stdout: | |
| <version> <url> | |
| """ | |
| import sys | |
| import os | |
| import argparse | |
| import requests |
| from __future__ import absolute_import, division, print_function | |
| import glob | |
| import sys | |
| import time | |
| from dials.command_line.find_spots_server import work | |
| FILENAMES = "/path/to/test/files/*.cbf" |
| """ | |
| dials.new_dials_command | |
| Put a description of your program in the top docstring. This will be | |
| used in the OptionParser to display program help. | |
| """ | |
| from __future__ import absolute_import, division, print_function | |
| import pickle |
| import os | |
| from pathlib import Path | |
| # Presence of these means we should keep | |
| EXCLUSIONS = {"LIBTBX", "FIXME", "DIALS", "pytest"} | |
| EXCLUDE_FILES = { | |
| "conftest.py", | |
| "util/image_viewer/slip_viewer/frame.py", | |
| "util/installer.py", |