blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ffac357dac34a1696e3b5e068e702f602d08121c | fab7d74f1d89d11d7a0381d88f5c09a801378b47 | /node_modules/bufferutil/build/config.gypi | fa302a130ff195fe3d9e90ac940023749ba2ba1e | [
"MIT"
] | permissive | Fen747/battleProject_as | a5739a8db2225dcc23c604eb83302a67924fa26d | cc0bce269f295b6722db43a454c7f954861b0306 | refs/heads/master | 2016-08-12T23:16:42.385015 | 2016-02-28T17:49:41 | 2016-02-28T17:49:41 | 47,924,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,764 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"gas_version": "2.23",
"host_arch": "x64",
"icu_data_file": ... | [
"contact@sylchauf.net"
] | contact@sylchauf.net |
bd0f26dfcbc2fc9c5bd816cf90b8636627754b36 | 2406f8136970bc9430cff45998b703805b19d633 | /src/manage.py | b9f85b7c7df682ff24ea9aa81aad82ebe29fd41d | [] | no_license | deRerumNatura/django-practice | 8d437361a6aba58d2cbb6ce4d7a73e0bd916928b | 4c9c50c2e14ab5db35f325236832b91dc9d77d2c | refs/heads/master | 2020-03-31T04:46:22.365991 | 2018-10-17T15:25:05 | 2018-10-17T15:25:05 | 151,919,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "yourenv.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | [
"pollindrom@gmail.com"
] | pollindrom@gmail.com |
a62e6416e6dfaff7d10856cd1a0734e290a41ac2 | ec806b30be1814403f9336c98bb92b33455a9173 | /manage.py | 9b0ad245aaf68e05c3bc2d34dd15711d1c695298 | [] | no_license | MircaGheorghe/MaklerParser | 2b324884f44747229bc50459606b75fc28c630c4 | 639b93fb120445a1a3e690d97643264afa237c59 | refs/heads/master | 2020-12-23T14:50:23.984839 | 2020-01-24T08:54:10 | 2020-01-24T08:54:10 | 237,182,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'maklerParser.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise I... | [
"giony.mirca@gmail.com"
] | giony.mirca@gmail.com |
6c6cd89c3c9e5b783c78eba63d85736272909e6b | 6d4d58298c6eb4a84c0de58bd5907cc897fc9ee7 | /Tkinter/scale.py | b76f2d8503f39378cf01cf80aa973c405907257f | [] | no_license | quadrant26/python | 41d4789f9846770d60502350e2afe873dbde3c0b | a0b5796beea04a9bb44c58d888dd1aaa4f211087 | refs/heads/master | 2021-01-12T18:24:15.982628 | 2016-10-28T15:07:08 | 2016-10-28T15:07:08 | 69,418,452 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | from tkinter import *
master = Tk()
'''
Scale
tickinterval=5 # 刻度表
resolution=5 # 精度 == 步长
length=200 # 长度
'''
s1 = Scale(master, from_=0, to=40, tickinterval=5, length=200)
s1.pack()
s2 = Scale(master, from_=0, to=200, orient=HORIZONTAL, resolution=15, length=600)
s2.pack()
def show():
pr... | [
"quadrant26@163.com"
] | quadrant26@163.com |
4b3cfa868a095f3bb7908511aa432d27b6fcef9b | e7c03bfa0571852c070b4380913e7f07c9ea23cb | /Programs/Subarray sort.py | 2e2309bdbc3b4a38009b6c158463065a953e7adf | [] | no_license | shashilsravan/Programming | 3a8946505f278e7cf8574e4508192060696eef81 | 5e422de074a145b04b67d46bf8d9258f9894b742 | refs/heads/main | 2023-07-19T00:41:07.602123 | 2021-08-18T17:21:02 | 2021-08-18T17:21:02 | 371,697,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,442 | py | # O(N)
# def isOutOfOrder(i, num, array):
# if i == 0:
# return num > array[i+1]
# elif i == len(array) - 1:
# return num < array[i-1]
# return num > array[i+1] or num < array[i-1]
#
#
# def subArraySort(array):
#
# if len(array) == 1:
# return 0
#
# minOutOfOrder = float("in... | [
"shashilsravan.ss.ss@gmail.com"
] | shashilsravan.ss.ss@gmail.com |
f78583af982448696bb392d8d15a60c5d8e44ee9 | 710922bec0ca285713c6a1cf1f0ed0e9a8896a61 | /orders/forms.py | bb30d7fb71ad8e58718d9fd486f90f382c5934f7 | [] | no_license | jian9ang-git/Majorproject | 171c35f75c7aef6f014478e77275603d64ba3d47 | 406b4ea20c4ed095a5b16434eb133e4f38542549 | refs/heads/master | 2023-04-20T18:29:05.488195 | 2021-05-05T13:54:04 | 2021-05-05T13:54:04 | 361,968,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from django import forms
from .models import Order
class OrderCreateForm(forms.ModelForm):
class Meta:
model = Order
fields = ['country', 'city', 'street', 'house', 'post_index', 'delivery_time', 'comment']
| [
"jian9ang1@ya.ru"
] | jian9ang1@ya.ru |
097564ed9fd327dba9f517082c02f5f2cdfcfe91 | 583551e0b268cb35b4ab8fe46288eea9d9f17aa6 | /main/config/user_config.py | 3e61bc92c69d2574a728503731faa11fc0cda497 | [
"MIT"
] | permissive | TonyLiu-TL/baby-name | 9feb13b47a90b42337df2d11b4413f318a9da736 | 21a655072d16054fd9e5a766b592217168be9679 | refs/heads/master | 2022-02-17T19:08:20.496767 | 2017-06-19T15:08:51 | 2017-06-19T15:08:51 | null | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 1,089 | py | #!/usr/bin/env python
# -*- coding: GB18030 -*-
"""
Name : user_config.py
Created on : 2017/06/18 11:28
Author : Liuker <liu@liuker.xyz>
Version : 1.0.0
Copyright : Copyright (C) 2013 - 2017, Liuker's Blog, https://liuker.org.
Description : 用户配置。
"""
import os
ROOT_PATH = os.path.join(os.path... | [
"root@liuker.xyz"
] | root@liuker.xyz |
f5116227b8af628572f510cdbe1c3851987dd5f9 | 7c0caf6d501d89d0f68e209056263524314d01da | /100.py | 615f48db9a65e7dbfeb1d69f52d1d1b98fb60610 | [] | no_license | aarongertler/euler | 1c885a0550909f1036b3486170ba67b29ff47f21 | c7d880a1b645e587104fdbb6aaab39f6ddf10f22 | refs/heads/master | 2018-10-05T17:53:33.403932 | 2018-06-21T06:41:01 | 2018-06-21T06:41:01 | 83,462,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,622 | py | # If a box contains twenty-one coloured discs, composed of fifteen blue discs and six red discs,
# and two discs were taken at random, it can be seen that the probability of taking two blue discs,
# P(BB) = (15/21)×(14/20) = 1/2.
# The next such arrangement, for which there is exactly 50% chance of taking two blue d... | [
"aaronlgertler@gmail.com"
] | aaronlgertler@gmail.com |
148cce93ba4cbf3c3aee72d8ef727c2cd6db0f07 | 68d7796724784cf0fc9f08135b5f8c085456cfe5 | /LoadHeadlinesMediametrics.py | 3dc596f3a9598efd867c02435f68e42a076e2ab2 | [] | no_license | AlexanderButakov/scripts-from-work | db26140473ad619a5f4bd84468325e3712b7d9db | 3c0802b917853b46ec87238937c155af95c446de | refs/heads/master | 2020-12-24T15:41:26.570087 | 2015-09-12T07:08:59 | 2015-09-12T07:08:59 | 42,265,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,441 | py | # -*- coding: utf-8 -*-
import urllib2
import sys
from datetime import date
"""
Скрипт скачивает указанные страницы и их количество
с сайта mediametrics.ru, формирует список новостных заголовков,
собранных с этих страниц.
Запускать скрипт можно с разными параметрами, в зависимости от этого
будут скачиваться заголовки... | [
"t-conspectus@list.ru"
] | t-conspectus@list.ru |
423caa8880968132a474f1107cfd9fc617ce5cba | 5e2dddce9c67d5b54d203776acd38d425dbd3398 | /spacy/lang/da/examples.py | 4072777ec0c61e1fd6a4be512fed4b332319de09 | [
"MIT"
] | permissive | yuxuan2015/spacy_zh_model | 8164a608b825844e9c58d946dcc8698853075e37 | e89e00497ab3dad0dd034933e25bc2c3f7888737 | refs/heads/master | 2020-05-15T11:07:52.906139 | 2019-08-27T08:28:11 | 2019-08-27T08:28:11 | 182,213,671 | 1 | 0 | null | 2019-04-19T06:27:18 | 2019-04-19T06:27:17 | null | UTF-8 | Python | false | false | 507 | py | # coding: utf8
from __future__ import unicode_literals
"""
Example sentences to test spaCy and its language models.
>>> from spacy.lang.da.examples import sentences
>>> docs = nlp.pipe(sentences)
"""
sentences = [
"Apple overvejer at købe et britisk startup for 1 milliard dollar",
"Selvkørend... | [
"yuxuan2015@example.com"
] | yuxuan2015@example.com |
0277f072fe7b759a3ace2500f5ff736d17edf182 | ed8fb89843b31e7943f074bb6a0eb877ddf6a3d1 | /gui/move_syncfolder_dialog.py | 90488eb36808d09865590edebe37f2ea2761deec | [] | no_license | manuelVo/fuzzy-robot | 83105f61f93589976048d0e60f484b1b2ce22d6d | f9651ef066620fddd0ee4932efcb65549b264454 | refs/heads/master | 2021-07-15T21:48:25.850484 | 2021-06-29T12:27:40 | 2021-06-29T12:43:45 | 32,819,674 | 1 | 1 | null | 2015-05-01T16:25:28 | 2015-03-24T19:17:42 | Python | UTF-8 | Python | false | false | 925 | py | from PySide2.QtWidgets import *
from enum import Enum
class MoveSyncfolderDialog(QDialog):
def __init__(self):
super(MoveSyncfolderDialog, self).__init__()
self.move = True
self.setWindowTitle("Chnage sync folder")
self.init_ui()
def init_ui(self):
layout = QVBoxLayou... | [
"develop@manuel-voegele.de"
] | develop@manuel-voegele.de |
dc6b0ca2de15895b5c7c35dbdacc769b6f7738e5 | df6ff5c2e0a782a6a1edad73a320040c05282d10 | /test.py | fbe0407ea3bbbe090be76f31ee11c81e2a2c3462 | [] | no_license | adrift00/Siamtracker | eb2ec8117fa58c94360e74539c0417eb34ac6c5d | 637d32827d7a74ec9b7b9fae00d5675763aaa987 | refs/heads/master | 2022-12-07T19:23:07.356089 | 2020-08-25T13:47:19 | 2020-08-25T13:47:19 | 227,269,435 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,266 | py | import os
import argparse
import cv2
import logging
import torch
from pruning_model import prune_model
from toolkit.datasets import get_dataset
from utils.model_load import load_pretrain
from models import get_model
from configs.config import cfg
from trackers import get_tracker
from utils.visual import sh... | [
"1219660880@qq.com"
] | 1219660880@qq.com |
e97d8a632c0887ab2a14515b303ea9c83fa90c3e | 50874fc1e32260a5cc48c11c23e077ff4171ef34 | /test1.py | f5326091f5ac9db7061cf51f9a7d24a9c3345afd | [] | no_license | huhao45/gs_lstm | ca47e3b1e6527507fdb74963ff58dbcb4823e500 | 7a653f9702499d6f3f8aae0a7a335af4df005975 | refs/heads/main | 2023-06-16T01:45:15.114334 | 2021-07-09T02:21:51 | 2021-07-09T02:21:51 | 384,297,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 9 15:23:16 2020
@author: 59654
"""
# from flask import Flask
# # 实例化,可视为固定格式
# app = Flask(__name__)
# # route()方法用于设定路由;类似spring路由配置
# @app.route('/helloworld')
# def hello_world():
# return 'Hello, World!!!!'
# if __name__ == '__main__':
# # a... | [
"noreply@github.com"
] | huhao45.noreply@github.com |
3d38aed1e39f09568c500227e5f17a5affc96519 | 8b839132f4f4efef9dd246312e95b65f64230f63 | /Unidad3/eslh_videos/iterator.py | 0f1b925d6bed6f390e596e55692e44a281e0a7ce | [] | no_license | EfrenLanderos/Unidad3 | 05e03594c998b7ad19bede35b3d7487282b2c13a | 7ab08834e82b9efb7401b832c395dedd5f9fc2c2 | refs/heads/master | 2021-05-06T17:35:22.586636 | 2017-11-24T08:01:23 | 2017-11-24T08:01:23 | 111,891,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | """Efrén Santiago Landeros Hernández"""
def count_to (count):
"""Our iterator implementation"""
# Our list
numbers_in_german = ["eins", "zwei", "drei", "vier", "funf"]
# Our built-in iterator
# Creatres a tuple such as (1, "eins")
iterator = zip(range (count), numbers_in_german)
... | [
"noreply@github.com"
] | EfrenLanderos.noreply@github.com |
0d9a11675df1403976c9cc36cc9cb85bf8bfbbad | 1865e1966c490497798115a4d4ec3a7177dbef98 | /Data_structures/binary_trees/binaryTree.py | ff6be891f60b6a155ca17beae177585aca56f9f2 | [] | no_license | gauravpore/Data-structures-algorithms | fa9fa56c366c103af8f5978d111088f52b396cc3 | 70a2180fa009dd91f9fe80d8d0a45f376f76729c | refs/heads/master | 2023-05-27T12:29:11.993345 | 2021-06-17T06:41:37 | 2021-06-17T06:41:37 | 326,462,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | class Node:
def __init__(self,data):
self.data = data
self.right = None
self.left = None
def insert(self,data):
if self.data:
if data<self.data:
if self.left is None:
self.left = Node(data)
else:
self.left.inser... | [
"67472558+gauravpore@users.noreply.github.com"
] | 67472558+gauravpore@users.noreply.github.com |
daa4907ec87d49590659e7b0bcf5576c027f6b47 | 26e60aaccb4483babe89157cbe215414bc7df18c | /src/services/security_service.py | 905e27d565b9242f6f82eb1cd64a42b2e8ec1aa0 | [
"MIT"
] | permissive | Serious-and-Pro-Gamers/SPG-Backend | 5f241b993ac8ab2bbecc7a24007ad198c0da7f81 | 567a068619867ce5579b75f8d39a2c36fdb8a737 | refs/heads/master | 2022-12-25T08:36:45.291271 | 2019-11-10T23:20:05 | 2019-11-10T23:20:05 | 215,707,624 | 0 | 0 | MIT | 2022-12-08T06:47:36 | 2019-10-17T05:08:00 | Python | UTF-8 | Python | false | false | 1,536 | py | import hashlib
import requests
# Use pwned password api to get the number of online breaches for the password
def get_password_breaches(password):
# Api endpoint for pwned password api
pwned_uri = "https://api.pwnedpasswords.com/range/"
# Encrypt password using sha-1 (Used by the pwned password api)
... | [
"lsaplan97@gmail.com"
] | lsaplan97@gmail.com |
73e464745176c4eaa3b172eea37f4f6adda896e3 | fec54c7785cd486256706bfe4b8b365399390742 | /13_expo_2018/wnd_composite_estado2_NovFeb_HMM3.py | 89e9293a1ec5944cb872e1340623a7bbbfa63320 | [] | no_license | yordanarango/MASTER_THESIS | 71f08bcf304f201ed3fcf54e93ca4757c35b46ca | 2310d32965a877174b9662bbd98ce4040be6f4f5 | refs/heads/master | 2021-04-15T18:28:07.140558 | 2018-08-05T16:06:47 | 2018-08-05T16:06:47 | 126,349,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,184 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Feb 18 13:34:25 2018
@author: yordan
"""
from hmmlearn.hmm import GaussianHMM
import numpy as np
import netCDF4 as nc
from netcdftime import utime
from mpl_toolkits.basemap import Basemap
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.colors as colors
i... | [
"yuarangoj@unal.edu.co"
] | yuarangoj@unal.edu.co |
5501bb7a3a3861187b57d877ffb4df27e04815fa | 9d0d01fcae352e9a7d48d7a8035be775118a556e | /sample/increase_user_profile_category.py | f90f79cb43079b6302a78aae6c0d6fd1114ab931 | [] | no_license | BlueLens/stylelens-user | b278faef0fd32b36355f190e4cd13b95b6e7e57c | aa3698d35c237dd022fb16824945636b0b3660e7 | refs/heads/master | 2021-09-04T20:47:27.881925 | 2018-01-22T09:28:14 | 2018-01-22T09:28:14 | 117,768,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | from __future__ import print_function
from stylelens_user.users import Users
from pprint import pprint
api_instance = Users()
device_id = 'xxxx'
try:
api_response = api_instance.increase_user_profile_category(device_id, 'blouse')
pprint(api_response)
except Exception as e:
print("Exception when calling increase... | [
"master@bluehack.net"
] | master@bluehack.net |
3823d7cb2ea5d0f991c5d3bad05a63649b06b08e | 8db334107ab95ef3872a4817e455cfcb13541424 | /src/train_single.py | 456c7812c9d2a08ec2f62774b0cddeed99c6efce | [] | no_license | ykwon0407/isles2017_deprecated | 98a2248fca22dfd9f8bb1f9fa35ee252b0ba5a3d | b5ebb4ae0746f27746072b80682e8b2a7258ae54 | refs/heads/master | 2020-04-25T01:42:14.685753 | 2019-02-25T02:36:40 | 2019-02-25T02:36:40 | 172,416,347 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,043 | py | from sklearn.model_selection import KFold, StratifiedKFold
from sklearn.metrics import confusion_matrix
from keras.callbacks import ModelCheckpoint, LearningRateScheduler, EarlyStopping
import numpy as np
import pandas as pd
np.random.seed(1004)
from glob import glob
import gc, os, click, sys, time, logging, shutil
imp... | [
"ykwon0407@snu.ac.kr"
] | ykwon0407@snu.ac.kr |
26ee9a0a71afd0f137d3fe89d042334439657b9d | ed331352dc925c321d89647024362ed0bb0d2445 | /02_tensorflow/05_forward_placeHolder.py | 0a9cce309c2d87e2018ba05c47194d07c9adb4dd | [] | no_license | zzy1120/tensorflow_mooc | 9eb01a4d47b648cffd00fb921ff2730a1d6d93cf | 06943cb92d5585535a89d9f4f939133d192dcbb8 | refs/heads/master | 2021-09-14T04:19:35.160150 | 2018-05-08T12:16:47 | 2018-05-08T12:16:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | # coding:utf8
# 两层简单神经网络(全连接)
import tensorflow as tf
# 定义输入和参数
# 用placeholder实现输入定义 (sess.run中喂一组数据)
x = tf.placeholder(tf.float32, shape=(1,2))
w1 = tf.Variable(tf.random_normal([2,3], stddev = 1, seed = 1))
w2 = tf.Variable(tf.random_normal([3,1], stddev = 1, seed = 1))
# 定义前向传播过程
a = tf.matmul(x, w1)
y = tf.ma... | [
"719668276@qq.com"
] | 719668276@qq.com |
0b37d096d0e2783b06ebe88f7dbbe19d847274d7 | a139b3745c1fed0da0641f823c6841bde86235fc | /tigerevents/users/forms.py | b134b40888029fdf56a3666e355507dc49ce9657 | [] | no_license | moinmir/Tiger-Events | 3f02365be9bc8be6d1f56cfe54d255fd56f42532 | a18c274fca63dca7589902768ac38761d5fc47ae | refs/heads/main | 2023-07-11T23:23:16.982061 | 2021-08-03T13:37:24 | 2021-08-03T13:37:24 | 305,765,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,722 | py | from flask_wtf import FlaskForm
from flask_wtf.file import FileField, FileAllowed
from wtforms import StringField, PasswordField, SubmitField, BooleanField, RadioField
from wtforms.validators import DataRequired, Length, Email, EqualTo, ValidationError
from flask_login import current_user
from tigerevents.models import... | [
"moin@princeton.edu"
] | moin@princeton.edu |
db5991eca1442f93f1470222ae7820bb0ff745f9 | a1f2b5290ae1c44e4fb04be6dc827c9f3f424b8b | /iis-3rdparty-madis/src/main/resources/eu/dnetlib/iis/3rdparty/scripts/madis/lib/pymysql/converters.py | f08fdf013fc784417f0b5a321c595b6ac175f9f3 | [
"Apache-2.0",
"Zlib",
"LicenseRef-scancode-free-unknown"
] | permissive | openaire/iis | c45cd3cf98114605453ba3f42bb3c63d3da6e033 | e807df7bd5f0c5127f9c295243558e9b33884e63 | refs/heads/master | 2023-08-18T14:54:35.485327 | 2023-07-21T15:21:05 | 2023-08-08T15:02:21 | 42,290,369 | 23 | 81 | Apache-2.0 | 2023-09-07T12:44:24 | 2015-09-11T05:55:08 | Java | UTF-8 | Python | false | false | 10,620 | py | import re
import datetime
import time
import sys
from constants import FIELD_TYPE, FLAG
from charset import charset_by_id
PYTHON3 = sys.version_info[0] > 2
try:
set
except NameError:
try:
from sets import BaseSet as set
except ImportError:
from sets import Set as set
ESCAPE_REGEX = re.co... | [
"l.dumiszewski@icm.edu.pl"
] | l.dumiszewski@icm.edu.pl |
a059d52d4f12dd8142d0e4d940e2f755487388c8 | 353a50bd7b0bb9df9e1380d778cc3e2c192740f5 | /hello world.py | c2adcdf1105aa6c958a6ee6784f2a034b5620e31 | [] | no_license | standrewscollege2018/2019-year-13-classwork-LewisEdmond | 564fc8926afcc72b301484b704bca49e8c219657 | 99d7e2f4f4a22171b334fbbc9b566c56b0db37f2 | refs/heads/master | 2020-05-28T07:39:21.368374 | 2019-05-28T00:30:05 | 2019-05-28T00:30:05 | 188,924,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | # intro to Github and print
print("Hello World")
| [
"led5423@stacmail.net"
] | led5423@stacmail.net |
c7404805651e066294db154117b46ee5c5a6a21a | ff97da14c5c2a47b8b212587df46400f36489023 | /regex_to_enfa/epsnfa.py | 8f53e13821067677a92247fa077e6d08ff815371 | [] | no_license | vivekimsit/Automata-theory | bad66b5244c380dcf2f034c073fc6ffccfb47519 | 4608551f34542e5e0cfce84cda0085a0f89d0624 | refs/heads/master | 2021-01-20T10:10:55.943938 | 2014-10-01T12:37:02 | 2014-10-01T12:37:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,961 | py | import sys,traceback
import os
import string
maxn = 200 #maximum number of states
symbol = 2 #number of symbols ('0','1')
epssymbol = 2
'''g[s1][i][s2]=True if and only if there's an edge with symbol i from state s1 to s2
i: 0 is '0', 1 is '1', 2 is epsilon
For fixed state s1 and a symbol c, it is not necessary... | [
"vivekimsit@gmail.com"
] | vivekimsit@gmail.com |
2b58f093901c18130be53de2b768f49d4d31a0be | d723a27ac4674a8b04004f9c883a4addb7a25532 | /StructuresInPython/src/root/nested/TuplesExercise.py | 2ad10a3cfba6cdc7403ae6e016ace55bb787f14a | [
"MIT"
] | permissive | jlmurphy3rd/code-outhouse | bf8f0c2da73edac249764cd10f98f0a396f0c5be | c18d1fc01299cb70545ebdc8b928023401c25078 | refs/heads/master | 2020-04-06T07:03:22.744281 | 2016-10-16T01:57:50 | 2016-10-16T01:58:23 | 52,179,752 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | '''
Created on May 23, 2016
@author: John
'''
name = raw_input("Enter file:")
if len(name) < 1 : name = "mbox-short.txt"
handle = open(name)
counts = dict()
for line in handle:
words = line.split()
if len(words) < 5 : continue
if words[0] != "From" : continue
when = words[5]
tics = when.split(":")... | [
"Murphy"
] | Murphy |
03a7916c88e7faf3ef06da2e8c41664e43d31aef | d8234481e6e22dc04e38260168d3fd0a2be3ce7b | /gameClasses.py | 707d149d14f4d097f1a35b3a0e932b1fc18142d0 | [] | no_license | jimiez/pygame_rps | b21d13005815cdf7b7822b18acdd923f5e0acbb1 | 677e61a5c0d9babf5ca2546dd58d4a88b25031fb | refs/heads/master | 2021-03-26T11:33:13.923063 | 2020-03-26T07:40:29 | 2020-03-26T07:40:29 | 247,700,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,697 | py | # Classes pertaining to game operations and logic are contained within this source file
import pygame
import random
from uiClasses import *
from constants import *
class GameLogic:
"""
This class contains the entire game logic of Rock, Paper, Scissors. Includes also rudimentary AI and bookkeeping.
"""
... | [
"jimiz666@gmail.com"
] | jimiz666@gmail.com |
e4516d18fb4cccb863d378065317d8e0e3ed5dbc | 51630d56d313c538c59086fa605a4753adebe3de | /vj_site/songs/models.py | 4208668a04b4e647c84e4af84e27636bd8faabc5 | [] | no_license | vjoshi19/djangoProjects | 610634b2e5d3f2b5743d02d295547e045119b48f | b986fd832889dab964681d5fd9946f6eb4e0c297 | refs/heads/master | 2021-07-12T09:28:11.969577 | 2017-10-13T21:52:22 | 2017-10-13T21:52:22 | 106,876,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | from django.db import models
# * Performer model should:
# * have a name
# * return the name when turned into a string
class Performer(models.Model):
name = models.CharFeild(max_length=255)
def __str__(self):
return self.name
# * Song model should:
# * have a title
# * have an artist (original... | [
"vjoshi@biolifesolutions.com"
] | vjoshi@biolifesolutions.com |
3957622a3eae4aa075c7ec57bfa91cc2ce15cf99 | 63477b7a6e34d76885f39b4e6e303f28d89020d2 | /submissions/abc122/a.py | a41680eba6f8f106954078bebfb777add22fcb90 | [] | no_license | yosuke-ippo/Atcoder | d1087382759fe3ada5cfff5e370b3d3f33934e46 | 2f198a38791536d16ab87f172dc12d7066d0a939 | refs/heads/main | 2023-08-23T16:24:03.995969 | 2021-10-03T20:27:50 | 2021-10-03T20:27:50 | 375,315,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | b = input()
if b =='A':
print('T')
elif b =='T':
print('A')
elif b =='G':
print('C')
elif b =='C':
print('G')
| [
"yoskey.programming@gmail.com"
] | yoskey.programming@gmail.com |
1dd45a57f2bb7a7b8e25b9c3b80f32e5ff2efcf2 | c01f125f70f35f4e9a0252b09030015d0e797c70 | /tests/test_plugin.py | 6081fc833e4104535f491f7416c757eee834d1be | [
"Apache-2.0"
] | permissive | manheim/eds | e48b543cbb32d8476f8e05be3690568834b574e1 | 20398c2585bf666a2d909be52f314116a41061a5 | refs/heads/main | 2023-07-31T12:49:07.689976 | 2021-08-30T13:51:59 | 2021-08-30T13:51:59 | 367,961,136 | 4 | 4 | Apache-2.0 | 2021-09-23T02:39:02 | 2021-05-16T18:49:40 | Python | UTF-8 | Python | false | false | 706 | py | from eds.plugin import BasePlugin
class PluginChild(BasePlugin):
pass
class PluginParent(BasePlugin):
@property
def children(self):
return [PluginChild({})]
class PluginGrandParent(BasePlugin):
@property
def children(self):
return [PluginParent({})]
def test_get_child_plugi... | [
"qwcode@gmail.com"
] | qwcode@gmail.com |
1f8bd2536759070a7ec3e9072c675f5e2455004e | 047043b58b420169834ca2211bab784d2631c69c | /MatchZoo/matchzoo/models/sbdecatten.py | 31b3037f4f5de06af52bd31bda57fe9ec5cda1a1 | [
"Apache-2.0"
] | permissive | thiziri/lates_MZ_and_data_pre | a27b9ddbe867eac8793f2a273e59586c28a62798 | c5c47af4b00451dd597a1d45a459fe7ca46e860b | refs/heads/master | 2020-03-24T06:51:11.054727 | 2019-03-12T15:10:33 | 2019-03-12T15:10:33 | 142,544,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,454 | py | # -*- coding=utf-8 -*-
from __future__ import print_function
from __future__ import absolute_import
import keras
import keras.backend as K
from keras.models import Sequential, Model
from keras.layers import *
from keras.layers import Reshape, Embedding, Dot
from keras.optimizers import Adam
from model import BasicModel... | [
"belkacemthiziri@gmail.com"
] | belkacemthiziri@gmail.com |
ae28174baee504ac103c17d3339d23ea2b076e85 | 7bce6308cfab20992aeaa8a95bcecf2320deb360 | /test_bokeh.py | 29c58d3afc4954e59e8ec3f3a376666b51f913f1 | [
"MIT"
] | permissive | uetke/UTrack | 565bfeb0c176d17cc438f8a5144e954e5159fcdf | efab70bf2e1dddf76e1b7e3a0efbdd611ea856de | refs/heads/master | 2020-03-21T14:03:17.339757 | 2018-08-06T14:33:25 | 2018-08-06T14:33:25 | 138,639,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | import numpy as np
from bokeh.io import curdoc, show
from bokeh.layouts import column
from bokeh.models import ColumnDataSource, Slider
from bokeh.plotting import figure
N = 100
x_ = np.linspace(0, 10, 200)
y_ = np.linspace(0, 10, 200)
z_ = np.linspace(0, 10, N)
x, y, z = np.meshgrid(x_, y_, z_, indexing='xy')
dat... | [
"aquiles@aquicarattino.com"
] | aquiles@aquicarattino.com |
4d84b90578d98e4a3679ca655fd6ad90a1de52b4 | 7d759adfd57925a0306fb097df6fcdbacd6a4ff6 | /base/hw01/dmia/gradient_check.py | a70c55f2f6d5c78173ef6324ff2ff3b5f816e152 | [] | no_license | Dkotlukov/MIPT_Data_Mining_In_Action_2016 | 6c57a30b673f6e54f9f622d8e79131c9470fa268 | 5d054cd147bc57f3d98ce5768aa72d380e760204 | refs/heads/master | 2021-01-12T11:37:04.042744 | 2016-12-04T00:17:39 | 2016-12-04T00:17:39 | 72,231,122 | 0 | 0 | null | 2016-10-28T18:13:04 | 2016-10-28T18:13:04 | null | UTF-8 | Python | false | false | 1,709 | py | import numpy as np
from random import randrange
def eval_numerical_gradient(f, x):
"""
a naive implementation of numerical gradient of f at x
- f should be a function that takes a single argument
- x is the point (numpy array) to evaluate the gradient at
"""
fx = f(x) # evaluate function... | [
"Dkotlukov@gmail.com"
] | Dkotlukov@gmail.com |
369453e2f55a70a8ed11391d3ecbc71559a5fdf6 | 0825d6cdc2482cac3b365b42e4eb0eb88c4865b6 | /public_html/flask.fcgi | cb1b551732f7df4bb7c38ffc05e1a9808d5fd1fe | [] | no_license | mtbthebest/flask | f3e321350c27cb5b880b059f0b865afd4f33cc94 | 731b41ccd917d771d9190e47b8f64f1bd34edd50 | refs/heads/master | 2020-04-17T14:52:15.558787 | 2019-01-20T15:28:31 | 2019-01-20T15:28:31 | 166,675,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | fcgi | #!/var/www/myapp/public_html/venv/bin/python3.4
import sys
sys.path.append('/var/www/myapp/public_html/venv/lib/python3.4/site-packages')
from flup.server.fcgi import WSGIServer
from myapp import app
if __name__ == '__main__':
WSGIServer(app).run()
| [
"mtbthebest11@gmail.com"
] | mtbthebest11@gmail.com |
1b4aa17bdea1665d06d03f6e5ef54cf78353f7df | c3c43fee5267e38fe5e04456115e3a9444ec251e | /StreamSwitch/utilities.py | 2f0b187a1fbe516941fd088377502605e78ecad5 | [
"MIT"
] | permissive | KMNR/Webstream | dfe0dac1363932320f766b7338e58da48df7fff0 | 61a204c7938c60fa9b9757edb082800362dd4de6 | refs/heads/master | 2020-05-20T16:18:16.238989 | 2017-03-07T07:01:19 | 2017-03-07T07:01:19 | 10,764,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | def getstatus():
import os
f = os.popen("/etc/init.d/darkice status")
try:
pid = f.readlines()[0].rstrip('\n')
except:
pid = 0
return pid
| [
"engineering@kmnr.org"
] | engineering@kmnr.org |
22b3b0d8d5613807e44feec6971ca657d16ba514 | d1868bc506b7bf5039bbb7906dfc552fd67bda49 | /src/server.py | 94cba5d79caeb704f093ee44aa84eda65ba6a950 | [
"MIT"
] | permissive | jackvandrunen/strongpad | 71e491ce3f124723c267595636c489d1d27caa79 | 2f684bfdbc43843481ab311ccc8bbfede46bb1ce | refs/heads/master | 2021-05-27T12:38:57.984565 | 2014-12-16T04:56:57 | 2014-12-16T04:56:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,517 | py | from SocketServer import ThreadingMixIn
from wsgiref.simple_server import WSGIServer, make_server
import json
import os
import sys
import sessions
try:
import bottle
except ImportError:
print 'Missing dependency: bottle'
sys.exit(1)
try:
import markdown2
except ImportError:
print 'Missing depend... | [
"jack@fallingduck.net"
] | jack@fallingduck.net |
d72a863ea60149ccb7af9b2726b96bac90c558e0 | ceada1c46e6540f9066f7111f6a0387c24722f5c | /笔试题目/Tencent/腾讯2018笔试试题/小Q的歌单.py | ff48ecece7b61e40ddbed08b1fd00f436a8afaed | [] | no_license | w5802021/leet_niuke | 556c966791e6a5e9a1a8eec61f67973aec9e56ca | 199f2b62101480b963e776c07c275b789c20a413 | refs/heads/master | 2020-06-24T03:30:19.983671 | 2019-12-08T15:46:26 | 2019-12-08T15:46:26 | 180,187,921 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | k = int(input().strip())
a, x, b, y = list(map(int, input().split()))
mod = 1000000007
# dp[i]表示总歌单长度为i时,一共有多少组组成歌单的方法
dp = [0] * (k+1)
dp[0] = 1
#在x首长度为A的歌中选,总歌单长度i的歌单组成方法
for i in range(1, x + 1):
for j in range(k, a - 1, -1):
dp[j] = dp[j] + dp[j-a]
#在y首长度为B的歌中选,总歌单长度i的歌单组成方法
for i in range(1, y + 1):
... | [
"w5802022@gmail.com"
] | w5802022@gmail.com |
60e5e7acffc54ff9fb0926289c44d554e8655cc6 | 2db1a0038d26ccb6adc572b536cb5cd401fd7498 | /lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/revocation.py | 3c517fca372d4a1f5e5733b02e0006a238b03c3f | [] | no_license | syurk/labpin | e795c557e7d7bcd4ff449cb9a3de32959a8c4968 | 04070dd5ce6c0a32c9ed03765f4f2e39039db411 | refs/heads/master | 2022-12-12T02:23:54.975797 | 2018-11-29T16:03:26 | 2018-11-29T16:03:26 | 159,692,630 | 0 | 1 | null | 2022-11-19T12:15:55 | 2018-11-29T16:04:20 | Python | UTF-8 | Python | false | false | 5,505 | py | # -*- coding: utf-8 -*-
"""
oauthlib.oauth2.rfc6749.endpoint.revocation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
An implementation of the OAuth 2 `Token Revocation`_ spec (draft 11).
.. _`Token Revocation`: http://tools.ietf.org/html/draft-ietf-oauth-revocation-11
"""
from __future__ import absolute_import, unicod... | [
"syurk738@students.bju.edu"
] | syurk738@students.bju.edu |
ae1a407e9631295a60cb2e2e27a9a53b9148115a | b35a624709024007025a1664683076cafef28b52 | /RevDock/revdock/get_models.py | 18a3630e0805a70ec1b43ea0fd5f08f6e02a6cbf | [] | no_license | Percud/Rev_Docking | d0efdb8efe78d7a8fb8a11d0e11bd602b6c22bde | a60bb74e08f3e74b2939ae827c2df0897e569baa | refs/heads/master | 2022-05-15T23:44:08.715948 | 2022-04-21T08:02:23 | 2022-04-21T08:02:23 | 235,093,711 | 0 | 1 | null | 2020-10-23T09:19:55 | 2020-01-20T12:12:45 | Python | UTF-8 | Python | false | false | 3,183 | py | from revdock.revdocking import *
cwd=os.getcwd()
## HUMAN PLPome
ncbi_acc=pd.read_csv('http://bioinformatics.unipr.it/B6db/tmp/Homo_sapiens.tab',sep='\t',header=None)[2].tolist()
accession=convert_ac(ncbi_acc,'P_REFSEQ_AC','ACC').To.tolist()
get_models(accession,'9606','Human_PLP_swissmodel')
## Get coord ... | [
"noreply@github.com"
] | Percud.noreply@github.com |
3acf9cf9c28886823a1327ff209b2ba424538bf0 | 6bc63fdcb0a443f7f72c2cf1ae39b77d45275567 | /lists/urls.py | 2099dc5e596e00dbc7d7b6cc45d07390d134993a | [] | no_license | a-watkin/django-tdd | f7afdfa553189e03d5eefe7e38cb33e73b472a03 | 8ce872a71947e3456992e8111a7f8aa03fc75071 | refs/heads/master | 2021-01-20T05:26:23.419071 | 2018-01-29T13:01:32 | 2018-01-29T13:01:32 | 89,781,514 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,577 | py | """superlists URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class... | [
"atomicpenguiens@gmail.com"
] | atomicpenguiens@gmail.com |
69d1ddd13797217c84720b0a5736e6c9b3caff7e | 629bde72db103849451401ed09a589027d36a1ce | /com/pyutil/tbk/wxbot.py | e2cdc3c43ef3b312c3e8f65f506129e5b2ef31fd | [] | no_license | benniaogithub/pyUtil | c5fac1010b5d2af4370e7577e3c6991035661c2c | eeefb777105b0845beeef24f4c0d5578164cc00b | refs/heads/master | 2021-01-13T03:02:48.586674 | 2018-11-13T18:23:51 | 2018-11-13T18:23:51 | 77,036,550 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | #-*-coding:utf-8-*-
# Time:2018/11/12 23:40
__author__ = 'liuqin212173'
import itchat | [
"715570634@qq.com"
] | 715570634@qq.com |
0349a805c84acec95aceef67fa4cb2d1b4fb7947 | a69d47690d7b383fce880270ee06091531e05987 | /tests/fast_cpp_proto_test.py | 2ba4a8a16091757a0239be5bc12c1bfc0c8737fb | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | scal444/pybind11_protobuf | 9215e608f31f78cc14115be5cbf1bb44ce8be411 | 0f9d7e967cb20e3875be04115e7340ab3211ffe2 | refs/heads/main | 2023-07-07T20:26:14.946720 | 2021-05-11T20:55:46 | 2021-05-11T20:55:46 | 366,458,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,114 | py | # Copyright (c) 2019 The Pybind Development Team. All rights reserved.
#
# All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
"""Tests for protobuf casters."""
from __future__ import absolute_import
from __future__ import division
from __future__ im... | [
"mchinen@google.com"
] | mchinen@google.com |
5d7f4b9d3c274dae71c1eebe713848a9dfbba5e3 | 8bcb8333bc8d2e23416b3c8428b6fe24d0e82654 | /second.py | 63731aa868e83c9b57b424621df0339cb1096b70 | [] | no_license | Alantan389/if-__name__-__main__- | 7b5ff3818a1e075466b032b4f9dcf797f4bbd099 | fc7c4d3fdb0ff82daf507c5f29af323e2e5226c3 | refs/heads/main | 2023-04-04T22:36:24.803967 | 2021-04-07T02:26:28 | 2021-04-07T02:26:28 | 355,387,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | import first
first.main()
print ("second module's name : {}".format(__name__)) | [
"noreply@github.com"
] | Alantan389.noreply@github.com |
43e03ffe1443acb71b3ff1349f72dbc4635872d0 | 1393305d4573ac73d159d9efd2d58ade00f17dc8 | /Python/Projects/PythonBot/Tests/IMG iterations.py | b4bea19d6eb6b50f982de88f961e20fe7158dff5 | [] | no_license | ShutDownMan/UniProjects | f865136169b4626fc79e92c36e5c6590496216d2 | 40704eb1f51f82df50fb7497985c2ab55a3aff26 | refs/heads/master | 2022-06-02T22:38:04.137699 | 2022-05-12T00:19:40 | 2022-05-12T00:19:40 | 113,806,338 | 3 | 2 | null | 2022-04-04T23:04:57 | 2017-12-11T03:11:54 | C++ | UTF-8 | Python | false | false | 364 | py | import win32ui
name = "Tribal Wars 2 (1.66)" #just an example of a window I had open at the time
w = win32ui.FindWindow( None, name )
t1 = time.time()
count = 0
while count < 1000:
dc = w.GetWindowDC()
dc.GetPixel(1,1)
dc.DeleteDC()
count +=1
t2 = time.time()
tf = t2-t1
it_per_sec = int(count/tf)
print ... | [
"jedson_gabriel@hotmail.com"
] | jedson_gabriel@hotmail.com |
ed6d85d5c549b82c6b2d6991ffb75c0ca4929d9b | 6cb1b63846e818255945cdf1e8faf4f3e353c735 | /venv/datafountain/guangfudianzhan/tensor_forest.py | ec556138745ab05ce6912bb9f3de3796e550ba80 | [] | no_license | LuckyHandsomeCat/deep_learning | 3eb2bec1133f8e547436a8625b40e8bfa8bc7572 | 8c37912069a06a58f80034fe1be7ba5fbc0865d4 | refs/heads/master | 2020-08-08T02:50:10.278517 | 2018-11-30T11:11:34 | 2018-11-30T11:11:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,615 | py | # !/usr/bin/env python3
# -*-coding:utf8 -*-
# @TIME :2018/6/21 下午1:27
# @Author :hwwu
# @File :PricePredictor.py
import numpy as np
import sys
path = '/Users/liyangyang/PycharmProjects/mypy/venv/datafountain/guangfudianzhan/'
sys.path.append(path)
import read_data
dis = [1, 190, 379, 567, 755, 940, 1123,... | [
"wuhongwei@videopls.com"
] | wuhongwei@videopls.com |
b5ad6bd34ba4c41275c12176798a9ccc96c3d0a1 | b61eec74a5adbe066813281d351b09412aa2b464 | /get_ipaddress.py | 37fdc02396d81534befd077ada0dc178ce8d792a | [] | no_license | aarongo/Cheetah | 3bbc5013e9f31e74687b9a3438ce6a61faf8ddf4 | 5037005b97721c38ebd162469d6952575bbe8228 | refs/heads/master | 2020-12-24T06:58:24.269802 | 2016-08-15T08:02:05 | 2016-08-15T08:02:05 | 49,059,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | #!/usr/bin/env python
# _*_coding:utf-8_*_
# Author: "Edward.Liu"
# Author-Email: lonnyliu@126.com
import socket
import fcntl
import struct
def get_ip_address(ifname):#网卡名称
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
return socket.inet_ntoa(fcntl.ioctl(
s.fileno(),
0x8915, # SIOCG... | [
"lonnyliu@126.com"
] | lonnyliu@126.com |
786c1418cb68abdd4a7357ad6d0e666fa49ece82 | 2ee6babe4b5048c6d256aedf8cb580ce6de0717e | /download_data.py | 252abdf1b7bef5b16ad0afc31a0ded8bc48a3f16 | [] | no_license | fmazzasc/Hypertriton_pPb | 887aa8418f3d64d6dd54cff2730cf7d5a42631eb | 6bd465c6c9f6121ef56037666ba0d33179c78066 | refs/heads/main | 2023-06-26T15:32:56.557100 | 2021-07-23T16:00:59 | 2021-07-23T16:00:59 | 306,633,321 | 0 | 1 | null | 2021-01-10T16:38:27 | 2020-10-23T12:41:21 | Python | UTF-8 | Python | false | false | 2,363 | py | import os
if not os.path.exists("Trees"):
os.makedirs("Trees")
if not os.path.exists("Tables"):
os.makedirs("Tables")
if not os.path.exists("Utils"):
os.makedirs("Utils")
if not os.path.exists("Utils/ProdModels"):
os.makedirs("Utils/ProdModels")
if not os.path.exists("Trees/HyperTrit... | [
"fmazzasc@cern.ch"
] | fmazzasc@cern.ch |
5a0b2c9ad37f0d78fa4e8b821ad6b27da80fa96a | a268e5e948c0a73e8bac90461ce1ee0eb7541537 | /save.py | ce1f5d0dd9612c97669af23346103fa2260eb03b | [] | no_license | edwardhsu/ABCLearningCentre | cd0d3d87a4642a1b0269d64af76afdd709a056df | 43981fd40f80d2124d89ac956a79a10707b43a0a | refs/heads/master | 2021-01-22T09:57:56.115601 | 2017-09-04T08:07:58 | 2017-09-04T08:07:58 | 102,333,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | #!/Python27/python
print "Content-type: text/html\n\n"
success=""
print success
| [
"noreply@github.com"
] | edwardhsu.noreply@github.com |
5a1ef2f0e1986600b235ae08b6cbc9d74b037723 | 8ffe69fc54f874c3767822f1703e1d3d9bab4b5d | /agendamiento1.py | a3488fc5e71d459f4f3b48228b6e981ffcae5fd4 | [] | no_license | D49franco/MateDerecho | 73c68c19644aa510a909676d4ca306ff0cdb378e | 596cfe7a3ffd8f6c3e9cba0310f7656ff7976bf9 | refs/heads/master | 2023-03-22T07:53:50.591136 | 2021-03-16T00:27:53 | 2021-03-16T00:27:53 | 283,233,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,748 | py | from PIL import Image
import ipywidgets as widgets
from ipywidgets import interact, interactive, Layout
from IPython.core.display import HTML, display
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
display(HTML(' <div style="background-color: #023324; "><p>'+
'<br></p> <i... | [
"noreply@github.com"
] | D49franco.noreply@github.com |
52467a8b8d9635a7c3453c8a20bd4fc461aa8926 | 82fce9aae9e855a73f4e92d750e6a8df2ef877a5 | /Lab/venv/lib/python3.8/site-packages/OpenGL/WGL/NV/render_texture_rectangle.py | ae9fe0f7855b1f67327cb2ce2c93ff5b8346eeb8 | [] | no_license | BartoszRudnik/GK | 1294f7708902e867dacd7da591b9f2e741bfe9e5 | 6dc09184a3af07143b9729e42a6f62f13da50128 | refs/heads/main | 2023-02-20T19:02:12.408974 | 2021-01-22T10:51:14 | 2021-01-22T10:51:14 | 307,847,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | '''OpenGL extension NV.render_texture_rectangle
This module customises the behaviour of the
OpenGL.raw.WGL.NV.render_texture_rectangle to provide a more
Python-friendly API
The official definition of this extension is available here:
http://www.opengl.org/registry/specs/NV/render_texture_rectangle.txt
'''
from Open... | [
"rudnik49@gmail.com"
] | rudnik49@gmail.com |
f203b9afb3fbfa8052ab67b8d87613d76d93072d | 50008b3b7fb7e14f793e92f5b27bf302112a3cb4 | /recipes/Python/578101_Colours_Inside_Text_Mode_Python/recipe-578101.py | 55b3619897ec204eb351271aa9008f37f361dfe3 | [
"MIT"
] | permissive | betty29/code-1 | db56807e19ac9cfe711b41d475a322c168cfdca6 | d097ca0ad6a6aee2180d32dce6a3322621f655fd | refs/heads/master | 2023-03-14T08:15:47.492844 | 2021-02-24T15:39:59 | 2021-02-24T15:39:59 | 341,878,663 | 0 | 0 | MIT | 2021-02-24T15:40:00 | 2021-02-24T11:31:15 | Python | UTF-8 | Python | false | false | 4,500 | py | # Colours.py
#
# This DEMO script prints colours and codes for Linux, Classic AMIGA and Windows Python.
#
# This is Public Domain and you may do with it as you please.
#
# Tested on standard classic AMIGA A1200(HD), E-UAE, Debian Linux, Windows XP and Vista,
# and WinUAE from Python 1.4.0 to 3.3A2.
#
# This shows how t... | [
"betty@qburst.com"
] | betty@qburst.com |
48addabcb59a311514e90f647f9ce60153893ed7 | 2c00381d252d7b99643e30a4127a94875815cf6c | /mysite/settings.py | d9723666a7a95126bdc4d4ad0651d739b0a564a4 | [] | no_license | ivenkat/Dildiya | 50e709b9925ef38cd892aa0a719e6e280c74507b | 9dce83a4457e71aee200ce44a09f6c43e8bc4805 | refs/heads/master | 2022-12-12T14:17:28.491676 | 2018-12-19T04:21:09 | 2018-12-19T04:21:09 | 161,574,189 | 0 | 0 | null | 2022-12-08T01:24:16 | 2018-12-13T02:42:13 | Python | UTF-8 | Python | false | false | 3,957 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# ... | [
"ishwarya@tests-MacBook-Air.local"
] | ishwarya@tests-MacBook-Air.local |
6eedf3d893f18e159a6f3b13443f205f44104b4a | 84263fd1391de079c5447359f1a7cd1abfb47126 | /pythonprog/table_output_comp.py | 8f515455e236736bff6a93c70c3f892ee10c3d21 | [] | no_license | Shilpa-T/Python | b19259b1be17182b1a9f86a42c0dd8134e749304 | 280fc16e9c7c0f38b33c59381457fcbbd42b8ae3 | refs/heads/master | 2020-04-19T00:13:38.706605 | 2019-01-27T18:57:52 | 2019-01-27T18:57:52 | 167,841,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | import pandas as pd
df = pd.read_csv('tableout.txt', sep="\t", header=0)
df_data = pd.DataFrame(df)
print df.head()
print df.shape
#print df.loc[:3,"Delta"]
#print df["Delta"].items()
#print type(df['Delta'].items())
"""
if df.loc[df['Delta'] == str(0)]:
print 'PASS'
else:
print 'FAIL'
"""
| [
"shilpindu@gmail.com"
] | shilpindu@gmail.com |
ce824e4b2589a94215280782b40f74f3a608a99c | 53b1af96dad3e639fe41b6f1c277ca1e9319430f | /crawler/crawler/settings.py | f93b7fe618c7abf214ea7b39d5c8cf207095f260 | [] | no_license | btseytlin/crawler_test_task | 5b9fc1393e99789ecf03da3f38612082d4f605f4 | 40b75c0304dc8438c9654a41121c667f06b54af5 | refs/heads/master | 2021-09-04T12:17:09.410624 | 2018-01-18T15:53:54 | 2018-01-18T15:53:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,091 | py | # -*- coding: utf-8 -*-
import os
# Scrapy settings for crawler project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/lat... | [
"bt@wroom.online"
] | bt@wroom.online |
f260cf4cdc928b6e6d3ef42bb6b3302b8db6a53c | df4d9aba687afa8da5ee84e1f6d0021554730752 | /f4.py | d61cbd394c8fde75035c6d36153a41fa9fa2ce02 | [] | no_license | tom021982/python3 | cd214dd3302991879901de479dafd9cc69c89650 | b42ee1988b4bcc3e177e0114ed3d51b181d45c36 | refs/heads/master | 2020-11-27T08:28:07.890185 | 2019-12-21T03:32:29 | 2019-12-21T03:32:29 | 229,370,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | # To pass keyword variable length arguments
def bikes_make(**kwargs):
if kwargs is not None:
print(kwargs)
bikes_make(GTX='Suzuki', FTZ='Yamaha')
| [
"tom.sana@gmail.com"
] | tom.sana@gmail.com |
4ab70b08fc5063952eccb2ac48c112c4fc17c0f1 | 1eefc1fc19dd4b0ded6eaad75d232450d00e0eba | /bench/py/keyedpq_a.py | a6d2ef8d529725c6a88574d63053436b63bbfda8 | [
"MIT"
] | permissive | pskopnik/apq | 2dbfa3e56c6e5c836b9d38a9e4b6bdf2f83eb44a | 827e722ec604d2f7c050f43748136613c3cd3d70 | refs/heads/master | 2021-07-07T08:32:40.204240 | 2020-02-12T13:33:41 | 2020-02-12T13:33:41 | 237,626,912 | 4 | 1 | MIT | 2021-04-20T19:28:42 | 2020-02-01T14:31:05 | Python | UTF-8 | Python | false | false | 3,634 | py | from dataclasses import dataclass, field
from typing import Any, Dict, Generic, List, Tuple, TypeVar, Union
import heapq
import math
_KT = TypeVar('_KT') # key type
_DT = TypeVar('_DT') # data type
_KT_inner = TypeVar('_KT_inner') # alternative key type for inner definitions
_DT_inner = TypeVar('_DT_inner') # alterna... | [
"paul@skopnik.me"
] | paul@skopnik.me |
b96417229799dc4f96e334adb2943e516bd8ae24 | 23e6ce3153b94f2216a26aff954a3142b6b99cc3 | /panchayat_extract.py | 88042a1343582b99032d97389cc2dd30c2ca0cf7 | [] | no_license | ravibalgi/nrega | 199a26238542ab7f4bdca032a508239a2bc7296e | b137dab3be02d10c22bc9dc4a8ff56f8861ee98f | refs/heads/master | 2020-08-27T03:58:21.252391 | 2013-07-08T00:11:22 | 2013-07-08T00:11:22 | 2,186,773 | 0 | 1 | null | 2013-07-08T00:11:22 | 2011-08-10T18:27:32 | Python | UTF-8 | Python | false | false | 3,423 | py | from BeautifulSoup import BeautifulSoup
import urllib2
from urlparse import urlparse
import MySQLdb #MySQL library
import nregadbconfig
def panchayatExtract(url, year):
data = {}
urlparts = urlparse(url)
host = urlparts.hostname
page = urllib2.urlopen(url)
dir(BeautifulSoup)
soup = BeautifulSo... | [
"ravibalgi@gmail.com"
] | ravibalgi@gmail.com |
b478df5eaf0802fbb67435587ab05a919a09ef64 | 05fc03082078e043142d2de60ee14aadd2014c9e | /heatsource900/Utils/Logger.py | 5fe98ea13bf59d8bf5dfddb4799e03e26ccbe7bb | [] | no_license | stfnhsl/heatsource_version_Boku | cf1e3551a547798a9ba3bb7874b2761e1cad7385 | a8f6b4b90b41e6b531cf5d9b5c020e61c88f5dd0 | refs/heads/master | 2021-01-25T08:42:58.425930 | 2015-01-17T09:33:59 | 2015-01-17T09:33:59 | 27,993,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,523 | py | # Heat Source, Copyright (C) 2000-2014, Oregon Department of Environmental Quality
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any lat... | [
"ic12b067@technikum-wien.at"
] | ic12b067@technikum-wien.at |
abf49d109342c6378ce64a7a7bad76909142507a | 098ee5aa42f93104be293c25e66699e647339d32 | /rl-handson-rlvs21/rl-handson-rlvs21-main/rlvs_hands_on_sb3.py | f4e11458673979b494d26d6e50a2bb1fb0c3abef | [
"MIT"
] | permissive | castorfou/handson_stablebaselines3 | ed07db4244ec541fd6d354ff7e9c875e3dccb90f | cff9224439caf9f27b3459fa22f662d0a692d218 | refs/heads/main | 2023-08-11T23:45:48.596260 | 2021-10-13T12:13:39 | 2021-10-13T12:13:39 | 351,028,607 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 31,430 | py | #!/usr/bin/env python
# coding: utf-8
# # Stable Baselines3 Hands-on Session - RLVS
#
# Github repo: https://github.com/araffin/rl-handson-rlvs21
#
# Stable-Baselines3: https://github.com/DLR-RM/stable-baselines3
#
# Documentation: https://stable-baselines3.readthedocs.io/en/master/
#
# SB3 Contrib: https://github... | [
"guillaume.ramelet@gmail.com"
] | guillaume.ramelet@gmail.com |
f44e841589a4b3b42e1a661a957d6c0af22c4b82 | acd9895390582b1cf709644deb9260e3effb7194 | /microblog/app/views.py | 94b2ce377a833ecf5500cc8e973c4205db7119bf | [] | no_license | jmccormack200/Flask | 07b09d5534a37d46be65c25c9876ba4cfbd89eba | 34f8bfa7a6e06987971123b5b09bc6fc02b36231 | refs/heads/master | 2021-01-01T05:47:05.790857 | 2015-03-16T02:33:36 | 2015-03-16T02:33:36 | 32,293,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,470 | py | from flask import render_template, flash, redirect, session, url_for, request, g
from flask.ext.login import login_user, logout_user, current_user, login_required
from app import app, db, lm, oid, models
from forms import LoginForm
from models import User, Message, ROLE_USER, ROLE_ADMIN
@lm.user_loader
def load_user(i... | [
"mccormack.wgsi@gmail.com"
] | mccormack.wgsi@gmail.com |
0ba9a6ae387be60fb7bfc64cca1af95592c8afdc | 1d682cab3c9444e29da8402d64fe8c15344d6521 | /ml_engine/trainer/task.py | bcfed2ab652db9cbf62dcbe672918ed003aba67f | [] | no_license | carlespoles/DSCI6051-student | 9d63e05514dd62d0c176f83fec161fb169b0fe05 | 146cab522a6a335f94b8e65a5e1acf5ef3eea60f | refs/heads/master | 2021-01-19T06:48:10.914761 | 2018-01-16T23:45:43 | 2018-01-16T23:45:43 | 87,500,722 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,622 | py | from __future__ import print_function
import numpy as np
import pandas as pd
import os
import glob
import pickle
import gzip
import h5py
#import dl_functions
from keras.preprocessing.image import ImageDataGenerator
from keras.models import Sequential, model_from_json
from keras.layers import Dense, Dropout, Activation... | [
"carles.poles@gmail.com"
] | carles.poles@gmail.com |
0de1f10b578a38d3355ba5dbb706cda6b0333422 | 38f2117da647d98404bffe0e74df73a70cfb0417 | /imports2.py | c548af73bf0eab0ca6dd15156352cd9f61d3b817 | [] | no_license | laandreagates/Photobomb-Malware-Analysis-Gateway- | ae1cfef99b334e96dcc292a4b178e5810db671e3 | 83ae089f335213c2e527dfc7d7413dea51842de6 | refs/heads/master | 2020-09-14T04:29:12.183834 | 2019-11-21T00:20:47 | 2019-11-21T00:20:47 | 223,017,619 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,180 | py | import pefile
import os
import json
... | [
"photobombers@photobombers-2a86-wd-login.c.cloudycluster19-den-2254.internal"
] | photobombers@photobombers-2a86-wd-login.c.cloudycluster19-den-2254.internal |
fa8ada0cae4bb97eb172ccff53f4220c9d078288 | 9b87ff811680f2b0c6eb725fcabff3652f81a438 | /app.py | 070407668cd807299217a142a10171ba8ceb9dd6 | [] | no_license | vichus1995/Twitter-Feed | 679db26891209deae08001f660bc632b503e26dd | 1c116c40c96aae0dbbc3a310dd78b6d07b588824 | refs/heads/master | 2022-12-25T04:28:52.509743 | 2020-10-02T14:32:36 | 2020-10-02T14:32:36 | 300,643,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,983 | py | import tweepy
import json
import pyodbc
from decouple import config
api_key = config('api_key')
api_secret =config('api_secret')
access_key = config('access_key')
access_secret = config('access_secret')
server = config('server')
db_name = config('db_name')
user = config('user')
password =config('password')
sql = '''E... | [
"Vishnu.Suresh@gds.ey.com"
] | Vishnu.Suresh@gds.ey.com |
26c6f36e7575a799ab2217c169fad85d7c9c8f89 | fe7fb3e93b88f467034a32cec42c1a706045df69 | /install.py | d93078c1e4fe4330ad861b5068bd3b248a10d71e | [
"MIT"
] | permissive | marek1914/PyTrinamicMicro | dddd007ce108d7b21bc9ceb2f1f8e0aa5f32067d | f6495013e47f9b465410b2f6d06e7f5abe59c426 | refs/heads/master | 2023-04-11T17:18:48.815664 | 2021-04-20T01:53:30 | 2021-04-20T01:53:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,166 | py | '''
Install script to copy the required files in correct structure on the SD card.
Created on 13.10.2020
@author: LK
'''
import argparse
import os
import shutil
import logging
MPY_CROSS = "mpy-cross"
# Initialize install logger
logger = logging.getLogger(__name__)
formatter = logging.Formatter("[%(asctime)s] [%(n... | [
"leonard@kug.is"
] | leonard@kug.is |
3209f33aab748b6e290677e9e4cf1db58c6ce157 | 9067cb717725edab5fd1d78a307a8088ccd91373 | /main.py | 9ecb7cc0e30bdd17f7c84b6b9572c87df9045ead | [] | no_license | ngocson98/Dice-Rolling-Python | 55c8f00d5eb0ed46f7586c7a34fb62c1dc0932fc | 62b3e48c3dc1191129124dd385734a901f1b369f | refs/heads/main | 2023-08-18T03:34:21.537897 | 2021-09-18T13:30:56 | 2021-09-18T13:30:56 | 407,859,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | # import libraries
import tkinter
from PIL import Image, ImageTk
import random
# top-level widget which represents the main window of an application
root = tkinter.Tk()
root.geometry('400x400')
root.title('Roll Dice By SON BK')
# Adding label into the frame
BlankLine = tkinter.Label(root, text="")
BlankLine.pack()
#... | [
"noreply@github.com"
] | ngocson98.noreply@github.com |
0a4ca2a176bc9ea68d88d726b4181f2b11b1ca02 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_208/ch6_2020_03_09_12_38_14_729372.py | dc720271c51080ed003778f9f1ed2ba1e4330096 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | def c_em_f (temp_c):
temp_f=(9*temp_c)/5 + 32
return temp_f
celsius=30
fahrenheit=c_em_f(celsius)
print(fahrenheit) | [
"you@example.com"
] | you@example.com |
23bf1bbacfdbf74877a293f253aeb9eeef25e017 | c469cf283694f4f3506f3aa6b099da429dfdab8b | /Clase9/Ejercicio6.py | d3298feb8c34562744f3ab3e11114405307dd03b | [] | no_license | JuanDa15/Computacion-Grafica | efaa0afe7b2d40fff869d52596001006b2fad82f | b44064b25444f212232bce4ec9114c76b704ffc7 | refs/heads/master | 2021-01-14T05:36:30.751964 | 2020-06-19T06:17:21 | 2020-06-19T06:17:21 | 242,614,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,888 | py | import pygame
from LibreriaGeneral import *
pygame.init()
#----------------------------------------------------
width = 1280
high =920
window = pygame.display.set_mode([width,high])
middle = [width/2,high/2]
end = False
#PRIMERA CARA
a1 = [0,0]
a2 = PolarToCartesian(150,150)
a3 = Traslacion(a2,0,75)
a4 = PolarToCarte... | [
"jdoo1115@gmail.com"
] | jdoo1115@gmail.com |
61f13c7b53128c5b7fb4c0e3f55e360007e6508f | 888df2b6fcdd50442f7f174268617b3f161a3581 | /test_unittest.py | eb11c7b724b73a2283e482ab092d3ecec68f45dd | [] | no_license | onethousandth/MyTest | a85764353c6bf8bd8d39e727245ec55ed7bfc108 | 4397455ac200a7cb0289301e3baa12911ba77729 | refs/heads/master | 2020-12-27T01:16:30.005275 | 2020-04-30T06:28:50 | 2020-04-30T06:28:50 | 237,715,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | # -*- coding:utf-8 -*-
# Copyright (C) AddyXiao <addyxiao@msn.cn>
#
#
#
"A Unit Test Case"
__author__="AddyXiao"
__author_email__="addyxiao@msn.cn"
import test
import unittest
| [
"addyxiao@msn.cn"
] | addyxiao@msn.cn |
1a7c1a00cd1b6f7cbe1d42ea7cd82be6881386ec | ded1371ac9b046096668bc08246154b3cdecc1ee | /ipconfig_all.py | bfb9b5ede983186ed28bae385052e6b3291bb31c | [] | no_license | tkl154t/PythonScript | 80c13d1d55ce01bf402c6cc7787259b11340a5d9 | fcabe4d92619a8e8008f0851e85b6be5472cb15a | refs/heads/master | 2023-07-18T09:12:39.450152 | 2021-09-02T12:27:33 | 2021-09-02T12:27:33 | 402,411,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,881 | py | from tkinter import *
from tkinter import ttk
import subprocess
def ipconfig_dump():
ipconfig = subprocess.check_output('ipconfig /all')
ipconfig = ipconfig.decode()
parse = ipconfig.split('\r\n\r\n')
parse_len = len(parse)
interfaces = []
for i in range(0, parse_len, 2):
line1 = par... | [
"52850191+tkl154t@users.noreply.github.com"
] | 52850191+tkl154t@users.noreply.github.com |
71a9b78dfb41a017f510e227810fec032450109d | c0a8241b569f089c4fcf35fb6bb3069f125fc6b3 | /newFromTemplate.py | b0602ed504e218587141479a6ea0496543622fdb | [] | no_license | muscleorange/NewFromTemplate | bbb0d18041b7231ac9109623573866e1febba6dc | 143adcc32014c21c5048f2e6827add6f1e6bc7b9 | refs/heads/master | 2020-05-17T10:40:09.643522 | 2015-01-25T06:48:08 | 2015-01-25T06:48:08 | 29,805,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,716 | py | import os, codecs,time, sublime, sublime_plugin
PLUGIN_NAME = 'NewFromTemplate'
SYNTAX_KEY = 'syntax'
DEFAULT_SYNTAX_FILE = 'Packages/HTML/HTML.tmLanguage'
class NewFromTemplateCommand(sublime_plugin.TextCommand):
def run(self, edit, ext):
view = sublime.active_window().new_file()
template = get_template_file(ex... | [
"muscleorangee@gmail.com"
] | muscleorangee@gmail.com |
8b1d364b81e74cdb7906ce10f1dbc03a04f5eaae | edae0a1bd47af429019404520410b231b19b0e58 | /iSkiRussiaPython.py | 3273c11ac641e3f94f1eaddfaa59c4da786bfa98 | [] | no_license | akseryanin/iSkiRussia | ff7cdd1552132a6b2dc8637053cf79ea9dfb4711 | cc3b3dd1d9135b8182d086c25e333ea6446f9ad0 | refs/heads/master | 2021-02-08T23:54:58.119683 | 2020-03-01T19:52:58 | 2020-03-01T19:52:58 | 244,213,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,543 | py | from tkinter import *
from random import *
import pyowm
import time
def main():
UserCoordinatX, UserCoordinatY = 55.553236, 37.552202
DataOfSlopeInformation = LoadingAndReturnInformation(UserCoordinatX, UserCoordinatY)
return GetInformationsOfSlopes(DataOfSlopeInformation)
def LoadingAndReturnInformatio... | [
"sasha.seryanin@yandex.ru"
] | sasha.seryanin@yandex.ru |
baab7992de967b7c9b489df34e75c10e9ab1542b | fddba2b7503392c6021f095341789157f6c780a0 | /Python/Server.py | 8a7feb0e670cc4c94659030bff745f87dcd8d8e1 | [
"MIT"
] | permissive | NameOfTheDragon/AlpacaDiscoveryTests | 75b8c6f5db243b97c051cdc884f7bcb76a8b0863 | a2a88904a4d39d2caa1eaa8f62958646d402e3c8 | refs/heads/master | 2020-06-25T05:38:33.341205 | 2019-07-27T16:37:47 | 2019-07-27T16:37:47 | 199,218,557 | 0 | 0 | null | 2019-07-27T22:23:11 | 2019-07-27T22:23:10 | null | UTF-8 | Python | false | false | 843 | py | # (c) 2019 Daniel Van Noord
# This code is licensed under MIT license (see License.txt for details)
import socket
port = 32227
server_address = ('0.0.0.0', port) #listen for any IP
# Create listening port
# ---------------------
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.setsockopt(socket.SOL_SOCKE... | [
"sg1mash98@gmail.com"
] | sg1mash98@gmail.com |
b9a93b816b8b8e2016cb8fdab5075530c2b480da | a0d55dd96a75c1a25d5bd9186d3dd2347d894559 | /Codigo/CodigoPython/strings.py | cc50274fc344b57fd6581db7d6fb35a502ddfabe | [] | no_license | mayralina/codigo-py | 8aae34fed4d0b22019fb01401814799b19c11c83 | 50873e5cbc1499da49e124a714a651303db8c272 | refs/heads/master | 2020-06-17T19:28:33.747659 | 2019-07-09T18:39:32 | 2019-07-09T18:39:32 | 196,024,949 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | #Strings in python are sorrounded by either single pr double quotation mark
#lets look at strings formatting ans some strings methods
name="mayra"
age= 21
#concatenate
print("hello, my name is "+ name +"and i am" + str(age))
| [
"labsol@nn2.innovalabsnet.net"
] | labsol@nn2.innovalabsnet.net |
2385ade9d5aff56bcda4a9d86529284527f04d7c | ab574f7511fa15e5ea50a26f26e3e38f7e33505a | /win_2020/scipy/special/_comb.py | fb308e79f6f70645350cc38ce4c8bda455fa2b22 | [] | no_license | zclongpop123/maya_python_packages | 49d6b340512a2580bc8c14ae6281ca3f57017acd | 4dd4a48c41749443ac16053d20aec04e9d2db202 | refs/heads/master | 2021-11-30T01:49:41.846727 | 2021-11-17T01:47:08 | 2021-11-17T01:47:08 | 49,186,909 | 16 | 9 | null | 2017-03-07T00:13:41 | 2016-01-07T06:48:35 | Python | UTF-8 | Python | false | false | 282 | py | def __bootstrap__():
global __bootstrap__, __loader__, __file__
import sys, pkg_resources, imp
__file__ = pkg_resources.resource_filename(__name__, '_comb.pyd')
__loader__ = None; del __bootstrap__, __loader__
imp.load_dynamic(__name__,__file__)
__bootstrap__()
| [
"aton.lerin@gmail.com"
] | aton.lerin@gmail.com |
de6799d97f3c6035e63beaff2a43d8298e3b022f | 448f020afcaf0bb8702860bef37162167474c145 | /Algorithm/Lesson5/Task5.1.1.py | 77ddcd4ec9a90f67452ff3a16386a5c887d6a464 | [] | no_license | Crasti/Homework | ce36c0a5754da3dc03a882798f02c09a1d72337c | 7cbd1c0d9fa25eb8b4ea28d493c54aee2b0ee747 | refs/heads/master | 2020-08-12T17:09:22.896324 | 2020-02-09T12:27:58 | 2020-02-09T12:27:58 | 214,806,346 | 0 | 0 | null | 2020-02-19T12:41:45 | 2019-10-13T11:15:04 | TSQL | UTF-8 | Python | false | false | 2,331 | py | """Пользователь вводит данные о количестве предприятий, их наименования и прибыль за 4 квартала (т.е. 4 отдельных
числа) для каждого предприятия.. Программа должна определить среднюю прибыль (за год для всех предприятий) и вывести
наименования предприятий, чья прибыль выше среднего и отдельно вывести наименования предп... | [
"c_crasti@rambler.ru"
] | c_crasti@rambler.ru |
6ac42ec8dce5222f5bcadf4c3cbc4d0b828b4558 | 6f1df1ea68b6dfa02590b1b3baab4ecbabd33326 | /Lambdas/analyzeFace.py | 522f10e1f4b8e86601f94c4abde3036e4acd200c | [] | no_license | pelincetin/Facial-Recognition-SmartDoor | 5691611bebc684a7a335d3400949b46185236552 | bfaf8c991b848ab78af2efd5798b3e691ae85411 | refs/heads/main | 2023-03-03T17:50:36.629523 | 2021-02-14T21:43:41 | 2021-02-14T21:43:41 | 322,814,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,765 | py | import os
### AWS:
import boto3
from boto3.dynamodb.conditions import Key
import json
import base64
import random
import datetime
import time
import cv2
import numpy as np
AUTHORIZED_IMAGE_BUCKET = "b1-photos-visitors"
UNAUTHORIZED_IMAGE_BUCKET = "unauthorized-visitors"
FRONTEND_BUCKET = "coms6998-hw2-frontend"
AD... | [
"pc2807@barnard.edu"
] | pc2807@barnard.edu |
09a2e5bbd38e0b2fedf793682e84c829721999b1 | a272ce73325eb141c8956de5a11bb96850b3145b | /day07/day07.py | 034fedba86f3fa944d77b616c7e250dc43e6f6b2 | [] | no_license | jancaaa/advent-of-code2020 | 9807e3d871c63eb501c93247a2d8c5c9a915821f | 13d4517961bfd59613a15e91f59b39c702bcbe78 | refs/heads/master | 2023-02-05T09:00:24.123442 | 2020-12-24T13:45:31 | 2020-12-24T13:45:31 | 318,792,566 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,038 | py | def read_file(file) -> dict:
with open(file) as fp:
line = fp.readline().rstrip()
rules = {}
while line:
bag, content = process_line(line)
rules[bag] = content
line = fp.readline().rstrip()
return rules
def process_line(line: str) -> dict:
line =... | [
"janca.zahradnickova@gmail.com"
] | janca.zahradnickova@gmail.com |
de224c21cd7809746c3c0bc0b4c7f5270e92575a | c1189ae95dc254b16a1adc6ea41bfc7b91ba6e49 | /Plain/datasets/cifar100.py | 31168f0855b356a5f8cea547b09ee354d0db7f24 | [] | no_license | tualgfhite/adversarial-contrastive-learning | ee892f6bff6ad28e60eed2780b91d8d8e90065f5 | 7c977570d3cb9cc9d4bf3ae7311c8a2a3609a8e2 | refs/heads/main | 2023-06-10T00:44:42.573158 | 2021-07-01T06:07:23 | 2021-07-01T06:07:23 | 381,352,128 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942 | py | from __future__ import print_function
from PIL import Image
import torchvision.datasets as datasets
import torch.utils.data as data
class CIFAR100Instance(datasets.CIFAR100):
"""CIFAR10Instance Dataset.
"""
def __getitem__(self, index):
if self.train:
img, target = self.data[index], sel... | [
"420367843@qq.com"
] | 420367843@qq.com |
2052d499d056d97f3c9520c6b4cfc144c740a151 | 48475d7a3599e542adcab313f275a77aae211985 | /ex16.py | 4b4d004128e6da94d1a63887e1a19194098133f6 | [] | no_license | katylouise/python_the_hard_way | 9eb8c4ca5788c49902e95a6ec711f7968ebd24e5 | 2e5a52b21f0e652ba937d844f702b2cca6676dda | refs/heads/master | 2021-01-21T06:55:21.418864 | 2015-01-18T17:04:10 | 2015-01-18T17:04:10 | 27,346,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | #import argv from sys module
from sys import argv
#variables to use
script, filename = argv
#print three lines - first one uses the filename given above.
print "We're going to erase %r." % filename
print "If you don't want that, hit CTRL-C (^C)."
print "If you do want that, hit RETURN."
#prompt user for input using ... | [
"rklappleyard@gmail.com"
] | rklappleyard@gmail.com |
671a0ab812fb1c9980409afac2d6be2ca1345a4a | d2edafd56e3f407d0a04a7081ba48c1b0f0b8be4 | /lesson4/sensing/serializers.py | 965c461a663f71bf197fc1cf15ee400ea0c2dc9a | [] | no_license | kevinwlu/iot | 65ef29a0e14bb7314100c2f0262dba5ee37b278d | 10e705a46a5ee37106c798d452a5838f09f81c98 | refs/heads/master | 2023-08-18T13:56:24.427109 | 2023-08-17T01:10:10 | 2023-08-17T01:10:10 | 49,343,710 | 164 | 121 | null | 2022-03-26T00:24:46 | 2016-01-09T22:21:30 | Python | UTF-8 | Python | false | false | 341 | py | from myapp.models import Room, Door
from rest_framework import serializers
class RoomSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Room
fields = ('url', 'name')
class DoorSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Door
fiel... | [
"kevin.wen.lu@gmail.com"
] | kevin.wen.lu@gmail.com |
7b8faf926277ef68c8b530b2733c0d1e1c1305af | 09e2744e5efeac07eaa9f42b91410f95299cff58 | /model/operation.py | d9b518f73b431ab886cc15ad19fa00b13126d36b | [] | no_license | adajw/ConcurrenTree | 41cbc677ed8015eb2ea2130125c25278d3aa9594 | cfc24a62c33311b282f557d31e556d215a0b4ccd | refs/heads/master | 2020-04-08T19:38:22.317203 | 2011-10-20T18:46:19 | 2011-10-20T18:46:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,046 | py | from ConcurrenTree.model import ModelBase
import ConcurrenTree.util.hasher as hasher
import instruction
from address import Address
from copy import deepcopy
import traceback
import json
class Operation(ModelBase):
''' A collection of instructions '''
def __init__(self, instructions = [], protostring = None):
'''... | [
"campadrenalin@gmail.com"
] | campadrenalin@gmail.com |
f238135fc35efb42936bcb5fb5837ba83494fe7b | 0d87d119aa8aa2cc4d486f49b553116b9650da50 | /autom4te.cache/test/functional/p2p_timeouts.py | b87f48266e53f8ad1a0ba5ea15fe0d11d5b0ef5d | [
"MIT"
] | permissive | KingricharVD/Nests | af330cad884745cc68feb460d8b5547d3182e169 | 7b2ff6d27ccf19c94028973b7da20bdadef134a7 | refs/heads/main | 2023-07-07T12:21:09.232244 | 2021-08-05T01:25:23 | 2021-08-05T01:25:23 | 386,196,221 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,325 | py | #!/usr/bin/env python3
# Copyright (c) 2016-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test various net timeouts.
- Create three nesteggd nodes:
no_verack_node - we never send a verack... | [
"northerncommunity1@gmail.com"
] | northerncommunity1@gmail.com |
8dda537fcc70bd1cde6b546857d802fec8b22277 | 4000abb325ae6010ffe337cc3e549f5942522503 | /venv/lib/python3.6/codecs.py | ad6d31748cc6adaa0893204a0f91c28a60c62bcd | [] | no_license | ehowing/sc_project | a658a5bc619c39e401fd4956d931f39cd23c78b8 | 28ad709dc450930dd73af3fdeda62a064371fd5f | refs/heads/master | 2021-09-10T03:05:02.080233 | 2018-03-20T20:50:25 | 2018-03-20T20:50:25 | 126,080,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | /Users/emilyhowing/anaconda3/lib/python3.6/codecs.py | [
"emilyhowing@Emilys-MacBook-Pro-4.local"
] | emilyhowing@Emilys-MacBook-Pro-4.local |
91def3dcff22a5ae4e404dc17a35acd1e8d93b79 | 95fd32efd9d1795beb7d4294a98858107fbd43d1 | /products/migrations/0001_initial.py | e20f9bd2fbd62797d4a24f9098d0d1fcd92c9d3b | [] | no_license | Atilaus/healthy | 4203e13e65b24a904866cbf072b3362747ea4e06 | b9058431e6f7038e233970fa6b1b86a33c727c6d | refs/heads/master | 2020-07-04T19:27:57.497267 | 2019-08-23T18:47:43 | 2019-08-23T18:47:43 | 202,388,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,721 | py | # Generated by Django 2.2.2 on 2019-06-22 17:23
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
... | [
"atilaus@mail.ru"
] | atilaus@mail.ru |
8507be53f6de42ca6bd8aa10d87e80d87a4720e3 | 004592a9136cc33abdbfa6351ae5ba0315c31183 | /Using_in_as_a_logical_operator.py | d42edabe682e7a7ca63b47dc5f1aa7b2ce880c88 | [] | no_license | timlefkowitz/python | c9e9ae6c476a9d3a3ef84f9571662ce21d173870 | ad7273af1905b4bb3c96d809c16991d50398b33e | refs/heads/master | 2023-07-26T18:44:45.543732 | 2021-09-09T23:39:47 | 2021-09-09T23:39:47 | 293,598,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | #Using_in_as_a_logical_operator
fruit = 'banana'
'n' in fruit
'n' in fruit
'nan' in fruit
if 'a' in fruit :
print('Found it!')
| [
"timsphotography@gmail.com"
] | timsphotography@gmail.com |
a463f071d665f03508ace4e365e5f587e5e22f39 | 3e70eda6819fec5bf5ba2299573b333a3a610131 | /mole/tools/protocol_test/send_package.py | 6839a91ecc4707f8f38f98bb00e91c7abfe1a7b3 | [] | no_license | dawnbreaks/taomee | cdd4f9cecaf659d134d207ae8c9dd2247bef97a1 | f21b3633680456b09a40036d919bf9f58c9cd6d7 | refs/heads/master | 2021-01-17T10:45:31.240038 | 2013-03-14T08:10:27 | 2013-03-14T08:10:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,381 | py | #! /usr/bin/env python
from xml.dom import minidom
import protocol
import string
import struct
import time
import thread
import mypub
#global len_param #store
global cmd_idss # store cmds' ids
global intervals # store intervals
global login_userid # user id for logining to server
global login_passwd # passwd
cla... | [
"smyang.ustc@gmail.com"
] | smyang.ustc@gmail.com |
a5626232faa079360174e66800da7008e072877e | 3d7fe86a8c2d3cb5212e9ab8f2fa2927e5974bdd | /build/update_src.py | 48a9fa9fbd3ecfc271bba10885cedae8bb130cfb | [] | no_license | telliott99/covid | 3b829e6a767fc16d2741de01ac02fea766895e3c | f79f55fc815af3237df8856c2eb7c2e5ee733d4a | refs/heads/master | 2022-11-29T23:16:02.054703 | 2020-08-06T22:52:18 | 2020-08-06T22:52:18 | 259,958,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,365 | py | import sys, os, subprocess
base = os.environ.get('covid_base')
if not base in sys.path:
sys.path.insert(0,base)
sys.path.insert(1,base + '/myutil')
import uinit, udates
import udb, ufile, ukeys, ufmt
def run(src):
#-------------------------------
# older source files are in subdirectories
# ... | [
"telliott999@gmail.com"
] | telliott999@gmail.com |
2fa3f9a40f5137022ef36d140602f610415aee95 | 4b7cd627abf72de828ed9a8ce1dc0f27443cc266 | /migrations/versions/4f1f829191d2_posts_table.py | 433a963cd5d12a37832ee49eac0618cdca40afc7 | [] | no_license | PlutoniumProphet/microblog | 8c23df57f75def21020ad0b09495fdd47b95001c | 1f43996c6a6da59277c33aa37ea92966adf1e84d | refs/heads/master | 2023-08-04T13:37:51.056247 | 2023-05-22T15:13:55 | 2023-05-22T15:13:55 | 202,483,280 | 1 | 1 | null | 2023-07-25T20:47:25 | 2019-08-15T06:04:11 | Python | UTF-8 | Python | false | false | 1,057 | py | """posts table
Revision ID: 4f1f829191d2
Revises: 4592a152f0ec
Create Date: 2019-10-18 17:54:28.565831
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '4f1f829191d2'
down_revision = '4592a152f0ec'
branch_labels = None
depends_on = None
def upgrade():
# ##... | [
"grahamkesley@gmail.com"
] | grahamkesley@gmail.com |
8a92cbb2d45735320e977801ecbb10f820360c3a | 091cc684740bc76932352d230db4a08bf011b7ec | /leetcode/two_sum.py | 9d4a1928369cce2e8433530f1acbd921897f887e | [] | no_license | dm36/interview-practice | 5232601d8de23e80557b3e2a96ff9d3589017052 | 612966ea0a813faaabd5dca98ce6dd524b8b4cef | refs/heads/master | 2022-02-14T00:46:20.395743 | 2019-07-19T19:47:34 | 2019-07-19T19:47:34 | 197,820,260 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | # iterate through each element in the array
# check if target - the present element exists in the hash map
# if it does- you've found your two sum! return the index of the present element and the previously hashed index
# if it doesn't- hash the element to its index
def two_sum(arr, target):
hash = {}
for i in ... | [
"dhruv.madhawk@gmail.com"
] | dhruv.madhawk@gmail.com |
54d15a5b1b43f64e685001c5cfda847f37ff16f1 | 85eec28ac8c021d9af9a92d42f5edbcd3301a568 | /src/demo.py | f6395d110038e40d3f98a716af2118f6bbc1684a | [] | no_license | oscar86hsu/docker_multiarch_demo | 1182ee15b6d5414ffa6f610e2cf04f9b2930b2ca | c6544d2b223c8899e54c1a2b4a1a33cebc674a48 | refs/heads/master | 2020-12-15T20:11:59.295746 | 2020-01-21T07:47:42 | 2020-01-21T07:47:42 | 235,240,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | import os
print("This is a " + os.uname().machine + " Machine!\n") | [
"oscar86hsu@gmail.com"
] | oscar86hsu@gmail.com |
e9d98b45c3fb60b3811bb26bf569e6581f048af5 | 0b48df8282c134296c4131396340cb7f03e46550 | /manage.py | e64f448a2fec2ba7f0c46e6f81ff29c9f64f0ace | [] | no_license | acaciawater/gwt_auth | 368dc21fd1e9358d6a38061305fb161306e4b1c0 | 2cea9d77ef195f159fe23192cef36144923b6b95 | refs/heads/master | 2020-04-05T05:33:25.907621 | 2019-01-24T11:47:00 | 2019-01-24T11:47:00 | 156,600,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'gwtauth.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are ... | [
"theo@acacia.local"
] | theo@acacia.local |
121e638cba278814f30a3ea98f2ac5de450572a9 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/rsu_dto.py | 1ee02d2ae08d164d310b61729037617197699be9 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 20,723 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class RsuDTO:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
cd635e7fde615822a500a7628367f65fe55fcd13 | e673f2fcaa0c9d9dcff45cf0abd1660154cbf9fe | /이것이코딩테스트다/chapter06_정렬/04_두_배열의_원소교체/exam/6-12.py | 62a2fed0e3b758676e96f078b2a843a9ff48ee58 | [] | no_license | seohae2/python_algorithm_day | 87e513426c9d89a4f250aa536fc45dbadd88eb5d | 9f7995c6ca3781859e0ff05d45ced7b0ccdae4c2 | refs/heads/master | 2023-03-14T02:43:47.013763 | 2021-03-02T08:28:01 | 2021-03-02T08:28:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | n, k = map(int, input().split())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
a.sort()
b.sort(reverse=True)
for i in range(k):
if a[i] < b[i]:
a[i], b[i] = b[i], a[i]
else:
break
print(sum(a))
| [
"seohae0406@gmail.com"
] | seohae0406@gmail.com |
73810706602a48349c930693d1738574e9c9f5ab | 607e788bdc45684de30a04ab0025c0a2155cc192 | /ipmi.py | d02b198d2ef23dac635fc53652fd2aaf52616d9e | [] | no_license | jenovasephiroth/python | 2a04e8103ddf131a986cc3512463c891b6d09af4 | 8920db29baebabca4301af5af11ef18a35535275 | refs/heads/master | 2020-12-07T03:56:50.479141 | 2018-01-02T01:47:22 | 2018-01-02T01:47:22 | 68,796,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,824 | py | #!/bin/env python
#coding=utf-8
import json
import commands,time
from flask import abort
from flask import Flask
from flask import request
app = Flask(__name__)
def authinfo(post_data):
if not post_data.has_key('host'):
return json.dumps("You need to provide host.")
elif not post_data.has_key('user'):... | [
"noreply@github.com"
] | jenovasephiroth.noreply@github.com |
0e76f5b7e1bce205064a97e4dfe6ac23081a9c5e | f3b233e5053e28fa95c549017bd75a30456eb50c | /ptp1b_input/L76/76-66_wat_20Abox/set_5.py | 9a7fa059848ab96d10053cfa581c6019abfcee52 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | import os
dir = '/mnt/scratch/songlin3/run/ptp1b/L76/wat_20Abox/ti_one-step/76_66/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_5.in'
temp_pbs = filesdir + 'temp_5.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in lamb... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
217349a2689d210260ece6f542b88352d0771f78 | 4fb1132d9472e663a32095aeac480987e3688aff | /lesson_4/task_4.2.py | c297d5c472e494e00660455695644feb89a86bd9 | [] | no_license | alrexo/itea_python_adv | 70bb3f59bba434da9d06aa5f11b36faa2c71009b | 10de8246f8f01bee8be84201e2148ecf23587e65 | refs/heads/master | 2022-12-14T05:31:34.204751 | 2018-12-05T21:37:16 | 2018-12-05T21:37:16 | 152,499,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,801 | py | from abc import ABC, abstractmethod
class ValidationError(AssertionError):
pass
class NumberBaseContext(ABC):
@abstractmethod
def __init__(self, **kwargs):
pass
@abstractmethod
def validate(self, value):
pass
@abstractmethod
def __getattr__(self, item):
pass
... | [
"lekskeks@yahoo.de"
] | lekskeks@yahoo.de |
eca1497d1126c404237da5f7a818203d6edaf519 | 9bf4d08c786de8c1bd2a737aa4d8cdcd7ff02c42 | /minecraftcodex/database/migrations/0004_auto__add_jarfile.py | f2f1e16e4c708a6ee8c3a5d371e06807a1aa4216 | [] | no_license | fmartingr/minecraftcodex | 3e7d626b4c70bb80796de7b5714b33311c3c5949 | 94d51dac790a30d16d9cd4198bfd514c2242db2e | refs/heads/master | 2020-04-06T07:13:18.043455 | 2013-09-17T14:13:49 | 2013-09-17T14:13:49 | 12,439,100 | 0 | 0 | null | 2019-03-06T09:04:58 | 2013-08-28T16:41:38 | CSS | UTF-8 | Python | false | false | 2,437 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'JarFile'
db.create_table(u'database_jarfile', (
(u'id', self.gf('django.db.model... | [
"fmartin@bytepix.com"
] | fmartin@bytepix.com |
43df39f468035492466b6495a11e168aee5b6eac | eaf921d22d1d42d70b5f49d8f97f42e27ad5c16f | /Chap01/Liste/dico_param.py | e4005fcda7d0121daa7eab24dfb31e5bd1debe77 | [] | no_license | atastet/Python_openclassroom | 0f3ff87c44527edde4722a311bf3bbece123edfd | 37992f3eb8937b7480aedbbd83152451eaa8c6b8 | refs/heads/master | 2020-03-19T13:48:26.439159 | 2019-01-30T20:25:30 | 2019-01-30T20:25:30 | 136,595,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | #!/usr/bin/python3.4
# -*-coding:Utf-8
def fonction_inconnue(*en_liste, **en_dico):
print("J'ai reçu : {} en param et {} en param nommés".format(en_liste, en_dico))
fonction_inconnue(1, 2, 3, Zizou = "Goal", Barthez = "Arret")
| [
"anthonytastet@macbook-pro-de-myriam-2.home"
] | anthonytastet@macbook-pro-de-myriam-2.home |
a6c6cd826787dbeadae49c7e749dae1d3b6a816e | a0c838b8ed5e5549edb6cebc46b1160d2bc6c6f7 | /jupyter_execute/stubs/qiskit.circuit.library.PolynomialPauliRotations.draw.py | 23a9d1eb1877428e3812792a69dd62d10a1dd459 | [] | no_license | NatchapolColab/qiskit-translations | 2afd7d2a2b70ded45675a837935c1126eb7e701d | 63c7b13ee4ed2d31bded0b6dcba875371b18f6e8 | refs/heads/main | 2023-08-27T14:58:20.017314 | 2021-11-09T19:35:41 | 2021-11-09T19:35:41 | 427,694,754 | 0 | 0 | null | 2021-11-13T14:58:46 | 2021-11-13T14:58:46 | null | UTF-8 | Python | false | false | 334 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
from qiskit import QuantumRegister, ClassicalRegister, QuantumCircuit
from qiskit.tools.visualization import circuit_drawer
q = QuantumRegister(1)
c = ClassicalRegister(1)
qc = QuantumCircuit(q, c)
qc.h(q)
qc.measure(q, c)
qc.draw(output='mpl', style={'backgroundcolor':... | [
"soolu.elto@gmail.com"
] | soolu.elto@gmail.com |
041a250546f744135c6f4d088881c3db2b965d8d | 255a2a56f8e14a23b33827147080e758184509dc | /using_csv_module.py | 8934755746ed749d55f09098bb620f94f8add8e1 | [] | no_license | catlaughing/Data-Wrangling-with-Python | d8a2455557a9b8821570c2348890111da7ffd5d5 | 2e5e1f8fb8f42fa76af2269e9c204948f4dd2904 | refs/heads/master | 2020-04-14T10:02:51.472897 | 2019-01-02T00:25:23 | 2019-01-02T00:25:23 | 163,776,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,443 | py | #!/usr/bin/env python
"""
Your task is to process the supplied file and use the csv module to extract data from it.
The data comes from NREL (National Renewable Energy Laboratory) website. Each file
contains information from one meteorological station, in particular - about amount of
solar and wind energy for each hour... | [
"shadieqcool@gmail.com"
] | shadieqcool@gmail.com |
32ce329cb064312e79c1a68a67a632992fb41fd8 | 5d30adb04a89e227412af50ed3a8bdb614bf33b5 | /project_app/migrations/0020_auto_20181108_1133.py | ee8a8079a16f29c3b795e8ffa50bc7fabb65fb9c | [] | no_license | bladejun/IHAQ | 13c8cffc6fd9c6e1eb8ba8412f055df22f477567 | f04707d30ea88abb4f8acab89046298f8d848b76 | refs/heads/master | 2020-04-10T01:25:19.355786 | 2018-12-06T18:36:46 | 2018-12-06T18:36:46 | 160,715,410 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | # Generated by Django 2.0.1 on 2018-11-08 02:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('project_app', '0019_auto_20181108_1131'),
]
operations = [
migrations.RenameField(
model_name='classnode',
old_name=... | [
"yyj940@naver.com"
] | yyj940@naver.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.