blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
e3b84c864e5956d8313b20d0590ea58b67f25f97
d2bd7a6fb16bc8d8a4ea021d1c82d234a303b3c7
/main.py
77b5832f51ab3d30d0564191d18f0838fb6fdfe8
[]
no_license
Darkshadow9799/Library-Management
526748ecb950279c66ed03bbb00d800095b349c7
33e727796e91ed003be1d9a1e664ba5aaa063776
refs/heads/master
2023-07-11T07:56:47.671088
2021-08-07T04:55:37
2021-08-07T04:55:37
273,650,887
1
0
null
null
null
null
UTF-8
Python
false
false
2,017
py
import sqlite3 def connect(): conn=sqlite3.connect('db2.db') cur=conn.cursor() cur.execute("CREATE TABLE IF NOT EXISTS dbb (id INTEGER PRIMARY KEY, title TEXT, author TEXT, year INTEGER, isbn INTEGER)") conn.commit() conn.close() def insert(title,author,year,isbn): conn=sqlite3.connect('...
[ "noreply@github.com" ]
noreply@github.com
4f42a7ae7350057cc525ee09756fdd24e97a4ba4
1bcafb443be3aab18dd251a1e92d0989d60bab37
/wallet/utils.py
3d3037795feb706f02bc7d276a01ea65bb6143f4
[]
no_license
deftonee/money_transfer_service_for_job_interview
9880b6351e31d9d318c1e3c1919f5f1c34fbd12e
1463d459f366870e01bacfb178bed35dcbba6d69
refs/heads/master
2022-11-05T18:30:19.171645
2020-06-18T11:16:35
2020-06-18T11:16:35
272,968,598
0
0
null
null
null
null
UTF-8
Python
false
false
3,171
py
import logging import requests from json import JSONDecodeError from django.conf import settings from django.db import transaction from rest_framework.exceptions import NotFound from wallet.models import Wallet, AssetTypeEnum, Transaction, Transfer, Rate logger = logging.getLogger(__name__) def create_wallet(user...
[ "konstantin.prilepin@jibrel.network" ]
konstantin.prilepin@jibrel.network
35e4783fdc79bd2c34545d469bcb5e0bd5cd5ee1
969fed6b9f4c0daa728bda52fea73d94bda6faad
/fakeTempControl/oxford/SIM_MERCURY.py
8052e93e5bcb55584ef3d3095d82cb5133ffb948
[]
no_license
ess-dmsc/essiip-fakesinqhw
7d4c0cb3e412a510db02f011fb9c20edfbd8a84f
ad65844c99e64692f07e7ea04d624154a92d57cd
refs/heads/master
2021-01-18T22:50:50.182268
2020-10-01T08:39:30
2020-10-01T08:39:30
87,077,121
0
0
null
2018-12-07T08:43:00
2017-04-03T13:28:23
Python
UTF-8
Python
false
false
4,643
py
#!/usr/bin/env python # vim: ft=python ts=8 sts=4 sw=4 expandtab autoindent smartindent nocindent # Author: Douglas Clowes (dcl@ansto.gov.au) 2013-06-03 from twisted.internet.task import LoopingCall from twisted.internet import reactor from twisted.python import log, usage from MercurySCPI import MercurySCPI as MYBAS...
[ "mark.koennecke@psi.ch" ]
mark.koennecke@psi.ch
285b9d8846df13f9a39b837141219faeae0f9f76
c987b79a656ec5f1a02845adfbca32a17eea95ff
/small_pocs/get_clients_browser/myenv/bin/flask
704ab334bb108a6de4e8997f6af03c7f60bc7cbd
[]
no_license
ankitforcodes/flask_projects
18790932ab0c94e62484cddf50d45af7cbe24396
83c497bd871c1bbb11a3b29a05cd543da6986c39
refs/heads/master
2023-03-02T02:45:14.714304
2021-02-12T11:08:36
2021-02-12T11:08:36
332,704,489
0
0
null
null
null
null
UTF-8
Python
false
false
293
#!/log/for_ibm/Ankit/python_projects/flask_projects/small_pocs/get_clients_browser/myenv/bin/python3 # -*- coding: utf-8 -*- import re import sys from flask.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "ankitforcodes@gmail.com" ]
ankitforcodes@gmail.com
242f05cd4aae7555fbe6bf5702093febdcbb83e4
81eff1c9bc75cd524153400cdbd7c453ee8e3635
/zxcar_ws/devel/lib/python2.7/dist-packages/astra_camera/srv/_GetDeviceType.py
09fd9a871d38977c6e36077b57b4a6a1ceed594b
[]
no_license
sukai33/zxcar_all
bbacbf85c5e7c93d2e98b03958342ec01e3dafd9
af389f095591a70cae01c1d116aa74d68223f317
refs/heads/master
2023-01-03T13:32:00.864543
2020-10-29T05:22:43
2020-10-29T05:22:43
300,556,457
0
0
null
null
null
null
UTF-8
Python
false
false
7,207
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from astra_camera/GetDeviceTypeRequest.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct class GetDeviceTypeRequest(genpy.Message): _md5sum = "d41d8cd98f00b204e9800998ecf...
[ "422168787@qq.com" ]
422168787@qq.com
434b785e6dc1ccdbfe0901c5b57262fa3a7b27f2
e3d71990fc810c06c01b3a388b6beb507232ccfb
/scripts/detect_fiducials.py
b9fe4526aa8246e9032bbd3e5f17874df85b74e5
[]
no_license
Kevinkald/asset_tracking
f9902a6f5abd3c517ab7d4b816c921460e9b5716
e2199544f2f32f73cbe68bc9fe1d125228ac2c88
refs/heads/master
2023-03-28T05:19:32.201295
2021-03-31T09:37:55
2021-03-31T09:37:55
299,911,981
1
0
null
null
null
null
UTF-8
Python
false
false
1,142
py
import numpy as np import cv2, PIL import matplotlib.pyplot as plt import matplotlib as mpl import pandas as pd import apriltag image = cv2.imread("IMG_6906.JPEG") gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) detector = apriltag.Detector() detections = detector.detect(gray) print(detections) # fx, fy, cx, cy K =...
[ "kevin.k.kaldvansvik@gmail.com" ]
kevin.k.kaldvansvik@gmail.com
9640b58c5a0cb8df3d449504d5764902b2ec7211
59df4e1fd50d2e81b6490bb5322084165033cefc
/seed.py
b773b252a7d0b6c0a87526060a0884f95e697567
[]
no_license
JKinsler/ratings-lab
0cfafd345e27f19dfcedb249a23d5bf7fc6eebb0
6c7196c36dd6c09074b84deca0653ae445ca7651
refs/heads/master
2023-02-08T11:03:30.762832
2020-02-06T20:12:57
2020-02-06T20:12:57
238,305,896
1
0
null
2023-02-02T05:13:18
2020-02-04T21:03:13
Python
UTF-8
Python
false
false
3,561
py
"""Utility file to seed ratings database from MovieLens data in seed_data/""" from sqlalchemy import func from datetime import datetime from model import User from model import Rating from model import Movie from model import connect_to_db, db from server import app def load_users(): """Load users from u.user i...
[ "you@example.com" ]
you@example.com
61bc399ed1bfa9c33901ec4aca63d499a36f7699
be1c4fda20df946bb1934a614f871d18b4f3ab63
/Inproduktion till programmering uppgift4.py
bbc3eff5f138d521d623ed4fc65e244f84445161
[]
no_license
ArianAsghari/Telefonbok
6f975b305133f199dae4dd07631ce6b23da5d3aa
cd41c880d61393e214e4100f0a25f55c4a3b6c5f
refs/heads/main
2023-08-02T13:13:22.460140
2021-09-28T21:53:01
2021-09-28T21:53:01
411,448,738
0
0
null
null
null
null
UTF-8
Python
false
false
4,519
py
names_list=[] numbers_list=[] dictionary={} class telefonbok: def __init__(self, firstname, number, newname): #alla definitioner som kommer behövas self.firstname = firstname self.number = number self.newname = newname def add(self): print(self.firstname) if self...
[ "arianasghari123@gmail.com" ]
arianasghari123@gmail.com
9254d8967d8382d027ba544d51dfcf518728c68a
918c15895a8fda267e1971eecad38c60f55c03ff
/website/views.py
cfda9bffbc85d7417a2fe1620dde9bd11335c8fa
[]
no_license
saferi2310/REST-API-flask-project01
809a49fa7d45be42cd11e2158e4d6e5091ec1555
bf4c29111703a5a485dcd46980f4c82822c641c1
refs/heads/main
2023-03-10T11:26:58.375523
2021-02-25T14:30:10
2021-02-25T14:30:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,068
py
from flask import Blueprint, render_template, request, flash from flask_login import login_required, current_user from .models import Note from . import db import json views = Blueprint('views', __name__) @views.route('/', methods=['GET', 'POST']) @login_required def home(): if request.method == 'POST'...
[ "noreply@github.com" ]
noreply@github.com
1568f3c1a3867a5eb5f37e88dc0ca9d65b587f21
87e8c5059ff74529d1a02122f30d97f6295aef73
/001-Downloader/douyin/dy_download.py
470dbba86da025dd473980bb40f00a9efc951a0e
[ "Apache-2.0" ]
permissive
toc130/PythonIsTools
e0b2b6cbee6e2a7ebc2ad82cd74c2905042f1538
8621a7ec7245385469f86553215d0f14e99b504e
refs/heads/main
2023-08-16T08:37:23.165175
2021-10-12T01:59:21
2021-10-12T01:59:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,163
py
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ @Description: 抖音视频下载 @Date :2021/08/14 @Author :xhunmon @Mail :xhunmon@gmail.com """ import json import os import re import time from urllib import parse import requests import requests_html from downloader import Downloader class DouYin(Downloade...
[ "xhunmon@126.com" ]
xhunmon@126.com
ac86aecca137f1cca0d2fca71e94dfc0d14d4d24
8ee07454df50fbf2eb8335a8c0140311c09278e0
/Section10_IO/shelve_challenge/cave_initialise.py
133dd88e901014e1a50627ba99026f10e563a007
[]
no_license
sathvik-dhanya/python-programming-masterclass
184709c4065098035131b5d114a8953ac0bd2fb8
b0d33083192e98a107c0ffc7eee8653417bdd2ea
refs/heads/master
2020-05-01T12:55:45.744957
2020-02-01T22:12:02
2020-02-01T22:12:02
177,477,628
0
1
null
2020-02-01T22:12:04
2019-03-24T22:35:33
Python
UTF-8
Python
false
false
3,872
py
#!/usr/bin/env python3 """ Modify the program from the Second Dictionary challenge of lecture 56 to use shelves instead of dictionaries. locations = {0: {"desc": "At Home", "exits": {}, "namedExits": {} }, 1: {"desc": "On the Road", "exi...
[ "sdhanya@applause.com" ]
sdhanya@applause.com
21bc5e4070f6a2e11eee262bffb3c54603f048a1
620d9952a40e5ada7218407b15af449c096ad86f
/app.py
1062741568aac2867d7b41cb523a2a57b5b06536
[]
no_license
rubalravinder/Dataviz_covid
1d5a76777ab6695203521402cead1a4014ae107b
a9dc9b2cb5f375f63a48486d974614fbe1eebbec
refs/heads/main
2023-07-19T06:34:24.499633
2021-09-21T14:41:16
2021-09-21T14:41:16
408,733,707
0
0
null
null
null
null
UTF-8
Python
false
false
2,505
py
# IMPORT MODULES import dash from dash import dcc from dash import html import plotly.express as px import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns import plotly.graph_objects as go app = dash.Dash(__name__) # paramètres généraux de la page web colors = { 'background...
[ "rubal.ravinder@gmail.com" ]
rubal.ravinder@gmail.com
70d4336ee261d3e4212a98f03c3c0bc0f84e12f4
31f2c07b00cb99caa3512dec6a7ad8225636476e
/src/time_series/ts_utils.py
467a2c7367a22dc73c2486ea0336ec4244b83508
[]
no_license
khouakhi/pyscience
61bf1dd5f6bfcf4e064b8d65275a87208b92cef9
e3bffad1ef25fd8a359862aec387141b17ffc678
refs/heads/master
2020-08-10T07:23:13.777982
2019-02-16T17:00:19
2019-02-16T17:00:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,549
py
import pandas as pd import numpy as np import matplotlib.pyplot as plt from statsmodels.tsa.arima_model import ARIMA from statsmodels.tsa.stattools import adfuller from statsmodels.tsa.seasonal import seasonal_decompose from statsmodels.tsa.arima_model import ARMAResults from pyramid.arima import auto_arima plt.style....
[ "gennarotedesco@gmail.com" ]
gennarotedesco@gmail.com
f1dd225fc13dabcbd1594ebe0534ea050445baba
94f40a42e633ec09c9fc3a515f441efa54e86a3c
/si.py
d4856d511157c996d838cda83ddb747477d866d4
[]
no_license
coriftech/task
d4db34ce9270a0885966969577268d21ebe8dbd1
8c941dbad6508c461f66b1d8df49a085daacbbd2
refs/heads/master
2022-11-04T04:29:47.795420
2020-06-10T10:49:56
2020-06-10T10:49:56
268,910,340
0
0
null
null
null
null
UTF-8
Python
false
false
41
py
p=10000 r=0.5 t=5 si= p*r*t/100 print(si)
[ "cent4funny@yahoo.com" ]
cent4funny@yahoo.com
1be4ac1c612e7d3ce3301c62ec55700058896887
de79113f8de7b56758c6983f1fc48e5c44b49e41
/cifar.py
fe1c267fe29fb01e08b81a8977be14454b04e1bb
[]
no_license
sforsyth6/MUFL
7e098dab6fd0cd433c132d9a10cb890fa76154fd
96567123aaa54caba841e945ffbf7921592323bc
refs/heads/master
2022-12-06T06:39:50.983676
2020-08-15T11:28:16
2020-08-15T11:28:16
287,733,105
0
0
null
null
null
null
UTF-8
Python
false
false
5,871
py
'''Train CIFAR10 with PyTorch.''' from __future__ import print_function import sys import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import torch.backends.cudnn as cudnn import torchvision import torchvision.transforms as transforms import lib.custom_transforms as custom_t...
[ "sforsyth@nvidia.com" ]
sforsyth@nvidia.com
4f820a80ce1a2ef5c8434792ef4f5075cd2f1325
ea225f6b8a60d661a1765c367bc6cdc680150b92
/src/gwas_catalog.py
ca17b0da4cb1b29015e30f22570fc98b4c351e58
[ "MIT" ]
permissive
AstrorEnales/GenCoNet
a11ef16d48aa6db93d5c55a3e694963e5eb148e3
c596d31a889f14499883fcdf74fdc67f927a806e
refs/heads/master
2020-03-23T03:37:53.807602
2020-01-31T14:12:50
2020-01-31T14:12:50
141,040,423
2
0
null
null
null
null
UTF-8
Python
false
false
2,340
py
#!/usr/bin/env python3 import re import io import csv import cgi import os.path import urllib.request from model.network import Network from model.variant import Variant from model.gene import Gene from model.edge import Edge file = '../data/GWAS-Catalog/' # gwas_catalog_v1.0-associations_e96_r2019-11-21.tsv url = '...
[ "mfriedrichs@techfak.uni-bielefeld.de" ]
mfriedrichs@techfak.uni-bielefeld.de
41b15b43233a35b94d0a2f5d3a3ab434e37ab91a
ddd7553bb79d76c461af7ba51a538803f1faf987
/google-cloud-video_intelligence/synth.py
afa0badc3e7c2f0983a319ae8468fef0f3646a4e
[ "Apache-2.0" ]
permissive
Mukesh23singh/google-cloud-ruby
af160add68337f84f9aa65c2eacc2cd16fea359f
b3c69da0654de3a4b87a35c1f010d74c7e26415b
refs/heads/master
2021-11-05T01:20:53.088104
2021-10-21T22:03:22
2021-10-21T22:03:22
86,056,707
1
0
Apache-2.0
2021-10-22T01:41:21
2017-03-24T10:34:10
Ruby
UTF-8
Python
false
false
1,700
py
# Copyright 2018 Google LLC # # 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 required by applicable law or agreed to in writing, s...
[ "noreply@github.com" ]
noreply@github.com
5c6e10f610e7204d9c43cceae4b6416b6f4256f7
aa4d5bb4eb79b914cb19b04707968141d71891ec
/nvidia_plot_roofline_hierarchical.py
2ffb505a1c6a970394115bd99335179be2ae1e51
[]
no_license
ravil-mobile/AMD-Instruction-Roofline-using-rocProf-Metrics
efa0bea7b4a8ebeefd38a13d5c2a2214c40c923c
0ec59e0aca5f91e79ab99ce13ac84ac28c3e6c4a
refs/heads/main
2023-08-29T20:38:29.725348
2021-11-05T15:34:04
2021-11-05T15:34:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,052
py
import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as mpatches font = {'size': 12} plt.rc('font', **font) colors = ['tab:blue', 'tab:orange', 'tab:green', 'tab:red', 'tab:purple', 'tab:brown', 'tab:pink', 'tab:gray', 'tab:olive', 'tab:cyan'] styles = ['o', 's', 'v', '^', 'D', ">", ...
[ "mjl1997@verizon.net" ]
mjl1997@verizon.net
d97172d6c75d7c279495b48802377a5b30424d78
468187d08a3d10d9bfba29299919fd165597c8f2
/Practice/test/sort.py
05479c288f2d13176801682d4d05d9021170be4c
[]
no_license
whufans/python_fans
7cd3958b8fe6d55d48869d653022aee6d6c337c3
fed499fe056360a42a0fc65fc6cc04930f20c8e2
refs/heads/master
2020-04-13T14:25:23.281960
2018-12-27T07:37:36
2018-12-27T07:37:36
163,262,537
3
0
null
null
null
null
UTF-8
Python
false
false
3,965
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/11/1 10:40 # @Author : fans # @File : sort.py # @Software: PyCharm Community Edition #直接插入排序 def insert_sort(array): for i in range(len(array)): for j in range(i): if array[i] < array[j]: array.insert(...
[ "1696669410@qq.com" ]
1696669410@qq.com
47db47b32423507921839a5579f5c66157eed44b
d115cf7a1b374d857f6b094d4b4ccd8e9b1ac189
/pyplusplus_dev/pyplusplus/_logging_/__init__.py
a888e10fb87659587d0fef6b90646c31533e1bb1
[ "BSL-1.0" ]
permissive
gatoatigrado/pyplusplusclone
30af9065fb6ac3dcce527c79ed5151aade6a742f
a64dc9aeeb718b2f30bd6a5ff8dcd8bfb1cd2ede
refs/heads/master
2016-09-05T23:32:08.595261
2010-05-16T10:53:45
2010-05-16T10:53:45
700,369
4
2
null
null
null
null
UTF-8
Python
false
false
2,227
py
# Copyright 2004-2008 Roman Yakovenko. # Distributed under the Boost Software License, Version 1.0. (See # accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) #TODO: find better place for it """defines logger classes""" import os import sys import logging import cStringIO ...
[ "roman_yakovenko@dc5859f9-2512-0410-ae5c-dd123cda1f76" ]
roman_yakovenko@dc5859f9-2512-0410-ae5c-dd123cda1f76
22011da32febcf654731f00c98fec99de4b53931
5e223a9e309035bdffd67a016732d6f0ab5bb8cb
/student-record-system.py
a7bec9c3d75bbc99c44eeeefba55fd4dad48ca62
[]
no_license
syamalarajareddy/student-record-system
6be8f9232764a0084e3201e3720e78ac16b60123
71b46d07cf358bfbb1fcd78e2dc96a3a1d28a311
refs/heads/main
2023-06-23T23:50:35.596197
2021-08-02T10:06:59
2021-08-02T10:06:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,292
py
import tkinter as tk from tkinter import * from tkinter import ttk from csv import DictWriter import os from tkinter import messagebox root = Tk() root.title('Student Record System') root.geometry("300x300") #creating labels label_head = tk.Label(root,text='Student Record System') label_head.grid(row=0,colu...
[ "noreply@github.com" ]
noreply@github.com
f5fded1a9cdae582a279e092b4b999bd1c6375da
c1c39c5e9456a4c175c651ba224a53c4a76f902a
/helpers/azure.py
dd8023fe4596e2fb34fbe94615ca383e28d235ef
[]
no_license
syllogy/cloud_sizes
5312c190c88303e78601496f3cc0206e5f7d0991
b97b782a2e786373992ca0ca51b40625d2d2ea91
refs/heads/master
2023-07-11T19:00:57.057759
2021-08-27T03:53:08
2021-08-27T03:54:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
987
py
#!/usr/bin/env python3 from netaddr import IPSet, IPNetwork from itertools import chain from requests import get import re def get_and_parse(): # I'm shocked, shocked I tell you to see that MS requires you do # something oddball like dig into an HTML page to get the latest # data file. url = "https://...
[ "scott.seligman@gmail.com" ]
scott.seligman@gmail.com
b226dbf385c1fae6122958979aad39310e1da216
4b9f2217ef3718ea93c9d95cdca5240832c94039
/old_src/testing.py
0f6152e626ee1a7fe8b2e351df548b076c4b5f04
[]
no_license
theandygross/TCGA_Working
3632eb3b3694dcf5a9214af6147bfa6adb9cb2d5
5de1802fe57c5b96bd7bf8f31622c0f386520c32
refs/heads/master
2020-12-25T20:20:04.175261
2013-11-07T00:12:02
2013-11-07T00:12:02
14,181,571
0
1
null
null
null
null
UTF-8
Python
false
false
382
py
#! python import sys import pickle as pickle from Processing.Tests import run_feature_matrix test = pickle.load(open('test.p','rb')) test.first_pass = test.get_first_pass() test.full_test = test.get_full_test() perm_file = sys.argv[1] mat = pickle.load(open(perm_file, 'rb')) vals = run_feature_matrix(mat, test) p...
[ "the.andrew.gross@gmail.com" ]
the.andrew.gross@gmail.com
6a9cfd6ee7314bc60ee8b3d338f14d90dd8e2514
bb063cd66305f89bdad4176f9cc7955a989d9672
/Example.py
5a2d9cb5a07bbc3fc552b2d4aae1edca21fdc644
[]
no_license
iverson0201/sort
584bba2a0f715be30b2737edf4d6309b64aa57c0
61f41bfe65b11828e6e7310b7ab9b0e6bd8fe948
refs/heads/master
2020-07-24T18:34:13.708515
2015-04-19T11:24:21
2015-04-19T11:24:21
34,194,970
0
0
null
null
null
null
UTF-8
Python
false
false
462
py
#!/usr/bin/python #coding: utf-8 __author__ = 'xujw' def less(v,w): return v < w def exch(a,i,j): t = a[i] a[i] = a[j] a[j] = a[i] def show(a): print(a) def isSorted(a): for i in range(1,len(a),1): if less(a[i],a[i-1]): return False return True if __name__ == "__main__": print(less(3,5)) print(less(...
[ "826037482@qq.com" ]
826037482@qq.com
de4a7ed167183486e87b3d21fa8d14dc7a5e85a7
0e887d0cd010434e101eece419229aa4813ad893
/image_captioning/data/datasets/coco.py
ddf7c7b787cd99e21faba7310fda4ee6fb6bb0f6
[]
no_license
congve1/image_captioning
2c11d3ee80f0836853c7decf1255ac879f7a90b6
64cadfb9e072313f45f536f539b3cb8deb0432cd
refs/heads/master
2020-04-10T07:49:14.748923
2019-01-28T10:47:33
2019-01-28T10:47:33
160,889,848
1
0
null
null
null
null
UTF-8
Python
false
false
4,524
py
import pickle import json import os import torch import lmdb import numpy as np import logging import time class COCODataset(torch.utils.data.dataset.Dataset): def __init__( self, root, att_features_paths_file, fc_features_paths_file, encoded_captions_file, encoded...
[ "congve1@live.com" ]
congve1@live.com
6d2732b1198c53258ef05bb4c05290fb8ee8c293
3640ae1e231ff288159f8fc775b1b43a386ad684
/salt/returners/librato_return.py
be81a8ec703cfa8e5f3d3522984cdb03e07775d3
[ "Apache-2.0", "MIT", "BSD-2-Clause" ]
permissive
kraney/salt
d103d065b9ea6f6ec070d12028c2a56b563eb071
a0bd04b39278fd804c0c5c28488a453c562adab2
refs/heads/develop
2021-01-18T01:07:12.910812
2017-02-15T20:03:26
2017-02-15T20:03:26
46,378,510
3
2
null
2017-05-25T21:16:03
2015-11-17T22:07:47
Python
UTF-8
Python
false
false
4,860
py
# -*- coding: utf-8 -*- ''' Salt returner to return highstate stats to librato To enable this returner the minion will need the librato client importable on the python path and the following values configured in the minion or master config. The librato python client can be found at: https://github.com/librato/python-...
[ "jmickle@librato.com" ]
jmickle@librato.com
34702124540d9e42960603da99f182aa63cdf8c8
8dd2cff7ce672d3c1f6b18ed04474ea0f84c93a3
/storage/cloud-client/storage_generate_signed_url_v2.py
d594e91adb3775219008a19401d9c31e84ab69f1
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
philipp-heinrich/python-docs-samples
ba2cc56c672d52fd7952bc9c7bb2bcfa27297cd6
86a552c75fbca66fa0dce1985a1ca4a2641c8c3d
refs/heads/master
2022-05-31T10:01:52.337692
2020-04-24T05:10:43
2020-04-24T05:10:43
258,553,004
1
0
Apache-2.0
2020-04-24T15:36:29
2020-04-24T15:36:28
null
UTF-8
Python
false
false
1,652
py
#!/usr/bin/env python # Copyright 2019 Google Inc. 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 required...
[ "noreply@github.com" ]
noreply@github.com
d29db2d8b3506d66b6f9f90e3eb98490ae2db3e2
bcfa02c21a73798872bbb28303233d1f0039cf00
/server/www/packages/packages-darwin/x64/ldap3/protocol/sasl/kerberos.py
5000ebf430968b22f94a18fd3c42a8d85112d7ea
[ "Apache-2.0" ]
permissive
zhoulhb/teleport
6301cd50c951bcbac21cbe24017eb8421ff57adc
54da194697898ef77537cfe7032d774555dc1335
refs/heads/master
2021-11-10T17:10:59.661130
2021-11-09T11:16:19
2021-11-09T11:16:19
192,643,069
0
0
Apache-2.0
2019-06-19T02:20:53
2019-06-19T02:20:52
null
UTF-8
Python
false
false
5,038
py
""" """ # Created on 2015.04.08 # # Author: Giovanni Cannata # # Copyright 2015 - 2018 Giovanni Cannata # # This file is part of ldap3. # # ldap3 is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free Software Founda...
[ "apex.liu@qq.com" ]
apex.liu@qq.com
e1141d7446554113d6feb0a6ef8790f93b84bff1
4f07e335817c5d11eeb7d7993c6623be4c743bde
/python/format.py
e251974e3433ccb6db29496d90c4257d50489a99
[]
no_license
solidiquis/100-Days-of-New-Programming-Languages
68f5229d79e9a41ed299c78dfc40f8ae42cac0c1
9428e584eb88c9e2db0079bef0f18d45b4fc38ea
refs/heads/main
2023-01-20T14:53:37.515130
2020-12-06T22:18:28
2020-12-06T22:18:28
319,112,029
0
0
null
null
null
null
UTF-8
Python
false
false
482
py
#!/Library/Frameworks/Python.framework/Versions/3.8/bin/python3 import re import sys def main(): file_path = sys.argv[1] with open(file_path) as file: text = file.read() text = re.sub(r'^\s+', "", text) text = re.sub(r'\s+', " ", text) text = re.sub(r'\s+$', "", text) i, j = 0, 6...
[ "benjamin.van.nguyen@gmail.com" ]
benjamin.van.nguyen@gmail.com
4f76c03b9fd53725d62ddeaa71bf666e5eb823e8
4af545e6f0c927969c147533940f38dbbdc8c1db
/tests/message_card/test_elements.py
a79fd98e967cca7efe3ef639e49a5fc04aca3078
[ "MIT" ]
permissive
utsurius/django-actionable-messages
8b3b91237f349c2969de28386d1d41e395ee05ae
62af56c51e7ddb210d47138102ceeb2061ee0797
refs/heads/master
2022-07-18T09:30:16.957216
2022-07-03T12:55:47
2022-07-03T12:55:47
212,388,412
0
0
null
null
null
null
UTF-8
Python
false
false
2,072
py
from django.test import TestCase from django_actionable_messages.message_card.elements import Fact, HeroImage, InputChoice, ActionTarget from django_actionable_messages.message_card.utils import OSType URL = "https://www.example.com/" class HelpersTestCase(TestCase): def test_fact(self): fact = Fact("Fi...
[ "przemek@upsecure.pl" ]
przemek@upsecure.pl
2e129322986265cc0593c753bfe5d3a97797da35
c1f895dcc761ac17c227f636435f2973a3bfa74d
/setup.py
1a3c505d168c76166637cf2129bc0fa9783fbf54
[]
no_license
filindm/webmon
829a02b5667ccc50a870c05baa4ba05824c05e5d
23b5234e2e6a5e14f84e4bc8ef15f456c246f7ab
refs/heads/master
2023-05-24T19:15:44.179976
2020-07-14T03:01:52
2020-07-14T03:01:52
279,298,904
0
0
null
2023-05-22T23:58:44
2020-07-13T12:39:27
Python
UTF-8
Python
false
false
529
py
from setuptools import setup import os with open('requirements.txt', 'r') as f: requirements = [line for line in f] setup( name="webmon", version="0.9", zip_safe=False, install_requires=requirements, entry_points={ "console_scripts": [ "webmon = webmon.app:main", ]...
[ "filindm@gmail.com" ]
filindm@gmail.com
7da1741e004ebb5ce2757c51b160783faa350be4
ff5fe3be2e68621ce3aeb172ff62e031c6dff8dc
/AIScubic.py
0af8e287066aa1befe950b95f7347722d5c37539
[]
no_license
tianshudetian/AIS
d652388e6a3535b3ab9fcf00a3f5ba8bae038224
eeb1f5e75c114d87e36db318d1c53c67e21208af
refs/heads/master
2023-03-26T14:18:05.807948
2021-03-24T08:32:21
2021-03-24T08:32:21
337,254,471
0
0
null
null
null
null
UTF-8
Python
false
false
2,165
py
import pandas as pd import numpy as np from time import sleep from scipy.interpolate import CubicSpline def diff_over_threshold(list): Indexs = [] for index, element in enumerate(list): if index >= 1: diff = element - list[index-1] if diff > 300: Indexs.append(ind...
[ "tianshudetian@gmail.com" ]
tianshudetian@gmail.com
7b7afdc62d851365696c00116c63afb9a67a3a8c
050dc595e3cb7ad3edd22642c65cdb701e8e30fd
/moskino/moskino_site/django_site/catalog/migrations/0006_auto_20200514_1326.py
1286136c22514d458e7ae83e61d86bd6dca4ff3d
[]
no_license
Yaashara/for_work
4ef43d8cf19c94e237629521a37b61caff196792
14f7e108274f4958f68cb6fc7a5fcd07ffd64750
refs/heads/master
2022-07-03T12:54:50.629346
2020-05-14T11:19:30
2020-05-14T11:19:30
263,929,169
0
0
null
null
null
null
UTF-8
Python
false
false
481
py
# Generated by Django 3.0.6 on 2020-05-14 10:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('catalog', '0005_auto_20200514_1324'), ] operations = [ migrations.AlterField( model_name='mk_film', name='on_screen_...
[ "63056909+Yaashara@users.noreply.github.com" ]
63056909+Yaashara@users.noreply.github.com
7bd0e7db49ac6fe5e36d0f5391149a47ec3522b4
47815d38ceff60ce4e37b4b40eacee94ef198348
/isa_project1/manage.py
18bad1b8d3fd1d645a9632c1e5a61bdf36b42615
[]
no_license
dAmAstA9623/isa_project1
61a33bf7c2712a5342a2da1bcac1a2228a864c32
13bf9894f5eb2510d0cd190aff509b28b079a2f9
refs/heads/master
2021-01-23T08:34:50.826263
2017-09-05T23:23:57
2017-09-05T23:23:57
102,539,221
0
0
null
null
null
null
UTF-8
Python
false
false
810
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "isa_project1.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that...
[ "admc158@gmail.com" ]
admc158@gmail.com
02a9f848c47c65a6c8a6059ca1f583cfb25939e6
3a9a8a26bf4976a77300e017737d4e6a9c8dadda
/venv/Scripts/pip-script.py
7a8452ed77d7259f898a53651e482e0ae54c3584
[]
no_license
smasiek/Python-saper-projekt
9444e44c641f85681c63c0952d6d184cd5aba564
596d4f6b732c9c663dfb5eb092f19416806cd275
refs/heads/master
2023-03-28T11:13:38.254711
2021-03-25T13:06:09
2021-03-25T13:06:09
260,744,596
0
0
null
null
null
null
UTF-8
Python
false
false
434
py
#!C:\Users\smasi\OneDrive\Dokumenty\GitHub\Python-saper-projekt\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\....
[ "48649517+smasiek@users.noreply.github.com" ]
48649517+smasiek@users.noreply.github.com
ea096ecf4b77304f3854b9dd1d2bad09cefe5487
c9cea91d22b5454bb88ff219cbf6835b4381179f
/RefineNet/FCN/test_fcn2d.py
dcba0b918136a3918d5030cd510efca13a3edd69
[]
no_license
anhtuanhsgs/MedicalRl
c7563efad2c8904ca13c42c8e7826b9b77986938
06c1789ec4fb143508a263445cf71af5114a39e0
refs/heads/master
2021-10-21T18:40:18.852065
2019-03-05T18:06:09
2019-03-05T18:06:09
167,376,185
1
0
null
null
null
null
UTF-8
Python
false
false
581
py
from FCN2D import * import torch import numpy as np from operator import mul from functools import reduce net = FCN2D (2, 1) x = np.ones ((3, 2, 255, 255), dtype=np.uint8) x_t = torch.tensor (x, dtype=torch.float32) out = net (x_t) print (out.shape) num_parameters = 0 for parameter in net.parameters(): op_sh...
[ "anhtuanhsgs@gmail.com" ]
anhtuanhsgs@gmail.com
426ee1b07f77f890aa7a7988ac17769d219744ae
638bcdf227827911982385f35d2d702c0693fee9
/tokenizer.py
464bd628488fc7747c2e699d287b92d60fb6f43f
[]
no_license
joshuarcher/twit-bot-python-app-steve
df602304eb0be1b3ea708d19dd8a78e53d8973d1
fd6668a60c39144be7277792dd866faa8395309f
refs/heads/master
2021-01-10T09:21:15.746776
2015-11-02T19:24:07
2015-11-02T19:24:07
44,139,890
0
0
null
null
null
null
UTF-8
Python
false
false
851
py
import re def tokenize(text): no_punc_text = remove_punctuation(text) tokens = split_n_clean(no_punc_text) tokens.remove('') tokens = lower_case(tokens) return tokens def lower_case(tokens): words = ['Apple', 'Macintosh', 'IBM', 'Lisa', 'Windows', 'Microsoft', 'Macworld', 'Mac', 'iPod', 'iPh...
[ "josharcher@me.com" ]
josharcher@me.com
8464caf19dff35b15183b1d7669a91eeb8c8a1aa
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02712/s290713931.py
2f012061dba1cd50f56bd01af90ace84c3b45931
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
150
py
def resolve(): n = int(input()) ans = 0 for i in range(1,n+1): if i%3!=0 and i%5!=0: ans += i print(ans) resolve()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
47014c3ae78a77fa7f25cce5c18585fb03b51de1
a7d561e636e528e2819b13b278beb0401fe6c30f
/JyShop/apps/trade/migrations/0004_auto_20180321_1126.py
3541c5dbdaf52b6705d63e2f27a7879f138abd7d
[]
no_license
wocswang/JyShop
ff45097bf027cad41213d64dd9d47f3ffdaa73bb
463f7dba081a5923687c474b71c62e6024be0b07
refs/heads/master
2022-12-11T16:02:35.876532
2018-03-26T07:15:10
2018-03-26T07:15:10
126,674,842
0
0
null
null
null
null
UTF-8
Python
false
false
510
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2018-03-21 11:26 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('trade', '0003_auto_20180320_2336'), ] operations = [ migrations.AlterField(...
[ "salt_stack@126.com" ]
salt_stack@126.com
95af15edbd73ef67bebbfc3d9ca91b6cd0921f3f
b245debed66892eeaafc02b5c4ea17360df8fe7d
/bin/markdown2
1272e512cd56de4a7907f2abe39bb08d19ce3fba
[]
no_license
dimpalrawat/BLOG-DJANGO
85efb43390104dd10ea90756dd3640e1a14fc50d
cd69816e7dfffbb3f6878120bf92964b22207e86
refs/heads/master
2020-07-03T21:52:30.876434
2016-11-19T19:47:23
2016-11-19T19:47:23
74,230,591
0
0
null
null
null
null
UTF-8
Python
false
false
505
#!/home/dimpal/djangoprojects/myblog/bin/python import sys from os.path import join, dirname, exists # Use the local markdown2.py if we are in the source tree. source_tree_markdown2 = join(dirname(__file__), "..", "lib", "markdown2.py") if exists(source_tree_markdown2): sys.path.insert(0, dirname(source_tree_mark...
[ "30.dimpal@gmail.com" ]
30.dimpal@gmail.com
09f51a62c722441858e27ab50e391f176a8b8afc
905071b9509f1a4aeb8318f6cfe3bd09e8c4bb59
/workfrontapi_plus/tools.py
79a499cb1f829a22917bbefe6fa1c817e668488d
[ "MIT" ]
permissive
armenadamyan/workfrontapi_plus
b27d6befad9319bdd2899e10d27ad2a35056d269
b2d274f6075a8a0d7584c4353e793868b4166b9a
refs/heads/master
2021-07-13T12:04:19.696417
2017-10-18T21:45:39
2017-10-18T21:45:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,782
py
"""Copyright 2017, Integrated Device Technologies, Inc. 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, pu...
[ "craiglathrop218@gmail.com" ]
craiglathrop218@gmail.com
3a0cca8abc3ef3909ea5fe190d9189a0f0d90ae8
d5b48163d236ca770be8e687f92192e2971397e8
/globalvariableFunction1.py
3477ac1307caf7853c39640dc6a0019cd95789a2
[]
no_license
Kunal352000/python_program
191f5d9c82980eb706e11457c2b5af54b0d2ae95
7a1c645f9eab87cc45a593955dcb61b35e2ce434
refs/heads/main
2023-07-12T19:06:19.121741
2021-08-21T11:58:41
2021-08-21T11:58:41
376,606,535
0
0
null
null
null
null
UTF-8
Python
false
false
139
py
x=10#global variable def f1(): print(x)#10 x+=5 print(x)#error f1() print(x)#error def f2(): print(x)#error f2()
[ "noreply@github.com" ]
noreply@github.com
5de3253ac98dfd76401251a8020ef2b3c5023041
0106ded4ea90fdc7f7091cf062917404271fb7a0
/darknet_difftop3/eval_JZ.py
2497efae423f8f42cd757344beb56f62b892462b
[]
no_license
LinRang/Start-Tensorflow--
46775058c27779281c8607b5213a280734c084cd
12fd55018a41ce3e7e6dc9eb6143d5d53c5aab9e
refs/heads/master
2023-03-19T20:48:04.130317
2018-07-09T02:32:04
2018-07-09T02:32:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,478
py
# -*- coding: utf-8 -*- """ Created on Thu Nov 9 12:54:02 2017 @author: linjian_sx jiezhen change: line24 => 25 line44 => 45 """ from datetime import datetime import numpy as np import tensorflow as tf import tensorflow.contrib.slim as slim from tensorflow.python.ops import control_flow_ops im...
[ "noreply@github.com" ]
noreply@github.com
91a3a7ae62cb0b541aaddbad7ba4022f4ce920d8
7ca474e33a42d3ba1aa32d3be899e74f4d7a6b90
/gcfetch.py
9f9e1283188f127a10bd6104b77c50fcbadfcf8e
[ "Apache-2.0" ]
permissive
davidmiller/gcfetch
d380b273b060f797e96e7a711faa36af175e970f
77453fafe6a39c14c8648302da7755dab01e9849
refs/heads/master
2021-01-19T17:41:46.646203
2012-10-24T20:52:29
2012-10-24T20:52:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,637
py
""" gcfetch """ import collections import json import itertools import re import sys import time import urlparse import argparse import gevent from gevent import monkey from lxml import html import matplotlib.pyplot as plt import networkx import pylab import requests monkey.patch_all() DONE = """ *******************...
[ "David" ]
David
6a7b926e4ebd1a9b73596e04975805b00bf0c186
a3f27a8005af14e6cca470402b00bdce38a92f19
/python_crash_course/chapter_15/random_walk.py
6984115545e6199d9e4e281549323ed26fccd64f
[]
no_license
dolaiminggo/python-crash-course
20c3e1d2bbebf874fbb5d463f4d1fb492d310fdf
8ed880d12263abe28f34e8978199c6e3bcc03b3e
refs/heads/master
2021-05-15T03:50:33.083319
2017-10-13T13:53:15
2017-10-13T13:53:15
106,830,093
0
0
null
null
null
null
UTF-8
Python
false
false
1,229
py
#15.3.1 创建随机漫步RandomWalk类 from random import choice class RandomWalk(): """生成一个随机漫步数据的类""" def __init__(self,num_points=5000): """初始化随机漫步的属性""" self.num_points = num_points """所有随机漫步都始于(0,0)""" self.x_values = [0] self.y_values = [0] def fill_walk(self): ...
[ "noreply@github.com" ]
noreply@github.com
61e08cd88ef23fb7e87890a5b36fc050d8df3f6d
4a2a0cfc984a9faa45903732d776cd61ea361779
/pwncat/modules/agnostic/implant.py
545178a75fb449321c95997dc09fb7844b0c1a07
[]
no_license
PremHcz/pwncat
2a746cfc546158fa288994b376fd71768672a33a
cb203349d7ca815c9350eb53f4bd2e0b0ee659fa
refs/heads/master
2023-05-30T19:07:16.327320
2021-06-14T13:01:19
2021-06-14T13:01:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,437
py
#!/usr/bin/env python3 from typing import List from rich.prompt import Prompt from pwncat.util import console from pwncat.facts import Implant, KeepImplantFact from pwncat.modules import Bool, Status, Argument, BaseModule, ModuleFailed class Module(BaseModule): """Interact with installed implants in an open ses...
[ "caleb.stewart94@gmail.com" ]
caleb.stewart94@gmail.com
0351042e28eadd00d7b26fdc3576ef296ac9ee15
99d7a6448a15e7770e3b6f3859da043300097136
/src/database/migrate/isotopedb/versions/010_Add_aliquot_to_LabTable.py
a8e30e8ecebd6498a1eda6c619ef3184b2accad3
[]
no_license
softtrainee/arlab
125c5943f83b37bc7431ae985ac7b936e08a8fe4
b691b6be8214dcb56921c55daed4d009b0b62027
refs/heads/master
2020-12-31T07:54:48.447800
2013-05-06T02:49:12
2013-05-06T02:49:12
53,566,313
0
0
null
null
null
null
UTF-8
Python
false
false
528
py
from sqlalchemy import * from migrate import * def upgrade(migrate_engine): # Upgrade operations go here. Don't create your own engine; bind # migrate_engine to your metadata meta = MetaData(bind=migrate_engine) t = Table('LabTable', meta, autoload=True) col = Column('aliquot', Integer) col.cr...
[ "jirhiker@localhost" ]
jirhiker@localhost
8ca3e6a04f801f123dcda42d2e4a60ab1c58e361
c3f674f8d74675f972f33521ccd46c93ff836f2d
/PyPoll/PyPoll.py
ddbd46b9ebdcf64937e26a3840ef5456e80f0948
[]
no_license
seanlipinski/python-challenge
dff5242c6c2a488a3eeffc9fd3080c5ea6ff9b5e
c18da7e6ca826f912771d37f83646fc2aa39a4f4
refs/heads/main
2023-04-09T12:24:56.156283
2021-04-16T00:15:41
2021-04-16T00:15:41
354,672,808
0
0
null
null
null
null
UTF-8
Python
false
false
1,946
py
import os import csv votes = 0 winner_votes = 0 total_candidates = 0 greatest_votes = ["", 0] candidate_options = [] candidate_votes = [] khan_votes = 0 correy_votes = 0 li_votes = 0 otooley_votes = 0 # set path for file Election_data = os.path.join("Election_data.csv") #Open the file using "write" mode. Specifical...
[ "lipinski.sean@gmail.com" ]
lipinski.sean@gmail.com
1a2ecf50ccdf505beca4e76a830a6734e3c8dc28
2ab01775d4e658fa79a294d1b00b33fcc2e27898
/29linecount.py
b76809fa6d464ca3f64799a7c14c060462ee2dca
[]
no_license
KeshavGitHub1998/pythonpractise
f815b1818bbdcc39f8dcb87dd46acca7d9c7765d
75a61b95be5853990c10c374d79dee6d46acdd5b
refs/heads/master
2020-04-19T06:07:58.050954
2019-06-30T18:54:27
2019-06-30T18:54:27
168,009,195
0
0
null
null
null
null
UTF-8
Python
false
false
96
py
def linecount(filename): return print(len(open(filename).readlines())) linecount("foo.txt")
[ "noreply@github.com" ]
noreply@github.com
a1d39a0435fc999d0bb57d475273b28c5bd8eaac
68a368ccd323e7454850c75862dc47834b08b820
/Assignment 3.py
e4a8719e231e647b6668985d68c9da7a3f5ade06
[]
no_license
malimahar/Assignments
31233750c9b4c4df870122d8a14cd0d905293575
ea6c6166a8a0226658bb1a3f78449d0b9fa31c08
refs/heads/main
2023-02-11T22:56:02.207371
2020-12-30T07:56:54
2020-12-30T07:56:54
325,485,914
0
0
null
null
null
null
UTF-8
Python
false
false
523
py
class employee1(): def name(self): print("Harshit is his name") def salary(self): print("3000 is his salary") def age(self): print("22 is his age") class employee2(): def name(self): print("Rahul is his name") def salary(self): print("4000 is his salary") ...
[ "noreply@github.com" ]
noreply@github.com
613e4837a9f63c8b247a8e460f07e655fe9e2904
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2210/60716/276310.py
155107bcaf3512fb1bad228a6138043e1592acac
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
713
py
def checkin(substr:list,parstr:str): check = True for t in range(len(parstr)): if parstr[t] in substr: substr.remove(parstr[t]) else: break return check ucnum = int(input()) ans = list() for i in range(ucnum): str1 = input() str2 = input() anstr = str() #...
[ "1069583789@qq.com" ]
1069583789@qq.com
5431c2e18cb57413fea2668aa8218ea3d57d8c0a
c4ecbe5850c81dcc7c382fa1f579ce7715ac79f7
/Python/刷题代码交流/20161202-sushu1000000.py
08151a8cc525c6cbdf5103e2a3aff6779723bbc3
[ "MIT" ]
permissive
Text-Related/reference-materials-for-review
ef47126a7df5a53abe1cb8a55b8be69e55d3b84d
75795dae531adb57408d0c5a67dd7a6a9985dae4
refs/heads/master
2022-11-10T22:47:36.864755
2020-06-28T02:32:36
2020-06-28T02:32:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
881
py
#---- 12.02每日一刷1000000以内的素数---- import math n=3 s=' 2 , 3 , 5 ,' for i in range(3,1000000,2): # 2-1000000内所有数字判断素数,跳过偶数 if(i%5000 == 1 ): # 每5000个数,打印一次结果 print('----------------',i,'-------------') print(s) s='' # 打印完清空 elif i % 5 == 0: ...
[ "jingyang@iisjy.cn" ]
jingyang@iisjy.cn
8bcf62732efb5b493ed05676409cccada442a128
244355129670b7ead6193e3e5424d1cfb80c2bb5
/QuoteLibrary.py
49cbaf6d72c78d2c87200e31b5313c2ad35bd0e9
[ "CC0-1.0" ]
permissive
hackguy25/QuoteLibrary
f7ed71042b0a3fecc4edd24d586b60733c7910d5
08b91899ef6aee57d9d214c5f8364f1dec0f64e2
refs/heads/master
2020-04-01T14:54:37.286042
2018-10-16T13:57:34
2018-10-16T13:57:34
153,313,059
0
0
null
null
null
null
UTF-8
Python
false
false
5,460
py
from PyQt5 import QtWidgets, QtCore from mainMenu_ui import Ui_MainMenu from isci_ui import Ui_Iskanje from uredi_ui import Ui_Uredi import sys, json, atexit db_file = "quotes.json" QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True) def idxInDb(quote: str, db: list) -> int: for...
[ "blaz.rojc.si@gmail.com" ]
blaz.rojc.si@gmail.com
6778fcb3d7e2e4b3c99b3c9d800ed919c050db8f
21c09799d006ed6bede4123d57d6d54d977c0b63
/python/bTag_signalStudies_scan_CSVv2_2017_LMT_down.py
3cb5809abbff613cd9c8fa51a1f5bb22722d4a64
[]
no_license
corvettettt/DijetRootTreeAnalyzer
68cb12e6b280957e1eb22c9842b0b9b30ae2c779
e65624ffc105798209436fc80fb82e2c252c6344
refs/heads/master
2021-05-06T09:57:12.816787
2019-04-18T15:32:38
2019-04-18T15:32:38
114,043,763
1
0
null
2017-12-12T22:02:46
2017-12-12T22:02:46
null
UTF-8
Python
false
false
12,869
py
import ROOT as rt import math as math import sys, os from bTag_signalStudies import * from optparse import OptionParser from rootTools import tdrstyle as setTDRStyle ### plots for signals ### # tagging rate vs mass for signals (b, udcs, g) # scale factors vs mass for signals with uncertainty # selections acceptance vs...
[ "zhixing.wang@ttu.edu" ]
zhixing.wang@ttu.edu
d4d17904aeac24b5b4513877026dcffd8f4f6683
2414312a385f668efddefa8b690f94ddf81f3abd
/namelist.py
b921d6b7d5eaa499bca40a3979630336b3c5e81a
[]
no_license
ziwangdeng/DL_downscaling
ab04453c0ceb8fffee8f133b468ed823040c6626
563f3813a5e657d83cf99cd213d96162954fcb37
refs/heads/master
2022-07-19T08:08:26.320651
2020-05-13T00:39:12
2020-05-13T00:39:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,899
py
# ===== PATH ===== # BACKUP_dir = '/glade/scratch/ksha/BACKUP/' # hdf file path # Processed PRISM file path PRISM_dir = BACKUP_dir + 'PRISM/' # Raw PRISM file path PRISM_PCT_dir = PRISM_dir + 'OSU_PRISM_NRT_PCT/' PRISM_TMAX_dir = PRISM_dir + 'OSU_PRISM_NRT_TMAX/' PRISM_TMIN_dir = PRISM_dir + 'OSU_PRISM_NRT_TMIN/'...
[ "yingkaisha@gmail.com" ]
yingkaisha@gmail.com
488ecd1d418970646448bd7d5040cdb9634f19e1
c2e68a9037bfd16de72e5a24f8f927b54cb1ff55
/main.py
2db37c87d805c4a2fff88725d96413d32cf97bae
[]
no_license
lukasc552/Robot_Diff_podvozok
3166ad5c96cf40dac987c1a45083c3a4d21ae15d
0eb71d8b88ea08c9716758acae9780b21003ff05
refs/heads/master
2023-04-25T08:10:58.529379
2021-05-11T17:04:20
2021-05-11T17:04:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
471
py
import numpy as np import matplotlib.animation as animation import matplotlib.pyplot as plt from robot import Robot from gui import Root # parametre Diferencialneho podvozku L = 0.2 # Rozchod [m] = 200mm r = 0.05 # Polomer kolesa [m] = 50mm dt = 0.01 # time = [0, 5, 10, 15, 20] # vel_L = [2, -1, 0, 2, 1] # vel_R =...
[ "luky.cierny@gmail.com" ]
luky.cierny@gmail.com
6f24bc8ceaa0e913de2ea62c62c77f20e7ba3e66
f32dc8263e502dd3f1c6105bef2e481d0797869c
/korlat/tests/unit/__init__.py
b30b1b62475137381bcbe92e460c0194f2bd46f7
[]
no_license
sawatzkylindsey/korlat
6b298e61b95f375a76cd4f33a0803e325d1f285b
768d5e5090a60a63db195d6e9238923caf163672
refs/heads/master
2021-01-10T21:31:16.894313
2013-03-23T22:03:46
2013-03-23T22:03:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
161
py
import commonelements import container import containervisibility import element import elementlist import strategy import windowlinks import unique import util
[ "dionyses@gmail.com" ]
dionyses@gmail.com
d782fd50003d3c30f64f2e01760af5cd57c60512
66b6adbf491b691d30e36f9bcd915887ad1c0719
/파이썬/백준15596 정수 N개의 합.py
2b0538819f3bf307eb6715a4da7a014a4972305b
[]
no_license
chunsubin/CodingTest
8e104cfe81c3b8ec4356a05cf93642f75744ea7b
9b0799f2e1009a927fcf241aabcf6400cb494ddb
refs/heads/master
2023-08-12T21:36:15.720678
2021-10-06T14:56:04
2021-10-06T14:56:04
382,930,806
0
0
null
null
null
null
UTF-8
Python
false
false
42
py
def function(n): a=sum(n) return a
[ "sb9718@naver.com" ]
sb9718@naver.com
d5adc94c0b36e03fd6feb34f33b1cc5b1b1eb00c
8ed15d43652dbcab332c78923da416b91b139323
/python/fedml/fa/cross_silo/client/process_group_manager.py
92519c6cc41b717846a6c6db78fc13580bee7230
[ "Apache-2.0" ]
permissive
FedML-AI/FedML
74d144038c9de4a0621eb328d00987abac35e2d1
b436fbd95cbb62f6c58d2233d7affa0f62cb1817
refs/heads/master
2023-08-31T22:15:39.786371
2023-08-24T03:41:58
2023-08-24T03:41:58
281,519,510
3,197
807
Apache-2.0
2023-09-14T02:14:20
2020-07-21T22:41:25
Python
UTF-8
Python
false
false
1,258
py
import logging import os import torch import torch.distributed as dist class ProcessGroupManager: def __init__(self, rank, world_size, master_address, master_port, only_gpu): logging.info("Start process group") logging.info( "rank: %d, world_size: %d, master_address: %s, master_port: ...
[ "sshan0731@hotmail.com" ]
sshan0731@hotmail.com
3b611d0a8558f770c80aa297e878934cb325eab4
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Keras_tensorflow_nightly/source2.7/tensorflow/contrib/distributions/python/ops/binomial.py
6a1bb39ab28218a411bdf4329965186bcf32bf30
[ "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
10,299
py
# Copyright 2016 The TensorFlow Authors. 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 required by applica...
[ "ryfeus@gmail.com" ]
ryfeus@gmail.com
8e8f8f023aaacf37507d97b5a08cd7038235cb03
76255205d52cb81da0f8e0014775b98195ae83a1
/osticket/env/bin/django-admin
25c1965788b29f4f38330119aa9805526df6877b
[]
no_license
vuvandang1995/OSticket
6c4fafbadffd99f635f049ca19a3dd120152d159
80c364cf9a7313cb102b7d618c43411c394b09f4
refs/heads/master
2020-03-09T10:08:16.715876
2018-07-11T00:11:52
2018-07-11T00:11:52
128,729,604
5
3
null
2018-07-11T00:11:53
2018-04-09T07:08:35
JavaScript
UTF-8
Python
false
false
281
#!/home/osticket/env/bin/python3 # -*- coding: utf-8 -*- import re import sys from django.core.management import execute_from_command_line if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(execute_from_command_line())
[ "dangdiendao@gmail.com" ]
dangdiendao@gmail.com
9df92ff5844f388a0d92870ce2ceab590cc8a89d
64870a6b0a38c63dd69387a2b9d591378dcaedfa
/setup.py
d9015e62651456081c3657bf72391f27c76df5af
[ "Unlicense" ]
permissive
andrewp-as-is/setuppy-generator.py
28ff31d8fd6a66fb4d0ca77244fcc8acb5a53912
ae27ae4d534a373f34ebe24a16353a214abf8fc5
refs/heads/master
2021-07-11T05:40:52.834761
2020-12-03T21:25:00
2020-12-03T21:25:00
217,581,540
13
0
null
null
null
null
UTF-8
Python
false
false
201
py
import setuptools setuptools.setup( name='setuppy-generator', version='2020.12.2', install_requires=open('requirements.txt').read().splitlines(), packages=setuptools.find_packages() )
[ "russianidiot.github@gmail.com" ]
russianidiot.github@gmail.com
c0b69204ee668341cf7b4829576aa79c53c3713c
de2081774b1ea802d9db54e5b4c7a186c3997648
/scriptsAndData/james_Python_Scripts/graph_extremePercentiles.py
d1d9b37b04815dc0e7cb08a6d39b76ed75a2d5ae
[]
no_license
james-powell/RMP
15fed551ed167b9354205c98bd5f02041b091cfb
685cae8fbd374d2c442d94ac90fe4fb732cddeb7
refs/heads/main
2023-03-28T06:12:36.109514
2021-03-26T18:05:47
2021-03-26T18:05:47
319,375,721
1
0
null
null
null
null
UTF-8
Python
false
false
24,013
py
# ~u1269218/anaconda3/bin/python3.7 """ Author : James Powell Date : 6/8/2020 Purpose : Script to download RH and wind data for recent data and graph that data with showing the extreme events based on the percentile for that day Editing : 6/10/20 This script is ready to run on a chron ...
[ "u1269218@utah.edu" ]
u1269218@utah.edu
d4cc85ab8bc32828b5a74c5550da1d14df1f5af4
a11c06dbdde2b561b60c856a7ab188a3c43f8823
/src/comedi/views/dyn_form.py
cc7ccfebc446b3a456c6ad6d7b8b39bc14409a94
[]
no_license
chaen/comedi
ce646f98c951cd202f997b47017edd556891077e
d1c4d25b6e384292d3e78cfe7b8d3c55b50b36ea
refs/heads/master
2020-04-05T23:48:32.261602
2014-10-19T18:11:35
2014-10-19T18:11:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,347
py
from django.shortcuts import render from django.http import HttpResponseRedirect, HttpResponse from django.forms import ModelForm from django import forms from comedi.models import Product, Family, SubFamily from django.shortcuts import render_to_response import datetime from django.contrib.admin.widgets import AdminDa...
[ "chris@guests-MacBook-Air.local" ]
chris@guests-MacBook-Air.local
baaa80447948c0ccd6c0b5c5229623b942e0d53a
84781d193c048a9a36f592ca4b4e5478adc8174c
/과제6/2016104154이준호.py
a8f3452d3f15c05177b93c8f0dcc1d8c8b0a6302
[]
no_license
juno7803/Algorithm-ANALYSIS-School-
7220890f60f923c4521eeec7ef222a0ef2830d6f
cc1628ab174f074d090c14419037c240f6348258
refs/heads/master
2022-05-27T15:59:32.781274
2020-04-28T10:15:20
2020-04-28T10:15:20
257,549,268
1
0
null
null
null
null
UTF-8
Python
false
false
1,539
py
#2016104154 이준호 과제 6 def printMatrix(d): m = len(d) n=len(d[0]) for i in range(0,m): for j in range(0,n): print("%4d" % d[i][j],end=" ") print() # 교재 예시 input # a=['A','A','C','A','G','T','T','A','C','C'] # b=['T','A','A','G','G','T','C','A'] # 과제6 조건(2) a=['T','G','A','...
[ "juno7803@naver.com" ]
juno7803@naver.com
f39244ae29d87cc96bb9cd6ce80b540a4e111f72
cb0c86f0a0a8b028acf6b3aa6fe82499a6e4734f
/research/make_detec_data.py
60f132c0b4dade7c0c04be8d0ff214b7c82362e5
[]
no_license
Hirochon/laboratory
d491c777e8ada28cc60900d875b26eafdd15718d
e41c343891c49918eae0faa5ccc11ffeb982f485
refs/heads/master
2023-03-04T11:21:19.259863
2021-02-18T01:32:05
2021-02-18T01:32:05
286,652,138
0
0
null
null
null
null
UTF-8
Python
false
false
8,171
py
import numpy as np import pickle import json from tqdm import tqdm from propagation_mod import ( MAKE_SOURCE_CORD, MAKE_DETECT_CORD, MAKE_NOISE_LEVEL, MAKE_PROPAG_MTRX, SELECT_MATRIX_TYPE, WAVE_MAT_CAL, SELECT_ADD_NOISE ) def mod_mirror_data(mirror_data): """ロードしたミラーのデータを変形する関数 `...
[ "heacet43@gmail.com" ]
heacet43@gmail.com
b83dddb0ba5cc289c6faf02198f34fa7f1efb501
bd1362c60313784c90013dfc9f0169e64389bf27
/scripts/dbutil/set_wfo.py
7790328ad4c796e3e0c601f831caf22e45761999
[]
no_license
ForceCry/iem
391aa9daf796591909cb9d4e60e27375adfb0eab
4b0390d89e6570b99ca83a5fa9b042226e17c1ad
refs/heads/master
2020-12-24T19:04:55.517409
2013-04-09T14:25:36
2013-04-09T14:25:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
917
py
""" Assign a WFO to sites in the metadata tables that have no WFO set $Id: $: """ import re import iemdb MESOSITE = iemdb.connect('mesosite') mcursor = MESOSITE.cursor() mcursor2 = MESOSITE.cursor() # Find sites we need to check on mcursor.execute("""select s.id, c.wfo, s.iemid, s.network from stations s, cwa c W...
[ "akrherz@95f8c243-6001-0410-b151-932e6a9ed213" ]
akrherz@95f8c243-6001-0410-b151-932e6a9ed213
45b3cda244a419168179802189c177b99d385154
b276d7f43be9f52408fbf7d133a7fd25fc37646a
/DAO.py
a7933a76eed869bb79d43ca76c507062966d82e6
[]
no_license
IsmaelBarros/PROJETO-01_Gerenciamento-de-mercearia
1b026f9005d8eddf28864cc482b5432bbcb9e5b4
45480ef6174f81d4bedf63a04526177030959fa5
refs/heads/master
2023-06-13T22:57:19.586300
2021-07-27T21:59:34
2021-07-27T21:59:34
390,189,370
0
0
null
null
null
null
UTF-8
Python
false
false
7,971
py
from Models import * import os class DaoCategoria: db_file = 'categorias.txt' @classmethod def salvar(cls, categoria: Categoria): with open(cls.db_file, 'a', encoding='UTF-8', errors='replace') as arq: arq.writelines(categoria.categoria) arq.writelines('\n') @classme...
[ "ismasbarros2@gmail.com" ]
ismasbarros2@gmail.com
260cc849ef5f749fac43061a9b28e25cc3604987
9952b6ca61231b4a3065c31b1e09ebfe7cbd7cf1
/devel/lib/python2.7/dist-packages/robot_msg/msg/_LocalizationState.py
00d95539733a6206ed943a03c5931346104d39cd
[]
no_license
pengyang97/catkin_ws_firefly
080c95104a3363133162886b65140f052bff93a3
72d12a6c6cf1618ae753bbd2cd59fcbd85621491
refs/heads/main
2023-02-08T10:14:51.121596
2020-12-23T09:58:17
2020-12-23T09:58:17
323,862,314
0
0
null
null
null
null
UTF-8
Python
false
false
6,190
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from robot_msg/LocalizationState.msg. Do not edit.""" import codecs import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import geometry_msgs.msg class LocalizationState(genpy.Message): _md5sum ...
[ "2324544463@qq.com" ]
2324544463@qq.com
6eb45de95f9edd35498a16a0f390e1618b12691b
6f3acd914d0bf3e15cbfb996d323092c2d0ec544
/experiments/penalty_plots.py
ab4b224abdb517b43a124dfb88b29d95d5f18f40
[]
no_license
Bradley-Butcher/WMSE
96cb61459fb7cacab7f70e4b0d9ffe32aba85672
3109f16ee14ecb071221190a4eafa7c2e12e0704
refs/heads/master
2023-06-19T21:36:12.482098
2021-07-12T13:54:42
2021-07-12T13:54:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
552
py
# %% import numpy as np from matplotlib import pyplot as plt import seaborn as sns x = np.linspace(1, 10_000, num=100) params = lambda x, y: (x - 1) * (x ** y) # %% n_levels = 3 n_parents = 2 bic_pen = lambda x: (params(n_levels, n_parents) * np.log(x)) / x wmse_pen = lambda x: (params(n_levels, n_parents) * np.sq...
[ "bradleydpbutcher@gmail.com" ]
bradleydpbutcher@gmail.com
dd5295cdd4b9a17a5b67daf390f29841fab9b11b
9aba5d3e44ed351a460784a3d23176984f09be36
/user_base.py
f385ed2be0dab71058851452062d311144cfc096
[]
no_license
danteay/hitmen
3af3ea46d6584d3076834dbf896c68c33b76762d
a8ba08084c3a1191b83d91ae460269139ba20fa2
refs/heads/master
2022-12-01T10:02:15.195718
2020-08-26T16:57:30
2020-08-26T16:57:30
289,205,099
0
0
null
null
null
null
UTF-8
Python
false
false
2,419
py
""" Init user base on database from the first start """ from src.services.users import UsersService from src.commons.logger import LOGGER as logger BASE_USERS = [ { "name": "Veda", "email": "veda@gmail.com", "password": "12345678", "description": "Celestial Being Founder" }, ...
[ "Eduardo Aguilar" ]
Eduardo Aguilar
2646e52ef353a2c28e70d3c6d55e307aedc52f60
67b0cd8c8c6f796f94f55db784ac70c9a3cdac7f
/python_modules.py
9585c89bd8c085d2a3bf59373add9c1031eaae15
[]
no_license
michaelwchungstudio/pythonbasics
cc0eec889f6be1681c5dc4dc2538448fd3102ced
7aa9fb237c5f04a3eadcb3cf2f7cf166574ba33d
refs/heads/master
2020-04-18T05:00:03.869467
2019-02-09T04:07:49
2019-02-09T04:07:49
167,260,272
0
0
null
null
null
null
UTF-8
Python
false
false
1,048
py
## Python modules # equivalent to a code library # file containing a set of functions you want to include in your application # modules can be created by saving code into a file with the extension .py # modules can contain functions but also variables of all types (arrays, dictionaries, objects, etc.) # you can create ...
[ "michaelwchungstudio@gmail.com" ]
michaelwchungstudio@gmail.com
8bb4bf2260db1d5a3136f8e144d96cc92d4f7b22
36a9f2bf56b801c690b486929deaa73eca117470
/ICIT/asgi.py
1128ef0ec4a02813715da6beda86ce91cababf0c
[]
no_license
LedesmaFran/Accreditation-system
798d474fc602aa23ed5cbe567f12aba8d9830229
60fee67e08187dc1c45d5d3bc4af3b5fa5118f49
refs/heads/master
2022-04-07T19:55:16.293508
2020-02-12T21:38:28
2020-02-12T21:38:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
385
py
""" ASGI config for ICIT project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTINGS...
[ "fledesma@itba.edu.ar" ]
fledesma@itba.edu.ar
90861d62afc1fac24a41867c6c7ac1fea60c6cba
f6323b0df8a8d71e67be18e85799f4643f50904b
/L1/t1.py
ea2b3f8e0dfcaa1d4eaea57e90c7a815f155a480
[]
no_license
LukeNara/DataEngine-Black-Horse
0ecf4e4cf4e44541c2bc2cd011f8cc72a8bf2f7a
884c9c791c3dbd2fa09ff9cbf0206ab69755d888
refs/heads/main
2023-02-27T08:15:24.687800
2021-02-01T11:57:31
2021-02-01T11:57:31
334,625,021
0
0
null
null
null
null
UTF-8
Python
false
false
97
py
name = input("What's your name?") sum = 100+100 print ('hello,%s' %name) print ('sum = %d' %sum)
[ "noreply@github.com" ]
noreply@github.com
7e4662e49e9e164cff0524de8a96e033364c4027
cc60da43861b69dc469b10a84fed151497d9e670
/CMSNtupler/python/jetflavorMatching_cff.py
b35a679fa6a89d6d2e2d69b78274eb7532266646
[]
no_license
sixie/CMSAna
7bfe9b7e9fd4bb9b03dab02418a1a366ec388b56
8d0953379b6b48e51ca16bb85fd36f293b21db66
refs/heads/master
2021-01-16T18:19:32.912653
2013-11-13T23:48:56
2013-11-13T23:48:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,030
py
import FWCore.ParameterSet.Config as cms myJetPartons = cms.EDProducer("PartonSelector", withLeptons = cms.bool(False), src = cms.InputTag("genParticles") ) myAK5PFJetPartonAssociation = cms.EDProducer("JetPartonMatcher", jets = cms.InputTag("ak5PFJets"), partons = cms.I...
[ "Si.Xie@cern.ch" ]
Si.Xie@cern.ch
ed526ae369d2eed2d321a2449ab09942936d0194
b0af2f57aec5f6620fe73361f5aee18c3d12d7c5
/code/robotics/PyAdvancedControl-master/mpc_sample/main.py
be94f52068f09aded7a128b2e28f37c4a582accf
[ "GPL-2.0-or-later", "eCos-exception-2.0", "MIT" ]
permissive
vicb1/python-reference
c7d3a7fee1b181cd4a80883467dc743b935993a2
40b9768124f2b9ef80c222017de068004d811d92
refs/heads/master
2022-10-09T08:41:56.699722
2022-10-04T00:53:58
2022-10-04T00:54:06
171,308,233
1
0
MIT
2022-06-21T23:43:38
2019-02-18T15:27:28
Jupyter Notebook
UTF-8
Python
false
false
2,028
py
#! /usr/bin/python # -*- coding: utf-8 -*- """ Simple Model Predictive Control Simulation author Atsushi Sakai """ import time from cvxpy import * import numpy as np import matplotlib.pyplot as plt print("Simulation start") np.random.seed(1) n = 4 # state size m = 2 # input size T = 50 # number of horizon # simul...
[ "vbajenaru@gmail.com" ]
vbajenaru@gmail.com
99755e4baf16ae12da6b8b20682feb9fd477a385
dcbb848d31e39a0ce275716ab88e66d9019bc9f0
/Q22.py
cec5a1533dd4252c85aab39693f3547d45fe9ebe
[]
no_license
imwujue/python-practice-wujue
269578528aa9942289bea277b030942f0dfe49ca
579453b56a5bdd5222731f708ef499055d283bf7
refs/heads/master
2020-04-27T07:38:36.992636
2019-03-27T11:55:58
2019-03-27T11:55:58
174,142,621
0
0
null
null
null
null
UTF-8
Python
false
false
720
py
list = ['a','b','c','x','y','z'] total = [] def perm(list, begin, end): if begin >= end: tmp = list.copy() total.append(tmp) # print(list) else: i = begin for num in range(begin, end): list[i], list[num] = list[num], list[i] perm(list,begin+1,end)...
[ "905537641@qq.com" ]
905537641@qq.com
65869f3cd841ce01b1a98dd5b376a2cf0ef0efdc
4264a7e4c35b937545aeea456fe0e44a31b7a4ea
/백준/Gold/2613. 숫자구슬/숫자구슬.py
fad59c11d96c7ee8d5809079d19c4dfd80cdb478
[]
no_license
sympathize123/baekjoon_solution
5cb91059cda8873f2b9de3ead49b6a0bcd90c7d7
374a30aa755b5c7a4afc20a6847983d658f14025
refs/heads/master
2023-05-12T13:45:22.976312
2023-05-02T15:18:15
2023-05-02T15:18:15
360,571,809
0
0
null
null
null
null
UTF-8
Python
false
false
2,060
py
N, M = map(int, input().split()) array = list(map(int, input().split())) s = max(array) # 시작값을 최대값으로 설정(중요!!) e = sum(array) # 끝값을 전체합으로 설정 ans_list = [] # 그룹 합을 저장할 리스트 ans = 0 # 최소 그룹의 합을 저장 def check(mid): global ans_list temp = [] # 임시 그룹들의 구슬 개수를 저장할 리스트 group_count = 0 # 만든 총 그룹...
[ "66001507+sympathize123@users.noreply.github.com" ]
66001507+sympathize123@users.noreply.github.com
e3ce904d92a58307e91532be437be396e12719b0
e5483ab737acd9fb222f0b7d1c770cfdd45d2ba7
/ecommerce/core/migrations/0015_auto_20200617_0543.py
ed6c2dc12074874bcb1dfb5cfa5901daff8e3542
[]
no_license
mxmaslin/otus_web
6c1e534047444d7a1fc4cd1bf8245c25d9fc4835
b90ad69e1b5c1828fa2ace165710422d113d1d17
refs/heads/master
2022-12-09T19:52:58.626199
2020-07-07T19:15:52
2020-07-07T19:15:52
226,154,128
1
1
null
2022-12-08T03:23:10
2019-12-05T17:25:11
JavaScript
UTF-8
Python
false
false
2,038
py
# Generated by Django 2.2.12 on 2020-06-17 02:43 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('core', '0014_orderitem_...
[ "zapzarap@yandex.ru" ]
zapzarap@yandex.ru
c26e53e17822f84d0eebe32bb7da564e0fedead3
3ddd625a476abf58295c62a7ac95a49a23629aa8
/tests/test_registration_api.py
3681f325c2c0066f4295cd62e10f1830f5cc809f
[]
no_license
mpalysiewicz/zeton
dd79b030530c1ce194ae877b90580595bfcf2ba8
f0e67edc86a732de52b4fd4e8067165373f8d252
refs/heads/master
2022-04-22T11:01:33.965189
2020-02-07T21:27:47
2020-02-07T21:27:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,706
py
import re from zeton.data_access import users CAREGIVER_LOGIN = 'caregiver_login' CAREGIVER_PASSWORD = 'caregiver_password' CAREGIVER_EMAIL = "caregiver@email.com" DATASET_REGISTER = { 'username': 'test_reg', 'password': 'test_reg_pass', 'email': 'caregiver@email.com' } DATASET_ADD_CHILD = { 'us...
[ "tgb.dc7@gmail.com" ]
tgb.dc7@gmail.com
dac13420f4296e1bfe35740a23709946c9432944
859969c790e855f333bfb58d2a76fc803f4c25be
/lesson_002_mipt/robot-tasks-master/pyrob/tasks/example2.py
1e7226c951bc8bd62934a1bb095a1f3f3ba60d61
[ "MIT" ]
permissive
kadmiy/python_base
32fd5e43ce5d441b79e2ed64c4d80d8c49a13158
a562b58e547df493e25781fd82891d5ec9b3c3eb
refs/heads/master
2022-01-21T17:48:09.724604
2021-12-28T09:34:26
2021-12-28T09:34:26
233,197,281
1
3
null
null
null
null
UTF-8
Python
false
false
348
py
#!/usr/bin/python3 import random import pyrob.core as rob class Task: CHECKS = 3 def load_level(self, n): self.m = random.randint(5, 10) self.n = random.randint(5, 10) rob.set_field_size(self.m, self.n) rob.goto(0, 0) def check_solution(self): return rob.get_po...
[ "kadmiy.mgn@gmail.com" ]
kadmiy.mgn@gmail.com
660c76cae897539f1344b12985faae127d426ab9
27c282d82d3a4806e91128912662d9a35fdf0b74
/aquacultura/home/forms.py
421834c191f681b0a516276f349f9e61cfc92f04
[ "MIT" ]
permissive
barbaravianello/aquaculturaintegrada
23e22216dee45aa9348d72e72fbc9a20f1f7bda7
696b59b34273c9b47f861cdef384e06cbec5d74b
refs/heads/master
2021-08-31T06:38:46.039858
2017-12-20T15:38:06
2017-12-20T15:38:06
105,418,278
1
0
null
null
null
null
UTF-8
Python
false
false
2,529
py
from django import forms from blog.models import Email from django.core.mail import send_mail from django.conf import settings class ContactAquacultura(forms.Form): name = forms.CharField(label = 'Nome', widget=forms.TextInput(attrs={'class':'form-control', 'required':'required'})) lastname = forms.CharField(label...
[ "larissebcarvalho@gmail.com" ]
larissebcarvalho@gmail.com
5ffde4c46ac0cff8970eecaeabcb8087d9fa3889
6ae87d5b72b65cad9a33504cff921d552acb1f55
/tests/mocked/unit_tests.py
7f8ffd1ba7e0fa747deb6997d7a9a5dc08e83c44
[]
no_license
NJIT-CS490-SP21/project2-jjw37
5691b3ceb7ef0ed5d191b6ce9da110ccf15d8ff1
0e4097d5229c5a78fb07c0b24a0f0c62b47d4c78
refs/heads/main
2023-03-20T03:28:39.728153
2021-03-14T15:14:58
2021-03-14T15:14:58
339,507,578
0
0
null
null
null
null
UTF-8
Python
false
false
4,219
py
import unittest import unittest.mock as mock from unittest.mock import patch import os import sys sys.path.append(os.path.abspath('../../')) from app import query_db, update_db, add_db import models DB_INPUT = "input" DB_EXPECTED = "expected" INITIAL_DB1 = 'Jerry' INITIAL_DB2 = 'Peter' class QueryTestCase(unittest.T...
[ "jjw37@njit.edu" ]
jjw37@njit.edu
3480397e577ae4d272e848865db2bd5ff9348a6c
51ae54348e56a444c883a68beece119d1ff32990
/python/spsGUIActor/sps/lightSource.py
1a1e54901bfa96ee351e148af0c4f7a252b0431a
[]
no_license
Subaru-PFS/ics_spsGUIActor
8487f3621f3149e9113af216f5623fda4bb2fc84
810c3e93470b6391c55d938caf0f0d9e5d3ec563
refs/heads/master
2023-06-12T00:11:26.694091
2021-07-08T13:40:40
2021-07-08T13:40:40
110,105,303
2
0
null
2021-06-28T17:23:13
2017-11-09T11:11:29
Python
UTF-8
Python
false
false
1,884
py
__author__ = 'alefur' from spsGUIActor.common import ComboBox from spsGUIActor.control import ControlPanel, CommandsGB from spsGUIActor.sps.spec import SpecLabel from spsGUIActor.widgets import ValueGB, CustomedCmd class LightSource: def __init__(self, controlPanel, smId): self.label = SpecLabel(controlP...
[ "arnaud.lefur@lam.fr" ]
arnaud.lefur@lam.fr
331c4703d6bd9d1b9ea6853201adcca360796ec4
be42b7085ed9298f5d35ba6af4fcc832f373c92a
/weather_forecast.py
1e64cb24c7a8009384dfc1ccf4dde14eb5f229d0
[]
no_license
levanLuongnt/hassbian
5f716b76d953a6a9b4c3fcaa2c4049391170c3e5
56af5b0fe35e3e1feaa60468525d99327f00b12e
refs/heads/master
2020-04-21T00:39:22.170829
2019-02-05T07:24:52
2019-02-05T07:24:52
169,202,589
0
0
null
null
null
null
UTF-8
Python
false
false
28,684
py
# encoding: utf-8 ##=== Get weather forecast from AccuWeather ===# ##=== exlab, Jan. 08, 2019 ===# ##=== version 1.0 ===# ##=== version 1.1, Jan 10, 2019 ===# ##==================# ## Config in configuration.yaml file for Home Assistant ## weather_forecast: ## Code script: ###tts_fpt.say ##read_weather:...
[ "noreply@github.com" ]
noreply@github.com
c1bbd023ad97712478162c8c299691357fd5cf27
8318789409ed1595fcb93524a2933ec831600ccf
/test/test_generator.py
c4311148247bbf0247ac6cc1b39ebc02fa6baf7f
[ "Apache-2.0" ]
permissive
awslabs/aws-data-api-python-sdk
57262f8888b6ea871439b1c9d6d6e506832597d0
78060804e3b7661abd3f56e70224032e102840e1
refs/heads/master
2023-03-30T08:36:06.194241
2021-04-05T22:17:19
2021-04-05T22:17:19
283,612,991
5
2
null
null
null
null
UTF-8
Python
false
false
642
py
import sys import os import inspect from inspect import signature sys.path.append("..") from data_api_client import DataAPIClient client = DataAPIClient(data_type="mock", stage="dev", region_name=os.getenv("AWS_REGION")) methods = inspect.getmembers(client, predicate=inspect.ismethod) tests = [] methods.sort() fo...
[ "meyersi@amazon.com" ]
meyersi@amazon.com
a53357b5e238c3ac70beab9ed1fffe16a056e953
73946d8988b7b6b062ce14f3464941fbff4978a8
/server/python-PowerNad-master/powernad/Object/BusinessChannel/RequestObject/UpdateBusinessChannelObject.py
243c3df0e5ac80f9716f199eb6ef41f78b054acb
[]
no_license
KyuHana/afvdsag
68c6926083c9fa2bcca370d1743de458b742b10f
7650848b0973bc2b01b8f58947e51ef32b55ef7d
refs/heads/main
2023-04-08T15:15:18.373832
2021-04-02T00:45:24
2021-04-02T00:45:24
349,997,921
1
0
null
null
null
null
UTF-8
Python
false
false
297
py
class UpdateBusinessChannelObject: def __init__(self, nccBusinessChannelId, site_url, name): self.businessInfo = {'site' : site_url} self.channelTp = 'SITE' self.inspectRequestMsg = None self.name = name self.nccBusinessChannelId = nccBusinessChannelId
[ "46952107+KyuHana@users.noreply.github.com" ]
46952107+KyuHana@users.noreply.github.com
7651473f67799a52e6677eb474be54da5d3a4dca
b883f2f6943ef43425cd082581cf3f54ab2c8db2
/parsers/mobile.py
ffc60229bfd18d1f91da7b52521031c7a3368f90
[]
no_license
litwisha/daemon-car
f8524954e15b59a1fdb703b510fa875a541a7f7b
013b5e0c80945a1ef337466aaad3772b90022455
refs/heads/master
2020-07-31T00:44:53.491328
2016-11-13T22:53:36
2016-11-13T22:53:36
73,613,140
1
0
null
2017-05-18T12:05:14
2016-11-13T12:03:28
Python
UTF-8
Python
false
false
1,414
py
import regex from .base import BaseParser class MobileDeParser(BaseParser): NAME = 'mobile_de' XPATHS = { 'car_ads': '//div[@class="cBox-body cBox-body--resultitem"]/a', 'power': 'div/div[@class="g-col-9"]/div[2]/div/div[@class="rbt-regMilPow"]', } REGEXPS = { 'power': regex...
[ "litwisha@gmail.com" ]
litwisha@gmail.com
e89ecc1d30f0e3caec4a939bbb3a381660813635
a4c16db545aba704f6a963e4c3dea6fabfe3aad6
/rsa.py
fa0993dadbfdb56976fa6ebc0b68f89663cea323
[]
no_license
KevinMichelle/Repositorio_Llaves_Python
b31f05d2df5649d51ba49fbf97274c8ff5380124
b828bc7e13a46cbfe86e0f31ff96402f7e905ed7
refs/heads/master
2021-03-12T19:36:38.907987
2014-11-03T11:32:53
2014-11-03T11:32:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,686
py
from factorizar import factorizar from gcd import gcd, egcd import random, math def RSA(): nfn = generarN() n = nfn[0] fn = nfn[1] e = generarE(fn) efn = (e, fn) d = generarD(efn) clave = (e, d, n) return clave def generarprimo(): minimo = 17 #en esta implementacion de un generador de primo fuerte el primo ...
[ "michelleglz93@gmail.com" ]
michelleglz93@gmail.com
f6f4a37a17afcc48c0753be5d4751a06f2db2689
28b2144816ce1bf62b7481cd857fdc831a501f6b
/tabook/__init__.py
bcaae7c44a21c61773c0a480aee5d8b109854021
[]
no_license
t0ster/Turbo-Address-Book
3191a837d7d28cf9b8c9d20331fe0518062b3892
8c5463b1d4423a0c41d7ed75ff9a512ae1bc515b
refs/heads/master
2020-05-31T14:10:46.449799
2011-06-28T14:07:49
2011-06-28T14:07:49
1,953,556
0
0
null
null
null
null
UTF-8
Python
false
false
61
py
# -*- coding: utf-8 -*- """The Turbo-Address-Book package"""
[ "roman@bravetstudio.com" ]
roman@bravetstudio.com
451f204ba5d0c55ad2629b7e6fc03f71022b520e
9812b8b27167a7f9aa4b4109e1875d242c5fcaf3
/core/views.py
50404b0919475bb992cad73ff83a559abeb37572
[]
no_license
Bits-Alumni-Club/BAC-Platform-BE
3a0034a050ec5f290eb59f7aa2f50d818eed4f77
39121f23585dac97040f9ffa3a5e059cf1aab427
refs/heads/master
2023-09-03T14:26:01.483946
2021-11-22T15:13:33
2021-11-22T15:13:33
381,728,592
0
0
null
2021-11-22T15:13:34
2021-06-30T14:23:31
Python
UTF-8
Python
false
false
1,276
py
from django.shortcuts import render from rest_framework import generics from core.models import (Page, Home, WhoWeAre, Team, Testimonial, ContactEmail, ContactNumber, Contact, SocialPlatform, FAQ,) from core.serializers import (PageSerializer, HomeSerializer, TeamSerializer, WhoWeAreSerializer,...
[ "jonas@j10o15n14a1s13.local" ]
jonas@j10o15n14a1s13.local
60e076f702262030b426cab9ad49dd3348576940
9f4eae80f8b6c0d6612db6898ad2d5563ef88282
/blog/models.py
a052b127dfc4ae327b024f8fc4af2dc799b305d0
[]
no_license
zvillaverde/testing-blog-django
ff4d08777d109a19ecf18afeb22021adb19d5dbc
11e0cdfb9979c81ba3dbf33e139edb9fae08e14e
refs/heads/master
2023-06-17T00:06:22.096170
2021-07-15T19:59:57
2021-07-15T19:59:57
386,409,840
0
0
null
null
null
null
UTF-8
Python
false
false
578
py
from django.db import models from django.conf import settings from django.utils import timezone # Create your models here. class Post(models.Model): author = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) title = models.CharField(max_length=200) text = models.TextField() created...
[ "zacharyvillaverde@gmail.com" ]
zacharyvillaverde@gmail.com
0e11d1100c328ee5ac043a54746467b1f8780ccd
03b7c84958707158d6a5bfba8b683610cdc740ef
/test0814.1.py
41e567af835e72565acee5a0282664f2a5654bf5
[]
no_license
Kaph-Noir/Python
624ea74329712b5981ee862ba6286b109c8a575f
2775a81f008459d97e36e9b3e7174f16fff2591d
refs/heads/master
2020-01-27T09:57:52.669742
2016-08-22T11:16:11
2016-08-22T11:16:11
66,147,284
0
0
null
null
null
null
UTF-8
Python
false
false
179
py
my_dict = { 0: '0', 1: '1', 2: '2' } what = my_dict.items() print(what) print(type(what)) what = my_dict.iteritems() some = what[0] print(some) print(type(some))
[ "Phark Noi" ]
Phark Noi
bf74918af142e9600fc4117fb7abf18194c83388
43ba597bab767c85f6da80a8ddde7fab684b4e06
/Entity Resolution/Python/selectOneTraining.py
307c42d95b4368c8274ff4e1a2076a7a41310e05
[]
no_license
correnm/Doctoral-Research
18d10b8e99dc1a11739973aa71983d4bb481eb10
b32e7ec333446432de6e0e6b1db2546799343bf1
refs/heads/master
2021-06-01T23:51:22.367336
2017-12-09T19:58:49
2017-12-09T19:58:49
30,329,798
0
0
null
null
null
null
UTF-8
Python
false
false
1,818
py
# Python libraries import collections from collections import defaultdict import csv import logging import MySQLdb import os import os.path # my libraries import manageMySQLDB # define the empty dictionary dataset = defaultdict(list) def author(): """ cmccoy@cs.odu.edu (Corren McCoy) @2015 """ def help(): ...
[ "cmccoy@cs.odu.edu" ]
cmccoy@cs.odu.edu
e28687e5353b715634321c2afecfd22e6c40409c
10175c204c1c92479931c6bb08c97374a6045e92
/maimaiti2/tag/apis.py
8dccd77cf5d17585e17f5b31dc74e1b27a215b71
[]
no_license
zneo317/Projects
fce3dacd401c25e3389f0598e62ec11f443cf6f0
08c805022206a19e5922f3e83ec261d0c334353f
refs/heads/master
2022-08-16T03:27:54.079466
2013-04-21T12:50:48
2013-04-21T12:50:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
180
py
from restful.decorators import api @api def recommended_tags(): from models import Tag tags = Tag.objects.filter(recommended=True) return [tag.view() for tag in tags]
[ "konglingkai@egibbon.com" ]
konglingkai@egibbon.com
f6de28bc5cbfa6de28749b2122c919d8dcd73f48
c356faa79a8cb0a41d5df8f29684461e5410d276
/.bazaar/plugins/pager/__init__.py
73febca63e1e8de22a91ae7f267de62a73202cba
[]
no_license
wojdyr/dotfiles
53a3980b8201bb0ed81a9b0449917baa7c88be8a
505169e28dcb6cf758da4a2d75b6f0075cb40d35
refs/heads/master
2021-01-01T04:51:48.620547
2016-05-16T12:00:10
2016-05-16T12:00:10
58,927,301
0
0
null
null
null
null
UTF-8
Python
false
false
3,745
py
"""\ Run commands producing long output in a pager ($PAGER or less). """ import os, sys from bzrlib import builtins from bzrlib.branch import Branch from bzrlib.commands import register_command, Command from bzrlib.osutils import format_date from bzrlib.log import LogFormatter, log_formatter_registry try: from bz...
[ "wojdyr@gmail.com" ]
wojdyr@gmail.com
7450cd48a0d0b6444faaf3d730c7b9d35d03f663
8ac7b4c9dece3d27f8e39f1b07dbf5b3a9f582a2
/Pythonserver/api/serializers/sales.py
9a2be78adf71dd216300e49f1d1dd9e6dc7be4f9
[]
no_license
bhavesh1974/RestAPI
25b4d96a37921afbb2c532356e8ceaa6366d7fa9
d500406d695e744504adedcf6b765a5de80314d5
refs/heads/master
2023-01-06T18:57:17.724298
2019-12-24T18:09:55
2019-12-24T18:09:55
169,263,259
0
2
null
2023-01-04T22:01:49
2019-02-05T15:28:58
JavaScript
UTF-8
Python
false
false
197
py
from rest_framework.serializers import ModelSerializer from api.models.sales import Sales class SalesSerializer(ModelSerializer): class Meta: fields = '__all__' model = Sales
[ "bhavesh1974@gmail.com" ]
bhavesh1974@gmail.com
81dc11f6d0acdde5afcf1ec1180fe37b29d9f8fd
abfbe7e410895d0e62adadfc8c2def3a2103f5b5
/dcetl/etls/scripts/__init__.py
8901ee729f448f7eaada7d82e8004efb119242ba
[]
no_license
Terr123123/dps
a6c25dc13b66a2e253cdfe45bd0d275ce7114198
aef99cedbcb21e1e2279db9c8149dd4ab885c561
refs/heads/main
2023-03-30T14:45:42.649225
2021-04-10T11:42:13
2021-04-10T11:42:13
352,861,245
0
0
null
null
null
null
UTF-8
Python
false
false
60
py
# encoding: utf-8 """ Created on 17-4-1 @author: shaoxw """
[ "root@xuyuan.com" ]
root@xuyuan.com
d2f3d01ebc82e1b525ca0f47bff54a6460d0fa6a
496c2d13643bf72be356cde595f76f6e574bc194
/advent_utils.py
c33f8df2d45d96ea71529074bcacbcfce360ff87
[]
no_license
ffarfan/advent_of_code_2020
78bfdeddd7ca811692bde484d1769b5991340c40
0c2f61330a1840c0b3745d6cae9a7a9cb89fa78b
refs/heads/main
2023-02-01T07:50:28.843753
2020-12-21T15:37:50
2020-12-21T15:37:50
318,681,938
1
0
null
2020-12-21T15:37:51
2020-12-05T02:13:24
Python
UTF-8
Python
false
false
200
py
def load_input_from_file(input_filename): input_data = [] with open(input_filename, 'r') as f_input: input_data = [line.strip() for line in f_input.readlines()] return input_data
[ "fernando.farfan@thermofisher.com" ]
fernando.farfan@thermofisher.com
b644cc3b51077e9366c3cfc234389e9f8a962569
f987fbaaa5ba32bbd0d06ff24d8aed5f28c9d596
/calendar_exp/controllers/controllers.py
12177f226f30ea865fe9ba3fcab42b105c8ccdfb
[]
no_license
tate11/My-odoo-module
985115aa42a49d8cdfc71c3fc31448e84bfb10cc
19608bf00d5aac4c66c03c9755253d0a973c2271
refs/heads/master
2021-04-26T23:14:36.771790
2017-10-28T06:22:42
2017-10-28T06:22:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,196
py
import csv import json from StringIO import StringIO import datetime import pytz import odoo.http as http from odoo.addons.web.controllers.main import serialize_exception, ExportFormat from odoo.service import model class CalendarExport(ExportFormat, http.Controller): @serialize_exception def index(self, da...
[ "krizpham" ]
krizpham