max_stars_repo_path stringlengths 4 237 | max_stars_repo_name stringlengths 6 117 | max_stars_count int64 0 95.2k | id stringlengths 1 7 | content stringlengths 12 593k | input_ids listlengths 7 549k |
|---|---|---|---|---|---|
RenameMaps.py | uesp/uesp-dbmapscripts | 0 | 16507 | <reponame>uesp/uesp-dbmapscripts<filename>RenameMaps.py
import os
import sys
import shutil
import re
INPUT_PATH = "d:\\dbmaps\\test\\final\\"
OUTPUT_PATH = "d:\\dbmaps\\test\\zoom17\\"
for filename in os.listdir(INPUT_PATH):
InputFile = INPUT_PATH + filename
matchResult = re.search('([a-zA-Z]+)-... | [
1,
529,
276,
1112,
420,
29958,
1041,
29886,
29914,
1041,
29886,
29899,
2585,
1958,
16713,
29966,
9507,
29958,
29934,
3871,
29924,
2547,
29889,
2272,
13,
5215,
2897,
30004,
13,
5215,
10876,
30004,
13,
5215,
528,
4422,
30004,
13,
5215,
337,... |
get_together/management/commands/send_email_confirmation_reminder.py | albjeremias/GetTogether | 13 | 66591 | from django.core.management.base import BaseCommand, CommandError
from django.urls import reverse
from django.core.mail import send_mail
from django.template.loader import get_template, render_to_string
from django.conf import settings
from django.contrib.sites.models import Site
from accounts.models import Account, E... | [
1,
515,
9557,
29889,
3221,
29889,
21895,
29889,
3188,
1053,
7399,
6255,
29892,
10516,
2392,
13,
3166,
9557,
29889,
26045,
1053,
11837,
13,
3166,
9557,
29889,
3221,
29889,
2549,
1053,
3638,
29918,
2549,
13,
3166,
9557,
29889,
6886,
29889,
... |
src/sage/manifolds/differentiable/automorphismfield.py | mkoeppe/sage | 1 | 197161 | <gh_stars>1-10
r"""
Tangent-Space Automorphism Fields
The class :class:`AutomorphismField` implements fields of automorphisms of
tangent spaces to a generic (a priori not parallelizable) differentiable
manifold, while the class :class:`AutomorphismFieldParal`
is devoted to fields of automorphisms of tangent spaces to ... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29878,
15945,
29908,
13,
29911,
574,
296,
29899,
14936,
5202,
14143,
8989,
29879,
13,
13,
1576,
770,
584,
1990,
18078,
6147,
14143,
3073,
29952,
10703,
4235,
310,
334... |
openapi-python-client/openapi_client/models/signal_dto.py | yanavasileva/camunda-bpm-examples | 0 | 95472 | # coding: utf-8
"""
Camunda BPM REST API
OpenApi Spec for Camunda BPM REST API. # noqa: E501
The version of the OpenAPI document: 7.13.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from openapi_client.configuration import Configuration
clas... | [
1,
396,
14137,
29901,
23616,
29899,
29947,
13,
13,
15945,
29908,
13,
1678,
5500,
8917,
350,
13427,
16759,
3450,
13,
13,
1678,
4673,
11713,
12048,
363,
5500,
8917,
350,
13427,
16759,
3450,
29889,
29871,
396,
694,
25621,
29901,
382,
29945,
... |
tests/test_assign_to_workflow_stage.py | EdinburghGenomics/clarity_scripts | 2 | 84964 | from unittest.mock import Mock, patch, PropertyMock
from EPPs.common import StepEPP
from scripts import assign_to_workflow_stage
from tests.test_common import fake_all_inputs, TestEPP
class TestAssignWorkflowStage(TestEPP):
def setUp(self):
argv = self.default_argv + [
'--workflow', 'a_workflo... | [
1,
515,
443,
27958,
29889,
17640,
1053,
26297,
29892,
13261,
29892,
9079,
18680,
13,
3166,
16502,
29925,
29879,
29889,
9435,
1053,
16696,
15488,
29925,
13,
3166,
12078,
1053,
3566,
29918,
517,
29918,
1287,
1731,
29918,
19190,
13,
3166,
6987... |
src/metrics/precision.py | Jud1cator/training-pipeline | 0 | 193150 | <reponame>Jud1cator/training-pipeline<filename>src/metrics/precision.py
import numpy as np
from src.metrics.abstract_metric import AbstractMetric
class Precision(AbstractMetric):
def __init__(self):
super().__init__()
def get_value(self, confusion_matrix: np.ndarray):
return np.mean(np.nan_t... | [
1,
529,
276,
1112,
420,
29958,
29967,
566,
29896,
29883,
1061,
29914,
26495,
29899,
13096,
5570,
29966,
9507,
29958,
4351,
29914,
2527,
10817,
29914,
17990,
2459,
29889,
2272,
13,
5215,
12655,
408,
7442,
13,
13,
3166,
4765,
29889,
2527,
1... |
wikipron/extract/cmn.py | Alireza-Sampour/wikipron | 1 | 20131 | <gh_stars>1-10
"""Word and pron extraction for (Mandarin) Chinese."""
import itertools
import typing
import requests
from wikipron.extract.default import yield_pron, IPA_XPATH_SELECTOR
if typing.TYPE_CHECKING:
from wikipron.config import Config
from wikipron.typing import Iterator, Word, Pron, WordPronPair... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
15945,
29908,
14463,
322,
11504,
4805,
428,
363,
313,
29924,
392,
27139,
29897,
10013,
1213,
15945,
13,
13,
5215,
4256,
8504,
13,
5215,
19229,
13,
13,
5215,
7274,
1... |
rasp/analysis/regression.py | CreeperLin/RASP | 1 | 58632 | <filename>rasp/analysis/regression.py
import numpy as np
from ..utils.config import CFG
from sklearn.preprocessing import OneHotEncoder
from sklearn.metrics import r2_score, mean_squared_error, mean_absolute_error
def get_linear_model():
from sklearn.linear_model import LinearRegression
model = LinearRegressi... | [
1,
529,
9507,
29958,
3417,
29886,
29914,
15916,
29914,
276,
11476,
29889,
2272,
13,
5215,
12655,
408,
7442,
13,
3166,
6317,
13239,
29889,
2917,
1053,
17861,
29954,
13,
3166,
2071,
19668,
29889,
1457,
19170,
1053,
3118,
28917,
8566,
6119,
... |
backend/admin/__init__.py | szkkteam/agrosys | 0 | 180799 | <reponame>szkkteam/agrosys<gh_stars>0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Common Python library imports
# Pip package imports
# Internal package imports
from backend.magic import Bundle
from .macro import macro
from .model_admin import ModelAdmin
from .file_admin import FileAdmin
admin_bundle = Bundle(_... | [
1,
529,
276,
1112,
420,
29958,
3616,
6859,
14318,
29914,
351,
1883,
952,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
... |
main.py | Tortle6/wordle-console | 0 | 105868 | <filename>main.py
# Import packages
import random
from string import ascii_lowercase
from read_file import read_file
import enchant
from colorama import Fore, init
init(autoreset=True)
d = enchant.Dict("en_US")
# Read config file
SOLUTION_FILE = "solution_words.json"
SETTINGS_FILE = "settings.json"
... | [
1,
529,
9507,
29958,
3396,
29889,
2272,
13,
29937,
16032,
9741,
30004,
13,
5215,
4036,
30004,
13,
3166,
1347,
1053,
408,
18869,
29918,
13609,
4878,
30004,
13,
30004,
13,
3166,
1303,
29918,
1445,
1053,
1303,
29918,
1445,
30004,
13,
30004,
... |
webapp/app/views.py | freddyox/letsdothis | 0 | 62392 | from flask import render_template, url_for, request, Flask
from app import app
import pandas as pd
from flaskext.mysql import MySQL
import matplotlib.pyplot as plt
from matplotlib.patches import Patch
plt.switch_backend('agg')
import numpy as np
import operator # sorting dictionary
import random
import string
########... | [
1,
515,
29784,
1053,
4050,
29918,
6886,
29892,
3142,
29918,
1454,
29892,
2009,
29892,
2379,
1278,
13,
3166,
623,
1053,
623,
13,
5215,
11701,
408,
10518,
13,
3166,
1652,
294,
446,
486,
29889,
7938,
1053,
9254,
13,
5215,
22889,
29889,
227... |
tools/test.py | nishgowda/docktor | 41 | 86386 | <filename>tools/test.py<gh_stars>10-100
#!/usr/bin/env python3
import unittest
import docker
import os
import time
import subprocess
client = docker.from_env()
class TestDocktor(unittest.TestCase):
def test_healthcheck(self):
os.system('.././bin/./docktor healthcheck')
# waits for container to star... | [
1,
529,
9507,
29958,
8504,
29914,
1688,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
5215,
443,
27958,
13,
5215,
10346,
13,
... |
Mac/Modules/launch/launchscan.py | jasonadu/Python-2.5 | 1 | 149824 | <reponame>jasonadu/Python-2.5
# Scan an Apple header file, generating a Python file of generator calls.
import sys
import os
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
LONG = "LaunchServices"
SHORT = "launch"
OBJECT = "NOTUSED"
def main():
input = LONG + ... | [
1,
529,
276,
1112,
420,
29958,
29926,
1658,
13467,
29914,
11980,
29899,
29906,
29889,
29945,
13,
29937,
2522,
273,
385,
12113,
4839,
934,
29892,
14655,
263,
5132,
934,
310,
15299,
5717,
29889,
13,
13,
5215,
10876,
13,
5215,
2897,
13,
31... |
main.py | anirudha-bs/Distributed_storage_ipfs | 0 | 19051 | <reponame>anirudha-bs/Distributed_storage_ipfs
from files import write_key, load_key, encrypt, decrypt
import os
from ipfs import add,pin,get_file
def switch(option):
return switcher.get(option, default)()
# Encrypts file and adds to ipfs
def encrypt_ipfs_add():
file=input("Enter the file name to be added - "... | [
1,
529,
276,
1112,
420,
29958,
273,
381,
566,
2350,
29899,
5824,
29914,
13398,
7541,
29918,
12925,
29918,
666,
5847,
13,
3166,
2066,
1053,
2436,
29918,
1989,
29892,
2254,
29918,
1989,
29892,
27924,
29892,
1602,
4641,
13,
5215,
2897,
13,
... |
E020/main.py | alperkonuralp/AlperIlePython | 1 | 40012 |
def topla(a, b):
toplam = a + b
if a < b:
kucuk = a
else:
kucuk = b
return (toplam, kucuk)
toplam, kucuk = topla(1, 2)
print(toplam, kucuk)
tuple1 = (1, 2, 3)
tuple2 = 1, 2, 3
tuple3 = tuple([1, 2, 3, 4, 5])
ilkSayi = tuple2[0]
ikinciSayi = tuple2[1]
ucunc... | [
1,
6756,
13,
30004,
13,
1753,
2246,
433,
29898,
29874,
29892,
289,
1125,
30004,
13,
1678,
304,
572,
314,
353,
263,
718,
289,
30004,
13,
1678,
565,
263,
529,
289,
29901,
30004,
13,
4706,
413,
1682,
2679,
353,
263,
30004,
13,
1678,
16... |
training.py | oakwood44267/scooter | 4 | 35763 | <reponame>oakwood44267/scooter
#!/usr/bin/python3
import pandas as pd
import numpy as np
from glob import glob
from sklearn.model_selection import train_test_split
from sklearn.utils import shuffle
from sklearn.metrics import classification_report, confusion_matrix
from tensorflow.keras.models import Sequential
from... | [
1,
529,
276,
1112,
420,
29958,
29877,
557,
6115,
29946,
29946,
29906,
29953,
29955,
29914,
29879,
1111,
17084,
13,
29937,
14708,
4855,
29914,
2109,
29914,
4691,
29941,
13,
13,
5215,
11701,
408,
10518,
13,
5215,
12655,
408,
7442,
13,
3166,... |
python/day13.py | narimiran/advent_of_code_2015 | 5 | 179601 | from collections import defaultdict
from itertools import permutations
def parse_line(line):
a, _, gl, n, *_, b = line.split()
return a, b[:-1], gl, int(n)
def create_relations(data):
relations = defaultdict(lambda: defaultdict(int))
for a, b, gl, n in data:
relations[a][b] = n if gl == 'gain... | [
1,
515,
16250,
1053,
2322,
8977,
13,
3166,
4256,
8504,
1053,
20005,
800,
13,
13,
13,
1753,
6088,
29918,
1220,
29898,
1220,
1125,
13,
1678,
263,
29892,
17117,
3144,
29892,
302,
29892,
334,
3383,
289,
353,
1196,
29889,
5451,
580,
13,
16... |
vumi/worker.py | hnec-vr/vumi | 1 | 22581 | # -*- test-case-name: vumi.tests.test_worker -*-
"""Basic tools for workers that handle TransportMessages."""
import time
import os
import socket
from twisted.internet.defer import (
inlineCallbacks, succeed, maybeDeferred, gatherResults)
from twisted.python import log
from vumi.service import Worker
from vumi.... | [
1,
396,
448,
29930,
29899,
1243,
29899,
4878,
29899,
978,
29901,
325,
15547,
29889,
21150,
29889,
1688,
29918,
24602,
448,
29930,
29899,
13,
13,
15945,
29908,
16616,
8492,
363,
17162,
393,
4386,
15710,
25510,
1213,
15945,
13,
13,
5215,
93... |
Chapter05/restful_python_2_05/Django01/games_service/games/models.py | PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition | 45 | 34209 | <filename>Chapter05/restful_python_2_05/Django01/games_service/games/models.py
from django.db import models
class Game(models.Model):
created_timestamp = models.DateTimeField(auto_now_add=True)
name = models.CharField(max_length=200)
release_date = models.DateTimeField()
esrb_rating = models.CharField... | [
1,
529,
9507,
29958,
1451,
3314,
29900,
29945,
29914,
5060,
1319,
29918,
4691,
29918,
29906,
29918,
29900,
29945,
29914,
29928,
5364,
29900,
29896,
29914,
29887,
1280,
29918,
5509,
29914,
29887,
1280,
29914,
9794,
29889,
2272,
13,
3166,
9557,... |
Round H/friends2.py | kamyu104/GoogleKickStart-2020 | 39 | 99601 | # Copyright (c) 2020 kamyu. All rights reserved.
#
# Google Kick Start 2020 Round H - Problem D. Friends
# https://codingcompetitions.withgoogle.com/kickstart/round/000000000019ff49/000000000043aee7
#
# Time: O(A^3 + L^2 * (N + Q)) = O(N + Q) since O(A) = O(26), O(L) = O(20), pass in PyPy2 but Python2
# Space: O(A^2) ... | [
1,
396,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29906,
29900,
9286,
29891,
29884,
29889,
2178,
10462,
21676,
29889,
13,
29937,
13,
29937,
5087,
476,
860,
7370,
29871,
29906,
29900,
29906,
29900,
21595,
379,
448,
11583,
360,
298... |
nn/exponential_moving_average.py | GuillaumeRochette/HumanViewSynthesis | 10 | 103626 | import torch
from torch import Tensor
from torch.nn import Module
class ExponentialMovingAverage(Module):
def __init__(self, *size: int, momentum: float = 0.995):
super(ExponentialMovingAverage, self).__init__()
self.register_buffer("average", torch.ones(*size))
self.register_buffer("init... | [
1,
1053,
4842,
305,
13,
3166,
4842,
305,
1053,
323,
6073,
13,
3166,
4842,
305,
29889,
15755,
1053,
15591,
13,
13,
13,
1990,
1222,
1112,
2556,
29924,
21081,
29909,
19698,
29898,
7355,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
... |
code/interruptible_pool.py | mjvakili/supermean | 1 | 129824 | <reponame>mjvakili/supermean
# -*- coding: utf-8 -*-
from __future__ import (division, print_function, absolute_import,
unicode_literals)
__all__ = ["InterruptiblePool"]
import signal
import functools
from multiprocessing.pool import Pool
from multiprocessing import TimeoutError
def _initia... | [
1,
529,
276,
1112,
420,
29958,
29885,
29926,
29894,
557,
2638,
29914,
9136,
12676,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
3166,
4770,
29888,
9130,
1649,
1053,
313,
4563,
2459,
29892,
15... |
tests/epyccel/conftest.py | noushi/pyccel | 0 | 191261 | # pylint: disable=missing-function-docstring, missing-module-docstring/
import os
import shutil
import pytest
@pytest.fixture( params=[
pytest.param("fortran", marks = pytest.mark.fortran),
pytest.param("c", marks = [
pytest.mark.c]
)
]
)
def language(request):
return reques... | [
1,
396,
282,
2904,
524,
29901,
11262,
29922,
27259,
29899,
2220,
29899,
1514,
1807,
29892,
4567,
29899,
5453,
29899,
1514,
1807,
29914,
13,
5215,
2897,
13,
5215,
528,
4422,
13,
5215,
11451,
1688,
13,
13,
29992,
2272,
1688,
29889,
7241,
... |
Problems/sibice.py | ramonrwx/kattis | 1 | 52277 | from math import hypot
n, w, h = (int(x) for x in input().split())
def fits_in_box(nums: list[int]) -> None:
longest = hypot(w, h)
for num in nums:
print('DA') if num <= longest else print('NE')
fits_in_box(int(input()) for _ in range(n))
| [
1,
515,
5844,
1053,
10163,
327,
13,
13,
29876,
29892,
281,
29892,
298,
353,
313,
524,
29898,
29916,
29897,
363,
921,
297,
1881,
2141,
5451,
3101,
13,
13,
13,
1753,
23994,
29918,
262,
29918,
1884,
29898,
1949,
29879,
29901,
1051,
29961,
... |
pris/gui.py | alex-rusakevich/pris | 0 | 115500 | <reponame>alex-rusakevich/pris
from tkinter import messagebox as tm
from PIL import Image, ImageTk
from tkinter import font
from mss import mss
from queue import Queue
import tkinter as tk
import tkinter.ttk as ttk
import tkinter.filedialog as tf
import os, mouse, keyboard, traceback, webbrowser
import threading, mss... | [
1,
529,
276,
1112,
420,
29958,
744,
29916,
29899,
15816,
1296,
29894,
436,
29914,
558,
275,
13,
3166,
18883,
1639,
1053,
2643,
1884,
408,
27702,
13,
3166,
349,
6227,
1053,
7084,
29892,
7084,
29911,
29895,
13,
3166,
18883,
1639,
1053,
40... |
tip.py | umbru/discord-tipbot | 0 | 142565 | from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException
from decimal import Decimal
import discord
from discord.ext import commands
import user_db
import config
rpc_connection = 'http://{0}:{1}@{2}:{3}'.format(config.rpc_user, config.rpc_password, config.ip, config.rpc_port)
def str_isfloat(str):
try... | [
1,
515,
2586,
1111,
262,
29878,
6739,
29889,
5150,
14701,
1053,
13189,
3170,
14048,
29892,
4663,
29934,
9026,
2451,
13,
3166,
13677,
1053,
3826,
3039,
13,
5215,
2313,
536,
13,
3166,
2313,
536,
29889,
1062,
1053,
8260,
13,
13,
5215,
1404... |
demos/prey-predator/prey_predator_abm/sim_params.py | neo-empresarial/covid-19 | 3 | 7801 | """
Simulation parameters.
"""
SIMULATION_TIME_STEPS = 300
| [
1,
9995,
13,
8942,
2785,
4128,
29889,
13,
15945,
29908,
13,
13,
5425,
29924,
13309,
8098,
29918,
15307,
29918,
1254,
29923,
7024,
353,
29871,
29941,
29900,
29900,
13,
2
] |
toast.py | ErinMorelli/em-slack-french-toast | 0 | 179794 | """
Copyright (c) 2021 <NAME>.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublic... | [
1,
9995,
13,
11882,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29906,
29896,
529,
5813,
15513,
13,
13,
27293,
338,
1244,
1609,
16896,
29892,
3889,
310,
8323,
29892,
304,
738,
2022,
4017,
292,
13,
29874,
3509,
310,
445,
7047,
322,
694... |
backend/app/schemas/article_option.py | alexd2580/portnoy | 0 | 193174 | <filename>backend/app/schemas/article_option.py
from pydantic import BaseModel, Json
from app.types.article import Color, Piece, Sex, Size
class ArticleOptions(BaseModel):
piece: Json[list[Piece]]
sex: Json[list[Sex]]
size: Json[list[Size]]
color: Json[list[Color]]
class Config:
orm_mode... | [
1,
529,
9507,
29958,
27852,
29914,
932,
29914,
11993,
29914,
7914,
29918,
3385,
29889,
2272,
13,
3166,
282,
2941,
7716,
1053,
7399,
3195,
29892,
14355,
13,
13,
3166,
623,
29889,
8768,
29889,
7914,
1053,
9159,
29892,
26005,
346,
29892,
217... |
app/main/forms.py | tonyishangu/Pitch | 0 | 42587 | from flask_wtf import FlaskForm
from wtforms import StringField,TextAreaField,SubmitField, SelectField
from wtforms.validators import Required
class PitchForm(FlaskForm):
title = StringField('Pitch title',validators=[Required()])
category = SelectField('Pitch category', choices=[('Motivational', 'Motivational... | [
1,
515,
29784,
29918,
29893,
13264,
1053,
2379,
1278,
2500,
13,
3166,
281,
29873,
9514,
1053,
1714,
3073,
29892,
1626,
13799,
3073,
29892,
16228,
3073,
29892,
7605,
3073,
13,
3166,
281,
29873,
9514,
29889,
3084,
4097,
1053,
830,
5958,
13,... |
build/lib.linux-x86_64-3.7/max_convolution2d/max_convolution2d.py | KarenUllrich/Pytorch-MaxConvolution-extension | 0 | 89528 | import math
from torch import nn
from torch.autograd import Function
from torch.autograd.function import once_differentiable
from torch.nn.modules.utils import _pair
import max_convolution2d_sampler_backend as max_convolution2d
def max_conv2d(input,
weight,
kernel_size=2,
... | [
1,
1053,
5844,
13,
3166,
4842,
305,
1053,
302,
29876,
13,
3166,
4842,
305,
29889,
1300,
468,
3665,
1053,
6680,
13,
3166,
4842,
305,
29889,
1300,
468,
3665,
29889,
2220,
1053,
2748,
29918,
29881,
8349,
7268,
519,
13,
3166,
4842,
305,
2... |
Hackerearth_codemonk/Basic Input Output/seating arrengement.py | a3X3k/Competitive-programing-hacktoberfest-2021 | 12 | 180600 | t=int(input())
for i in range(t):
s=int(input())
m=s%12
if m==1:
print(s+11,'WS')
elif m==2:
print(s+9,'MS')
elif m==3:
print(s+7,'AS')
elif m==4:
print(s+5,'AS')
elif m==5:
print(s+3,'MS')
elif m==6:
print(s+1,'WS')
elif m==7:
... | [
1,
260,
29922,
524,
29898,
2080,
3101,
13,
1454,
474,
297,
3464,
29898,
29873,
1125,
13,
1678,
269,
29922,
524,
29898,
2080,
3101,
13,
1678,
286,
29922,
29879,
29995,
29896,
29906,
13,
1678,
565,
286,
1360,
29896,
29901,
13,
4706,
1596,... |
plugins/plot/__init__.py | DeStream-dev/electrum-destream | 26 | 36078 | <reponame>DeStream-dev/electrum-destream
# from electrum_stratis.i18n import _
# fullname = 'Plot History'
# description = _("Ability to plot transaction history in graphical mode.")
# requires = [('matplotlib', 'matplotlib')]
# available_for = ['qt']
| [
1,
529,
276,
1112,
420,
29958,
2772,
3835,
29899,
3359,
29914,
15436,
5848,
29899,
7854,
1633,
13,
29937,
515,
3546,
5848,
29918,
710,
18792,
29889,
29875,
29896,
29947,
29876,
1053,
903,
13,
13,
29937,
2989,
978,
353,
525,
20867,
5298,
... |
mmd_tools/core/pmx/importer.py | ptrthomas/blender_mmd_tools | 0 | 197795 | <reponame>ptrthomas/blender_mmd_tools
# -*- coding: utf-8 -*-
import os
import collections
import logging
import time
import bpy
from mathutils import Vector, Matrix
import mmd_tools.core.model as mmd_model
from mmd_tools import utils
from mmd_tools import bpyutils
from mmd_tools.core import pmx
from mmd_tools.core.b... | [
1,
529,
276,
1112,
420,
29958,
7414,
386,
18902,
29914,
2204,
1581,
29918,
29885,
3487,
29918,
8504,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
5215,
2897,
13,
5215,
16250,
13,
5215,
12183,
13,... |
attendees/whereabouts/migrations/0006_property.py | xjlin0/attendees32 | 0 | 1600392 | # Generated by Django 3.0.2 on 2020-01-14 06:35
from django.db import migrations, models
from attendees.persons.models import Utility
import django.utils.timezone
import model_utils.fields
class Migration(migrations.Migration):
dependencies = [
('whereabouts', '0005_campus'),
]
operations = [
... | [
1,
396,
3251,
630,
491,
15337,
29871,
29941,
29889,
29900,
29889,
29906,
373,
29871,
29906,
29900,
29906,
29900,
29899,
29900,
29896,
29899,
29896,
29946,
29871,
29900,
29953,
29901,
29941,
29945,
13,
13,
3166,
9557,
29889,
2585,
1053,
9725,
... |
SPORFTest/venv/SPORFTest.py | alt440/NeurodataTools | 0 | 78005 | <reponame>alt440/NeurodataTools<gh_stars>0
# the forest classifier that I want to test (rerf == sporf)
from rerf.rerfClassifier import rerfClassifier
# Import scikit-learn dataset library. Machine learning tool for python. Used here to get some data.
from sklearn import datasets
# Creating a DataFrame of given iris d... | [
1,
529,
276,
1112,
420,
29958,
1997,
29946,
29946,
29900,
29914,
8139,
2192,
1272,
24183,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
278,
13569,
770,
3709,
393,
306,
864,
304,
1243,
313,
2872,
29888,
1275,
805,
4877,
29897,
... |
sirepo/template/elegant_command_importer.py | bsmith39/CS595Project | 1 | 110614 | <reponame>bsmith39/CS595Project<filename>sirepo/template/elegant_command_importer.py
# -*- coding: utf-8 -*-
u"""elegant lattice parser.
:copyright: Copyright (c) 2015 RadiaSoft LLC. All Rights Reserved.
:license: http://www.apache.org/licenses/LICENSE-2.0.html
"""
from __future__ import absolute_import, division, pr... | [
1,
529,
276,
1112,
420,
29958,
29890,
3844,
389,
29941,
29929,
29914,
9295,
29945,
29929,
29945,
7653,
29966,
9507,
29958,
29879,
533,
1129,
29914,
6886,
29914,
29872,
1397,
424,
29918,
6519,
29918,
326,
18505,
29889,
2272,
13,
29937,
448,
... |
utils.py | baptisteviera/Original_Minesweeper_SAT_Solver | 0 | 1604746 | <reponame>baptisteviera/Original_Minesweeper_SAT_Solver
from typing import List, Tuple, TypedDict
import subprocess
import itertools
# alias de types
Variable = int
Clause = List[Variable]
Model = List[Variable]
ClausesBase = List[Clause]
Grid = List[List[dict]]
# server data
TStatus = str # "OK"|"KO"|"Err"|"GG"
TMs... | [
1,
529,
276,
1112,
420,
29958,
29890,
2156,
2488,
7214,
29874,
29914,
26036,
29918,
29924,
1475,
705,
11356,
29918,
29903,
1299,
29918,
13296,
369,
13,
3166,
19229,
1053,
2391,
29892,
12603,
552,
29892,
14213,
287,
21533,
13,
5215,
1014,
... |
feedback/forms.py | davidavi1/ecosystem1 | 0 | 41855 | from django import forms
from .models import FeedBackModel
class FeedBackForms(forms.ModelForm):
class Meta:
model = FeedBackModel
fields = ('name', 'last_name', 'subject', 'text')
| [
1,
515,
9557,
1053,
7190,
30004,
13,
3166,
869,
9794,
1053,
5169,
287,
5841,
3195,
30004,
13,
30004,
13,
30004,
13,
1990,
5169,
287,
5841,
12605,
29898,
9514,
29889,
3195,
2500,
1125,
30004,
13,
1678,
770,
20553,
29901,
30004,
13,
4706,... |
examples/dump_big_depth.py | Banksorasit/freenect2-python | 21 | 189225 | <gh_stars>10-100
import json
from freenect2 import Device, FrameType
import numpy as np
def main():
device = Device()
frames = {}
with device.running():
for type_, frame in device:
frames[type_] = frame
if FrameType.Color in frames and FrameType.Depth in frames:
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
5215,
4390,
13,
3166,
285,
2733,
522,
29906,
1053,
21830,
29892,
12218,
1542,
13,
5215,
12655,
408,
7442,
13,
13,
1753,
1667,
7295,
13,
1678,
4742,
35... |
tests/settings.py | tanjibpa/django-coconut | 0 | 24852 | <reponame>tanjibpa/django-coconut<filename>tests/settings.py
# -*- coding: utf-8 -*-
#
# django-coconuts
# Copyright (c) 2008-2017, <NAME>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1... | [
1,
529,
276,
1112,
420,
29958,
13161,
29926,
747,
3274,
29914,
14095,
29899,
1111,
535,
329,
29966,
9507,
29958,
21150,
29914,
11027,
29889,
2272,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937... |
14 OpenCV/stuff/detect.py | barjacks/algorithms_mine | 0 | 117115 | import numpy as np
import cv2
face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
filename = "obama.jpg"
# Show the original image
img = cv2.imread(filename)
# Convert to grayscale, show it
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
faces = face_cascade.detectMultiScale(gray, 1.3, 5)
for ... | [
1,
1053,
12655,
408,
7442,
13,
5215,
13850,
29906,
13,
13,
2161,
29918,
9398,
6332,
353,
13850,
29906,
29889,
29907,
294,
6332,
2385,
3709,
877,
2350,
5666,
294,
6332,
29918,
8862,
284,
2161,
29918,
4381,
29889,
3134,
1495,
13,
13,
9507... |
netbox/virtualization/views.py | jtague87/netbox | 2 | 100519 | from django.contrib import messages
from django.db import transaction
from django.db.models import Count, Prefetch
from django.shortcuts import get_object_or_404, redirect, render
from django.urls import reverse
from dcim.models import Device
from dcim.tables import DeviceTable
from extras.views import ObjectConfigCon... | [
1,
515,
9557,
29889,
21570,
1053,
7191,
13,
3166,
9557,
29889,
2585,
1053,
10804,
13,
3166,
9557,
29889,
2585,
29889,
9794,
1053,
3917,
29892,
27611,
3486,
13,
3166,
9557,
29889,
12759,
7582,
29879,
1053,
679,
29918,
3318,
29918,
272,
299... |
scripts/make_easysrl_lexicon.py | marbles-ai/ie | 0 | 46774 | <reponame>marbles-ai/ie
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals, print_function
import os
import re
import sys
# Modify python path
projdir = os.path.dirname(os.path.abspath(os.path.dirname(__file__)))
pypath = os.path.join(projdir, 'src', 'python')
datapath = os.path.joi... | [
1,
529,
276,
1112,
420,
29958,
3034,
7586,
29899,
1794,
29914,
347,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
3166,
4770,
29888,
9130,
1... |
tests/test_msgdb.py | kozalosev/textUtilsBot | 6 | 199660 | <gh_stars>1-10
import msgdb
def test_database(tmpdir):
msgdb._mock_database(str(tmpdir.join('messages.db')))
rowid = msgdb.insert("Hello World")
assert rowid == 1
assert msgdb.select(rowid) == "Hello World"
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
10191,
2585,
13,
13,
13,
1753,
1243,
29918,
9803,
29898,
7050,
3972,
1125,
13,
1678,
10191,
2585,
3032,
17640,
29918,
9803,
29898,
710,
29898,
7050,
3972,
29889... |
hashmap-left-join/hashmap_left_join/left_join.py | Sewar-web/data-structures-and-algorithms1 | 0 | 32019 | <filename>hashmap-left-join/hashmap_left_join/left_join.py
import os
def left_join( hash , hash1):
words = []
for value in hash.keys():
if value in hash1.keys():
words.append([value, hash [value],hash1[value] ])
else:
words.append([va... | [
1,
529,
9507,
29958,
8568,
1958,
29899,
1563,
29899,
7122,
29914,
8568,
1958,
29918,
1563,
29918,
7122,
29914,
1563,
29918,
7122,
29889,
2272,
13,
5215,
2897,
29871,
13,
13,
1753,
2175,
29918,
7122,
29898,
6608,
1919,
6608,
29896,
1125,
1... |
VulnServer/GTER/exploit.py | cwinfosec/practice | 1 | 53939 | <reponame>cwinfosec/practice
#!/usr/bin/env python
"""
Description: Vanilla Buffer Overflow w/ egghunter via "GTER" in VulnServer
Author: <NAME>
Contact: @cwinfosec (twitter)
Date: 9/15/2019
Tested On: Windows XP SP2 EN
[+] Usage: python expoit.py <IP> <PORT>
$ python exploit.py 127.0.0.1 21
"""
import socket ... | [
1,
529,
276,
1112,
420,
29958,
29883,
5080,
29888,
852,
29883,
29914,
29886,
1461,
625,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
15945,
29908,
13,
9868,
29901,
6556,
2911,
16534,
28845,
281,
29914,
19710,
29882,
8428,
3... |
rdr_service/model/questionnaire.py | all-of-us/raw-data-repository | 39 | 40869 | <reponame>all-of-us/raw-data-repository
from sqlalchemy import (
Boolean,
Column,
ForeignKey,
ForeignKeyConstraint,
Integer,
String,
UniqueConstraint,
)
from sqlalchemy import BLOB # pylint: disable=unused-import
from sqlalchemy.orm import relationship
from typing import List
from rdr_serv... | [
1,
529,
276,
1112,
420,
29958,
497,
29899,
974,
29899,
375,
29914,
1610,
29899,
1272,
29899,
19033,
13,
3166,
4576,
284,
305,
6764,
1053,
313,
13,
1678,
11185,
29892,
13,
1678,
12481,
29892,
13,
1678,
19358,
2558,
29892,
13,
1678,
19358... |
runtime/dart/gen_flutter_test_bundle_invocation.py | creatint/topaz | 1 | 167503 | <gh_stars>1-10
#!/usr/bin/env python
# Copyright 2018 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import argparse
import os
import stat
import string
import sys
def main():
parser = argparse.ArgumentParser(
des... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29947,
450,
383,
19873,
423,
13189,
943,
29889,
2178,
10462,
216... |
xarray/core/variable.py | timgates42/xarray | 0 | 711 | import copy
import functools
import itertools
import numbers
import warnings
from collections import defaultdict
from datetime import timedelta
from distutils.version import LooseVersion
from typing import (
Any,
Dict,
Hashable,
Mapping,
Optional,
Sequence,
Tuple,
TypeVar,
Union,
)
... | [
1,
1053,
3509,
13,
5215,
2090,
312,
8789,
13,
5215,
4256,
8504,
13,
5215,
3694,
13,
5215,
18116,
13,
3166,
16250,
1053,
2322,
8977,
13,
3166,
12865,
1053,
5335,
287,
2554,
13,
3166,
1320,
13239,
29889,
3259,
1053,
4309,
852,
6594,
13,... |
assets/dynamic_programming.py | jskripchuk/jskripchuk.github.io | 0 | 97985 | infty = 999999
def whitespace(words, i, j):
return (L-(j-i)-sum([len(word) for word in words[i:j+1]]))
def cost(words,i,j):
total_char_length = sum([len(word) for word in words[i:j+1]])
if total_char_length > L-(j-i):
return infty
if j==len(words)-1:
return 0
return whitespace(w... | [
1,
297,
3312,
353,
29871,
29929,
29929,
29929,
29929,
29929,
29929,
13,
13,
1753,
24358,
29898,
9303,
29892,
474,
29892,
432,
1125,
13,
1678,
736,
313,
29931,
17722,
29926,
29899,
29875,
6817,
2083,
4197,
2435,
29898,
1742,
29897,
363,
17... |
sdk/python/pulumi_google_native/gkehub/v1/get_feature.py | AaronFriel/pulumi-google-native | 44 | 153461 | <filename>sdk/python/pulumi_google_native/gkehub/v1/get_feature.py
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping,... | [
1,
529,
9507,
29958,
15348,
29914,
4691,
29914,
29886,
352,
15547,
29918,
3608,
29918,
11487,
29914,
29887,
446,
29882,
431,
29914,
29894,
29896,
29914,
657,
29918,
14394,
29889,
2272,
13,
29937,
14137,
29922,
9420,
29899,
29947,
13,
29937,
... |
nearproteins/__init__.py | audy/nearproteins | 0 | 18381 | <filename>nearproteins/__init__.py
#!/usr/bin/env python
from collections import defaultdict
from itertools import product
import json
import random
import sys
from annoy import AnnoyIndex
from Bio import SeqIO
import numpy as np
class FeatureGenerator:
def __init__(self, k=2):
''' '''
self.k... | [
1,
529,
9507,
29958,
28502,
14676,
1144,
29914,
1649,
2344,
26914,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
3166,
16250,
1053,
2322,
8977,
13,
3166,
4256,
8504,
1053,
3234,
13,
5215,
4390,
13,
5215,
4036,
13... |
orbits_analysis.py | kcotar/GALAH-survey-Carbon-enhanced-stars | 0 | 1603080 | import numpy as np
import astropy.coordinates as coord
import astropy.units as un
import astropy.constants as const
import matplotlib.pyplot as plt
from galpy.orbit import Orbit
from galpy.potential import MWPotential2014
from galpy.actionAngle import estimateDeltaStaeckel
from galpy.actionAngle import actionAngleStaec... | [
1,
1053,
12655,
408,
7442,
13,
5215,
8717,
14441,
29889,
1111,
24266,
408,
29311,
13,
5215,
8717,
14441,
29889,
348,
1169,
408,
443,
13,
5215,
8717,
14441,
29889,
3075,
1934,
408,
1040,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13... |
src/convert.py | soosten/halite-bot | 8 | 95353 | <filename>src/convert.py<gh_stars>1-10
import numpy as np
from settings import (YARD_SCHEDULE, YARD_MAX_STEP, MIN_OPP_YARD_DIST,
MIN_YARD_DIST, SUPPORT_DIST, STEPS_INITIAL)
def convert(state, actions):
# if we don't have any yards, we try to convert the ship
# with the most cargo immedi... | [
1,
529,
9507,
29958,
4351,
29914,
13441,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
12655,
408,
7442,
13,
13,
3166,
6055,
1053,
313,
29979,
17011,
29918,
29903,
3210,
3352,
29965,
1307,
29892,
... |
tfx/components/example_gen/driver.py | epona-science/tfx | 0 | 83065 | # Lint as: python2, python3
# Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless req... | [
1,
396,
365,
524,
408,
29901,
3017,
29906,
29892,
3017,
29941,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29929,
5087,
365,
12182,
29889,
2178,
26863,
2538,
9841,
29889,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
... |
ex4/4_1_complexity_prediction/4_1_complexity_prediction.py | Jeilef/FoSA | 0 | 108989 | import argparse
from sklearn.linear_model import LinearRegression
import pandas as pd
def train_model(train_dataset, train_columns, predict_columns):
data = pd.read_csv(train_dataset, sep=";")
data = data.fillna(0)
X = data[train_columns.split(";")]
Y = data[predict_columns.split(";")]
return Line... | [
1,
1053,
1852,
5510,
13,
3166,
2071,
19668,
29889,
10660,
29918,
4299,
1053,
22985,
4597,
23881,
13,
5215,
11701,
408,
10518,
13,
13,
13,
1753,
7945,
29918,
4299,
29898,
14968,
29918,
24713,
29892,
7945,
29918,
13099,
29892,
8500,
29918,
... |
admin/test/test_merge_pr.py | stackriot/flocker | 2,690 | 125055 | # Copyright ClusterHQ Inc. See LICENSE file for details.
"""
Tests for :module:`admin.merge_pr`.
"""
import os
import subprocess
from hypothesis import given
from hypothesis.strategies import (
booleans,
dictionaries,
fixed_dictionaries,
just,
lists,
one_of,
sampled_from,
text,
)
... | [
1,
396,
14187,
1266,
2233,
5402,
29950,
29984,
9266,
29889,
29871,
2823,
365,
2965,
1430,
1660,
934,
363,
4902,
29889,
13,
15945,
29908,
13,
24376,
363,
584,
5453,
18078,
6406,
29889,
14634,
29918,
558,
1412,
13,
15945,
29908,
13,
13,
5... |
schevo/test/test_field_entitysetset.py | Schevo/schevo | 1 | 64523 | """EntitySetSet field unit tests."""
# Copyright (c) 2001-2009 ElevenCraft Inc.
# See LICENSE for details.
from schevo.test import BaseTest, CreatesSchema, raises
from schevo.constant import UNASSIGNED
from schevo.error import KeyCollision
from schevo.placeholder import Placeholder
class BaseFieldEntitySetSet(Crea... | [
1,
9995,
6691,
2697,
2697,
1746,
5190,
6987,
1213,
15945,
13,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29900,
29896,
29899,
29906,
29900,
29900,
29929,
8317,
854,
29907,
4154,
9266,
29889,
13,
29937,
2823,
365,
2965,
... |
geopy/geocoders/yahoo.py | pivotal-energy-solutions/geopy | 1 | 1616336 | """
Wrapper to the Yahoo's new PlaceFinder API. (doc says that the API RELEASE 1.0 (22 JUNE 2010))
"""
import xml.dom.minidom
import sys
from geopy import util
from geopy import Point
from urllib2 import urlopen
from geopy.geocoders.base import Geocoder
try:
import json
except ImportError:
try:
import s... | [
1,
9995,
13,
15646,
304,
278,
612,
26779,
29915,
29879,
716,
15484,
29943,
4995,
3450,
29889,
313,
1514,
4083,
393,
278,
3450,
5195,
14063,
29871,
29896,
29889,
29900,
313,
29906,
29906,
435,
3904,
29923,
29871,
29906,
29900,
29896,
29900,
... |
bg_backend/bitglitter/config/presetmodels.py | MarkMichon1/BitGlitter-Backend | 2 | 92558 | <reponame>MarkMichon1/BitGlitter-Backend
from sqlalchemy import Boolean, Column, DateTime, Integer, String
from datetime import datetime
from bg_backend.bitglitter.config.config import engine, SQLBaseClass
class Preset(SQLBaseClass):
__tablename__ = 'presets'
__abstract__ = False
nickname = Column(Stri... | [
1,
529,
276,
1112,
420,
29958,
9802,
14916,
265,
29896,
29914,
21591,
29954,
29880,
5171,
29899,
5841,
355,
13,
3166,
4576,
284,
305,
6764,
1053,
11185,
29892,
12481,
29892,
12315,
29892,
8102,
29892,
1714,
13,
13,
3166,
12865,
1053,
1286... |
send_temperature.py | wjoost/microe-lora4click-rpi | 0 | 70984 | #!/usr/bin/python3
#
# Send SOC temperature using LoRaWAN module
#
import subprocess
import time
from lora4click import MipotGpio, MipotSerial, MipotCmd
from typing import Optional
def get_soc_temperature() -> Optional[float]:
result = subprocess.run(['/usr/bin/vcgencmd', 'measure_temp'], capture_output=True, t... | [
1,
18787,
4855,
29914,
2109,
29914,
4691,
29941,
13,
29937,
13,
29937,
15076,
7791,
29907,
10430,
773,
4309,
29934,
29874,
29956,
2190,
3883,
13,
29937,
13,
13,
5215,
1014,
5014,
13,
5215,
931,
13,
3166,
301,
2207,
29946,
3808,
1053,
34... |
fb_api/models.py | felipecerinzasick/blog | 0 | 149305 | <gh_stars>0
from django.contrib.postgres.fields import JSONField
from django.db import models
from django.utils.translation import ugettext_lazy as _
from social_django.models import UserSocialAuth
from fb_api.api_caller import ApiParser
class FbAdAccount(models.Model):
fb_acc = models.ForeignKey(
UserSo... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
9557,
29889,
21570,
29889,
2490,
7201,
29889,
9621,
1053,
4663,
3073,
13,
3166,
9557,
29889,
2585,
1053,
4733,
13,
3166,
9557,
29889,
13239,
29889,
3286,
18411,
1053,
318,
657,
726,... |
utils/admin.py | kongo2002/ogonek | 1 | 153347 | <reponame>kongo2002/ogonek
#!/usr/bin/env python
from __future__ import print_function
import hashlib
import json
import sys
import requests
HOST = 'http://localhost:5984'
DBNAME = 'ogonek'
def __pretty(obj):
print(json.dumps(obj))
def __view_results(path):
result = requests.get(path).json()
rows =... | [
1,
529,
276,
1112,
420,
29958,
29895,
7443,
29906,
29900,
29900,
29906,
29914,
468,
650,
29895,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
3166,
4770,
29888,
9130,
1649,
1053,
1596,
29918,
2220,
13,
13,
5215,
6608,
... |
gitlabservice/utility/model/DeployFileModel.py | bisirkin-pv/sqlorchestrator | 1 | 124756 | <reponame>bisirkin-pv/sqlorchestrator<gh_stars>1-10
from collections import namedtuple
DeployFileHeader = namedtuple('deploy', 'group profile')
DeployFileObject = namedtuple('object', 'name type action')
DeployFileParam = namedtuple('param', 'name type base')
| [
1,
529,
276,
1112,
420,
29958,
18809,
6793,
262,
29899,
29886,
29894,
29914,
2850,
25350,
16444,
1061,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
16250,
1053,
4257,
23583,
13,
13,
8498,
2376,
2283,
7850,
... |
4.3.3-affine_transformation.py | CleverYh/opencv_py | 2 | 195702 | <gh_stars>1-10
# coding: utf-8
import numpy as np
from cv2 import cv2
import matplotlib.pyplot as plt
img = cv2.imread(r'pictures\affine.jpg')
rows, cols, ch = img.shape
pts1 = np.float32([[50, 50], [200, 50], [50, 200]])
pts2 = np.float32([[10, 100], [200, 50], [100, 250]])
M = cv2.getAffineTransform(pts1, pts2)
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14137,
29901,
23616,
29899,
29947,
13,
5215,
12655,
408,
7442,
13,
3166,
13850,
29906,
1053,
13850,
29906,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
... |
layers.py | xiangsheng1325/fastgae_pytorch | 8 | 37635 | import torch, math, copy
import scipy.sparse as sp
import numpy as np
from torch.nn.modules.module import Module
import torch.nn as nn
from torch.nn.parameter import Parameter
def normalize(adj, device='cpu'):
if isinstance(adj, torch.Tensor):
adj_ = adj.to(device)
elif isinstance(adj, sp.c... | [
1,
1053,
4842,
305,
29892,
5844,
29892,
3509,
30004,
13,
5215,
4560,
2272,
29889,
29879,
5510,
408,
805,
30004,
13,
5215,
12655,
408,
7442,
30004,
13,
3166,
4842,
305,
29889,
15755,
29889,
7576,
29889,
5453,
1053,
15591,
30004,
13,
5215,
... |
ding/envs/env/default_wrapper.py | jayyoung0802/DI-engine | 1 | 71823 | from easydict import EasyDict
from typing import Optional, List
import copy
final_eval_reward_wrapper = EasyDict(type='final_eval_reward')
def get_default_wrappers(env_wrapper_name: str, env_id: Optional[str] = None) -> List[dict]:
if env_wrapper_name == 'mujoco_default':
return [
EasyDict(ty... | [
1,
515,
2240,
2941,
919,
1053,
382,
8995,
21533,
13,
3166,
19229,
1053,
28379,
29892,
2391,
13,
5215,
3509,
13,
13,
8394,
29918,
14513,
29918,
276,
1328,
29918,
17699,
353,
382,
8995,
21533,
29898,
1853,
2433,
8394,
29918,
14513,
29918,
... |
deploy.py | madani301/cpd_aws_rekognition | 0 | 67636 | <reponame>madani301/cpd_aws_rekognition
#!/usr/local/bin/python3
"""
This script was created by <NAME>.
The 'deploy.py' script zips the 'lambda_function.py' and attaches the code to
the function's (cpd-lambda-s1903342) 'lambda_handler' function.
The script uses the subprocess library which allows Python to run CLI... | [
1,
529,
276,
1112,
420,
29958,
19581,
3270,
29941,
29900,
29896,
29914,
6814,
29881,
29918,
10467,
29918,
22218,
3811,
654,
13,
29937,
14708,
4855,
29914,
2997,
29914,
2109,
29914,
4691,
29941,
13,
13,
15945,
29908,
13,
13,
4013,
2471,
47... |
tests/functional/test_dicts_to_proto.py | nitoqq/mercator | 17 | 122980 | <filename>tests/functional/test_dicts_to_proto.py
# -*- coding: utf-8 -*-
from .mappings import (
UserMapping,
AuthRequestMapping,
AuthResponseMapping,
)
from . import domain_pb2
def test_mapping_simple_1to1_from_dict():
("ProtoMapping should be smart enough to infer fields "
"from protobuf and ... | [
1,
529,
9507,
29958,
21150,
29914,
2220,
284,
29914,
1688,
29918,
8977,
29879,
29918,
517,
29918,
17529,
29889,
2272,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
3166,
869,
655,
27775,
1053,
313,
... |
tests/pytorch_pfn_extras_tests/training_tests/extensions_tests/test_print_report_notebook.py | yasuyuky/pytorch-pfn-extras | 243 | 13563 | import io
import pytest
import pytorch_pfn_extras as ppe
from pytorch_pfn_extras.training.extensions import _ipython_module_available
from pytorch_pfn_extras.training.extensions.log_report import _pandas_available
@pytest.mark.skipif(
not _ipython_module_available or not _pandas_available,
reason="print rep... | [
1,
1053,
12013,
13,
13,
5215,
11451,
1688,
13,
13,
5215,
282,
3637,
25350,
29918,
7810,
29876,
29918,
1062,
3417,
408,
282,
412,
13,
3166,
282,
3637,
25350,
29918,
7810,
29876,
29918,
1062,
3417,
29889,
26495,
29889,
24299,
1053,
903,
6... |
headpose_estimation_pairs.py | MitchellX/deep-head-pose | 9 | 151842 | <reponame>MitchellX/deep-head-pose
# coding=utf-8
import dlib
import sys, os, argparse
import numpy as np
import cv2
import torch
from torch.autograd import Variable
from torchvision import transforms
import torch.backends.cudnn as cudnn
import torchvision
import torch.nn.functional as F
from PIL import Image
sys.path... | [
1,
529,
276,
1112,
420,
29958,
29924,
2335,
514,
29990,
29914,
24535,
29899,
2813,
29899,
4220,
13,
29937,
14137,
29922,
9420,
29899,
29947,
13,
5215,
270,
1982,
13,
5215,
10876,
29892,
2897,
29892,
1852,
5510,
13,
5215,
12655,
408,
7442,... |
deploy_python/openem/Detect/__init__.py | bryan-flywire/openem | 10 | 33140 | from openem.models import ImageModel
from openem.models import Preprocessor
import cv2
import numpy as np
import tensorflow as tf
from collections import namedtuple
import csv
Detection=namedtuple('Detection', ['location',
'confidence',
'species',... | [
1,
515,
1722,
331,
29889,
9794,
1053,
7084,
3195,
13,
3166,
1722,
331,
29889,
9794,
1053,
4721,
26482,
13,
13,
5215,
13850,
29906,
13,
5215,
12655,
408,
7442,
13,
5215,
26110,
408,
15886,
13,
13,
3166,
16250,
1053,
4257,
23583,
13,
52... |
backend/app_interactions.py | cowboycodr/cards-svelte | 0 | 168071 | <gh_stars>0
import uuid
from pymongo import MongoClient
client = MongoClient(port=27017)
db = client.cards
DEFAULT_PFP = "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSwOAz9F23MraOeH5RtdAj883MB-ywpMIPYSv36fcSVFazd1DQANyabtJ3eKBgRw1_t2PM&usqp=CAU"
def create_user(nickname, username, pfp=DEFAULT_PFP, publish=... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
318,
5416,
13,
3166,
282,
962,
7443,
1053,
18294,
4032,
13,
13,
4645,
353,
18294,
4032,
29898,
637,
29922,
29906,
29955,
29900,
29896,
29955,
29897,
13,
2585,
353,
3132,
29889,
28... |
lesson-04/lesson02.py | rotorypower/lessons | 0 | 123065 | #Ввести с клавиатуры строку, проверить является ли строка палиндромом и вывести результат (yes/no) на экран. Палиндром - это слово или фраза, которые одинаково читаются слева направо и справа налево
polin = str(input( "Введите слово: "))
polin_test = polin[::-1]
if polin == polin_test:
print("YES")
else:
pri... | [
1,
396,
30012,
1521,
1415,
531,
9955,
21252,
15934,
2091,
576,
1382,
29892,
23590,
641,
1413,
14367,
3550,
2091,
576,
642,
4554,
8279,
26166,
17795,
606,
2771,
1521,
1415,
13439,
29932,
313,
3582,
29914,
1217,
29897,
665,
18796,
3048,
298... |
oTree/encrypt_js/pages.py | vbenndorf/wedr | 3 | 58069 | <filename>oTree/encrypt_js/pages.py
from ._builtin import Page, WaitPage
from .models import Constants
class Task(Page):
form_model = 'player'
form_fields = ['performance', 'mistakes']
if Constants.use_timeout:
timeout_seconds = Constants.seconds_per_period
def vars_for_template(self):
... | [
1,
529,
9507,
29958,
29877,
9643,
29914,
3977,
4641,
29918,
1315,
29914,
12292,
29889,
2272,
13,
3166,
869,
29918,
16145,
262,
1053,
9305,
29892,
20340,
5074,
13,
3166,
869,
9794,
1053,
5798,
1934,
13,
13,
1990,
9330,
29898,
5074,
1125,
... |
setup.py | Incopro/flann | 0 | 88633 | <gh_stars>0
#!/usr/bin/env python2
import os
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext as build_ext_orig
from distutils.file_util import copy_file
class CMakeExtension(Extension):
def __init__(self, name):
Extension.__init__(
self,
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29906,
13,
5215,
2897,
13,
3166,
731,
21245,
8789,
1053,
6230,
29892,
7338,
2673,
13,
3166,
731,
21245,
8789,
29889,
6519,
29889,
4282,... |
indico/modules/rb/util_test.py | bnavigator/indico | 0 | 161194 | # This file is part of Indico.
# Copyright (C) 2002 - 2019 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
import pytest
from indico.modules.rb import rb_settings
from indico.modules.rb.util import rb_check_user_... | [
1,
396,
910,
934,
338,
760,
310,
1894,
1417,
29889,
13,
29937,
14187,
1266,
313,
29907,
29897,
29871,
29906,
29900,
29900,
29906,
448,
29871,
29906,
29900,
29896,
29929,
315,
1001,
29940,
13,
29937,
13,
29937,
1894,
1417,
338,
3889,
7047,... |
nnlab/nn/graph.py | nlab-mpg/nnlab | 0 | 6750 | <gh_stars>0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, division
from six.moves import xrange, zip
import tensorflow as tf
from .tensor import Tensor
class Graph(object):
"""The class for defining computational graph."""
def __init__(self, loss=N... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8380,
... |
predict.py | PeterH0323/Crack-Construction-Segmentation | 1 | 75261 | <gh_stars>1-10
import os
import time
from pathlib import Path
import torch
import numpy as np
import torch.backends.cudnn as cudnn
from argparse import ArgumentParser
# user
from builders.model_builder import build_model
from builders.dataset_builder import build_dataset_test, build_dataset_predict
from utils.utils im... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
2897,
13,
5215,
931,
13,
3166,
2224,
1982,
1053,
10802,
13,
13,
5215,
4842,
305,
13,
5215,
12655,
408,
7442,
13,
5215,
4842,
305,
29889,
1627,
1975,
29889,
... |
CHORCKIT.py | akashsuper2000/codechef-archive | 0 | 147866 | n,m,a,x,r = [int(i) for i in input().split()]
s = input()
for i in range(m):
t = input()
for i in range(a):
p = input()
if(n<10**6 and r<=x):
print(1)
print(3,1,10**6-n)
else:
print(0)
| [
1,
302,
29892,
29885,
29892,
29874,
29892,
29916,
29892,
29878,
353,
518,
524,
29898,
29875,
29897,
363,
474,
297,
1881,
2141,
5451,
580,
29962,
13,
29879,
353,
1881,
580,
13,
1454,
474,
297,
3464,
29898,
29885,
1125,
13,
1678,
260,
353... |
22. Generate Parentheses.py | RayHHe/LeetCode | 0 | 95076 | # No.1/2019-06-10/68 ms/13.3 MB
class Solution:
def generateParenthesis(self, n: int) -> List[str]:
l=['()']
if n==0: return []
for i in range(1,n):
newl=[]
for string in l:
for index in range(len(string)//2+1):
temp=string[:index]... | [
1,
396,
1939,
29889,
29896,
29914,
29906,
29900,
29896,
29929,
29899,
29900,
29953,
29899,
29896,
29900,
29914,
29953,
29947,
10887,
29914,
29896,
29941,
29889,
29941,
13232,
13,
13,
1990,
24380,
29901,
13,
1678,
822,
5706,
2177,
9097,
6656,
... |
rockets/rocket.py | rsewell97/open-starship | 0 | 20514 | <reponame>rsewell97/open-starship<filename>rockets/rocket.py
import time
import multiprocessing as mp
import numpy as np
from scipy.spatial.transform import Rotation
from world import Earth
class Rocket(object):
def __init__(self, planet=Earth()):
self.planet = planet
self.propellant_mass = 1e6... | [
1,
529,
276,
1112,
420,
29958,
29878,
344,
5872,
29929,
29955,
29914,
3150,
29899,
8508,
3527,
29966,
9507,
29958,
307,
9737,
29914,
307,
3522,
29889,
2272,
13,
5215,
931,
13,
5215,
6674,
307,
985,
292,
408,
22326,
13,
13,
5215,
12655,
... |
src/natcap/invest/scenic_quality/viewshed_sextante.py | hkotaro1215/invest | 0 | 1606873 | def viewshed(input_uri, output_uri, coordinates, obs_elev=1.75, tgt_elev=0.0,
max_dist=-1, refraction_coeff=0.14286, memory=500, stream_dir=None,
consider_curvature=False, consider_refraction=False, boolean_mode=False,
elevation_mode=False, verbose=False, quiet=False):
"""
... | [
1,
822,
1776,
845,
287,
29898,
2080,
29918,
5338,
29892,
1962,
29918,
5338,
29892,
10350,
29892,
20881,
29918,
29872,
2608,
29922,
29896,
29889,
29955,
29945,
29892,
260,
4141,
29918,
29872,
2608,
29922,
29900,
29889,
29900,
29892,
13,
632,
... |
carpentries/__main__.py | tompollard/carpentries | 0 | 122497 | import argparse
def main():
"""
The Carpentries command line tool.
"""
parser = argparse.ArgumentParser(description="""
A toolkit for The Carpentries.
""")
from carpentries import values
if __name__ == "__main__":
main()
| [
1,
1053,
1852,
5510,
13,
13,
13,
1753,
1667,
7295,
13,
1678,
9995,
13,
1678,
450,
1704,
22825,
2722,
1899,
1196,
5780,
29889,
13,
1678,
9995,
13,
1678,
13812,
353,
1852,
5510,
29889,
15730,
11726,
29898,
8216,
13776,
29908,
13,
1678,
... |
bot/setting.py | dvdrm/gd | 14 | 140812 | import json
from telethon import events, Button
from asyncio import exceptions
from .. import jdbot, chat_id, BOT_SET_JSON_FILE_USER, BOT_SET, ch_name
from .utils import split_list, logger, press_event
@jdbot.on(events.NewMessage(from_users=chat_id, pattern='^/set$'))
async def bot_set(event):
SENDER = event.send... | [
1,
1053,
4390,
13,
3166,
4382,
386,
265,
1053,
4959,
29892,
11025,
13,
3166,
408,
948,
3934,
1053,
15283,
13,
3166,
6317,
1053,
432,
2585,
327,
29892,
13563,
29918,
333,
29892,
350,
2891,
29918,
10490,
29918,
7249,
29918,
7724,
29918,
1... |
tests/plugins/test_ard_mediathek.py | xcgx/streamlink | 10 | 141471 | from streamlink.plugins.ard_mediathek import ARDMediathek
from tests.plugins import PluginCanHandleUrl
class TestPluginCanHandleUrlARDMediathek(PluginCanHandleUrl):
__plugin__ = ARDMediathek
should_match = [
'http://mediathek.daserste.de/live',
'http://www.ardmediathek.de/tv/Sportschau/'
... | [
1,
515,
4840,
2324,
29889,
12800,
29889,
538,
29918,
4210,
271,
354,
29895,
1053,
9033,
29928,
19302,
7163,
354,
29895,
13,
3166,
6987,
29889,
12800,
1053,
1858,
3851,
6028,
13554,
5983,
13,
13,
13,
1990,
4321,
16288,
6028,
13554,
5983,
... |
jmapy/forecast.py | AttoCat/jmapy | 0 | 1606113 | from __future__ import annotations
from dataclasses import dataclass
from datetime import datetime
from typing import List, Tuple
from dacite import Config, from_dict
from humps import decamelize
from .parse_models import Area, ParsedPops, ParsedTemps, ParsedWeathers
from .request import _jma_get
def get_forecast(... | [
1,
515,
4770,
29888,
9130,
1649,
1053,
25495,
13,
13,
3166,
848,
13203,
1053,
848,
1990,
13,
3166,
12865,
1053,
12865,
13,
3166,
19229,
1053,
2391,
29892,
12603,
552,
13,
13,
3166,
270,
562,
568,
1053,
12782,
29892,
515,
29918,
8977,
... |
Code/mreset.py | andrewwhipple/MeowgicMatt | 0 | 36952 | #Meowgic Matt reset module
import os
import json
#Debug function to call out that the module successfully loaded.
def meow():
print("mreset loaded")
#Resets Meowgic Matt to factory conditions, DELETING EVERYTHING CURRENTLY IN SUBFOLDERS.
def reset():
os.system("rm -rf ../Edited/")
os.system("rm -rf ... | [
1,
396,
6816,
340,
29887,
293,
9811,
10092,
3883,
13,
13,
5215,
2897,
13,
5215,
4390,
13,
13,
29937,
11862,
740,
304,
1246,
714,
393,
278,
3883,
8472,
7500,
29889,
13,
1753,
592,
340,
7295,
13,
1678,
1596,
703,
29885,
12071,
7500,
1... |
web/apps/importer/import_bamboo.py | exploratour/exploratour | 0 | 156780 | <gh_stars>0
import config
import os
import dircache
import lxml.etree as etree
from apps.store.models import Record, Collection
from apps.thumbnail.thumbnail import mimetype
from apps import shortcuts
from apps.importer.context import ImportContext
def parse_bamboo_date(text):
# FIXME
return text
def start_i... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
13,
5215,
2295,
13,
5215,
2897,
13,
5215,
270,
2076,
1829,
13,
5215,
301,
3134,
29889,
300,
929,
408,
634,
929,
13,
3166,
11446,
29889,
8899,
29889,
9794,
1053,
14164,
29892,
14348,
1... |
CalculatingPi/pi_linear_plot.py | davidmallasen/Hello_MPI | 0 | 3492 | import matplotlib.pyplot as plt
import numpy as np
# Read data
size = []
time = []
with open("pi_linear.txt") as file:
for line in file.readlines():
x, y = line.split(',')
size.append(int(x.strip()))
time.append(float(y.strip()))
# Plot data
fig, ax = plt.subplots()
ax.plot(size, tim... | [
1,
1053,
22889,
29889,
2272,
5317,
408,
14770,
13,
5215,
12655,
408,
7442,
13,
13,
29937,
7523,
848,
13,
2311,
353,
5159,
13,
2230,
353,
5159,
13,
2541,
1722,
703,
1631,
29918,
10660,
29889,
3945,
1159,
408,
934,
29901,
13,
1678,
363,... |
main-old.py | dwarf-miner/midas | 0 | 78606 | <reponame>dwarf-miner/midas
# system library
import datetime
import pickle
import vision
# project library
from cstock.yahoo_engine import YahooEngine
from cstock.request import Requester
from cstock.model import Stock
if __name__ == '__main__':
try:
input = open('002415.pkl', 'rb')
stocks = pickle.load(in... | [
1,
529,
276,
1112,
420,
29958,
29881,
4495,
29888,
29899,
1195,
261,
29914,
6563,
294,
13,
29937,
1788,
3489,
13,
5215,
12865,
13,
5215,
5839,
280,
13,
5215,
18551,
13,
13,
29937,
2060,
3489,
13,
3166,
274,
17712,
29889,
29891,
26779,
... |
parser.py | alexkyllo/pycc | 0 | 25982 | <gh_stars>0
from lexer import (
TokenKeyword,
TokenOpenBrace,
TokenCloseBrace,
TokenOpenParen,
TokenCloseParen,
TokenSemicolon,
TokenAssignmentOperator,
TokenAdditionOperator,
TokenMultiplicationOperator,
TokenIncrementOperator,
TokenEqualityOperator,
TokenInequalityOpera... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
19566,
261,
1053,
313,
13,
1678,
25159,
2558,
1742,
29892,
13,
1678,
25159,
6585,
29933,
25525,
29892,
13,
1678,
25159,
11123,
29933,
25525,
29892,
13,
1678,
25159,
6585,
2177,
264,... |
forward_radial_dist.py | theophil-trippe/HDC_TUBerlin_version_1 | 2 | 192684 | <gh_stars>1-10
import torch.cuda
from networks import BlurOp
from data_transforms import *
from os.path import join
from config import RESULTS_PATH, WEIGHTS_PATH
def get_fwd_op(step, kernel_size=701):
network = BlurOp
# model_weights_part = join("results/BlurOp/v1/step_{:02d}".format(step), "kernel_size_{:03d... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
4842,
305,
29889,
29883,
6191,
13,
3166,
14379,
1053,
3164,
332,
11746,
13,
3166,
848,
29918,
9067,
29879,
1053,
334,
13,
3166,
2897,
29889,
2084,
1053,
5988,
... |
wis2box/metadata/base.py | webb-ben/wis2node | 7 | 29766 | <reponame>webb-ben/wis2node
###############################################################################
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownershi... | [
1,
529,
276,
1112,
420,
29958,
705,
1327,
29899,
1785,
29914,
29893,
275,
29906,
3177,
13,
13383,
13383,
13383,
13383,
7346,
4136,
2277,
29937,
13,
29937,
13,
29937,
10413,
21144,
304,
278,
13380,
18540,
10606,
313,
3289,
29943,
29897,
10... |
src/pandas_profiling/__init__.py | AllanLRH/pandas-profiling | 1 | 153307 | """Main module of pandas-profiling.
.. include:: ../../README.md
"""
import json
from pathlib import Path
from datetime import datetime
import pandas as pd
import numpy as np
from tqdm.auto import tqdm
from pandas_profiling.model.messages import MessageType
from pandas_profiling.version import __version__
from panda... | [
1,
9995,
6330,
3883,
310,
11701,
29899,
771,
1777,
292,
29889,
13,
13,
636,
3160,
1057,
29772,
6995,
16310,
2303,
29889,
3487,
13,
15945,
29908,
13,
5215,
4390,
13,
3166,
2224,
1982,
1053,
10802,
13,
3166,
12865,
1053,
12865,
13,
13,
... |
scripts/irods/test/test_rulebase.py | BuildJet/irods | 1 | 196875 | from __future__ import print_function
import sys
if sys.version_info >= (2, 7):
import unittest
else:
import unittest2 as unittest
import copy
import inspect
import json
import os
import socket
import tempfile
import time # remove once file hash fix is commited #2279
import subprocess
from .. import lib
from ... | [
1,
515,
4770,
29888,
9130,
1649,
1053,
1596,
29918,
2220,
13,
5215,
10876,
13,
361,
10876,
29889,
3259,
29918,
3888,
6736,
313,
29906,
29892,
29871,
29955,
1125,
13,
1678,
1053,
443,
27958,
13,
2870,
29901,
13,
1678,
1053,
443,
27958,
2... |
plugify/state.py | RPSMain/plugify.py | 0 | 1600681 | <gh_stars>0
"""
MIT License
Copyright (c) 2021-present VincentRPS
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
15945,
29908,
13,
26349,
19245,
13,
13,
11882,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29906,
29896,
29899,
6338,
19748,
29934,
7024,
13,
13,
27293,
338,
1244,
1609,
16896,
29892,
3... |
Basics/5/hi.py | mabdelaal86/python-courses | 1 | 192874 | #!/usr/bin/env python3
def welcome():
print("Welcome")
def hi(name):
print("Hi " + name + "!")
welcome()
username = input("Who are there? ")
hi(name=username)
hi(username)
| [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
1753,
12853,
7295,
13,
1678,
1596,
703,
28862,
2763,
1159,
13,
13,
1753,
7251,
29898,
978,
1125,
13,
1678,
1596,
703,
18567,
376,
718,
1024,
718,
376,
29991,
1159,
13,
13,... |
VidSpark/__init__.py | imlegend19/VidSpark | 0 | 126776 | <reponame>imlegend19/VidSpark<gh_stars>0
from __future__ import absolute_import, unicode_literals
import os
from pathlib import Path
import multiprocessing as mp
from elasticsearch import Elasticsearch
from .celery import app as celery_app
__all__ = ('celery_app',)
from pyspark.sql import SparkSession
ROOT = Path(... | [
1,
529,
276,
1112,
420,
29958,
326,
26172,
29896,
29929,
29914,
29963,
333,
29903,
6378,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8380,
29918,
5215,
29892,
29104,
29918,
20889,
1338,
13,
13,
5... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.