repo_full_name
stringlengths
6
93
repo_url
stringlengths
25
112
repo_api_url
stringclasses
28 values
owner
stringclasses
28 values
repo_name
stringclasses
28 values
description
stringclasses
28 values
stars
int64
617
98.8k
forks
int64
31
355
watchers
int64
990
999
license
stringclasses
2 values
default_branch
stringclasses
2 values
repo_created_at
timestamp[s]date
2012-07-24 23:12:50
2025-06-16 08:07:28
repo_updated_at
timestamp[s]date
2026-02-23 15:23:15
2026-05-03 18:52:12
repo_topics
listlengths
0
13
repo_languages
unknown
is_fork
bool
1 class
open_issues
int64
3
104
file_path
stringlengths
3
208
file_name
stringclasses
509 values
file_extension
stringclasses
1 value
file_size_bytes
int64
101
84k
file_url
stringclasses
627 values
file_raw_url
stringclasses
627 values
file_sha
stringclasses
624 values
language
stringclasses
8 values
parsed_at
stringdate
2026-05-04 01:12:36
2026-05-04 19:41:55
text
stringlengths
100
102k
iam-veeramalla/python-for-devops
https://github.com/iam-veeramalla/python-for-devops
null
null
null
null
4,501
null
null
mit
null
null
null
null
null
null
null
Day-02/examples/01-string-substring.py
null
null
null
null
null
null
Python
2026-05-04T01:59:27.421708
text = "Python is awesome" substring = "is" if substring in text: print(substring, "found in the text")
iam-veeramalla/python-for-devops
https://github.com/iam-veeramalla/python-for-devops
null
null
null
null
4,501
null
null
mit
null
null
null
null
null
null
null
Day-02/examples/02-int.py
null
null
null
null
null
null
Python
2026-05-04T01:59:27.423158
# Integer variables num1 = 10 num2 = 5 # Integer Division result1 = num1 // num2 print("Integer Division:", result1) # Modulus (Remainder) result2 = num1 % num2 print("Modulus (Remainder):", result2) # Absolute Value result3 = abs(-7) print("Absolute Value:", result3)
iam-veeramalla/python-for-devops
https://github.com/iam-veeramalla/python-for-devops
null
null
null
null
4,501
null
null
mit
null
null
null
null
null
null
null
Day-02/examples/03-regex-search.py
null
null
null
null
null
null
Python
2026-05-04T01:59:28.018051
import re text = "The quick brown fox" pattern = r"brown" search = re.search(pattern, text) if search: print("Pattern found:", search.group()) else: print("Pattern not found")
iam-veeramalla/python-for-devops
https://github.com/iam-veeramalla/python-for-devops
null
null
null
null
4,501
null
null
mit
null
null
null
null
null
null
null
Day-02/examples/03-regex-match.py
null
null
null
null
null
null
Python
2026-05-04T01:59:28.041076
import re text = "The quick brown fox" pattern = r"quick" match = re.match(pattern, text) if match: print("Match found:", match.group()) else: print("No match")
iam-veeramalla/python-for-devops
https://github.com/iam-veeramalla/python-for-devops
null
null
null
null
4,501
null
null
mit
null
null
null
null
null
null
null
Day-02/examples/03-regex-split.py
null
null
null
null
null
null
Python
2026-05-04T01:59:28.075687
import re text = "apple,banana,orange,grape" pattern = r"," split_result = re.split(pattern, text) print("Split result:", split_result)
iam-veeramalla/python-for-devops
https://github.com/iam-veeramalla/python-for-devops
null
null
null
null
4,501
null
null
mit
null
null
null
null
null
null
null
Day-06/02-Assignment/02-Answers/task-01-answer.py
null
null
null
null
null
null
Python
2026-05-04T01:59:28.076866
a = 10 b = 5 sum_result = a + b difference_result = a - b product_result = a * b quotient_result = a / b print("Sum:", sum_result) print("Difference:", difference_result) print("Product:", product_result) print("Quotient:", quotient_result)
iam-veeramalla/python-for-devops
https://github.com/iam-veeramalla/python-for-devops
null
null
null
null
4,501
null
null
mit
null
null
null
null
null
null
null
Day-02/examples/03-regex-replace.py
null
null
null
null
null
null
Python
2026-05-04T01:59:28.078008
import re text = "The quick brown fox jumps over the lazy brown dog" pattern = r"brown" replacement = "red" new_text = re.sub(pattern, replacement, text) print("Modified text:", new_text)
iam-veeramalla/python-for-devops
https://github.com/iam-veeramalla/python-for-devops
null
null
null
null
4,501
null
null
mit
null
null
null
null
null
null
null
Day-06/02-Assignment/02-Answers/task-03-answer.py
null
null
null
null
null
null
Python
2026-05-04T01:59:28.080132
x = True y = False and_result = x and y or_result = x or y not_result_x = not x not_result_y = not y print("x and y:", and_result) print("x or y:", or_result) print("not x:", not_result_x) print("not y:", not_result_y)
iam-veeramalla/python-for-devops
https://github.com/iam-veeramalla/python-for-devops
null
null
null
null
4,501
null
null
mit
null
null
null
null
null
null
null
Day-06/02-Assignment/02-Answers/task-02-answer.py
null
null
null
null
null
null
Python
2026-05-04T01:59:28.081358
a = 10 b = 5 less_than = a < b greater_than = a > b less_than_or_equal = a <= b greater_than_or_equal = a >= b equal = a == b not_equal = a != b print("a < b:", less_than) print("a > b:", greater_than) print("a <= b:", less_than_or_equal) print("a >= b:", greater_than_or_equal) print("a == b:", equal) print("a != b:"...
iam-veeramalla/python-for-devops
https://github.com/iam-veeramalla/python-for-devops
null
null
null
null
4,501
null
null
mit
null
null
null
null
null
null
null
Day-02/examples/03-regex-findall.py
null
null
null
null
null
null
Python
2026-05-04T01:59:28.082226
import re text = "The quick brown fox" pattern = r"brown" search = re.search(pattern, text) if search: print("Pattern found:", search.group()) else: print("Pattern not found")
iam-veeramalla/python-for-devops
https://github.com/iam-veeramalla/python-for-devops
null
null
null
null
4,501
null
null
mit
null
null
null
null
null
null
null
Day-06/02-Assignment/02-Answers/task-05-answer.py
null
null
null
null
null
null
Python
2026-05-04T01:59:28.641687
my_list = [1, 2, 3, 4, 5] # Identity operators a = my_list b = [1, 2, 3, 4, 5] is_same_object = a is my_list is_not_same_object = b is not my_list # Membership operators element_in_list = 3 in my_list element_not_in_list = 6 not in my_list print("a is my_list:", is_same_object) print("b is not my_list:", is_not_sam...
iam-veeramalla/python-for-devops
https://github.com/iam-veeramalla/python-for-devops
null
null
null
null
4,501
null
null
mit
null
null
null
null
null
null
null
Day-11/04-practicals.py
null
null
null
null
null
null
Python
2026-05-04T01:59:28.699343
# Server configurations dictionary server_config = { 'server1': {'ip': '192.168.1.1', 'port': 8080, 'status': 'active'}, 'server2': {'ip': '192.168.1.2', 'port': 8000, 'status': 'inactive'}, 'server3': {'ip': '192.168.1.3', 'port': 9000, 'status': 'active'} } # Retrieving information def get_server_status(...
iam-veeramalla/python-for-devops
https://github.com/iam-veeramalla/python-for-devops
null
null
null
null
4,501
null
null
mit
null
null
null
null
null
null
null
Day-14/examples/create-jira.py
null
null
null
null
null
null
Python
2026-05-04T01:59:28.699878
# This code sample uses the 'requests' library: # http://docs.python-requests.org import requests from requests.auth import HTTPBasicAuth import json url = "https://veeramallaabhishek.atlassian.net/rest/api/3/issue" API_TOKEN = "" auth = HTTPBasicAuth("", API_TOKEN) headers = { "Accept": "application/json", "Co...
iam-veeramalla/python-for-devops
https://github.com/iam-veeramalla/python-for-devops
null
null
null
null
4,501
null
null
mit
null
null
null
null
null
null
null
Day-10/02-main-construct.py
null
null
null
null
null
null
Python
2026-05-04T01:59:28.701428
def main(): folder_paths = input("Enter a list of folder paths separated by spaces: ").split() print(folder_paths) # Print elements in the list #for folder_path in folder_paths: # print(folder_path) if __name__ == "__main__": main()
iam-veeramalla/python-for-devops
https://github.com/iam-veeramalla/python-for-devops
null
null
null
null
4,501
null
null
mit
null
null
null
null
null
null
null
Day-11/04-demo-github-integration.py
null
null
null
null
null
null
Python
2026-05-04T01:59:28.712285
# Program to demonstrate integration with GitHub to fetch the # details of Users who created Pull requests(Active) on Kubernetes Github repo. import requests # URL to fetch pull requests from the GitHub API url = f'https://api.github.com/repos/kubernetes/kubernetes/pulls' # Make a GET request to fetch pull requests...
iam-veeramalla/python-for-devops
https://github.com/iam-veeramalla/python-for-devops
null
null
null
null
4,501
null
null
mit
null
null
null
null
null
null
null
Day-12/update_server.py
null
null
null
null
null
null
Python
2026-05-04T01:59:28.718475
def update_server_config(file_path, key, value): # Read the existing content of the server configuration file with open(file_path, 'r') as file: lines = file.readlines() # Update the configuration value for the specified key with open(file_path, 'w') as file: for line in lines: ...
iam-veeramalla/python-for-devops
https://github.com/iam-veeramalla/python-for-devops
null
null
null
null
4,501
null
null
mit
null
null
null
null
null
null
null
Day-10/03-list-files-in-folders.py
null
null
null
null
null
null
Python
2026-05-04T01:59:28.747232
import os def list_files_in_folder(folder_path): try: files = os.listdir(folder_path) return files, None except FileNotFoundError: return None, "Folder not found" except PermissionError: return None, "Permission denied" def main(): folder_paths = input("Enter a list of ...
iam-veeramalla/python-for-devops
https://github.com/iam-veeramalla/python-for-devops
null
null
null
null
4,501
null
null
mit
null
null
null
null
null
null
null
Day-14/examples/list_projects.py
null
null
null
null
null
null
Python
2026-05-04T01:59:28.747784
# This code sample uses the 'requests' library: # http://docs.python-requests.org import requests from requests.auth import HTTPBasicAuth import json url = "https://veeramallaabhishek.atlassian.net/rest/api/3/project" API_TOKEN="" auth = HTTPBasicAuth("", API_TOKEN) headers = { "Accept": "application/json" } res...
iam-veeramalla/python-for-devops
https://github.com/iam-veeramalla/python-for-devops
null
null
null
null
4,501
null
null
mit
null
null
null
null
null
null
null
Day-15/examples/hello-world.py
null
null
null
null
null
null
Python
2026-05-04T01:59:28.808821
from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello, World!' if __name__ == '__main__': app.run("0.0.0.0")
iam-veeramalla/python-for-devops
https://github.com/iam-veeramalla/python-for-devops
null
null
null
null
4,501
null
null
mit
null
null
null
null
null
null
null
Day-15/github-jira.py
null
null
null
null
null
null
Python
2026-05-04T01:59:29.753318
# This code sample uses the 'requests' library: # http://docs.python-requests.org import requests from requests.auth import HTTPBasicAuth import json from flask import Flask app = Flask(__name__) # Define a route that handles GET requests @app.route('/createJira', methods=['POST']) def createJira(): url = "https...
iam-veeramalla/python-for-devops
https://github.com/iam-veeramalla/python-for-devops
null
null
null
null
4,501
null
null
mit
null
null
null
null
null
null
null
simple-python-app/app.py
null
null
null
null
null
null
Python
2026-05-04T01:59:30.470000
from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello, World!' if __name__ == '__main__': app.run(debug=True, host='0.0.0.0', port=8000)
lennylxx/ipv6-hosts
https://github.com/lennylxx/ipv6-hosts
null
null
null
null
4,500
null
null
mit
null
null
null
null
null
null
null
tools/list-1e100.py
null
null
null
null
null
null
Python
2026-05-04T01:59:33.750819
#!/usr/bin/env python3 import sys def main(): iata = sys.argv[1] for i in range(1, 40): for j in range(1, 90): print(iata + str(i).zfill(2) + 's' + str(j).zfill(2) + '-in-'\ 'x' + '01.1e100.net') if __name__ == '__main__': main()
lennylxx/ipv6-hosts
https://github.com/lennylxx/ipv6-hosts
null
null
null
null
4,500
null
null
mit
null
null
null
null
null
null
null
tools/list-sn-all.py
null
null
null
null
null
null
Python
2026-05-04T01:59:33.751661
#!/usr/bin/env python3 import sys def main(): infile = open(sys.argv[1], 'r') hosts = infile.readlines() for line in hosts: if line[0] == '#': continue arr = line.split() for k in range(1, 21): print('r%d' % k + arr[1][2:]) if __name__ == '__main__': m...
lennylxx/ipv6-hosts
https://github.com/lennylxx/ipv6-hosts
null
null
null
null
4,500
null
null
mit
null
null
null
null
null
null
null
tools/list-xx.py
null
null
null
null
null
null
Python
2026-05-04T01:59:33.752122
#!/usr/bin/env python3 import sys table = ( 'pe', 'ni', 'sa', 'hg', 'tb', 'tf', 'tg', 'ib', 'ie', 'ig', 'yh', 'gg', 'yn', 'yv', 'yk', 'ob', 'oa', 'of', 'oe', 'og', 've', 'vb', 'vc', 'vh', 'qa', 'qc', 'qe', 'qg', 'qh', 'da', 'ph', 'pd', 'pa', 'pc', 'fa', 'bk', 'dn', 'de', 'wg', 'wj', 'we', 'wi', 'wb', 'la', 'lb', 'ee'...
lennylxx/ipv6-hosts
https://github.com/lennylxx/ipv6-hosts
null
null
null
null
4,500
null
null
mit
null
null
null
null
null
null
null
tools/list-sn-spec.py
null
null
null
null
null
null
Python
2026-05-04T01:59:33.753263
#!/usr/bin/env python3 import sys def main(): sn = sys.argv[1] for k in range(1, 21): print('r%d' % k + '---' + 'sn-' + sn + '.googlevideo.com') if __name__ == '__main__': main()
lennylxx/ipv6-hosts
https://github.com/lennylxx/ipv6-hosts
null
null
null
null
4,500
null
null
mit
null
null
null
null
null
null
null
tools/conv.py
null
null
null
null
null
null
Python
2026-05-04T01:59:33.753814
#!/usr/bin/env python3 # Read the wiki for more information # https://github.com/lennylxx/ipv6-hosts/wiki/sn-domains import sys table = '1023456789abcdefghijklmnopqrstuvwxyz' def iata2sn(iata): global table sn = '' for v in iata: if v in table: i = ((ord(v) - ord('a')) * 7 + 5) % 36 ...
lennylxx/ipv6-hosts
https://github.com/lennylxx/ipv6-hosts
null
null
null
null
4,500
null
null
mit
null
null
null
null
null
null
null
tools/list-1e100-all.py
null
null
null
null
null
null
Python
2026-05-04T01:59:33.757720
#!/usr/bin/env python3 import sys def main(): infile = open(sys.argv[1], 'r') hosts = infile.readlines() for line in hosts: if line[0] == '#': continue arr = line.split() for k in range(0, 32): print(arr[1][:8] + '-in-x' + hex(k)[2:].zfill(2) + '.1e100.net'...
lennylxx/ipv6-hosts
https://github.com/lennylxx/ipv6-hosts
null
null
null
null
4,500
null
null
mit
null
null
null
null
null
null
null
update_hosts.py
null
null
null
null
null
null
Python
2026-05-04T01:59:33.761214
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import sys import re import socket import ipaddress import getopt import threading import subprocess import shlex import time import select blackhole = ( '10::2222', '21:2::2', '101::1234', '200:2:807:c62d::', '200:2:253d:369e::', '200:2...
lennylxx/ipv6-hosts
https://github.com/lennylxx/ipv6-hosts
null
null
null
null
4,500
null
null
mit
null
null
null
null
null
null
null
tools/sort-by-ip.py
null
null
null
null
null
null
Python
2026-05-04T01:59:33.761656
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys import ipaddress def main(): with open(sys.argv[1], 'r') as infile: hydration = [] for line in infile.readlines(): line = line.strip() if line == '' or line[0] == '#': continue hydration.a...
lennylxx/ipv6-hosts
https://github.com/lennylxx/ipv6-hosts
null
null
null
null
4,500
null
null
mit
null
null
null
null
null
null
null
tools/list-sn.py
null
null
null
null
null
null
Python
2026-05-04T01:59:33.762096
#!/usr/bin/env python3 import sys from conv import num2code def main(): encoded_iata = sys.argv[1] for i in range(0, 100): for j in range(0, 100): a = num2code(str(i).zfill(2)) b = num2code(str(j).zfill(2)) print('r2---' + 'sn-' + encoded_iata + a + 'n' + b + '.goog...
astorfi/TensorFlow-World
https://github.com/astorfi/TensorFlow-World
null
null
null
null
4,500
null
null
mit
null
null
null
null
null
null
null
codes/1-basics/basic_math_operations/code/basic_math_operation.py
null
null
null
null
null
null
Python
2026-05-04T01:59:36.307942
##################################################### ########## Welcome to TensorFlow World ############## ##################################################### # The tutorials in this section is just a start for math operations. # The TensorFlow flags are used for having a more user friendly environment. from __fut...
astorfi/TensorFlow-World
https://github.com/astorfi/TensorFlow-World
null
null
null
null
4,500
null
null
mit
null
null
null
null
null
null
null
codes/2-basics_in_machine_learning/linear_regression/code/linear_regression.py
null
null
null
null
null
null
Python
2026-05-04T01:59:36.314636
import numpy as np import tensorflow as tf import xlrd import matplotlib.pyplot as plt import os from sklearn.utils import check_random_state # Generating artificial data. n = 50 XX = np.arange(n) rs = check_random_state(0) YY = rs.randint(-20, 20, size=(n,)) + 2.0 * XX data = np.stack([XX,YY], axis=1) ##############...
astorfi/TensorFlow-World
https://github.com/astorfi/TensorFlow-World
null
null
null
null
4,500
null
null
mit
null
null
null
null
null
null
null
codes/2-basics_in_machine_learning/logistic_regression/code/logistic_regression.py
null
null
null
null
null
null
Python
2026-05-04T01:59:36.317276
import numpy as np import matplotlib.pyplot as plt import tensorflow as tf import tempfile import urllib import pandas as pd import os from tensorflow.examples.tutorials.mnist import input_data ###################################### ######### Necessary Flags ############ ###################################### tf.app....
astorfi/TensorFlow-World
https://github.com/astorfi/TensorFlow-World
null
null
null
null
4,500
null
null
mit
null
null
null
null
null
null
null
codes/0-welcome/code/0-welcome.py
null
null
null
null
null
null
Python
2026-05-04T01:59:36.326959
##################################################### ########## Welcome to TensorFlow World ############## ##################################################### # The tutorials in this section is just a start for going into TensorFlow world. # The TensorFlow flags are used for having a more user friendly environment....
astorfi/TensorFlow-World
https://github.com/astorfi/TensorFlow-World
null
null
null
null
4,500
null
null
mit
null
null
null
null
null
null
null
codes/2-basics_in_machine_learning/multiclass_svm/code/multiclass_svm.py
null
null
null
null
null
null
Python
2026-05-04T01:59:36.327507
import matplotlib.pyplot as plt import numpy as np import tensorflow as tf from sklearn import datasets from tensorflow.python.framework import ops from tensorflow.examples.tutorials.mnist import input_data from sklearn.decomposition import PCA ####################### ### Necessary Flags ### ####################### t...
astorfi/TensorFlow-World
https://github.com/astorfi/TensorFlow-World
null
null
null
null
4,500
null
null
mit
null
null
null
null
null
null
null
codes/0-welcome/code/TensorFlow_Test.py
null
null
null
null
null
null
Python
2026-05-04T01:59:36.329622
# This code has been provided by TensorFlow. # Please refer to: https://www.tensorflow.org/api_guides/python/test import tensorflow as tf class SquareTest(tf.test.TestCase): def testSquare(self): with self.test_session(): x = tf.square([2, 3]) self.assertAllEqual(x.eval(), [4, 9]) if __name__ == '...
astorfi/TensorFlow-World
https://github.com/astorfi/TensorFlow-World
null
null
null
null
4,500
null
null
mit
null
null
null
null
null
null
null
codes/2-basics_in_machine_learning/linear_svm/code/linear_svm.py
null
null
null
null
null
null
Python
2026-05-04T01:59:36.330708
import matplotlib.pyplot as plt import numpy as np import tensorflow as tf from sklearn import datasets import random import sys ####################### ### Necessary Flags ### ####################### tf.app.flags.DEFINE_integer('batch_size', 32, 'Number of samples per batch.') tf.app.fl...
astorfi/TensorFlow-World
https://github.com/astorfi/TensorFlow-World
null
null
null
null
4,500
null
null
mit
null
null
null
null
null
null
null
codes/1-basics/variables/code/variables.py
null
null
null
null
null
null
Python
2026-05-04T01:59:36.358392
## This code create some arbitrary variables and initialize them ### # The goal is to show how to define and initialize variables from scratch. import tensorflow as tf from tensorflow.python.framework import ops ####################################### ######## Defining Variables ########### ##########################...
astorfi/TensorFlow-World
https://github.com/astorfi/TensorFlow-World
null
null
null
null
4,500
null
null
mit
null
null
null
null
null
null
null
codes/3-neural_networks/convolutional-neural-network/code/input_function/input.py
null
null
null
null
null
null
Python
2026-05-04T01:59:36.962763
import numpy as np import collections class DATA_OBJECT(object): def __init__(self, images, labels, num_classes=0, one_hot=False, dtype=np.float32, reshape=False): """Data object construction. im...
astorfi/TensorFlow-World
https://github.com/astorfi/TensorFlow-World
null
null
null
null
4,500
null
null
mit
null
null
null
null
null
null
null
codes/3-neural_networks/convolutional-neural-network/code/train_classifier.py
null
null
null
null
null
null
Python
2026-05-04T01:59:36.981409
from __future__ import print_function from tensorflow.examples.tutorials.mnist import input_data import tensorflow as tf import numpy as np from net_structure import net from input_function import input import os import train_evaluation ###################################### ######### Necessary Flags ############ ####...
astorfi/TensorFlow-World
https://github.com/astorfi/TensorFlow-World
null
null
null
null
4,500
null
null
mit
null
null
null
null
null
null
null
codes/3-neural_networks/convolutional-neural-network/code/net_structure/net.py
null
null
null
null
null
null
Python
2026-05-04T01:59:37.011599
##################################### # With some tiny modification, this code is the one used by Tensorflow slim at: # https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/slim # Please refer to the link for further explanations. ### The difference is this architecture is written in fully-convoluti...
astorfi/TensorFlow-World
https://github.com/astorfi/TensorFlow-World
null
null
null
null
4,500
null
null
mit
null
null
null
null
null
null
null
codes/3-neural_networks/convolutional-neural-network/code/test_classifier.py
null
null
null
null
null
null
Python
2026-05-04T01:59:37.017856
from __future__ import print_function from tensorflow.examples.tutorials.mnist import input_data import tensorflow as tf import numpy as np from net_structure import net from input_function import input from auxiliary import progress_bar import os import sys ###################################### ######### Necessary F...
astorfi/TensorFlow-World
https://github.com/astorfi/TensorFlow-World
null
null
null
null
4,500
null
null
mit
null
null
null
null
null
null
null
codes/3-neural_networks/convolutional-neural-network/code/auxiliary/progress_bar.py
null
null
null
null
null
null
Python
2026-05-04T01:59:37.024718
import sys def print_progress(progress, epoch_num, loss): """ This function draw an active progress bar. :param progress: Where we are: type: float value: [0,1] :param epoch_num: number of epochs for training :param loss: The loss for the specific batc...
astorfi/TensorFlow-World
https://github.com/astorfi/TensorFlow-World
null
null
null
null
4,500
null
null
mit
null
null
null
null
null
null
null
codes/3-neural_networks/multi-layer-perceptron/code/train_mlp.py
null
null
null
null
null
null
Python
2026-05-04T01:59:37.026570
from __future__ import print_function from tensorflow.examples.tutorials.mnist import input_data import tensorflow as tf import numpy as np import os ###################################### ######### Necessary Flags ############ ###################################### tf.app.flags.DEFINE_string( 'train_root', os.pa...
astorfi/TensorFlow-World
https://github.com/astorfi/TensorFlow-World
null
null
null
null
4,500
null
null
mit
null
null
null
null
null
null
null
codes/3-neural_networks/multi-layer-perceptron/code/test_classifier.py
null
null
null
null
null
null
Python
2026-05-04T01:59:37.030509
from __future__ import print_function from tensorflow.examples.tutorials.mnist import input_data import tensorflow as tf import numpy as np import os import sys ###################################### ######### Necessary Flags ############ ###################################### tf.app.flags.DEFINE_string( 'test_dir...
astorfi/TensorFlow-World
https://github.com/astorfi/TensorFlow-World
null
null
null
null
4,500
null
null
mit
null
null
null
null
null
null
null
codes/3-neural_networks/convolutional-neural-network/code/train_evaluation.py
null
null
null
null
null
null
Python
2026-05-04T01:59:37.031096
from __future__ import print_function import tensorflow as tf import numpy as np from auxiliary import progress_bar import os import sys def train(**keywords): """ This function run the session whether in training or evaluation mode. NOTE: **keywords is defined in order to make the code easily changable. ...
astorfi/TensorFlow-World
https://github.com/astorfi/TensorFlow-World
null
null
null
null
4,500
null
null
mit
null
null
null
null
null
null
null
codes/3-neural_networks/recurrent-neural-networks/code/rnn.py
null
null
null
null
null
null
Python
2026-05-04T01:59:37.557494
import tensorflow as tf import numpy as np import matplotlib.pyplot as plt import argparse # Useful function for arguments. def str2bool(v): return v.lower() in ("yes", "true") # Parser parser = argparse.ArgumentParser(description='Creating Classifier') ###################### # Optimization Flags # #############...
astorfi/TensorFlow-World
https://github.com/astorfi/TensorFlow-World
null
null
null
null
4,500
null
null
mit
null
null
null
null
null
null
null
codes/3-neural_networks/undercomplete-autoencoder/code/autoencoder.py
null
null
null
null
null
null
Python
2026-05-04T01:59:37.649234
# An undercomplete autoencoder on MNIST dataset from __future__ import division, print_function, absolute_import import tensorflow.contrib.layers as lays import tensorflow as tf import numpy as np import matplotlib.pyplot as plt from skimage import transform from tensorflow.examples.tutorials.mnist import input_data ...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
docs/conf.py
null
null
null
null
null
null
Python
2026-05-04T01:59:41.922783
"""Sphinx documentation configuration for tmuxp.""" from __future__ import annotations import pathlib import sys # Get the project root dir, which is the parent dir of this cwd = pathlib.Path(__file__).parent project_root = cwd.parent src_root = project_root / "src" sys.path.insert(0, str(src_root)) sys.path.insert...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/_compat.py
null
null
null
null
null
null
Python
2026-05-04T01:59:41.939958
from __future__ import annotations import logging import sys logger = logging.getLogger(__name__) PY3 = sys.version_info[0] == 3 PYMINOR = sys.version_info[1] PYPATCH = sys.version_info[2] def _identity(x: object) -> object: """Return *x* unchanged — used as a no-op decorator. Examples -------- >>...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
docs/_ext/conftest.py
null
null
null
null
null
null
Python
2026-05-04T01:59:41.941740
"""Pytest configuration for docs/_ext doctests. This module sets up sys.path so that sphinx_argparse_neo and other extension modules can be imported correctly during pytest doctest collection. """ from __future__ import annotations import pathlib import sys # Add docs/_ext to sys.path so sphinx_argparse_neo can imp...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/_internal/colors.py
null
null
null
null
null
null
Python
2026-05-04T01:59:41.942853
"""Color output utilities for tmuxp CLI. This module provides semantic color utilities following patterns from vcspull and CPython's _colorize module. It includes low-level ANSI styling functions and high-level semantic color utilities. Examples -------- Basic usage with automatic TTY detection (AUTO mode is the defa...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
docs/_ext/aafig.py
null
null
null
null
null
null
Python
2026-05-04T01:59:41.949090
"""aafig plugin for sphinx. sphinxcontrib.aafig ~~~~~~~~~~~~~~~~~~~ Allow embedded ASCII art to be rendered as nice looking images using the aafigure reStructuredText extension. See the README file for details. :author: Leandro Lucarella <llucax@gmail.com> :license: BOLA, see LICENSE for details """ from __future_...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
conftest.py
null
null
null
null
null
null
Python
2026-05-04T01:59:41.959616
"""Conftest.py (root-level). We keep this in root pytest fixtures in pytest's doctest plugin to be available, as well as avoiding conftest.py from being included in the wheel, in addition to pytest_plugin for pytester only being available via the root directory. See "pytest_plugins in non-top-level conftest files" in...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/_internal/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:59:41.960861
"""Internal APIs for tmuxp.""" from __future__ import annotations import logging logger = logging.getLogger(__name__)
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:59:41.989616
"""tmux session manager. :copyright: Copyright 2013- Tony Narlock. :license: MIT, see LICENSE for details """ from __future__ import annotations import logging from . import cli, util from .__about__ import ( __author__, __copyright__, __description__, __email__, __license__, __package_name_...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/__about__.py
null
null
null
null
null
null
Python
2026-05-04T01:59:42.032383
"""Metadata for tmuxp package.""" from __future__ import annotations import logging logger = logging.getLogger(__name__) __title__ = "tmuxp" __package_name__ = "tmuxp" __version__ = "1.67.0" __description__ = "tmux session manager" __email__ = "tony@git-pull.com" __author__ = "Tony Narlock" __github__ = "https://gi...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/_internal/config_reader.py
null
null
null
null
null
null
Python
2026-05-04T01:59:42.501788
"""Configuration parser for YAML and JSON files.""" from __future__ import annotations import json import logging import pathlib import typing as t import yaml logger = logging.getLogger(__name__) if t.TYPE_CHECKING: from typing import TypeAlias FormatLiteral = t.Literal["json", "yaml"] RawConfigData...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/_internal/private_path.py
null
null
null
null
null
null
Python
2026-05-04T01:59:42.543557
"""Privacy-aware path utilities for hiding sensitive directory information. This module provides utilities for masking user home directories in path output, useful for logging, debugging, and displaying paths without exposing PII. """ from __future__ import annotations import logging import os import pathlib import ...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/cli/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:59:42.553374
"""CLI utilities for tmuxp.""" from __future__ import annotations import argparse import logging import os import sys import typing as t from libtmux.__about__ import __version__ as libtmux_version from libtmux.common import has_minimum_version from libtmux.exc import TmuxCommandNotFound from tmuxp import exc from ...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/cli/_colors.py
null
null
null
null
null
null
Python
2026-05-04T01:59:42.553928
"""Backward-compatible re-exports from _internal.colors. This module re-exports color utilities from their new location in _internal.colors for backward compatibility with existing imports. .. deprecated:: Import directly from tmuxp._internal.colors instead. """ from __future__ import annotations import logging...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/cli/_formatter.py
null
null
null
null
null
null
Python
2026-05-04T01:59:42.556319
"""Custom help formatter for tmuxp CLI with colorized examples. This module provides a custom argparse formatter that colorizes example sections in help output, similar to vcspull's formatter. Examples -------- >>> from tmuxp.cli._formatter import TmuxpHelpFormatter >>> TmuxpHelpFormatter # doctest: +ELLIPSIS <class...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/_internal/types.py
null
null
null
null
null
null
Python
2026-05-04T01:59:42.557428
"""Internal, :const:`typing.TYPE_CHECKING` guarded :term:`typings <annotation>`. These are _not_ to be imported at runtime as `typing_extensions` is not bundled with tmuxp. Usage example: >>> import typing as t >>> if t.TYPE_CHECKING: ... from tmuxp._internal.types import PluginConfigSchema ... """ from __futur...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/cli/_output.py
null
null
null
null
null
null
Python
2026-05-04T01:59:42.588368
"""Output formatting utilities for tmuxp CLI. Provides structured output modes (JSON, NDJSON) alongside human-readable output. Examples -------- >>> from tmuxp.cli._output import OutputMode, OutputFormatter, get_output_mode Get output mode from flags: >>> get_output_mode(json_flag=False, ndjson_flag=False) <OutputM...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/cli/convert.py
null
null
null
null
null
null
Python
2026-05-04T01:59:42.605233
"""CLI for ``tmuxp convert`` subcommand.""" from __future__ import annotations import locale import logging import os import pathlib import typing as t from tmuxp import exc from tmuxp._internal.config_reader import ConfigReader from tmuxp._internal.private_path import PrivatePath from tmuxp.workspace.finders import...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/cli/debug_info.py
null
null
null
null
null
null
Python
2026-05-04T01:59:42.610805
"""CLI for ``tmuxp debug-info`` subcommand.""" from __future__ import annotations import argparse import logging import os import pathlib import platform import shutil import sys import typing as t from libtmux.__about__ import __version__ as libtmux_version from libtmux.common import get_version, tmux_cmd from tmu...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/cli/_progress.py
null
null
null
null
null
null
Python
2026-05-04T01:59:42.612102
"""Progress indicators for tmuxp CLI. This module provides a threaded spinner for long-running operations, using only standard library and ANSI escape sequences. """ from __future__ import annotations import atexit import collections import dataclasses import itertools import logging import shutil import sys import ...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/cli/edit.py
null
null
null
null
null
null
Python
2026-05-04T01:59:43.103711
"""CLI for ``tmuxp edit`` subcommand.""" from __future__ import annotations import logging import os import subprocess import typing as t from tmuxp._internal.private_path import PrivatePath from tmuxp.workspace.finders import find_workspace_file from ._colors import Colors, build_description, get_color_mode from ....
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/cli/import_config.py
null
null
null
null
null
null
Python
2026-05-04T01:59:43.162865
"""CLI for ``tmuxp import`` subcommand.""" from __future__ import annotations import locale import logging import os import pathlib import sys import typing as t from tmuxp._internal.config_reader import ConfigReader from tmuxp._internal.private_path import PrivatePath from tmuxp.workspace import importers from tmux...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/cli/utils.py
null
null
null
null
null
null
Python
2026-05-04T01:59:43.192553
"""CLI utility helpers for tmuxp.""" from __future__ import annotations import logging import typing as t from tmuxp._internal.colors import ( ColorMode, Colors, UnknownStyleColor, strip_ansi, style, unstyle, ) from tmuxp._internal.private_path import PrivatePath from tmuxp.log import tmuxp_e...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/cli/ls.py
null
null
null
null
null
null
Python
2026-05-04T01:59:43.193087
"""CLI for ``tmuxp ls`` subcommand. List and display workspace configuration files. Examples -------- >>> from tmuxp.cli.ls import WorkspaceInfo Create workspace info from file path: >>> import pathlib >>> ws = WorkspaceInfo( ... name="dev", ... path="~/.tmuxp/dev.yaml", ... format="yaml", ... size=...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/cli/search.py
null
null
null
null
null
null
Python
2026-05-04T01:59:43.195190
"""CLI for ``tmuxp search`` subcommand. Search workspace configuration files by name, session, path, and content. Examples -------- >>> from tmuxp.cli.search import SearchToken, normalize_fields Parse field aliases to canonical names: >>> normalize_fields(["s", "name"]) ('session_name', 'name') Create search token...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/cli/freeze.py
null
null
null
null
null
null
Python
2026-05-04T01:59:43.197932
"""CLI for ``tmuxp freeze`` subcommand.""" from __future__ import annotations import argparse import locale import logging import os import pathlib import sys import typing as t from libtmux.server import Server from tmuxp import exc, util from tmuxp._internal.config_reader import ConfigReader from tmuxp._internal....
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/cli/load.py
null
null
null
null
null
null
Python
2026-05-04T01:59:43.203289
"""CLI for ``tmuxp load`` subcommand.""" from __future__ import annotations import argparse import contextlib import importlib import logging import os import pathlib import shutil import sys import typing as t from libtmux.server import Server from tmuxp import exc, log, util from tmuxp._internal import config_rea...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/log.py
null
null
null
null
null
null
Python
2026-05-04T01:59:43.218676
#!/usr/bin/env python """Log utilities for tmuxp.""" from __future__ import annotations import logging import sys import time import typing as t from tmuxp._internal.colors import _ansi_colors, _ansi_reset_all logger = logging.getLogger(__name__) _ANSI_RESET = _ansi_reset_all # "\033[0m" _ANSI_BRIGHT = "\033[1m" ...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/cli/shell.py
null
null
null
null
null
null
Python
2026-05-04T01:59:43.224270
"""CLI for ``tmuxp shell`` subcommand.""" from __future__ import annotations import argparse import logging import os import pathlib import typing as t from libtmux.server import Server from tmuxp import util from tmuxp._compat import PY3, PYMINOR from ._colors import Colors, build_description, get_color_mode from...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/exc.py
null
null
null
null
null
null
Python
2026-05-04T01:59:43.280508
"""Exceptions for tmuxp.""" from __future__ import annotations import logging from libtmux._internal.query_list import ObjectDoesNotExist from ._compat import implements_to_string logger = logging.getLogger(__name__) class TmuxpException(Exception): """Base Exception for Tmuxp Errors.""" class WorkspaceErr...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/plugin.py
null
null
null
null
null
null
Python
2026-05-04T01:59:44.222464
"""Plugin system for tmuxp.""" from __future__ import annotations import logging import typing as t import libtmux from libtmux._compat import LegacyVersion as Version from libtmux.common import get_version from .__about__ import __version__ from .exc import TmuxpPluginException logger = logging.getLogger(__name__...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/workspace/freezer.py
null
null
null
null
null
null
Python
2026-05-04T01:59:44.422056
"""Tmux session freezing functionality for tmuxp.""" from __future__ import annotations import logging import typing as t logger = logging.getLogger(__name__) if t.TYPE_CHECKING: from libtmux.pane import Pane from libtmux.session import Session from libtmux.window import Window def inline(workspace_di...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/workspace/constants.py
null
null
null
null
null
null
Python
2026-05-04T01:59:44.812372
"""Constant variables for tmuxp workspace functionality.""" from __future__ import annotations import logging logger = logging.getLogger(__name__) VALID_WORKSPACE_DIR_FILE_EXTENSIONS = [".yaml", ".yml", ".json"]
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/types.py
null
null
null
null
null
null
Python
2026-05-04T01:59:44.813790
"""Internal :term:`type annotations <annotation>`. Notes ----- :class:`StrPath` and :class:`StrOrBytesPath` is based on `typeshed's`_. .. _typeshed's: https://github.com/python/typeshed/blob/9687d5/stdlib/_typeshed/__init__.pyi#L98 """ # E501 from __future__ import annotations import logging import typing as t lo...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/workspace/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:59:44.815497
"""tmuxp workspace functionality.""" from __future__ import annotations import logging logger = logging.getLogger(__name__)
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/util.py
null
null
null
null
null
null
Python
2026-05-04T01:59:44.821753
"""Utility and helper methods for tmuxp.""" from __future__ import annotations import logging import os import shlex import subprocess import sys import typing as t from . import exc from .log import tmuxp_echo if t.TYPE_CHECKING: import pathlib from libtmux.pane import Pane from libtmux.server import ...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/shell.py
null
null
null
null
null
null
Python
2026-05-04T01:59:44.822905
# mypy: allow-untyped-calls """Utility and helper methods for tmuxp.""" from __future__ import annotations import logging import os import pathlib import typing as t logger = logging.getLogger(__name__) if t.TYPE_CHECKING: from collections.abc import Callable from types import ModuleType from typing imp...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/workspace/builder.py
null
null
null
null
null
null
Python
2026-05-04T01:59:44.843297
"""Create a tmux workspace from a workspace :py:obj:`dict`.""" from __future__ import annotations import logging import os import shutil import time import typing as t from libtmux._internal.query_list import ObjectDoesNotExist from libtmux.pane import Pane from libtmux.server import Server from libtmux.session impo...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/workspace/loader.py
null
null
null
null
null
null
Python
2026-05-04T01:59:44.848408
"""Workspace hydration and loading for tmuxp.""" from __future__ import annotations import logging import os import pathlib import typing as t logger = logging.getLogger(__name__) def expandshell(value: str) -> str: """Resolve shell variables based on user's ``$HOME`` and ``env``. :py:func:`os.path.expand...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/workspace/validation.py
null
null
null
null
null
null
Python
2026-05-04T01:59:45.012359
"""Validation errors for tmuxp configuration files.""" from __future__ import annotations import logging import typing as t from tmuxp import exc logger = logging.getLogger(__name__) class SchemaValidationError(exc.WorkspaceError): """Tmuxp configuration validation base error.""" class SessionNameMissingVal...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/workspace/finders.py
null
null
null
null
null
null
Python
2026-05-04T01:59:45.013614
"""Workspace (configuration file) finders for tmuxp.""" from __future__ import annotations import logging import os import pathlib import typing as t from tmuxp._internal.colors import ColorMode, Colors from tmuxp._internal.private_path import PrivatePath from tmuxp.log import tmuxp_echo from tmuxp.workspace.constan...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
tests/_internal/conftest.py
null
null
null
null
null
null
Python
2026-05-04T01:59:45.656857
"""Shared pytest fixtures for _internal tests.""" from __future__ import annotations import pytest from tmuxp._internal.colors import ColorMode, Colors # ANSI escape codes for test assertions # These constants improve test readability by giving semantic names to color codes ANSI_GREEN = "\033[32m" ANSI_RED = "\033[...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
tests/_internal/test_colors_formatters.py
null
null
null
null
null
null
Python
2026-05-04T01:59:45.658956
"""Tests for Colors class formatting helper methods.""" from __future__ import annotations import pytest from tests._internal.conftest import ANSI_BLUE, ANSI_BOLD, ANSI_CYAN, ANSI_MAGENTA from tmuxp._internal.colors import ColorMode, Colors # format_label tests def test_format_label_plain_text() -> None: """f...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
tests/_internal/test_colors.py
null
null
null
null
null
null
Python
2026-05-04T01:59:45.659407
"""Tests for _internal color utilities.""" from __future__ import annotations import sys import pytest from tests._internal.conftest import ( ANSI_BLUE, ANSI_BOLD, ANSI_BRIGHT_CYAN, ANSI_CYAN, ANSI_GREEN, ANSI_MAGENTA, ANSI_RED, ANSI_RESET, ANSI_YELLOW, ) from tmuxp._internal.col...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
tests/_internal/test_colors_integration.py
null
null
null
null
null
null
Python
2026-05-04T01:59:46.239340
"""Integration tests for color output across all commands.""" from __future__ import annotations import sys import typing as t import pytest from tests._internal.conftest import ANSI_BOLD, ANSI_MAGENTA, ANSI_RESET from tmuxp._internal.colors import ColorMode, Colors, get_color_mode # Color flag integration tests ...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
tests/_internal/test_private_path.py
null
null
null
null
null
null
Python
2026-05-04T01:59:46.444433
"""Tests for PrivatePath privacy-masking utilities.""" from __future__ import annotations import pathlib import pytest from tmuxp._internal.private_path import PrivatePath, collapse_home_in_string # PrivatePath tests def test_private_path_collapses_home(monkeypatch: pytest.MonkeyPatch) -> None: """PrivatePat...
tmux-python/tmuxp
https://github.com/tmux-python/tmuxp
null
null
null
null
4,496
null
null
mit
null
null
null
null
null
null
null
src/tmuxp/workspace/importers.py
null
null
null
null
null
null
Python
2026-05-04T01:59:49.107115
"""Configuration import adapters to load teamocil, tmuxinator, etc. in tmuxp.""" from __future__ import annotations import logging import typing as t logger = logging.getLogger(__name__) def import_tmuxinator(workspace_dict: dict[str, t.Any]) -> dict[str, t.Any]: """Return tmuxp workspace from a `tmuxinator`_ ...
microsoft/BioGPT
https://github.com/microsoft/BioGPT
null
null
null
null
4,485
null
null
mit
null
null
null
null
null
null
null
examples/DC-HoC/hard_match_evaluation.py
null
null
null
null
null
null
Python
2026-05-04T01:59:51.851799
# coding: utf-8 # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. from ast import Global import os import sys from sklearn.metrics import f1_score from sklearn.preprocessing import MultiLabelBinarizer pred_file = sys.argv[1] gold_file = sys.argv[2] def convert_hoc_labels(lines): labels = ...
microsoft/BioGPT
https://github.com/microsoft/BioGPT
null
null
null
null
4,485
null
null
mit
null
null
null
null
null
null
null
examples/DC-HoC/rebuild_data.py
null
null
null
null
null
null
Python
2026-05-04T01:59:51.853963
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import os import sys data_dir=sys.argv[1] def build_target_seq(tgt): tgt = 'the type of this document is ' + tgt + '.' return tgt def loader(fname, fn): ret = [] cnt = 0 file = open(fname) for line in file: ...
microsoft/BioGPT
https://github.com/microsoft/BioGPT
null
null
null
null
4,485
null
null
mit
null
null
null
null
null
null
null
examples/QA-PubMedQA/rebuild_data.py
null
null
null
null
null
null
Python
2026-05-04T01:59:51.855181
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import os import sys import re import json data_dir=sys.argv[1] prefix=sys.argv[2] def build_source_seq(question, context, long_answer=None): if long_answer: src = "question: {} context: {} answer: {}".format(question.strip(), cont...
microsoft/BioGPT
https://github.com/microsoft/BioGPT
null
null
null
null
4,485
null
null
mit
null
null
null
null
null
null
null
examples/DC-HoC/postprocess.py
null
null
null
null
null
null
Python
2026-05-04T01:59:51.856346
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import sys import re out_file = sys.argv[1] prefix = [ '(learned[0-9]+ )+', 'we can conclude that', 'we have that', 'in conclusion,', ] def strip_prefix(line): for p in prefix: res = re.search(p, line) ...
microsoft/BioGPT
https://github.com/microsoft/BioGPT
null
null
null
null
4,485
null
null
mit
null
null
null
null
null
null
null
data/BC5CDR/raw/BC5CDR_Evaluation-0.0.3/data/test/rment.py
null
null
null
null
null
null
Python
2026-05-04T01:59:51.857553
import sys import json from itertools import groupby from turtle import title inp_f = sys.argv[1] out_f = sys.argv[2] def read_pubtator(file): file = open(file, "r") lines = (line.strip() for line in file) for k, g in groupby(lines, key=bool): g = list(g) if g[0]: yield g ...
microsoft/BioGPT
https://github.com/microsoft/BioGPT
null
null
null
null
4,485
null
null
mit
null
null
null
null
null
null
null
examples/RE-BC5CDR/postprocess.py
null
null
null
null
null
null
Python
2026-05-04T01:59:51.858914
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import os import sys import re import json out_file = sys.argv[1] entity_file=sys.argv[2] pmids_file = sys.argv[3] prefix = [ '(learned[0-9]+ )+', 'in conclusion ,', 'we can conclude that', 'we have that', ] def strip_pre...