seq_id stringlengths 4 11 | text stringlengths 113 2.92M | repo_name stringlengths 4 125 ⌀ | sub_path stringlengths 3 214 | file_name stringlengths 3 160 | file_ext stringclasses 18
values | file_size_in_byte int64 113 2.92M | program_lang stringclasses 1
value | lang stringclasses 93
values | doc_type stringclasses 1
value | stars int64 0 179k ⌀ | dataset stringclasses 3
values | pt stringclasses 78
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
14386876061 | '''
86. 최대 서브 배열
합이 최대가 되는 연속 서브 배열을 찾아 합을 리턴하라.
Example 1:
Input: nums = [-2,1,-3,4,-1,2,1,-5,4]
Output: 6
Explanation: [4,-1,2,1] has the largest sum = 6.
Example 2:
Input: nums = [1]
Output: 1
Example 3:
Input: nums = [0]
Output: 0
Example 4:
Input: nums = [-1]
Output: -1
Example 5:
Input: nums = [-100000... | hyo-eun-kim/algorithm-study | ch23/taeuk/ch23_2_taeuk.py | ch23_2_taeuk.py | py | 697 | python | km | code | 0 | github-code | 1 |
10823559577 | """ Python3: Display pdf file metadata """
import PyPDF2
def display_metadata(md):
return {
'custom_properties':md.custom_properties,
'dc_contributor':md.dc_contributor,
'dc_coverage':md.dc_coverage,
'dc_creator':md.dc_creator,
'dc_date':md.dc_date,
... | CRTejaswi/Python3 | Text Processing/PyPDF2/6.py | 6.py | py | 1,647 | python | en | code | 0 | github-code | 1 |
3300578970 | import numpy as np
import pickle
from flask import Flask, request, jsonify, render_template, url_for, redirect
#st.set_page_config(page_title='SNOWNLP', page_icon=None, layout='centered', initial_sidebar_state='auto')
# load the model
app = Flask(__name__)
# load the models from disk
model = pickle.load(open('mo... | priya-roy/snow-assignment-group-predict | app copy.py | app copy.py | py | 894 | python | en | code | 0 | github-code | 1 |
24481074245 | import json
import boto3
import logging
import uuid
import utils
from boto3.dynamodb.conditions import Key, Attr
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
def lambda_handler(event, context):
sqs = boto3.client('sqs')
sns = boto3.client('sns')
queue_url = 'https://sqs.us-east-1.amazonaws... | jingxianwtan/cloud_final_project | lambda_functions/project_match/lambda_function.py | lambda_function.py | py | 2,507 | python | en | code | 0 | github-code | 1 |
26539682744 | from pymongo import MongoClient
import csv
# DB connectivity
client = MongoClient('localhost', 27017)
# dbsparta 라는 곳에 넣는다
dbsparta = client.dbsparta
collection = dbsparta.collection
# Function to parse csv to dictionary
def csv_to_dict():
reader = csv.DictReader(open("C:/Users/user/Desktop/Web_Study/Dance_Matc... | ohbumjun/Flask_DanceAcademySearchApp | ToDB/Csv_To_DB.py | Csv_To_DB.py | py | 548 | python | en | code | 0 | github-code | 1 |
39631374652 |
import json
path = '/home/dylan/placeschallenge/instancesegmentation/imgCatIds.json'
with open(path) as f:
dict = json.load(f)
outarr = ['background'] * 101
for category in dict['categories']:
outarr[category['id']] = category['name']
breakpoint()
| DylanAuty/MDE-biological-vision-systems | misc_scripts/get_classes.py | get_classes.py | py | 257 | python | en | code | 6 | github-code | 1 |
1243686706 | class Solution:
def wordBreak(self, s, wordDict):
wordsdic = set(wordDict)
dp = {"":True}
return self.wordB(s,wordsdic,dp)
def wordB(self,s,wordsdic,dp):
if s in dp:
return dp[s]
ret = False
for i in range(len(s)):
temp = self.wordB(s[:i],... | gao288/MyLeetCodeSolution | 139_Word_Break.py | 139_Word_Break.py | py | 534 | python | en | code | 0 | github-code | 1 |
23923068539 | # DICTIONARIES
'''
- key:value pairs (much like objects from JS)
- ordered: defined order, will not change (prior to Python 3.6, they were not ordered)
- changeable: change/add/remove
- NO DUPLICATES (much like objects from JS)
'''
thisDict = {
"brand":"Ford",
"model":"Mustang",
"year":1964,
}
print... | aaron-bowers/python | dictionaries/dictionary.py | dictionary.py | py | 561 | python | en | code | 0 | github-code | 1 |
73290039715 | import firebase_admin
from firebase_admin import credentials
from firebase_admin import firestore
from firebase import firebase
cred = credentials.Certificate('./ServiceAccount.json')
default_app = firebase_admin.initialize_app(cred)
db = firestore.client()
firebase = firebase.FirebaseApplication('', None)
#post, cr... | limiyama/pythonCRUD | db.py | db.py | py | 444 | python | en | code | 0 | github-code | 1 |
1501533870 |
import sys
from PyQt5 import QtWidgets
from PyQt5.QtWidgets import (QLabel, QGridLayout, QWidget, QVBoxLayout, QHBoxLayout, QLineEdit, qApp, QMenu,
QGroupBox, QPushButton, QApplication, QSlider, QMainWindow, QSplashScreen,
QAction, QComboBox, QMessageBox, QDia... | tunelipt/boundarylayer | pos1d.py | pos1d.py | py | 7,064 | python | en | code | 0 | github-code | 1 |
1471336023 | import pymysql
class JIJIESQLDB:
def __init__(self):
self.conn = pymysql.connect(host='127.0.0.1',
port=3306,
user='root',
passwd='*********',
db='JIJIESQL',
... | q23175401/News-Crwaler | NewsCrawler/JIJIESQL.py | JIJIESQL.py | py | 4,352 | python | en | code | 1 | github-code | 1 |
39453312791 | #
# @lc app=leetcode.cn id=647 lang=python3
#
# [647] 回文子串
#
# https://leetcode-cn.com/problems/palindromic-substrings/description/
#
# algorithms
# Medium (61.54%)
# Likes: 373
# Dislikes: 0
# Total Accepted: 61K
# Total Submissions: 94.3K
# Testcase Example: '"abc"'
#
# 给定一个字符串,你的任务是计算这个字符串中有多少个回文子串。
#
# 具有不同... | yunchui/Leedcode | 647.回文子串.py | 647.回文子串.py | py | 1,530 | python | en | code | 0 | github-code | 1 |
24233720499 | from django.http import HttpResponseRedirect, JsonResponse
from django.shortcuts import redirect, render
from django.urls import reverse
from django.views.generic import ListView
from django.views import View
from django.contrib.auth.models import User
from django.contrib import messages
from django.contrib.auth import... | kzaleskaa/django-blog | blog/views.py | views.py | py | 9,246 | python | en | code | 1 | github-code | 1 |
14684995317 | from functools import reduce
def load_depths(filename):
file = open(filename, "r")
try:
lines = file.readlines()
return [int(s) for s in lines]
finally:
file.close()
def accumulate_deeper(result, next):
count = result["count"]
if next > result["last_depth"]:
count =... | sea36/aoc-2021 | aoc_1.py | aoc_1.py | py | 1,111 | python | en | code | 0 | github-code | 1 |
25746641155 | from django.urls import path
from .views import *
urlpatterns = [
path('gul/', gul),
path('moshina/', moshina),
path('odam/', odam),
path('uy/', uy),
path('tel/', tel),
path('mevaa/', meva),
path('davlat/', davlat),
path('qoshiq/', qoshiq),
path('yegulik/', yegulik),
path('rasm/... | mastercoder9363/python- | core/urls.py | urls.py | py | 364 | python | en | code | 8 | github-code | 1 |
1243347766 | from open3d import *
def display_inlier_outlier(cloud, ind):
inlier_cloud = select_down_sample(cloud, ind)
outlier_cloud = select_down_sample(cloud, ind, invert=True)
print("Showing outliers (red) and inliers (gray): ")
outlier_cloud.paint_uniform_color([1, 0, 0])
inlier_cloud.paint_uniform_color(... | Sinchiguano/nothing | src/yumi_main/src/sources/old/open3D/outlierrm.py | outlierrm.py | py | 1,230 | python | en | code | 0 | github-code | 1 |
28433545047 | #!/usr/bin/env python
# coding: utf-8
import sys
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
def main():
filenames = sys.argv[1:]
df = pd.concat(pd.read_csv(filename) for filename in filenames)
names = df['name'].unique()
for name in names:
plt.clf()
... | expertisesolutions/csharp-native-benchmarks | plot.py | plot.py | py | 640 | python | en | code | 0 | github-code | 1 |
5603910478 | import math
N = int(input())
base = int(math.sqrt(N))
for x in range(base, 0, -1):
if N % x == 0:
A = x
break
B = N // A
ans = 1
while B > 9:
ans += 1
B //= 10
print(ans)
| yuu246/Atcoder_ABC | practice/recommendation/ABC057_C.py | ABC057_C.py | py | 201 | python | en | code | 0 | github-code | 1 |
31001238815 | import pandas as pd
import numpy as np
import time
import networkx as nx
import ast
from iteration_utilities import unique_everseen, duplicates
import operator
###################DataFrame:#####################################
#Read .CSV File that contains network of all Policital BOTS transmitted between a sequence o... | sai6kiran/TwitterBotFarms | kCoreBots/CoreBotEN/MachineLearning/NaiveBayes/CoreBotsSentiment/PythonScripts/NetworkBotStatistics.py | NetworkBotStatistics.py | py | 13,790 | python | en | code | 0 | github-code | 1 |
70684732513 | """
Transitive Closure of the graph
1. Enter the total Nodes
2. Enter N1 N2 (N1 space N2 )
3. Once done with adding edges just press ENTER to exit the loop.
4. The adjacency matrix and transitive closure of graph is printed.
"""
matrix = []
nodes=int(input("Number of nodes:"))
for i in range(nodes):
matrix.appe... | anoohya23/Transitive-Closure-of-a-graph | TransitiveClosure.py | TransitiveClosure.py | py | 1,357 | python | en | code | 0 | github-code | 1 |
31119294670 | from ignitetest.services.ignite_app import IgniteApplicationService
class DumpUtility:
"""
Control the cache dump operations.
"""
def __init__(self, test_context, cluster):
self.cluster = cluster
self.app = IgniteApplicationService(
test_context,
cluster.config... | apache/ignite | modules/ducktests/tests/ignitetest/services/utils/dump_utility.py | dump_utility.py | py | 898 | python | en | code | 4,585 | github-code | 1 |
38762787191 | from grafico_canvas import Grafico_Canvas
from PyQt5 import QtWidgets
class Grafico_Barra(QtWidgets.QWidget):
def __init__(self, parent = None):
QtWidgets.QWidget.__init__(self, parent)
self.canvas = Grafico_Canvas()
self.vbl = QtWidgets.QVBoxLayout()
self.vbl.addWidget(self.canvas)... | omarjcm/p60-POO | code/matplotlib/pyqt-matplotlib/grafico_barras/grafico_barra.py | grafico_barra.py | py | 353 | python | en | code | 0 | github-code | 1 |
72891857955 | # -*- coding: UTF-8 -*-
import sqlite3 as sqlite
from config import config
class Log:
def __init__(self, logId = None):
self.logId = logId
self.samples = {}
self.steps = 0
if (logId):
self.__load()
def __load(self):
con = sqlite.connect(config.DB)
cur = con.cursor()
cur.execute("SELECT sample_no, ... | nextsux/stepper | Log.py | Log.py | py | 947 | python | en | code | 0 | github-code | 1 |
12592804774 | """
Main file for the program
"""
from urllib import request, parse
import requests
from private import private
import json
import datetime, time
headers = {
'accept': private.API_accept,
'API-Key': private.API_KEY,
'Content-Type': private.API_Content_Type,
}
def get_my_IP():
"""
:return: Sting ... | NicolasGagne/NOT-StaticIP | main.py | main.py | py | 3,450 | python | en | code | 0 | github-code | 1 |
23972551085 | #View for the gre app in my blog
import os
import re
import requests
import random
import datetime
import json
import logging
#from xhtml2pdf import pisa
from urllib.request import urlopen
from urllib.error import URLError
from bs4 import BeautifulSoup
from django.core.exceptions import ObjectDoesNotExist
from djan... | pranphy/DBlog | gre/views.py | views.py | py | 13,097 | python | en | code | 0 | github-code | 1 |
17462735129 | #!/usr/bin/env python3
import sys, os, csv, itertools, pickle, lzma, json, hashlib, tempfile, difflib, re, glob
from pprint import pprint, pformat
from collections import namedtuple
from counter import Ticket, PreferenceFlow, PapersForCount, SenateCounter
def named_tuple_iter(name, reader, header, **kwargs):
fiel... | sgryphon/dividebatur | senatecount.py | senatecount.py | py | 9,656 | python | en | code | 0 | github-code | 1 |
31994806283 | #!/usr/bin/python3
'''
This module returns a list of lists of integers
representing the pascals triangle of an integer n
'''
def pascal_triangle(n):
"""a function that returns the pascal triangle of n"""
# returns empty list if n is 0 or negative
if n <= 0:
return []
# forms the pascals trian... | OmobaVII/alx-interview | 0x00-pascal_triangle/0-pascal_triangle.py | 0-pascal_triangle.py | py | 902 | python | en | code | 0 | github-code | 1 |
19715798346 | import numpy as np
import json
import pygame
class Controller:
def __init__(self,joystick):
self.joy_min = 0.1
self.buttons = {}
self.mapping = {}
#joystick = -1
# Go into this if statement if the joystick is a joystick
if (joystick != -1):
self.joystick... | Benji-UW/COBOT-Transducer-Control-Code | Controller.py | Controller.py | py | 4,223 | python | en | code | 0 | github-code | 1 |
40889428472 | # Written by why-py
#t.me/pythonmobin
from pyrogram import Client, idle, filters
from pyrogram.types import Chat
from pyrogram.errors.exceptions.bad_request_400 import UsernameNotOccupied,UsernameInvalid
from pyrogram.errors.exceptions.not_acceptable_406 import ChannelPrivate
from apscheduler.schedulers.asyncio import... | why-py/Telegram-Username-Locker | main.py | main.py | py | 6,003 | python | en | code | 3 | github-code | 1 |
166470727 | import pyodbc
import streamlit as st
import openai
import pandas as pd
import os
with st.sidebar:
st.title('ЁЯЧия╕П Natural Language -- SQL Query Chatbot')
st.markdown('''
## About App:
To create the app, The primary resources utilised are:
- [Streamlit](https://streamlit.io/)
-... | Malikk1997/Chat-with-PDF-using-OpenAi-Streamlit | advworks.py | advworks.py | py | 3,862 | python | en | code | 1 | github-code | 1 |
73910130274 | __author__ = 'Michael Douchin'
__date__ = 'July 2014'
__copyright__ = '(C) 2014, Michael Douchin'
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'
import processing
from qgis.core import QgsExpression, QgsVectorLayer
from processing.core.GeoAlgorithmExecutionException i... | nextgis/nextgisqgis | python/plugins/processing/algs/qgis/SelectByExpression.py | SelectByExpression.py | py | 2,706 | python | en | code | 27 | github-code | 1 |
41407568292 |
# 268. Missing Number
# https://leetcode.com/problems/missing-number/description/
# https://discuss.leetcode.com/topic/24535/4-line-simple-java-bit-manipulate-solution-with-explaination
# The basic idea is to use XOR operation. We all know that a ^ b ^ b = a.
class Solution(object):
def missingNumber(self, nums... | aszx4510/LeetCode | python/0268-missing_number.py | 0268-missing_number.py | py | 517 | python | en | code | 0 | github-code | 1 |
36259026653 | def process_matrix(TEST, INIT):
n = len(TEST)
# Khởi tạo mảng TMP với giá trị từ 1 đến n-1
#TMP = [0] * (n * n)
# Khởi tạo từ điển để lưu trữ chỉ số của mỗi giá trị trong TMP
index_dict = {}
cnt = 1
# Duyệt qua ma trận TEST và gán giá trị vào mảng TMP và từ điển
for r... | haithanh03/BTL-TTNT-2023 | TEST.py | TEST.py | py | 1,338 | python | vi | code | 0 | github-code | 1 |
7730853047 | """
take input for n1,n2
and perform operation for sum, sub mul, div
write sum ,sub, mul ,div functions inside the class
"""
class Calulator:
def __init__(self,pN1,pN2):
self.n1 = pN1
self.n2 = pN2
def sum(self):
res = self.n1 + self.n2
print("sum = ", res )
def sub(sel... | murali-kotakonda/PythonProgs | PythonBasics1/oopsinstance/CalculatorWithConstr.py | CalculatorWithConstr.py | py | 856 | python | en | code | 0 | github-code | 1 |
32253891035 | """Base wrapper of scikit-learn-style numpy array predictions.
Functionalities:
- Hiding implementation details of prediction types (e.g., number of
dimensions, semantics of columns).
- Providing a numpy array view through ``y_pred``. The ``y_pred`` view is
used in ``rampwf.score``s as input, and in the default im... | paris-saclay-cds/ramp-workflow | rampwf/prediction_types/base.py | base.py | py | 4,750 | python | en | code | 63 | github-code | 1 |
35193966880 | import cv2
from djitellopy import Tello
import numpy as np
import torch
from torch import nn
import torchvision
from create_apple_model import Categories as CAP_Categories
from create_rotten_model import Categories as CRM_Categories
from predict_ripe import RipenessPredictor
class CropToSquare:
def __call__(self... | TheMikeste1/Fruit-Fly | drone_controls/fruit_fly.py | fruit_fly.py | py | 7,796 | python | en | code | 0 | github-code | 1 |
11688870707 | import re
from os import fsync
def updating(filename,dico):
RE = '(('+'|'.join(dico.keys())+')\s*=)[^\r\n]*?(\r?\n|\r)'
pat = re.compile(RE)
def jojo(mat,dic = dico):
return str(dic[mat.group(2)]).join(mat.group(1,3))
with open(filename,'rb') as f:
content = f.read()
with open(f... | OpenPOWER-BigData/HDP2.5-slider | app-packages/kafka/package/scripts/util.py | util.py | py | 379 | python | en | code | 0 | github-code | 1 |
17363826335 | def cors_preflight(methods):
def wrapper(f):
def options(self, *args, **kwargs):
return {'Allow': 'GET'}, 200, \
{'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': methods,
'Access-Control-Allow-Headers': 'Authorizati... | bcgov/namex | solr-synonyms-api/synonyms/utils/util.py | util.py | py | 1,096 | python | en | code | 6 | github-code | 1 |
39730708369 | """
mrks.py
Functions associated with mrks inversion
"""
import numpy as np
from opt_einsum import contract
import psi4
import time
class MRKS():
"""
Wavefunction to KS_potential method based on
[1] [PRL 115, 083001 (2015)],
[2] [J. Chem. Phys. 146, 084103 (2017)].
The XC potential is calculated... | wasserman-group/n2v | n2v/methods/mrks.py | mrks.py | py | 19,695 | python | en | code | 16 | github-code | 1 |
17959112678 | # 서로 다른 n개 중에서 r개 순서없이 고르기
# pick r items without of order from each different n items
# 서로 다른 n개 중에서 r개를 순서 없이 고르는 방법의 가짓수를 출력하시오.
# 1, 2, 3 서로 다른 3개 중에 2개를 고를 수 있는 방법의 가짓수는 (1, 2),
# (2, 3), (1, 3)의 3가지이다.
# p개 중에서 q개를 순서 없이 고르는 방법의 가짓수는 (p-1)개 중에서 (q-1)개를
# 선택하고 마지막 p번째 것을 선택하는 경우의 가짓수 + (p-1)개 중에서 q개를
# 선택하고 마지막 p번... | junes7/python_algorithm | CodeUp/Recursive Function/1857.py | 1857.py | py | 1,731 | python | ko | code | 1 | github-code | 1 |
72732480353 | # Configuration file for the Sphinx documentation builder.
import os
import sys
# -- Project information
project = "IndieWeb Utils"
copyright = "capjamesg 2022"
author = "capjamesg"
sys.path.insert(0, os.path.abspath("../../src/"))
release = "0.8.0"
version = "0.8.0"
# -- General configuration
extensions = [
... | capjamesg/indieweb-utils | docs/source/conf.py | conf.py | py | 828 | python | en | code | 18 | github-code | 1 |
71257983395 | # CCC 2019 Junior 2: Time to Decompress
#
# Author: Charles Chen
#
# Strings and loops
num_lines = int(input())
num_symbols = []
symbol_type = []
for i in range(num_lines):
input_data = input().split()
num_symbols.append(int(input_data[0]))
symbol_type.append(input_data[1])
for i in range(... | charlescchen/CCC-Solutions | CCC-2019/Junior/Junior-2/J2.py | J2.py | py | 377 | python | en | code | 10 | github-code | 1 |
41407084092 |
# 16. 3Sum Closest
# https://leetcode.com/problems/3sum-closest/
class Solution:
def threeSumClosest(self, nums: List[int], target: int) -> int:
nums.sort()
min_diff = 99999999999999
for i in range(len(nums) - 2):
if i > 0 and nums[i] == nums[i - 1]:
continue
... | aszx4510/LeetCode | python/0016-3sum_closet.py | 0016-3sum_closet.py | py | 815 | python | en | code | 0 | github-code | 1 |
70040097954 | from PIL import Image
from datetime import datetime
from time import sleep
import io
import socket
import struct
import numpy as np
import time
import base64
import xlsxwriter
workbook = xlsxwriter.Workbook('Server_time.xlsx')
worksheet = workbook.add_worksheet()
def current_mili_time():
return int(round(time.time... | elicul/Self_Driving_RC_Car | test/server.py | server.py | py | 2,119 | python | en | code | 0 | github-code | 1 |
29142147538 | # 【问题描述】
# 给定一个10进制数,将其转换为任意的进制数(不会出现17进制或以上)
# 【输入形式】
# 输入两个数M,N,其中M表示需要被转换的10进制数,N表示给定的进制,中间用空格隔开
# 【输出形式】
# M的N进制表示,如遇到字母请使用大写
# 【样例输入】
# 16 2
# 【样例输出】
# 10000
# 【样例说明】这就不用我多说了8
# 【评分标准】这也不用我多说了8
s = [int(i) for i in input().split()]
num = s[0]
b = s[1]
bits = []
while(num != 0):
bits.append(num % b)
num... | rfhits/Data-Structure-BUAA | 0-OnlineJudge/06-2020秋季第四次练习/1-进制转换.py | 1-进制转换.py | py | 1,081 | python | zh | code | 5 | github-code | 1 |
411766540 | import sys
import logging
import gzip
from argparse import ArgumentParser
from typing import Dict, Iterator, List, Optional, Tuple
from dae.utils.verbosity_configuration import VerbosityConfiguration
from dae.genomic_resources import build_genomic_resource_repository
from dae.genomic_resources.genomic_context import G... | iossifovlab/gpf | dae/dae/effect_annotation/cli.py | cli.py | py | 14,603 | python | en | code | 1 | github-code | 1 |
26632070698 | class Solution:
def getSkyline(self, buildings: [[int]]) -> [[int]]:
if not buildings:
return []
if len(buildings) == 1:
return [[buildings[0][0], buildings[0][2]], [buildings[0][1], 0]]
mid = len(buildings) // 2
left = self.getSkyline(buildings[:mid])
... | RafaelHuang87/Leet-Code-Practice | 218.py | 218.py | py | 1,153 | python | en | code | 0 | github-code | 1 |
16778851044 | # Tengo una lista con datos de clientes:
# DNI, nombre y apellido, monto de deuda en pesos y localidad.
# Salida:
# 1.El apellido del mayor deudor es: Massingham
# 2.El total de deuda acumulada de los riocuartenses es de $624606
# 3.Los nombres de pila de los clientes cuyos DNI comiencen con 2 son:
# Elmore
# ... | pablokan/23prog1 | parciales/B/Sosa - Prueba 1.py | Sosa - Prueba 1.py | py | 2,295 | python | es | code | 0 | github-code | 1 |
36604175083 | import csv
import os
import re
#from math import round
import sys
import numpy
from matplotlib.lines import Line2D
import matplotlib.pyplot as plt
plt.rcParams.update({
"text.usetex": True,
"font.family": "Helvetica",
"font.size": 18
})
if len(sys.argv)==2:
file='-'+sys.argv[1]
else:
file=""
if... | diehlpk/async_heat_equation | plotme.py | plotme.py | py | 4,697 | python | en | code | 5 | github-code | 1 |
5145155010 | import cv2 as cv
from tkinter import filedialog
# Reading images
# img = cv.imread('index.jpg')
# cv.imshow("Image", img)
# cv.waitKey(0)
# Rescaling
def rescale(frame, scale=0.75):
width = int(frame.shape[1] * scale)
height = int(frame.shape[0] * scale)
dimensions = (width, height)
r... | Laudkyle/my-python-projects | Python Scripts/opencv tutorials/Opencv.py | Opencv.py | py | 688 | python | en | code | 0 | github-code | 1 |
34477348191 | from safegtk import SafeGTK
import rpyc
import gobject
import gtk
import pygtk
pygtk.require('2.0')
def BrowserServiceFactory(browser):
class BrowserService(rpyc.Service):
def on_connect(self, conn):
conn._config["allow_public_attrs"] = True
def exposed_navigate(self, url):
... | tomerfiliba-org/rpyc | demos/web8/client.pyw | client.pyw | pyw | 2,773 | python | en | code | 1,454 | github-code | 1 |
5730017501 | import streamlit as st
import numpy as np
import pandas as pd
import plotly.express as px
import ast
def read_df():
df = pd.read_csv("250_top_IMDB.csv")
def convert_runtime(runtime):
parts = runtime.split()
total_minutes = 0
for part in parts:
if "h" in part:
... | mohsen-tech/IMDb-Top-250-Movies-Scraper | pages/Static Charts.py | Static Charts.py | py | 4,071 | python | en | code | 1 | github-code | 1 |
15160463653 | import numpy as np
import imageio
import os
from ssr.utility.logging_extension import logger
def read_hdr_image(in_hdr_png):
# =========================================================================
# https://github.com/imageio/imageio/issues/204
# Read with FreeImage instead of Pillow is MANDATORY TO R... | SBCV/SatelliteSurfaceReconstruction | ssr/surface_rec/preparation/data_extraction/tone_map_general.py | tone_map_general.py | py | 8,983 | python | en | code | 75 | github-code | 1 |
38377589863 | #-*- coding:utf-8 -*-
# @Time : 2021/2/10 22:12
# @Author : 万志杨
# @File : jpgM.py
# @Software: PyCharm
import glob
import cv2
print(glob.glob(r"./images/*.jpg"))
import os
img_prefix = ['jpg', 'jpeg', 'png']
def read():
files = os.listdir("D:\学习\深度学习从入门到实践\吴恩达深度学习\汽车检测\images")
for file... | Skydevour/Vehicle-detection | jpgM.py | jpgM.py | py | 520 | python | en | code | 1 | github-code | 1 |
41440469682 | from collections import deque
def solution(target):
# print(target)
# print(dic)
leftCheck = False
rightCheck = False
for i in range(0, target):
leftNum = target - i
rightNum = target + i
if possibleCheck(leftNum) == True and leftNum <= 200:
leftCheck... | aszxvcb/TIL | BOJ/boj17509.py | boj17509.py | py | 1,409 | python | en | code | 0 | github-code | 1 |
19117109163 | # -*- python -*-
load("@drake//tools/workspace:github.bzl", "github_archive")
def uritemplate_py_repository(
name,
mirrors = None):
github_archive(
name = name,
repository = "python-hyper/uritemplate",
commit = "3.0.0",
sha256 = "733fef5b17c4d9bb86b52fcd5c97a008bfc2... | GTLIDAR/safe-nav-locomotion | motion_planner/drake/tools/workspace/uritemplate_py/repository.bzl | repository.bzl | bzl | 483 | python | en | code | 21 | github-code | 1 |
12210892024 | #Progressão aritimética:
branco = '\033[1;30m'
vermelho = '\033[1;31m'
verde = '\033[1;32m'
amarelo = '\033[1;33m'
azul = '\033[1;34m'
lilas = '\033[1;35m'
ciano = '\033[1;36m'
cinza = '\033[1;37m'
normal = '\033[m'
print('{}{:.^50}{}'.format(vermelho, 'Progressão aritimética', normal))
i = int(input('Digite aqui o ... | Gscavo/curso_python_curso_em_video | aula_013/exs/ex_051.py | ex_051.py | py | 495 | python | pt | code | 0 | github-code | 1 |
7739299645 | from flask import Flask, render_template, redirect, request, jsonify, flash, url_for
from . import student_bp
import app.models.student_model as studModel
from app.student.forms import StudentForm
headings = ("ID_Number", "First Name", "Last Name", "Course", "College", "Year", "Gender", "Actions")
@student_bp.route('... | edenDorato27/SSIS_CCC181_WEB | app/student/controller.py | controller.py | py | 5,011 | python | en | code | 0 | github-code | 1 |
33705694698 | from .defines import set_creds, make_apicall
import json
user_media_model = ""
def get_user_media(params):
endpoint_params = dict()
endpoint_params[
'fields'] = 'timestamp,id,caption,media_type,shortcode,permalink,media_url'
endpoint_params['access_token'] = params['access_token']
url = para... | HarryTang4/IG-ObjectDetection-SentimentAnalysis | playground/instagramapi.py | instagramapi.py | py | 4,517 | python | en | code | 0 | github-code | 1 |
38341296475 | class Solution:
def longestCommonPrefix(self, strs):
"""
:type strs: List[str]
:rtype: str
"""
count = 0
part_str=''
if len(strs) == 0:
return ''
elif len(strs) == 1:
return strs[0]
else:
com_str=strs[0]
... | Nanyihang/leetcode | longest_common_prefix.py | longest_common_prefix.py | py | 756 | python | en | code | 0 | github-code | 1 |
2341357348 | '''
Question: Given an array of integers, sort the array into a wave like array and return it,
In other words, arrange the elements into a sequence such that a1 >= a2 <= a3 >= a4 <= a5.....
Example
Given [1, 2, 3, 4]
One possible answer : [2, 1, 4, 3]
Another possible answer : [4, 1, 3, 2]
NOTE : If there are mult... | yagamiram/Programming_challenges | wave_sort.py | wave_sort.py | py | 2,983 | python | en | code | 0 | github-code | 1 |
26925089883 | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
from relap import run_relap, import_data
def main(argv='-i'):
if argv=='-i':
run_relap.run_new_model()
elif argv=='-s':
run_relap.run_strip()
import_data.stripf_preprocess()
if __name__=="__main__":
try:
a... | Maoxie/FR_model | main.py | main.py | py | 504 | python | en | code | 0 | github-code | 1 |
9386790051 | from turtle import color
import discord
import random
import os
import asyncio
import json
import requests
import time
from discord.ext import commands, tasks
from discord.ext.commands import has_permissions
from itertools import cycle
from dotenv import load_dotenv
load_dotenv()
TOKEN = os.getenv("TOKEN")
client =... | Siwan-SR/hogwarts | main.py | main.py | py | 11,982 | python | en | code | 0 | github-code | 1 |
70309866273 | from django.db import models
from .product import Product
class Magazine(models.Model):
product = models.OneToOneField(Product, related_name='Magazines', on_delete=models.CASCADE, primary_key=True)
name = models.CharField('Name', max_length = 200, blank=True, null=True)
edition = models.IntegerField(defa... | Dayroot/Ciclo3_Backend | bookstoreApp/models/productModels/magazine.py | magazine.py | py | 487 | python | en | code | 0 | github-code | 1 |
8095000936 | import os
import time
from time import sleep
from threading import Event
from led import CLed
from button import CButton
from led_pwr_callback import *
import argparse
from argparse import RawTextHelpFormatter
import sys
import textwrap
import RPi.GPIO as GPIO
# Globals
################################################... | fsteinha/raspi_button_ctrl | src/d_usr_button_ctrl.py | d_usr_button_ctrl.py | py | 5,215 | python | en | code | 0 | github-code | 1 |
26467932377 | import random, uuid
colors = ["red", "orange", "yellow", "blue", "green", "indigo", "violet", "brown", "sienna", "carnation", "citrus", "saffron", "lime", "lavender", "emerald"]
animals = ["cat", "dog", "hamster", "gecko", "ferret", "oppossum", "phoenix", "dinosaur", "spider", "camel", "unicorn", "thestral", "swan"]
... | shenjessiej/scratchpad3 | util.py | util.py | py | 511 | python | en | code | 0 | github-code | 1 |
16957432075 | # -*- coding: utf-8 -*-
from openerp import models, fields, api
from openerp.exceptions import Warning
class hr_resource_allocation_wizard(models.TransientModel):
_name = 'hr.resource.allocation.wizard'
_description = 'Create Resource Allocation for x more sprints'
number_of_sprint = fields.Integer(
... | TinPlusIT05/tms | project/tms_modules/model/hr/wizard/hr_resource_allocation_wizard.py | hr_resource_allocation_wizard.py | py | 1,616 | python | en | code | 0 | github-code | 1 |
20780494961 | import telebot
from telebot import types
import requests
import time
import os
import json
vk_token = 'Your vk token'
tg_token ='Your tg token'
id_channel = '@your id channel'
group_name = 'your group name'
URL = 'your group url'
with open('old_id.json') as file:
old_id = json.load(file)
bot = te... | kittysshark/VKGroupBot_v2.0 | VKGroupBot_v2.0.py | VKGroupBot_v2.0.py | py | 2,060 | python | en | code | 0 | github-code | 1 |
74218558112 | import pathlib
import os
import time
while True:
for dirpath, dirnames, files in os.walk('/home/android/neyr/'):
if files:
# Working with bash
files = os.listdir('/home/android/neyr/') # here is one file - image for alpr
s = files[0]
command = 'alpr -c eu /hom... | daniello13/pikabu_downloader | neyroset.py | neyroset.py | py | 1,144 | python | en | code | 0 | github-code | 1 |
16864320329 | from __future__ import print_function
import os
import re
from subprocess import PIPE, Popen
CONF = "/proc/sys/kernel/core_pattern"
MATCH = {
"%p": r"\d+",
"%E": r"[A-Za-z0-9!-_]+",
}
class Core(object):
def __init__(self):
self.core_pattern = open(CONF).read().strip()
self.dir, self.pat... | open-io/oio-sds | tools/oio-gdb.py | oio-gdb.py | py | 1,922 | python | en | code | 621 | github-code | 1 |
14385689771 | """
10,000 이하의 자연수로 이루어진 길이 N짜리 수열이 주어진다. 이 수열에서 연속된 수들의 부분합 중에 그 합이 S 이상이 되는 것 중, 가장 짧은 것의 길이를 구하는 프로그램을 작성하시오.
연속된 수의 합이라고 하면 자기 자신도 포함하는 듯?
O(n)으로 풀이해야 하는 듯. 내 풀이는 지금 O(n^2)인데 타임아웃 뜸.
n,s = map(int, input().split())
nums = list(map(int, input().split()))
res, p, min_length = 0, 0, float("inf")
for i in ra... | hyo-eun-kim/algorithm-study | ch08/yujin/ch07_review1_yujin.py | ch07_review1_yujin.py | py | 1,939 | python | ko | code | 0 | github-code | 1 |
31336318486 | import matplotlib.pyplot as plt
import numpy as np
from scipy.interpolate import griddata
from fast_histogram import histogram2d
x = np.random.normal(0, 1, 10000)
y = np.random.normal(0, 1, 10000)
X = np.linspace(-2, 2, 10000)
Y = np.linspace(-2, 2, 10000)
X, Y = np.meshgrid(X, Y)
def convert_bin_edges_to_points(arr... | avivajpeyi/agn_phenomenological_model | tests/study_2d_hist_interpolation.py | study_2d_hist_interpolation.py | py | 1,652 | python | en | code | 0 | github-code | 1 |
30048300858 | MENU = {
"espresso": {
"ingredients": {
"water": 50,
"coffee": 18,
},
"cost": 1.5,
},
"latte": {
"ingredients": {
"water": 200,
"milk": 150,
"coffee": 24,
},
"cost": 2.5,
},
"c... | Jedi-KnightCoder/myPythonCode | coffee_machine_uploaded.py | coffee_machine_uploaded.py | py | 3,183 | python | en | code | 0 | github-code | 1 |
3203825224 | import os,sys
import numpy as np
import matplotlib.pyplot as plt
import cv2
from tqdm import tqdm
from ulitities.base_functions import get_file
inputdir = '/home/omnisky/PycharmProjects/data/tree/isprs/label_all'
outputdir = '/home/omnisky/PycharmProjects/data/tree/isprs/label_binary'
target_class=[1,2,3,4,5]
if __n... | scrssys/SCRS_RS_AI | data_prepare/label_multi2binary.py | label_multi2binary.py | py | 1,509 | python | en | code | 1 | github-code | 1 |
21722317765 | from src.utils.File_reader import Reader
from src.Gene import *
from src.Individual import Individual
from src.Environment import Group, Env
from numpy import random
import logging
logging.basicConfig(filename='./syslogging.log',
format='[%(asctime)s-%(filename)s-%(levelname)s:%(message)s]',
... | uwnelljy/geneticalgo | Main.py | Main.py | py | 4,409 | python | en | code | 0 | github-code | 1 |
3650959719 | from os.path import join, dirname, abspath
from babel import Locale
from babel.dates import UTC
from markupsafe import Markup
from ..allspeak import I18n
LOCALES_TEST = abspath(join(dirname(__file__), u'locales'))
LOCALES_TEST2 = LOCALES_TEST + u'2'
def test_init_i18n():
i18n = I18n(LOCALES_TEST)
assert i... | jpsca/allspeak | tests/test_i18n.py | test_i18n.py | py | 5,719 | python | en | code | 11 | github-code | 1 |
14964674523 | import os
from setuptools import setup
HERE = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(HERE, 'README.md')) as f:
README = f.read()
setup(
name='pytest-dynamic-fixtures',
long_description=README,
version='0.0.1',
install_requires=["pytest"],
packages=["pytest_dynamic_... | LeonPatmore/pytest-dynamic-fixtures | setup.py | setup.py | py | 380 | python | en | code | 0 | github-code | 1 |
34000819976 | def get_max(val1, val2, val3):
if val1 > val2:
maxi = val1
elif val2 > val3:
maxi = val2
else:
maxi = val3
return maxi
def get_max2(n1, n2, n3):
max_num = 0
num_list = [n1, n2, n3]
for i in num_list:
if i < max_num:
max_num = i
return max_num... | czamoral2021/CEBD-1100-CODE-WINTER-2021 | Class06/Exercise1_page8.py | Exercise1_page8.py | py | 516 | python | en | code | 0 | github-code | 1 |
33270977246 | # coding: utf-8
import matplotlib.pyplot as plt
from triangles.utils import get_mobius_triangle
from triangles.chains import get_chain
triangle_type = (2, 3, 7)
W = 'ab'
ini_tri = get_mobius_triangle(*triangle_type)
v, e, f = get_chain(ini_tri, W) #%* Se genera la cadena y se guardan los vértices,*)
... | airammrc/triangles | ejemplo2.py | ejemplo2.py | py | 748 | python | es | code | 0 | github-code | 1 |
73747079075 | import cv2
import sys
(major_ver, minor_ver, subminor_ver) = (cv2.__version__).split('.')
def BadParams():
print("Example usage:")
print("python3 tracker.py fish.mp4 3")
sys.exit()
if __name__ == '__main__' :
# Check for correct argument usage
if len(sys.argv) < 3:
print("Enter the locat... | SamuelJakes/objection-tracking | tracker-first-attempt.py | tracker-first-attempt.py | py | 3,555 | python | en | code | 0 | github-code | 1 |
37519019964 | """A simple number and datetime addition JSON API.
Run the app:
$ python examples/flask_example.py
Try the following with httpie (a cURL-like utility, http://httpie.org):
$ pip install httpie
$ http GET :5001/
$ http GET :5001/ name==Ada
$ http POST :5001/add x=40 y=2
$ http POST :5001/datead... | yufeiminds/webargs | examples/flask_example.py | flask_example.py | py | 2,061 | python | en | code | null | github-code | 1 |
33881523863 | #!/usr/bin/env python3
import sys
import pytomlpp as pt
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1.inset_locator import inset_axes
import pylcp
import scipy.constants as cts
from pylcp.common import progressBar
import pandas as pd
# Get the input from the file
with open(sys.argv[1... | bdalfavero/forces | potassium_forces.py | potassium_forces.py | py | 2,850 | python | en | code | 0 | github-code | 1 |
71015515555 | # Title: 이진 틀;
# Link: https://www.acmicpc.net/problem/13325
import sys
sys.setrecursionlimit(10 ** 6)
read_single_int = lambda: int(sys.stdin.readline().strip())
read_list_int = lambda: list(map(int, sys.stdin.readline().strip().split(' ')))
def solution(k: int, ns: list):
s = 0
ps = [(0, 2... | yskang/AlgorithmPractice | baekjoon/python/binary_tree_13325.py | binary_tree_13325.py | py | 914 | python | en | code | 1 | github-code | 1 |
15409786223 | import sys
import requests
import json
import math
import numpy as np
import numpy.linalg as nla
import matplotlib.pyplot as plt
def SplitWord(word):
return [char for char in word]
def function1(x):
return math.cos(x) * x
def function2(x):
return 1/x
def function3(x):
return x**2 -2*x - 1
d... | trosnerMSU/NumericalAnalysisFunctions | NumericalAnalysis/venv/practice.py | practice.py | py | 7,571 | python | en | code | 0 | github-code | 1 |
16478160075 | import sys
import os
import atexit
import platform
import pathlib
from PySide2.QtGui import QGuiApplication
from PySide2.QtQml import QQmlApplicationEngine
from PySide2.QtQuickControls2 import QQuickStyle
from resources.controllers.crunchyroll_controller import CrunchyrollController
VERSION = "0.0.1"
APPLICATION_NAME ... | mastrHyperion98/AmadeusTV | src/main.py | main.py | py | 1,553 | python | en | code | 1 | github-code | 1 |
38177825177 | import sys
import h5py
import logging
import warnings
from pathlib import Path
import torch
import numpy as np
from scipy.ndimage import zoom
from unet3d import Basic3DUNet
warnings.filterwarnings(action='ignore', category=UserWarning)
log = logging.getLogger(__name__)
PAD = 64
def segment_mitochondria(input_path,... | sanketx/mitochondria_segmentation | src/segmentation_utils.py | segmentation_utils.py | py | 3,799 | python | en | code | 3 | github-code | 1 |
27708885859 | #!/usr/bin/env python3
import os
import sys
import subprocess as sp
from glob import glob
from shutil import rmtree
from setuptools import setup, find_packages, Command
class ST_cmd(Command):
description = "foo"
user_options = []
def initialize_options(self):
pass
def finalize_options(self):... | 9001/softchat | setup.py | setup.py | py | 3,257 | python | en | code | 27 | github-code | 1 |
25074719583 | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
## dfs
class Solution:
def minDepth(self, root: Optional[TreeNode]) -> int:
if not root:
return 0
... | jty-cu/LeetCode | Algorithms/111-二叉树的最小深度.py | 111-二叉树的最小深度.py | py | 1,651 | python | en | code | 0 | github-code | 1 |
70171476195 | import matplotlib.pyplot as plt
import pandas as pd
fn = '/gpfs23/scratch/h_vangard_1/chenh19/findadapt_bench/realdata/87_geo_study_group.txt'
reads_type = ['3p Adapter only', 'QIAseq', 'NEXTFLEX', 'Template Switching', 'Trimmed']
ct = {k: [0 for _ in range(5)] for k in ['Matched', 'Mislabeled', 'Not Specified', 'Ot... | chc-code/findadapt | utils/simulation_and_benchmark/plot_realdata_accuracy.py | plot_realdata_accuracy.py | py | 1,777 | python | en | code | 0 | github-code | 1 |
32200656016 | #!/usr/bin/python
import argparse
import os
import random
import sys
import Project
from coilsnake.util.common.yml import yml_load
sys.path.append('./')
def calcNewStat(statName, growthRates, newLevel, oldStatValue):
r = 0
if (statName == "Vitality" or statName == "IQ") and (newLevel <= 10):
r = 5... | pk-hack/CoilSnake | coilsnake/tools/damage_calc.py | damage_calc.py | py | 4,386 | python | en | code | 153 | github-code | 1 |
36370333553 | #!/usr/bin/env python
import os
import time
import argparse
from datetime import datetime
from pvaserver import config
from pvaserver import adsimserver
from pvaserver import log
from pvaserver import __version__
def init(args):
if not os.path.exists(str(args.config)):
config.write(args.config)
else:... | decarlof/pvaServer | src/pvaserver/__main__.py | __main__.py | py | 3,454 | python | en | code | 0 | github-code | 1 |
12889215777 | from service.base import BaseService
import requests
import json
import config
class UserService(BaseService):
def __init__(self, db, rs):
super().__init__(db, rs)
UserService.inst = self
def login(self, req, data={}):
'''
username, password
'''
url = self.add_c... | allenwhalecs03/nctu_hackathon | backend/service/user.py | user.py | py | 2,058 | python | en | code | 0 | github-code | 1 |
4369786815 | import pyglet
from pyglet.gl import *
# Zooming constants
ZOOM_IN_FACTOR = 1.2
ZOOM_OUT_FACTOR = 1/ZOOM_IN_FACTOR
class Camera:
def __init__(self, width, height):
# Initialize camera values
self.left = 0
self.right = width
self.bottom = 0
self.top = height
self.zoo... | Robinamixan/goblins-pyglet | src/WindowElements/Camera.py | Camera.py | py | 3,137 | python | en | code | 0 | github-code | 1 |
41437758163 | import logging
import string
import json
import pytest
from streamsets.testframework.markers import salesforce, sdc_min_version
from streamsets.testframework.utils import get_random_string
from ..utils.utils_salesforce import (BULK_PIPELINE_TIMEOUT_SECONDS, clean_up, get_ids, OBJECT_NAMES,
... | streamsets/datacollector-tests | stage/standard/test_salesforce_bulk2_destination.py | test_salesforce_bulk2_destination.py | py | 15,315 | python | en | code | 17 | github-code | 1 |
33224623345 | """
yield 理解 练习
"""
# 可迭代对象
list = [1, 2, 3, 4]
print(list)
print(type(list))
for i in list: # 可迭代对象(迭代器)可用for迭代生成
print(i)
list = [x for x in range(4)]
print(list)
print(type(list))
for i in list:
print(i)
for i in list:
print(i)
# 迭代器把所有值全部存储在内存中
# 迭代是一个实现可迭代对象(实现的是 __iter__() 方法)和迭代器(实现的是 __ne... | HeZhang01/Room | python/yieldTest.py | yieldTest.py | py | 1,915 | python | zh | code | 0 | github-code | 1 |
12062140487 | #save multiple-scatter data as in notebook: nrFano_Constraint/ms_simulation_yield.ipynb
import numpy as np
import pandas as pd
import sima2py as sapy
import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)
import h5py
warnings.resetwarnings()
#get the equivalent charge energy for a recoil of e... | villano-lab/nrFano_paper2019 | python/ms_save.py | ms_save.py | py | 2,277 | python | en | code | 2 | github-code | 1 |
17360256705 | """add nr refund requested state
Revision ID: 8b99aacb139b
Revises: 07563e18d763
Create Date: 2020-11-30 10:43:13.218082
"""
from alembic import op
from sqlalchemy import Table, MetaData
# revision identifiers, used by Alembic.
revision = '8b99aacb139b'
down_revision = '07563e18d763'
branch_labels = None
depends_on... | bcgov/namex | api/migrations/versions/8b99aacb139b_add_nr_refund_requested_state.py | 8b99aacb139b_add_nr_refund_requested_state.py | py | 897 | python | en | code | 6 | github-code | 1 |
6494066267 | from collections import deque
n = int(input())
card=[]
for i in range(n):
card.append(int(input()))
card.sort()
q = deque(card)
num = q.popleft()
for i in range(n-1):
num += q.popleft()
q.insert(0, num)
print(sum(q)) | JoonseoKang/coding_test | Sorting/q4.py | q4.py | py | 233 | python | en | code | 0 | github-code | 1 |
27510686659 | """
Author: alberto.suarez@uam.es
Coauthors: joseantonio.alvarezo@estudiante.uam.es
franciscojavier.saez@estudiante.uam.es
"""
from typing import Callable, Tuple
import numpy as np
from scipy.spatial import distance
from sklearn.preprocessing import normalize
from sklearn.utils.extmath import svd_fli... | fjsaezm/mcd-mf | HW_02/kernel_machine_learning.py | kernel_machine_learning.py | py | 6,694 | python | en | code | 0 | github-code | 1 |
15971452841 | from aiida.orm.calculation.job.vasp.vasp import VaspCalculation
from aiida.orm import DataFactory, Code
from aiida.common.folders import Folder
import pymatgen as pmg
import sys
#~ vc = VaspCalculation()
incar = {'SYSTEM': 'TestSystem',
'ediff': 1E-5,
'GGA_COMPAT': False,
}
poscar = pmg.io.... | greschd/aiida-vasp | test/test_sub.py | test_sub.py | py | 1,029 | python | en | code | null | github-code | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.