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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
572253b9a187470080137315d72e1e91c8ee594b | a30cb7c68459b10d21cb91d00745a3e05ebb6c41 | /pygame/08_sprites.py | 53d8da65846927cf1a84bf9898368071bd15e381 | [] | no_license | LyceeClosMaire/FormationBiblio | 2f5172214da2be3868003df8e197a02098d69317 | 8cd14f6add80f00bd34e3c1de934ef2400a9d152 | refs/heads/master | 2021-01-19T09:49:35.217001 | 2017-05-24T13:37:28 | 2017-05-24T13:37:28 | 87,790,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,270 | py | import pygame
from pygame.locals import *
# les définitions de classes sont introduites par le mot clé class
# puis le nom de la classe, puis entre parenthèses la classe dont elle hérite
class Ball(pygame.sprite.Sprite):
# la méthode __init__ (avec des doubles tirets bas des deux côtés) est très
# im... | [
"chaddai.fouche@gmail.com"
] | chaddai.fouche@gmail.com |
6bfd23840261bb11b4ad1cbe4485024aaf39ee33 | caa34a2291ecadb8daa5ff147565d284f41b26ca | /spring1718_assignment2_v2/learn_keras.py | 05d03821429cd8e8da1b9f85292bd464ab87476c | [] | no_license | shuyanzhu/leran_cs231n | c287446efa1e2c9724c3316d82ea03297dd26089 | 210c1f7ec9622d5bbcf9f12b5bab06fc8ffeea98 | refs/heads/master | 2020-04-16T18:26:24.052223 | 2019-02-26T06:16:12 | 2019-02-26T06:16:12 | 164,188,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,678 | py | import numpy as np
import tensorflow as tf
# 加载数据
def load_cifar10():
cifar10 = tf.keras.datasets.cifar10.load_data()
(X_train, y_train), (X_test, y_test) = cifar10
X_train = X_train.astype(np.float32)
y_train = y_train.astype(np.int32).flatten()
X_test = X_test.astype(np.float32)
y_test = y_tes... | [
"1294206499@qq.com"
] | 1294206499@qq.com |
d6ed4c471e16de0dbe3a1f1b89a719fd27fbf993 | f5b0d6cca8caadb34da340592514154fd711bca5 | /archive/Front-end/moments.py | fcaa4aec0fef16e6b3f1f36af92b05ec1bb49b31 | [] | no_license | DmitryBol/reel | 3e66eed5b18c3e26b147c0e8baa8e9043b3b26ea | e08de8ed4be222c2369d8b7579509fa5ccd3df07 | refs/heads/master | 2021-06-07T10:32:50.473918 | 2020-02-04T17:08:26 | 2020-02-04T17:08:26 | 130,555,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,649 | py |
# xi - random variable, equals payment for combination
# eta - random variable, equals the number of freespins given for combination
# zeta - random variable, equals payment for freespin
def Exi2(self, width, lines):
s = 0
for str_with_count in self.simple_num_comb:
string = str_with_count[0]
... | [
"sadontsfath@gmail.com"
] | sadontsfath@gmail.com |
a69149ec8b9dd6535e90898b9807d97f229a412f | 3b46e9f7e2fef169589f336f09f00a9294cb3b04 | /test/core/test_drop.py | 72e7efc40fd48127ce67ee9e678a8d3cf8b19500 | [] | no_license | Vayana/sumpter | 79128ac2bcb4fe6cd05435e9e80e4ad6cb8ba28b | f18d7c5c3f8d32a2ae8abf58a70a31614bdc2e39 | refs/heads/master | 2020-12-25T18:16:33.833216 | 2016-09-15T10:44:18 | 2016-09-15T10:44:18 | 467,042 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,576 | py | #############################################################################
# Copyright 2010 Dhananjay Nene
#
# 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... | [
"nkhalasi@vayana.in"
] | nkhalasi@vayana.in |
2e5daa13e1b08a262d40a179079d7d11029e9af2 | 5a0d6fff86846117420a776e19ca79649d1748e1 | /rllib_exercises/serving/do_rollouts.py | d2dff98d01aa7e23c66a2e98eb958ee472389934 | [] | no_license | ray-project/tutorial | d823bafa579fca7eeb3050b0a13c01a542b6994e | 08f4f01fc3e918c997c971f7b2421551f054c851 | refs/heads/master | 2023-08-29T08:46:38.473513 | 2022-03-21T20:43:22 | 2022-03-21T20:43:22 | 89,322,668 | 838 | 247 | null | 2022-03-21T20:43:22 | 2017-04-25T05:55:26 | Jupyter Notebook | UTF-8 | Python | false | false | 1,596 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import json
import argparse
import gym
from ray.rllib.utils.policy_client import PolicyClient
parser = argparse.ArgumentParser()
parser.add_argument(
"--no-train", action="store_true", help="Whether to di... | [
"noreply@github.com"
] | noreply@github.com |
e9806015f09ccc031ad62365dc83e32b6cc6f466 | 1923a90cc154450343ed650085f2ee97ddca9181 | /env/bin/django-admin | c972bbc6f98452dd8790ec25fd08d1b23049c102 | [] | no_license | Demieno/django-gulp-docker-ansible | 230c95a107a5e28b8ed55f2f0d26d8075df130ec | f2e2f74f70c32c02f65a702033042c540bac938a | refs/heads/master | 2020-03-07T18:06:59.295552 | 2018-04-01T12:58:01 | 2018-04-01T12:58:01 | 127,628,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | #!/var/idpowers/redcross/env/bin/python3.5
# -*- 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())
| [
"demienokam@gmail.com"
] | demienokam@gmail.com | |
c8e7deb719db05703d93fe764028941e8baac0db | 25768f25147068914d7a88db6765411e33a9f708 | /django_itchat-master/wechat/app/views_bak.py | 02461fd22dc2129827659afb23ab1ed59a21adf4 | [] | no_license | QzeroQ/python | d00739ca4630b2e84c65d726c9e0ad09a60f8a83 | 23e7fd4b3867bcced17febfadaf6094965707420 | refs/heads/master | 2022-04-15T11:15:53.468501 | 2020-03-26T16:24:21 | 2020-03-26T16:24:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,542 | py | from django.http import JsonResponse
from django.shortcuts import render, redirect
from django.urls import reverse
from wxpy import *
import uuid
from wechat.settings import BASE_DIR, MEDIA_ROOT
import os, time, base64, json, random
from .models import *
from django.contrib.auth.models import User as uuu
from django.co... | [
"1223609881@qq.com"
] | 1223609881@qq.com |
28e8929dcdb43772a641cbd6eb02bb3d55f91533 | 1d83e050df3bbdabba07c7b65eca312ebe080f7c | /src/.ipynb_checkpoints/compress-checkpoint.py | 534cd7b53bf9eff30bdc0e2b06152df49ff20bd0 | [] | no_license | shamiksharma/dhs2019 | 98211af781d1c86c21ec4b3effae2f7000e3bc57 | 71276da7033a95c3962408ac9e34cb3a7bcff05d | refs/heads/master | 2022-03-06T07:38:11.909717 | 2019-11-22T09:27:01 | 2019-11-22T09:27:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py | import os, logging
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3"
logging.getLogger("tensorflow").setLevel(logging.CRITICAL)
logging.getLogger("tensorflow_hub").setLevel(logging.CRITICAL)
import tensorflow as tf
from tensorflow import lite
from utils import DataGenerator, get_train_data
def compress(saved_model_path, tfli... | [
"apurvagup@gmail.com"
] | apurvagup@gmail.com |
7fff68255bdd4958ff339290d7b266500468f8b9 | 8b6b2eacbfeb97c5ea8b487ea784f296beae1b18 | /td-auth-master/tutordudes/payment/apps.py | a8db0e02d53a92e4ab6b078f7d3f1104a5047861 | [] | no_license | FaizanM2000/Project-Demo-1 | c1ff244d457a2d8243e607dafec74931da0702b7 | e4aa4a0beed58ea7e3bf802beafeae6f6f9e8a6f | refs/heads/main | 2023-08-05T07:12:14.477072 | 2021-09-18T08:06:43 | 2021-09-18T08:06:43 | 403,812,761 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | from django.apps import AppConfig
class PaymentConfig(AppConfig):
name = 'tutordudes.payment'
def ready(self):
try:
import tutordudes.payment.signals # noqa F401
except ImportError:
pass
| [
"53056387+Sebastiangao0219@users.noreply.github.com"
] | 53056387+Sebastiangao0219@users.noreply.github.com |
ab4791fb3dadc7e1bed926e757b5eb84a780446e | 1ab01e3a556e4effd333e6bfb1970c8cd309da40 | /minirank/sofia_ml.py | 75e4e121b82750220ab6074c6d0bc696c52bb227 | [] | no_license | aurora1625/minirank | 19009cf8011091dfb58db0d8595035826f59f3e1 | c5b0ff33053867df7121dc94c2dc463100801421 | refs/heads/master | 2020-12-25T12:42:45.282193 | 2012-12-21T14:47:01 | 2012-12-21T14:47:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py | import sys, tempfile
import numpy as np
from sklearn import datasets
import _sofia_ml
if sys.version_info[0] < 3:
bstring = basestring
else:
bstring = str
def sgd_train(X, y, b, alpha, n_features=None, model='rank', max_iter=100, step_probability=0.5):
"""
Minimizes an expression of the form
... | [
"fabian@fseoane.net"
] | fabian@fseoane.net |
0d6eebcca8341a60b672a11fb77f631f6af68501 | b3203d01b01d8dbb3298fa25a2bc2da3e20b0019 | /enumnamecrawler/valueassigner/increment.py | 39877eb27b520b42aeb7b6f28aa1c7009b0353f9 | [
"MIT"
] | permissive | yinyin/enumnamecrawler | 17acfe45727b697249c8a004972a9076740f5152 | 48e98ff16db91e6e21cbf0641642672ca728f6d0 | refs/heads/master | 2021-03-30T20:23:12.774056 | 2018-03-21T17:04:47 | 2018-03-21T17:04:47 | 125,081,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | # -*- coding: utf-8 -*-
class Incrementer(object):
def __init__(self, base=-1, step=-1, *args, **kwds):
# type: (int, int) -> None
super(Incrementer, self).__init__(*args, **kwds)
if step == 0:
raise ValueError("step value must != 0: %r" % (step, ))
self.base = base
self.step = step
def _compute_base(... | [
"yinyinl@gmail.com"
] | yinyinl@gmail.com |
15701489ab41edd41261b2b31779b163a468529e | 44a2741832c8ca67c8e42c17a82dbe23a283428d | /cmssw/HeavyIonsAnalysis/JetAnalysis/python/jets/akVs3CaloJetSequence_pPb_mix_cff.py | 3d77c27baa5beb48450caf86750981f27c601170 | [] | no_license | yenjie/HIGenerator | 9ff00b3f98b245f375fbd1b565560fba50749344 | 28622c10395af795b2b5b1fecf42e9f6d4e26f2a | refs/heads/master | 2021-01-19T01:59:57.508354 | 2016-06-01T08:06:07 | 2016-06-01T08:06:07 | 22,097,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,519 | py |
import FWCore.ParameterSet.Config as cms
from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import *
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
akVs3Calomatch = patJetGenJetMatch.clone(
src = cms.InputTag("akVs3CaloJets"),
matched = cms.InputTag("ak3HiGenJetsCleaned")
)
akVs3C... | [
"dgulhan@cern.ch"
] | dgulhan@cern.ch |
3f0d333958350a92ac434aa6a8017a17d263453d | 2d929ed82d53e7d70db999753c60816ed00af171 | /Python/http/http_proxy.py | 413b48f03f8f201e702d427e39d87f53adca2682 | [] | no_license | nyannko/socket-example | b058e68e8d41a8a9f5b6a29108f7de394751c904 | 934e9791b1ee92f0dd3092bb07541f1e833b4105 | refs/heads/master | 2021-09-10T19:19:24.590441 | 2018-03-14T22:13:49 | 2018-03-14T22:13:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,577 | py | # HTTP proxy
from http.server import BaseHTTPRequestHandler, HTTPServer
from urlpath import URL
import socket
import urllib
HOST = "127.0.0.1"
PORT = 8000
# Run `curl -x http://127.0.0.1:8000 http://www.moe.edu.cn' to test proxy
class ProxyHandler(BaseHTTPRequestHandler):
# GET method
def do_GET(self):
... | [
"9638293+nyannko@users.noreply.github.com"
] | 9638293+nyannko@users.noreply.github.com |
8f8199b6e1f6dfc54c783f31a9ee7c30b7a68a8b | 86c082438a001ba48617aa756439b34423387b40 | /src/the_tale/the_tale/accounts/jinjaglobals.py | a2404ff781af031fd621d00f6e3091150a03094c | [
"BSD-3-Clause"
] | permissive | lustfullyCake/the-tale | a6c02e01ac9c72a48759716dcbff42da07a154ab | 128885ade38c392535f714e0a82fb5a96e760f6d | refs/heads/master | 2020-03-27T21:50:56.668093 | 2018-06-10T17:39:48 | 2018-06-10T17:39:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,295 | py | # coding: utf-8
from dext.common.utils import jinja2
from the_tale.accounts import logic
from the_tale.accounts import conf
@jinja2.jinjaglobal
def login_page_url(next_url='/'):
return jinja2.Markup(logic.login_page_url(next_url))
@jinja2.jinjaglobal
def login_url(next_url='/'):
return jinja2.Markup(logic.... | [
"a.eletsky@gmail.com"
] | a.eletsky@gmail.com |
c9e7ae0545df0f3c5342fff8f7224657d822ed17 | 644c809d4f2c1c5087ca8714619b01b253cc52c4 | /python3.7libs/hipie/parmutils.py | 8f0f3be8bfc5c00a757a90564377e666053aee8f | [
"MIT"
] | permissive | MaxSteven/hipie | 65db0b9d57e4e3c6fcc789e6e942610a400d7ebd | 6fe66e3c02c94023fc5761bf51960a84bda87094 | refs/heads/main | 2023-08-17T08:13:56.414038 | 2021-10-01T21:15:26 | 2021-10-01T21:15:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,471 | py | from __future__ import annotations
from typing import Optional, Union
from collections import Iterable
import hou
def _unpack_parm_from_kwargs(parms: Union[hou.Parm, hou.ParmTuple, list[hou.ParmTuple]]) -> Optional[hou.Parm]:
if isinstance(parms, hou.Parm) or isinstance(parms, hou.ParmTuple):
return parms
... | [
"igor.elovikov@gmail.com"
] | igor.elovikov@gmail.com |
a0b84ed3cb8ceed015324f058cdd123228f78465 | a924464293776c703da006f3fca48bf6cd9cd9b4 | /webAutoTest/test_py/__init__.py | 66e18c33aba85ce624c1c4194c3815df5001f562 | [] | no_license | zhangxiaoxiaotian/123 | 2ea08f6f29aec29004d89c7614144d00a2c54ec2 | 341646b65603c2bd9ee90b9e64f40ce2dfd2f127 | refs/heads/master | 2020-04-25T10:30:59.465883 | 2019-02-26T14:09:50 | 2019-02-26T14:09:59 | 172,712,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | #coding=utf-8
# *******************************************************************
# Filename @ __init__.py.py
# Author @ XiaoTian
# Create date @ 2019/2/26 9:50
# Email @ 1075767641@qq.com
# ********************************************************************
| [
"1075767641@qq.com"
] | 1075767641@qq.com |
fcc6802012379ff2c4773260e513034d4e1eafa3 | 3207c6cacac66d8b60c14511ba9ef0ace34ab066 | /tk.py | 05ea2be6dd52d4926447aead494c7c3e8f1af96a | [] | no_license | xiaoqiwang19/Google-Translator | df0ae232141017e0dc242ad5c556ad8f186e5956 | b46c6e0197e80fa65a7d90c677a2a2a3a770d4c4 | refs/heads/master | 2020-07-18T08:42:28.419681 | 2018-11-29T08:53:28 | 2018-11-29T08:53:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,611 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import execjs
class Py4Js():
def __init__(self):
self.ctx = execjs.compile("""
function TL(a) {
var k = "";
var b = 406644;
var b1 = 3293161072;
var jd = ".";
var $b = "+-a^+6";
var... | [
"1656704949@qq.com"
] | 1656704949@qq.com |
ff19ab6c5c4db1a74fcc72827dcbec96c6306d73 | b622852ef7f7859da4f58abb2cec90247402ab80 | /checkout/admin.py | b4c26d931beb6c1168d34f68369ed552c073aaf9 | [] | no_license | Code-Institute-Submissions/Forth-Milestone-Project | 7bbca04c90788382c69d9fb8a38ddc756de6cd4e | 30e2c876f03315b99db221d65a7e9bbaeecdf8f3 | refs/heads/master | 2022-12-15T11:29:22.190347 | 2020-08-31T22:38:40 | 2020-08-31T22:38:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | from django.contrib import admin
from .models import Order, OrderLineItem
class OrderLineItemAdminInline(admin.TabularInline):
model = OrderLineItem
readonly_fields = ('lineitem_total',)
class OrderAdmin(admin.ModelAdmin):
inlines = (OrderLineItemAdminInline,)
readonly_fields = ('order_number', 'da... | [
"spinelladomenico88@gmail.com"
] | spinelladomenico88@gmail.com |
8deb1a85735181e79b051c236ee4cfb72110ef68 | 6e1b2ff8d323e71f64ba499b898997b863d50c49 | /tkinter/tkinter.py | de879ca9c17a31f4e26594db522681c9c121bf45 | [] | no_license | Anchal-Mittal/Python | fab5a4d7b56fc72ba67ee9916107c427f669fb80 | 2b5147c762be22c06327fec14653d920751a5fff | refs/heads/master | 2021-09-11T14:10:09.432809 | 2018-04-08T16:32:28 | 2018-04-08T16:32:28 | 109,740,579 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | from tkinter import *
'''
from tkinter import *
root = Tk()
.
.
.
root.mainloop()
This is basic layout for any GUI application.
'''
root = Tk()
topFrame = Frame(root)
#Frame() is used to create a frame, a kind of invisible rectangle where we can put out widgets.
topFrame.pack()
#Anytime we want anything to be display... | [
"noreply@github.com"
] | noreply@github.com |
c5ecd02296aa16caffcde786d3ab77fae28405d1 | 28c598bf75f3ab287697c7f0ff1fb13bebb7cf75 | /build/bdist.win32/winexe/temp/OpenSSL.crypto.py | 6acfec583072680d7cf8126acf30df4957600e19 | [] | no_license | keaysma/solinia_depreciated | 4cb8811df4427261960af375cf749903d0ca6bd1 | 4c265449a5e9ca91f7acf7ac05cd9ff2949214ac | refs/heads/master | 2020-03-25T13:08:33.913231 | 2014-09-12T08:23:26 | 2014-09-12T08:23:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py |
def __load():
import imp, os, sys
try:
dirname = os.path.dirname(__loader__.archive)
except NameError:
dirname = sys.prefix
path = os.path.join(dirname, 'crypto.pyd')
#print "py2exe extension module", __name__, "->", path
mod = imp.load_dynamic(__name__, path)
## mod.frozen =... | [
"mixxit@soliniaonline.com"
] | mixxit@soliniaonline.com |
b4494671f38f7126a6d2398e2a96b7c336e7f55d | 2a34a824e1a2d3bac7b99edcf19926a477a157a0 | /src/cr/vision/io/videowriter.py | 7277eb9220a2e28a1d27d3f2748e3fc3a6ce7fee | [
"Apache-2.0"
] | permissive | carnotresearch/cr-vision | a7cb07157dbf470ed3fe560ef85d6e5194c660ae | 317fbf70c558e8f9563c3d0ba3bebbc5f84af622 | refs/heads/master | 2023-04-10T22:34:34.833043 | 2021-04-25T13:32:14 | 2021-04-25T13:32:14 | 142,256,002 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | '''
Wrapper for OpenCV video writer
'''
import cv2
class VideoWriter:
'''Wrapper class for OpenCV video writer'''
def __init__(self, filepath, fourcc='XVID', fps=15, frame_size=(640, 480), is_color=True):
'''Constructor'''
self.filepath = filepath
if isinstance(fourcc, str):
... | [
"shailesh@indigits.com"
] | shailesh@indigits.com |
0eb38fbdaa1bb3dd0e54fe7c6543fc623c91fe2c | 79a1ad6306a8a812170039e32dd732bd690a054e | /spider/scrapy_static/scrapy_static/middlewares.py | 2428796e3a39c7ff8b6e1ce7c3e467a8aab9c631 | [] | no_license | yang7776/Django_example | 9cca6957873edb154b6ce879f6c903987ddcf361 | 6cc1acc52699093043355b90d736bec41c0e5ade | refs/heads/master | 2022-12-13T07:44:48.380374 | 2021-12-02T07:27:34 | 2021-12-02T07:27:34 | 168,083,715 | 0 | 0 | null | 2022-12-07T12:17:43 | 2019-01-29T03:37:46 | Python | UTF-8 | Python | false | false | 4,805 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
import random
import os
import json
from scrapy import signals
from spider.user_agent_util import PC_USER_AGENT
# from scrapy.downloadermiddlewares.htt... | [
"yangshanghui@instwall.com"
] | yangshanghui@instwall.com |
16e0739edad97ed1235596b5089565cd8efa8f70 | 5b314502919bd7e12521ad126752d279912cd33d | /prodcons.py | d5e07a09cc1bdc3dcf283f36db18ea8f09ee3142 | [
"Apache-2.0"
] | permissive | xshi0001/base_function | 68576d484418b4cda8576f729d0b48a90d0258a1 | 77ed58289151084cc20bfc3328d3ca83e6a19366 | refs/heads/master | 2020-12-03T02:24:14.694973 | 2017-06-27T10:51:16 | 2017-06-27T10:51:16 | 95,935,169 | 1 | 0 | null | 2017-07-01T01:39:11 | 2017-07-01T01:39:11 | null | UTF-8 | Python | false | false | 1,533 | py | # -*-coding=utf-8
from Queue import Queue
from random import randint
from MyThread import MyThread
from time import sleep
def queue_test(q):
#q=Queue(10);
for i in range(10):
temp = randint(1, 10)
print temp
q.put("number:", temp)
print "size of queue is %d" % q.qsize()
def w... | [
"jinweizsu@gmail.com"
] | jinweizsu@gmail.com |
f02ee036bd722639ffc53e3f04de37fbe2c45144 | db689b4539346a60446357e3f57594f50d64a0d8 | /run.py | 625302547aaf4f7042ab37fce1facb24e5307fce | [
"MIT"
] | permissive | kigensky/Password-locker | 9c7922b621433460203479d44373516b74c8a5a3 | c1fbfa64f8af2855e1b85e33999a231ab32a54a1 | refs/heads/main | 2023-03-31T21:51:39.202912 | 2021-04-11T12:50:32 | 2021-04-11T12:50:32 | 356,191,715 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,136 | py | from user import User, Credentials
def create_new_user(username,password):
'''
Function to create a new user with the username and password
'''
new_user = User(username,password)
return new_user
def save_user(user):
'''
Function to save a new user
'''
user.save_user()
def displ... | [
"vickigen@gmail.com"
] | vickigen@gmail.com |
77687b39d779c1e2e66e81bff622db67cfb34acf | b379d7833a2ec1d424b5e0ab276dd622a8487e86 | /tutorial/migrations/0001_initial.py | 736e7168d62aa25c267cd33167aa8d99e3d9e082 | [] | no_license | WillCup/DjangoCN | 053bd43a9a7f83a67c7c48aab3c977c7ac33f94f | 2524b74aef4bc9ad73c96a76ac96434c585cabc8 | refs/heads/master | 2021-01-21T17:41:54.010330 | 2017-02-27T04:19:37 | 2017-02-27T04:19:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-26 14:05
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Tutori... | [
"zhoucc2012@gmail.com"
] | zhoucc2012@gmail.com |
009c2748d295bb10656f44e9a02eb8dcccbef81c | 65021fb03247d30c929e44af6daa11828d820cae | /Chapter 6/pizza.py | bf10a1cb877f907cbc736b9cedb282851d4c011e | [] | no_license | alvindrakes/python-crashcourse-code | 6a56d4072a55464142ea1260bbcaf8de9bc10ab5 | 4eacac787ea7445d1f2fde53a03ed7ccf9bd3037 | refs/heads/master | 2020-03-22T09:48:43.275671 | 2018-07-15T07:29:25 | 2018-07-15T07:29:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | # store info about a pizza being oddered
pizza = {
'crust' : 'thick',
'toppings' : ['mushrooms', 'extra cheese'],
}
#summarize the order
print("Your ordered a " + pizza['crust'] + "-crust pizza " +
"with the following topings:" )
for topping in pizza['toppings']:
print("\t" + topping)
| [
"alvinlohjinxian@gmail.com"
] | alvinlohjinxian@gmail.com |
4aed54428f5cec4dfefc14c5a98a46043798cf76 | f60c71a1182b3313061d31644da92ca2013c0d81 | /train.py | e413db33d00d8f89551bdbf191857fd97635bdc8 | [] | no_license | BrandyJer/iqiyi-workspace-TF | 1dc0b7a82604feb9bb73ade9a46cf12eafea8c15 | 8d68018c35b3b15b397beab70f2d93f299d2424e | refs/heads/master | 2020-03-09T21:56:22.686925 | 2018-04-11T02:46:52 | 2018-04-11T02:46:52 | 129,022,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,873 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 9 12:54:02 2017
@author: linjian_sx
"""
"""
jiezhen change:
line22 => 24
line32 => 33
line40 => 41
line63 => 64
line81 => 82
line85 => 86
"""
from datetime import datetime
import numpy as np
import tensorflow as tf
import tensorf... | [
"noreply@github.com"
] | noreply@github.com |
a618bd2571db03d8262b8233c0af56287cb540db | 50dcaae873badd727e8416302a88f9c0bff0a438 | /bookstore/migrations/0002_auto_20170101_0049.py | d3e6f7c0947c25e5f8687afb88146674f49c0239 | [] | no_license | jattoabdul/albaitulilm | 4ae0dc857509012e8aa5d775cda64305de562251 | c5586edaed045fec925a6c0bb1be5e220cbd8d15 | refs/heads/master | 2021-01-13T00:00:01.397037 | 2017-02-12T23:32:42 | 2017-02-12T23:32:42 | 81,761,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-12-31 23:49
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bookstore', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(... | [
"jattoade@gmail.com"
] | jattoade@gmail.com |
0c31e87961f953b76d38d1cb94d7c18e3c7b56b9 | d715648cb69bdbfe5ee2bee32eaad3772b4aeb83 | /scripts/get_rich_info.py | f8b42583d5b28a27bc02205d3725e8b3d86ca538 | [
"MIT"
] | permissive | drobotun/python_pefile_scripts | 3f5570479c9b3fd2ab0f47ee9e5847f6818b4016 | 4feee14414984580d12894a2319fc926995e6108 | refs/heads/master | 2022-11-16T07:26:23.854775 | 2020-07-07T17:22:07 | 2020-07-07T17:22:07 | 275,241,407 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,608 | py | """
Скрипт, выводящий информацию о содержании Rich-сигнатуры PE-файла.
Пример использования:
python get_rich_info.py d:/file.exe
"""
import sys
import hashlib
import pefile
__COMPID_DICT = {
0: 'Unknown',
1: 'Import0',
2: 'Linker510',
3: 'Cvtomf510',
4: 'Linker600',
5: ... | [
"noreply@github.com"
] | noreply@github.com |
8c9ebc6aadd3e018657f22c56f8dbe1d613c2f87 | 177d2ec17641005ec242a15767995367f84d825e | /T2/TOME1.py | 834ec096c9277bacfe96cc7dd7602d51309dcffd | [] | no_license | ttkbot/Newbot2-4-61 | f05968db0e7d16eda87fb83b1e11367b8ef17c68 | 0dd79e5f67eb925cc0dd9ae586b0e5d90229b3b2 | refs/heads/master | 2020-03-07T18:56:01.470929 | 2018-04-19T21:35:17 | 2018-04-19T21:35:17 | 127,656,984 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 350,768 | py | # -*- coding: utf-8 -*-
import LINEVIT
from LINEVIT.lib.curve.ttypes import *
from datetime import datetime
import time, random, sys, ast, re, os, io, json, subprocess, threading, string, codecs, requests, ctypes, urllib, urllib2, urllib3, wikipedia, tempfile
from bs4 import BeautifulSoup
from urllib import urlopen
fr... | [
"noreply@github.com"
] | noreply@github.com |
e2db064b4c559a481a1ab0ba635a84b59bd259e2 | 3e19d4f20060e9818ad129a0813ee758eb4b99c6 | /conftest.py | 1b0f10a63a7f6eddd9bf25df6187cc5b35adee18 | [
"MIT"
] | permissive | ReyvanZA/bitfinex_ohlc_import | 07bf85f4de8b0be3dc6838e188160d2b4963f284 | 6d6d548187c52bcd7e7327f411fab515c83faef1 | refs/heads/master | 2020-08-11T14:22:15.832186 | 2019-10-31T17:51:21 | 2019-11-11T11:33:28 | 214,579,369 | 0 | 0 | MIT | 2019-11-11T11:33:29 | 2019-10-12T04:48:12 | null | UTF-8 | Python | false | false | 546 | py | import pytest
@pytest.fixture
def symbols_fixture():
# symbols for testing
return [
"btcusd",
"ltcbtc",
"ethusd"
]
def candles_fixture():
return [[
1518272040000,
8791,
8782.1,
8795.8,
8775.8,
20.01209543
],
[
1518... | [
"arthur@arthurkoziel.com"
] | arthur@arthurkoziel.com |
9381d068197c349cb06a7e1fb6788be3e1f31f2d | 244f5954023a1cd3afda8792a67c0efdc86894b5 | /lab15/lab15_2.py | e3fe37e99c18dad70a3f06537f643fd907cad41c | [] | no_license | RideSVEL/python-labs | 81436fdb293bbd50950297d5c99f9466f025e1d7 | 6dc953e854536032e9cc168e9c71198a583e12a9 | refs/heads/master | 2023-03-08T06:18:26.276986 | 2021-02-20T09:54:08 | 2021-02-20T09:54:08 | 337,844,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,479 | py | import csv
import plotly.graph_objs as go
from plotly.subplots import make_subplots
def csv_dict_reader(file_obj):
vacancies = []
reader = csv.DictReader(file_obj, delimiter=',')
for line in reader:
try:
vacancies.append(int(line["Salary"]))
except Exception as e:
p... | [
"sbkiking3@gmail.com"
] | sbkiking3@gmail.com |
60ab9709117a44651283b12cfa345466f72a209a | 8ca3fcb2dba13d99a62f292401ae70ff4eeb2120 | /RobotCode/revlib/revvy/mcu/rrrc_transport.py | 6d80d8b493aa88b94b5706a3626bb47386e14bd2 | [] | no_license | FRC1076/FRCRevolution | 76decd5bd5bf4e40e6d422c8750885f9be3fb258 | 75c19ff8802fc193b085eac12337fa4426d0a917 | refs/heads/main | 2023-02-18T02:07:26.137426 | 2021-01-03T18:01:15 | 2021-01-03T18:01:15 | 315,189,903 | 1 | 0 | null | 2020-12-31T17:35:40 | 2020-11-23T03:26:13 | null | UTF-8 | Python | false | false | 9,998 | py | # SPDX-License-Identifier: GPL-3.0-only
import struct
import binascii
from enum import Enum
from threading import Lock
from typing import NamedTuple
from revvy.utils.functions import retry
from revvy.utils.stopwatch import Stopwatch
crc7_table = (
0x00, 0x09, 0x12, 0x1b, 0x24, 0x2d, 0x36, 0x3f,
0x48, 0x41, 0... | [
"amy@Amys-MacBook-Pro.local"
] | amy@Amys-MacBook-Pro.local |
39f30a152021b558142e3bade498e9422e46157c | 2269adac5b400ea2d299bd863918d02676546731 | /src/exercises/ex1/escape_room.py | 3db09292ffa3cf5a3b9194af9ae0c6ed0a1f94ab | [] | no_license | emengbenben/network-security-2019 | 2d168d0b897f4007c90a89d3e0f629f0f960ddb1 | bc7f3ac80db7bdd491150c0eb72f9edf96249c8f | refs/heads/master | 2020-04-19T08:18:58.975630 | 2019-04-17T19:58:08 | 2019-04-17T19:58:08 | 168,072,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,304 | py | import random
class EscapeRoom:
door = "closed"
locked = True
hammer = False
glasses = False
glasses_wear = False
mirror = False
hairpin = False # judge hairpin visible or not
floor = False # judge whether player look floor or not
pry = False
clock = 100
chest = "locked" ... | [
"noreply@github.com"
] | noreply@github.com |
a48b2bc04a6cf0d51de8bdba04a43f510ca35a0e | 5f2666a87071c1bc2383146a2dc8bc0d90a177cc | /books/urls.py | e366f85a260fc7ae70ab84888af3e15bbd678461 | [] | no_license | sripiranavany/Book-store- | f83c2d72617b1f9cff117bad471f94bbcf9c5020 | 5d901861e4456a6eac82d51f03fa4a10ad97793e | refs/heads/main | 2023-05-11T20:16:11.182952 | 2021-05-29T16:15:32 | 2021-05-29T16:15:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py |
from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name="book.all"),
path('<int:id>', views.show, name="book.show")
]
| [
"sripiranavan08@gmail.com"
] | sripiranavan08@gmail.com |
115866da3b93fdf3c0843a55197fbb667c547c6b | 6428d06cdb42ae32afa4a13bb0bbdc2fc013f402 | /gcn/GCNNetworkV1.py | ea9586a9f748b8eebf5e42cc6ed6f3b9795c9c88 | [] | no_license | kason-seu/pytorchstudy | c46dc4723d772ec17eb95c43c94530d15c3e2021 | b27e487bbb8203b32a87e47ba8a6c147f8f2434e | refs/heads/master | 2023-02-01T08:36:00.184753 | 2020-12-13T10:31:42 | 2020-12-13T10:31:42 | 305,136,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,459 | py | import numpy as np
from utils import load_data
import utils
seed = 2
class GCNNetwork:
def __init__(self):
self.n_x = None
self.n_y = None
self.n_h = None
self.m = None
self.W1 = None
self.W2 = None
self.X = None
self.Y =None
def layer_sizes(self,... | [
"zhangkaiseu@163.com"
] | zhangkaiseu@163.com |
0f78e329d5c2bcd2818a520afbace07bcd5247a1 | 91b38e09f02d50c17832fb5c5887d381477483bf | /ligas/models.py | e5b6a2574ffc58ce74db5fa3ff09587d5a7ffa37 | [] | no_license | CharlesTenorio/apisuperbol | e13e24c03a3a312357012bf0f64e6097e0a2ec43 | 0f262d78547ba4000199f6832aa66627a7c1f164 | refs/heads/master | 2023-04-05T18:23:10.090622 | 2021-03-11T23:24:19 | 2021-03-11T23:24:19 | 335,382,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | from django.db import models
class Liga(models.Model):
id = models.PositiveIntegerField(primary_key=True)
nome= models.CharField(max_length=80)
cc=models.CharField(max_length=2)
has_leaguetable=models.IntegerField(),
has_toplist=models.IntegerField()
def __str__(self):
return self.nome... | [
"charlestenorios@gmail.com"
] | charlestenorios@gmail.com |
fbb34322a5265ba6ed348bdfb50d79c29c8505b3 | d08cd5ae98dee9b0171f574b99cf28422e4c2022 | /sentences.py | d2033e1e3c1737421042c38364dcc9558b18fb7a | [
"BSD-3-Clause"
] | permissive | xhu4/sentences | c3363370d840755edcd78f1474d9a364dffec2b3 | 7e9014682bf5dc3034eb608cf9a3b0496e15a9a6 | refs/heads/master | 2020-03-26T22:33:45.037557 | 2018-12-27T22:30:08 | 2018-12-27T22:30:08 | 145,469,322 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,682 | py |
# coding: utf-8
from __future__ import print_function
from timeit import default_timer as timer
from collections import defaultdict
import itertools as it
import argparse
def count_len(list_sentences):
"""
Create a dictionary based on list_sentences, with key = n and value = set
of all sentences wit... | [
"xhu4@uwyo.edu"
] | xhu4@uwyo.edu |
3d0a4c8bd3561d4e8736d49b4ffafb57123215b3 | 947d4102433b136ac65e6bbebd28ca51c53d1f5f | /ansible/roles/test/files/acstests/acs_base_test.py | b77680006bd90e7d5a7505850b531ff7d5426cf2 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | SW-CSA/sonic-mgmt | eac574040a20cea724208a442f7492f840dd1ec3 | d50a683dc3ab0206e1fef9230c136b4c19b084f1 | refs/heads/201811 | 2023-09-01T13:14:29.166752 | 2019-03-21T08:08:43 | 2019-03-21T08:08:43 | 142,762,730 | 2 | 5 | NOASSERTION | 2019-11-05T06:55:46 | 2018-07-29T13:21:25 | Python | UTF-8 | Python | false | false | 1,190 | py | """
Base classes for test cases
Tests will usually inherit from one of these classes to have the controller
and/or dataplane automatically set up.
"""
import ptf
from ptf.base_tests import BaseTest
from ptf import config
import ptf.testutils as testutils
##############################################################... | [
"noreply@github.com"
] | noreply@github.com |
190dda0548865aa9ca670c1e154a5fcb36617a03 | 9feacae54b852982e791699131a5dced342fd134 | /CodeReview/ch2/remove_dups.py | c86d7e4fa8310f3f4f10607b49ffb97ecfd429aa | [] | no_license | hoyeongkwak/workspace | bd89f981e73f4aff2eb4a7d8c914925968651af3 | c70d8dcd18a401af04296f71f02335ac3048240f | refs/heads/master | 2023-06-23T01:54:13.608849 | 2021-07-23T13:48:22 | 2021-07-23T13:48:22 | 276,769,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | from LinkedList import LinkedList
def remove_dups(ll):
if ll.head is None:
return
current = ll.head
seen = set([current.value])
while current.next:
if current.next.value in seen:
current.next = current.next.next
else:
seen.add(current.next.value)
... | [
"hoyeong.kwak@lge.com"
] | hoyeong.kwak@lge.com |
00f65ca762f76f54444ea65692ecde4774dbdecc | d2c88caf05eed0c16db0f592bc876845232e1370 | /tccli/services/cr/__init__.py | 5c384eca0cc18a816ea88260a5faa51d5439a8be | [
"Apache-2.0"
] | permissive | jaschadub/tencentcloud-cli | f3549a2eea93a596b3ff50abf674ff56f708a3fc | 70f47d3c847b4c6197789853c73a50105abd0d35 | refs/heads/master | 2023-09-01T11:25:53.278666 | 2022-11-10T00:11:41 | 2022-11-10T00:11:41 | 179,168,651 | 0 | 0 | Apache-2.0 | 2022-11-11T06:35:51 | 2019-04-02T22:32:21 | Python | UTF-8 | Python | false | false | 83 | py | # -*- coding: utf-8 -*-
from tccli.services.cr.cr_client import action_caller
| [
"tencentcloudapi@tencent.com"
] | tencentcloudapi@tencent.com |
7ed290f433d9a0eed89b2e3be392eeb589ccaf5f | 97f68c7e547d36c70fd5492d0a999a9dea1a6792 | /api/views/cmdb/history.py | e0029a52f63c34347404e7bd80106924a2c51adf | [
"MIT"
] | permissive | jimmy201602/cmdb | cce437ca684c02a35a043ffc1b4dcc7331128387 | 4d52a72bdb42fb8ce58973910f4915daf435c01f | refs/heads/master | 2021-03-19T14:02:53.366894 | 2019-08-28T13:50:08 | 2019-08-28T13:50:08 | 205,183,046 | 1 | 0 | MIT | 2019-08-29T14:31:23 | 2019-08-29T14:31:23 | null | UTF-8 | Python | false | false | 2,054 | py | # -*- coding:utf-8 -*-
import datetime
from flask import abort
from flask import request
from api.lib.cmdb.history import AttributeHistoryManger
from api.lib.utils import get_page
from api.lib.utils import get_page_size
from api.resource import APIView
class RecordView(APIView):
url_prefix = "/history/record... | [
"pythoncook@163.com"
] | pythoncook@163.com |
a21e57c2bcdd545f6e90c3f5eb811263beb9a0a9 | 70c7ff22e5eca801f56bc25541cd894cee840864 | /eventex/subscriptions/admin.py | 34d51fc89dade74112afdd3400e966a07708fbb4 | [] | no_license | rogeriofonseca/eventex | 54edfe346242c9d187c1a9f6bbf1700d254cc434 | b1b0435a0da03bdf5d46aa98a00fda037239e2c8 | refs/heads/master | 2020-12-05T11:14:57.073368 | 2017-02-07T02:39:12 | 2017-02-07T02:39:12 | 66,811,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | from django.contrib import admin
from django.utils.timezone import now
from eventex.subscriptions.models import Subscription
class SubscriptionModelAdmin(admin.ModelAdmin):
list_display = ('name', 'email', 'phone', 'cpf', 'created_at',
'subscribed_today', 'paid')
date_hierarchy = 'created_... | [
"rogerio.fonseca@gmail.com"
] | rogerio.fonseca@gmail.com |
3107dbe3bafdd15431f25770a3c8691696fc20bd | cdd9649499cd2aa7dcaaf6e699a6f460df56fc03 | /products/extra_utilities.py | 8747d9762b5b7bcb29e201399a6c7166f516e012 | [] | no_license | maxibesso11/django-shop-v2.1 | 2d29a299cae118ffeaaa36da6b4be6d093301697 | af83f7ea7e871db42c4bddbf34d6806b9648bd92 | refs/heads/master | 2022-12-16T16:52:32.087230 | 2020-09-16T18:03:38 | 2020-09-16T18:03:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | def get_range(list):
y = -1
list_final = []
url_list = []
for x in list:
y+=1
list_final.append(y)
for x in list_final:
url_list.append({"id":x,"url":list[x]["url"]})
return url_list | [
"maxibesso11@gmail.com"
] | maxibesso11@gmail.com |
6085667ce991868716dea4c4d42778e766fb8ca4 | 37753c621d76336ecca839caa8864ff17fc9f1c3 | /Array/Largest_element_in_an_array.py | 5650862e3e08f9111d17fe6554250617896c5698 | [] | no_license | NidhiSaluja12/GeeksForGeeks | 08b8c84d789c5ccd365c39d2f5403e4dbe1bcb26 | 0f8d6e271fbffb0c970043f19fa8b107d49fb879 | refs/heads/main | 2023-08-17T11:08:34.849744 | 2021-10-02T18:16:20 | 2021-10-02T18:16:20 | 386,713,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | '''
Given an array A[] of size n. The task is to find the largest element in it.
Example 1:
Input:
n = 5
A[] = {1, 8, 7, 56, 90}
Output:
90
Explanation:
The largest element of given array is 90.
Example 2:
Input:
n = 7
A[] = {1, 2, 0, 3, 2, 4, 5}
Output:
5
Explanation:
The largest element of given array is 5.
Y... | [
"noreply@github.com"
] | noreply@github.com |
f02037b69640ebce69ea028aff378e524d13a6e1 | 484f2b6ed2a51a78978a4b6450f97a3cbefcd087 | /group/api.py | 34820ed4e921bf24ad6291684117c8be6a49f01f | [] | no_license | ivan371/technotrack-web2-spring-2017 | 31d0a937f1b6342bd70432cbebd37bb68c1dd8df | 92e9fd9040984eef66b6bab45bb4d6918e178d41 | refs/heads/master | 2021-01-11T14:27:04.717314 | 2017-05-22T18:55:22 | 2017-05-22T18:55:22 | 81,424,353 | 0 | 0 | null | 2017-02-09T07:54:27 | 2017-02-09T07:54:27 | null | UTF-8 | Python | false | false | 3,347 | py | from group.models import Groupp, GroupUser, PostGroup
from rest_framework import serializers, viewsets, permissions
from application.api import router
from django.shortcuts import get_object_or_404
from core.api import UserSerializer
from django.db.models import Q
class IsOwnerOrReadOnly(permissions.BasePermi... | [
"ivan@DESKTOP-GM6Q430.localdomain"
] | ivan@DESKTOP-GM6Q430.localdomain |
0a1c792fba067f7ebbb87291e1536e055e5adcc0 | a5e06360397a51a499974c24b587e39ef98b12cb | /2爬虫/7、json数据解析.py | 02ffe08dd4434d9c374b2c16021bc319485edc60 | [] | no_license | songjiabin/PyDemo | 3c89b03f009a6f72813099e61c1a9e2d5d16fb87 | afc2d98521b2d158ef2b54cf887502a3b1568aec | refs/heads/master | 2022-10-29T00:18:31.887522 | 2018-09-12T16:23:09 | 2018-09-12T16:23:09 | 142,775,346 | 0 | 1 | null | 2022-10-22T18:33:14 | 2018-07-29T16:06:41 | Python | UTF-8 | Python | false | false | 1,426 | py | import json
jsonStr = '{"result":[["卫衣女春2018","8.092529385849389"],["卫衣上衣春 春秋","8.022499133719828"],["卫衣 秋 女","7.963854696462119"],["卫衣2017女秋","8.033525396543094"],["卫衣不带帽子女","8.036049751550866"],["卫衣外套宽松女","8.036109676892297"],["卫衣女长袖宽松上衣","8.016274388878704"],["卫衣女春秋不收边","8.056971186377892"],["卫衣女长袖 秋薄","8.048634073... | [
"1796254117@qq.com"
] | 1796254117@qq.com |
5790747bf3bb59cf374317ac2044970705d035fb | 3213373f90f10c60667c26a56d30a9202e1b9ae3 | /language/orqa/predict/orqa_eval.py | 1fe260eb6edd190f0e5df545f0ad78f7fc8a06b0 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | Mistobaan/language | 59a481b3ff6a7c7beada2361aef7173fbfd355a4 | 394675a831ae45ea434abb50655e7975c68a7121 | refs/heads/master | 2022-11-29T14:10:37.590205 | 2020-08-13T22:28:13 | 2020-08-13T22:31:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,448 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# 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 ... | [
"kentonl@google.com"
] | kentonl@google.com |
fd5c1bace80b13e13c1a052dd0dcd6ce9afea215 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_340/ch4_2020_03_23_19_22_41_022512.py | 4f38805b970b740b4a241620cdc59197c4c64017 | [] | 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 | 174 | py | def idade(x):
x=int(input('digite sua idade'))
return idade
if (idade=<11):
print('crianca')
if (12<=idade<=17):
print('adolescente')
if (idade>=18):
print ('adulto') | [
"you@example.com"
] | you@example.com |
ed6a9ed22ef18d86ebcb7492dceb5f636c891769 | 10d615680114a31a3611ae03f86b7d0b756243cb | /dataScienceFinancialProjectExtractTickers.py | 90596f2fbdc4c02d1775cd32397ab217b4505f4c | [] | no_license | AdrienKamdem/DataScience | 3aa8ddbb064cb82e753154bbc62ca0483fbb4ee3 | 350ca9ae08b72809877f8535d8a0177da4b96272 | refs/heads/main | 2023-08-22T09:25:19.266670 | 2021-10-03T09:30:21 | 2021-10-03T09:30:21 | 412,636,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,470 | py | import json
import requests
import csv
import time
class tickersFinancialCrawler:
def __init__ (self):
self.session = requests.Session()
self.tickersListNames = []
self.dictTickersDetailsList = []
self.final_tickers_dict_list = []
def _go_tickers(self,url):
tickersReq... | [
"noreply@github.com"
] | noreply@github.com |
8e93033e3fda24c0d02373689cd2ffdcb8f11934 | f06ffc869fddaa351a1b8e1bc2f4eadd82a022cf | /2013-milgram-project-new/make_gowalla_us_states.py | 0f1eda9742ce4b6c845a3db7834cc072e79bcb70 | [] | no_license | thornb/FoFSimulation | dd5de09e6be3984174aaad52127bff81c1d6f42b | ed7e13dff6e08af7e519791fbbb17c6a2ecef937 | refs/heads/master | 2021-01-21T13:08:30.650244 | 2016-05-18T18:50:58 | 2016-05-18T18:50:58 | 55,800,780 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | import cPickle
locdata = cPickle.load(open('data/gowalla_users_locationmap.pck','rb'))
udata = cPickle.load(open('data/gowalla_users_locations.pck','rb'))
states_data = {}
mapcount = 0
for uid,latlong in udata.items():
if latlong not in locdata.keys():
continue
mapcount = mapcount+1
state = locd... | [
"bthorne3@gmail.com"
] | bthorne3@gmail.com |
3943484a0d61c50b4405bc497457b811c4b22f96 | 8adead984d1e2fd4f36ae4088a0363597fbca8a3 | /venv/lib/python3.7/site-packages/gevent/testing/patched_tests_setup.py | 3fdef75043869db42b012f8ad15407c4d116d9e0 | [] | no_license | ravisjoshi/python_snippets | 2590650c673763d46c16c9f9b8908997530070d6 | f37ed822b5863a5a11b09550dd32a73d68e7070b | refs/heads/master | 2022-11-05T03:48:10.842858 | 2020-06-14T09:19:46 | 2020-06-14T09:19:46 | 256,961,137 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59,511 | py | # pylint:disable=missing-docstring,invalid-name,too-many-lines
from __future__ import print_function, absolute_import, division
import collections
import contextlib
import functools
import sys
import os
# At least on 3.6+, importing platform
# imports subprocess, which imports selectors. That
# can expose issues with ... | [
"ravishankar.joshi@centurylink.com"
] | ravishankar.joshi@centurylink.com |
2e7d4646e442f507f545946684908d679bc89a25 | b9a843c18bc0806ffcf49bb4af9a32d7c5b7e5d8 | /test_get_average_club_count.py | df5e8b0b263947e665cc4702cdd8db340d38b714 | [] | no_license | serhatgktp/club-finder-in-python | ee6d5241f746655cd96c3cab2d60950e23f69869 | f08da62c139d693f9393a39e6e13af55c57a4cbd | refs/heads/main | 2023-03-12T08:39:33.476797 | 2021-02-23T19:56:55 | 2021-02-23T19:56:55 | 341,646,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,649 | py | """Test cases"""
import unittest
import club_functions
class TestGetAverageClubCount(unittest.TestCase):
"""Test cases for function club_functions.get_average_club_count.
"""
def test_00_empty(self):
param = {}
actual = club_functions.get_average_club_count(param)
expected = 0.0
... | [
"noreply@github.com"
] | noreply@github.com |
1204884c0f76b2d403acbc11ca7c272f6ef259db | 10f068d3ac95b3c072a1ddcc9b91a0dc41a7fd62 | /customer/migrations/0004_auto_20200612_1751.py | 9d380328dc36a67f53fc80f496d94f4c1975f6c2 | [] | no_license | sabirAIE/Django-FlyLight-CRM | 60915e62ef70723dc958758df13b564ff4b9c954 | 3fbfa131c83ce55b812e3047b319ac9ae878943e | refs/heads/master | 2022-10-30T02:34:18.208052 | 2020-06-13T16:05:42 | 2020-06-13T16:05:42 | 269,138,905 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | # Generated by Django 3.0.4 on 2020-06-12 17:51
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('users', '0003_auto_20200612_0602'),
('customer', '0003_auto_20200612_0602'),
]
operations = [
migra... | [
"sbransari92@gmail.com"
] | sbransari92@gmail.com |
549ee267634c9ffaee6dd29b1bc8292291f89241 | 3f40f963f017283c16cadb13bf5341a9df33ecfe | /ScrapePython.py | 363b3665029213108cc3a330e411558fc6f9872b | [] | no_license | sumon062/ScrapePython | 885fc0b1cc25b5f8e36ecc72848734d7cf9105a6 | e456099b787b9fb5869b428787a0b4f9c9b0a63e | refs/heads/master | 2020-07-30T04:41:26.168888 | 2019-09-22T04:27:39 | 2019-09-22T04:27:39 | 210,089,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,629 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Aug 31 16:00:10 2019
@author: Towfik
"""
# Here, I am importing Beautiful Soup,csv and the Requests library
import requests as r
from bs4 import BeautifulSoup
import csv
# this is the url that we've already determined to scrape from.
urltoget = 'http://drd.ba.ttu.edu/2019c/is... | [
"sumon062@gmail.com"
] | sumon062@gmail.com |
9a6939baf3aeccf90e9bd609a773f0dd99b7a3f1 | fcbe275aececcc844eaeedb00358ffd3da6bd3c1 | /Project/ml_creator.py | bcdc7a76e5e59a05b116b23f310abb69e7b0664d | [] | no_license | geffenbrenman/Link-a-Pix-AI-final-project | da56edf0cbb6bd4435dee4b935a7746143268b07 | 427dea80db0afb06415f538d69f00ae873baddca | refs/heads/master | 2023-08-28T09:42:35.831196 | 2021-11-06T14:32:11 | 2021-11-06T14:32:11 | 286,984,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,159 | py | # import csv
import os
import pickle
import numpy as np
import pandas as pd
from sklearn.neural_network import MLPRegressor
from sklearn.preprocessing import OneHotEncoder
import xml_parser as ag
from game import Game
from ml import normalize_path, PATH_TO_TRAIN_SET, PATH_TO_PREDICTOR, PATH_TO_ONE_HOT_ENCO... | [
"noreply@github.com"
] | noreply@github.com |
81dbc6da5a67a3c9d1cf4e3e4013b93416329c60 | aef08a7c30c80d24a1ba5708f316153541b841d9 | /Leetcode 0071. Simplify Path.py | 7f9fbb46989a724cd62a68c8396c195fbacddb48 | [] | no_license | Chaoran-sjsu/leetcode | 65b8f9ba44c074f415a25989be13ad94505d925f | 6ff1941ff213a843013100ac7033e2d4f90fbd6a | refs/heads/master | 2023-03-19T02:43:29.022300 | 2020-11-03T02:33:25 | 2020-11-03T02:33:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,539 | py | """
71. Simplify Path
Given an absolute path for a file (Unix-style), simplify it. Or in other words, convert it to the canonical path.
In a UNIX-style file system, a period . refers to the current directory. Furthermore, a double period .. moves the directory up a level.
Note that the returned canonical path must a... | [
"wangpeng4515@gmail.com"
] | wangpeng4515@gmail.com |
19e9b0e029eb9fb62e6b451f360684c8ccff761e | b028a4b5f3fd54b7b64cd9785567cdcb5404b71f | /class12/12_titanic_confusion_nb.py | a52a9b391036a76628cd8e6199472ef823d3800e | [] | no_license | JAStark/GA_DataScience | 3ba39de4d5d50a1fcc24feafac9f5f5f58bb397b | 312ad980f355d3186217078b9fb0163c8b1d777b | refs/heads/master | 2021-01-01T18:18:37.446596 | 2015-10-30T15:33:17 | 2015-10-30T15:33:17 | 41,229,970 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | # # Logistic regression exercise with Titanic data
# ## Introduction
#
# - Data from Kaggle's Titanic competition: [data](https://github.com/justmarkham/DAT8/blob/master/data/titanic.csv), [data dictionary](https://www.kaggle.com/c/titanic/data)
# - **Goal**: Predict survival based on passenger characteristics
# - `t... | [
"jastark1@gmail.com"
] | jastark1@gmail.com |
40049526245605797741259cdc585bd03091314e | bf5c4cd484153e9c36f12e574af6ff3101293688 | /Web Server and Client/smart_stove/stove/admin.py | 201e1e7918368e1f4a147363e255a6e6920f135e | [] | no_license | rohanmanatkar/Smart-Stove | 4f78964a39c14eccc229867c07b2a6f34e6d30e0 | b52c0e8933b19315ce5df3fddfb358bad1850db4 | refs/heads/master | 2021-01-26T17:45:06.465792 | 2020-02-27T07:50:21 | 2020-02-27T07:50:21 | 243,459,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from django.contrib import admin
from stove.models import *
# Register your models here.
admin.site.register([State])
| [
"rohanmanatkar@gmail.com"
] | rohanmanatkar@gmail.com |
696b87b0bff7a5bcf494441ef9ff10dbad893cd4 | 8fd07ea363ba4263bafe25d213c72cc9a93e2b3e | /devops/Day4_json_requests_zabbix-api/zabbix/dingtalk.py | 2112181a91ce4aaf534cba9d5b2bc2035ec13296 | [] | no_license | ml758392/python_tedu | 82e12ae014f0fc81230386fab07f901510fc8837 | 9f20798604db0ac8cd7b69d8c7a52ee361ebc7a7 | refs/heads/master | 2020-04-12T08:30:42.354663 | 2019-03-29T11:55:30 | 2019-03-29T11:55:30 | 162,386,878 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | # -*-coding:utf-8-*-
import json
import requests
import sys
def send_msg(url, reminders, msg):
headers = {'Content-Type': 'application/json;charset=utf-8'}
data = {
"msgtype": "text", # 发送消息类型为文本
"at": {
"atMobiles": reminders,
"isAtAll": False, # 不@所有人
},
... | [
"yy.tedu.cn"
] | yy.tedu.cn |
41561d116cf061f86b5406261d48b42a2048354b | 54cdb0023d99a77ece44119298e9536798b81dec | /games.py | bf9e270ee3a1a7ffd1d7c6a27dd64d8bc2592a62 | [] | no_license | renzon/sudoku | 8a36f1e3d488cf1d27f9131cea8c3255ef0be863 | aca8a1a867bb7b77c7f998c9b6a8d641239b715f | refs/heads/master | 2020-05-30T17:36:05.235259 | 2013-02-02T14:34:29 | 2013-02-02T14:34:29 | 7,976,685 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,395 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from sudoku import Sudoku, EMPTY
#game=[[5,8,EMPTY,EMPTY,EMPTY,7,EMPTY,EMPTY,EMPTY],
# [EMPTY,EMPTY,6,4,5,EMPTY,8,EMPTY,EMPTY],
# [EMPTY,EMPTY,7,EMPTY,3,EMPTY,EMPTY,EMPTY,1],
# [1,EMPTY,EMPTY,EMPTY,EMPTY,9,EMPTY,2,EMPTY],
#... | [
"renzo.n@gmail.com"
] | renzo.n@gmail.com |
da581130e8f6f6a50f13b8bec168a81a02799f1e | e6ea5bf7db2eb6edd10983b8101fa3e2960026c5 | /main.py | e45aae52a4170dc3a9c94707e1181a7a377d2009 | [] | no_license | ZamanovArslan/11_703_ZAMANOV | 3d618afaedd3bbf71a87dd57bf2f87a57d08f6d0 | 66af7b49146ce96c6eac11810b838e3301df32c1 | refs/heads/master | 2023-02-08T09:43:05.821587 | 2020-12-28T08:21:58 | 2020-12-28T08:21:58 | 294,627,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | import pandas as pd
import matplotlib.pyplot as plt
def draw(dataset):
numb = list(data.PassengerId)
p_class = list(dataset.Pclass)
ages = list(dataset.Age)
colors = []
for i in range(0, len(numb)):
if p_class[i] == 1:
colors.append('r')
elif p_class[i] ==... | [
"arslan.zamanov@flatstack.com"
] | arslan.zamanov@flatstack.com |
ca31e749dfd6ef7361d874037485c67a5ef83fc9 | e93ef436dd2cfdd8e3badefd721b639838fd9ef5 | /accounts/views.py | 67f4ee3dce5fcc597638045a0225282da165e355 | [] | no_license | sphere-net/spnintra | 38b2384d43bf73842b59c8b30fd4aa6c1a025651 | be2edf021733a239bfc3df5da86e1ac372ff4431 | refs/heads/master | 2023-08-11T02:57:36.772923 | 2021-10-12T01:22:57 | 2021-10-12T01:22:57 | 414,019,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | from django.views import generic
class IndexView(generic.TemplateView):
template_name = "accounts.html" | [
"torikoshi4473@gmail.com"
] | torikoshi4473@gmail.com |
0f839b18d8c2ddf2a816581790ffe3ed05a65e65 | da58d7e2296fa2c99b06f88375f723227bed0b39 | /board.py | 1de8191fefac6d853bf6c76bb6bc8ca7b105e353 | [] | no_license | gmiller148/ChessEngine | 73e30d22e8f237f172129269823708b556779a6d | d47ab3ccb7ee15ad66f796eb4b84e3204095646f | refs/heads/master | 2022-03-23T08:12:13.965393 | 2019-12-27T18:57:32 | 2019-12-27T18:57:32 | 48,001,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,045 | py | from bitstring import BitArray
from textwrap import wrap
import json
with open('resources/bitboards/clear_file.json') as f:
d = json.load(f)
clear_file = {f:BitArray('0x'+h) for f,h in d.items()}
with open('resources/bitboards/clear_rank.json') as f:
d = json.load(f)
clear_rank = {int(r):BitArray('0x'... | [
"grant242@gmail.com"
] | grant242@gmail.com |
616469de1aec009732d1ae11d1d7737bda848a16 | 75a2d464d10c144a6226cb5941c86423a1f769cf | /users/views.py | 21cc73b926aab722ac47e1f4965cdb0561c47aff | [] | no_license | Swiftkind/invoice | f5543cbe81b6d42e9938470265d7affb56ab83dd | 17615ea9bfb1edebe41d60dbf2e977f0018d5339 | refs/heads/master | 2021-09-07T18:16:01.647083 | 2018-02-08T08:13:18 | 2018-02-08T08:13:18 | 115,474,697 | 0 | 3 | null | 2018-02-27T06:58:42 | 2017-12-27T02:55:40 | Python | UTF-8 | Python | false | false | 5,494 | py | from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib import messages
from django.http import Http404
from django.shortcuts import get_object_or_404, render, redirect
from django.views.generic import TemplateView
from django.views impor... | [
"michaelpsy71095@gmail.com"
] | michaelpsy71095@gmail.com |
9cdc3025395648558462f4da510485dbf2aeaf70 | 54a8bb0d3ea49bbbdebc6deb7db8cbdb6f3063f2 | /Node.py | c9ff286d2bc6dc5e8bbb3a1af21ce884f009731e | [] | no_license | adolfdcosta91/CSMASimulator | beaf9f4aad7fe83b25cb058669e81ab925fb31eb | be7bc2a186801685072beb4f2056f35f72d4c0c8 | refs/heads/master | 2020-05-15T20:06:46.482776 | 2020-05-07T07:17:05 | 2020-05-07T07:17:05 | 182,473,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,494 | py | from random import *
from collections import deque
import Packet
class Node:
def __init__(self, identity_ip, buffer_size, gen_prob, total_nodes_in_system, randomization_ceiling, max_retrans_count_until_drop):
self.identity_ip = identity_ip
self.buffer_size = buffer_size
self.buffer = deque... | [
"ravipandhiait@gmail.com"
] | ravipandhiait@gmail.com |
a43370084f8aed4b85f5604907aaff3a544de79d | d77d799cf6c72e1299701f45693e146c338e4064 | /blog/views.py | 2462594f06079b0a2fd91af472b47b712ec8eb71 | [] | no_license | Jonathanifpe/my-first-blog | 257c6c6a4972712b9ba4749b9160c58fb7b48df5 | c03c571207a61924888d27f8a48d7a1d0b660879 | refs/heads/master | 2021-04-12T05:50:15.911921 | 2017-06-28T21:59:44 | 2017-06-28T21:59:44 | 95,694,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | from django.shortcuts import render, get_object_or_404
from django.utils import timezone
# Como views.py e models.py estão no mesmo diretório podemos simplesmente usar . e o nome do arquivo (sem .py).
from .models import Post
# Create your views here.
def post_list(request):
#Pegar a lista de posts que foram publ... | [
"jrsap@a.recife.ifpe.edu.br"
] | jrsap@a.recife.ifpe.edu.br |
deceaf4cc9be6fae32b19e5d1db623f9aef157be | 462b971c675aa7a0476f645a9f29f21da4612f75 | /src/canny.py | 92b9cd4c74f6897d9be983f2960fe650eb503eb3 | [] | no_license | CDDzhang/horizon_ | ddc048e9d0352f20a2e835390ac1b9470f25c131 | 79c0676bde875f3309d2c3c7460f3afb2e766554 | refs/heads/master | 2022-11-14T02:25:05.661980 | 2020-06-29T08:08:42 | 2020-06-29T08:08:42 | 275,770,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | import cv2
import numpy as np
import src.blur as blur
def img_canny(img):
img = img
# img = img[100:1600,375:1500]
img1 = cv2.resize(img, (640, 480))
img = img1
img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
# filter:
img = blur.blur(img, Blurnum=3)
ret, thresh = cv2.threshold(img, 0, 255... | [
"18811363276@163.com"
] | 18811363276@163.com |
631e33fe35bf9b382cc076142b56410f9f925c6f | e60a342f322273d3db5f4ab66f0e1ffffe39de29 | /parts/zodiac/pyramid/tests/pkgs/fixtureapp/views.py | a42b58217f01e42d42c80a658be0d1bc8c543933 | [] | no_license | Xoting/GAExotZodiac | 6b1b1f5356a4a4732da4c122db0f60b3f08ff6c1 | f60b2b77b47f6181752a98399f6724b1cb47ddaf | refs/heads/master | 2021-01-15T21:45:20.494358 | 2014-01-13T15:29:22 | 2014-01-13T15:29:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | /home/alex/myenv/zodiac/eggs/pyramid-1.4-py2.7.egg/pyramid/tests/pkgs/fixtureapp/views.py | [
"alex.palacioslopez@gmail.com"
] | alex.palacioslopez@gmail.com |
531a0f2971c9916a90111d7a3a60c5b3108c54c3 | f8ac7433544a364b5da918c7c3d64289600a92be | /notebooks/mean_field_model.py | 23b1ae32fccf08a8608a1a39c0ca269f37f82ad7 | [] | no_license | btel/ei_ephaptic_model | c2af9e48349124051c4240e588ad3a220a694999 | a2dee563b99c76202335031cacd846f083996db1 | refs/heads/master | 2023-02-20T22:22:33.829700 | 2021-01-08T09:44:17 | 2021-01-08T09:44:17 | 154,492,711 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,580 | py | #!/usr/bin/env python
#coding=utf-8
import numpy as np
from scipy import special
from scipy import optimize
#SI base units
s = 1
kg = 1
m = 1
A = 1
#derived units
S = s**3*A**2/(kg*m**2)
V = kg*m**2*s**-3*A**-1
F = s**4 * A**2 * m**-2 * kg ** -1
Hz = 1/s
#with prefixes
nS = 1e-9 * S
uS = 1e-6 * S
mV = 1e-3 * V
pF =... | [
"bartosz@telenczuk.pl"
] | bartosz@telenczuk.pl |
44e65597c9d09c9e6d7df09034df211ec77c6bb7 | 8083f3819e4dbdd134f6a636020c5e89053c3ad8 | /shop/migrations/0005_orders_amount.py | 07bd8afd74822dd1fd4eba16280385b574652a08 | [] | no_license | vikasmauryaofficial/buyfromhome | c0c8ef763202ce04509c2e855c5f34cce177e5b0 | ed2ab1f64eb1faf07782b5181fb035bcd9bbcc0a | refs/heads/master | 2022-12-05T14:02:09.726222 | 2020-08-19T15:59:07 | 2020-08-19T15:59:07 | 258,971,109 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | # Generated by Django 3.0.4 on 2020-04-25 15:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0004_orders_orderupdate'),
]
operations = [
migrations.AddField(
model_name='orders',
name='amount',
... | [
"vikasm.official@gmail.com"
] | vikasm.official@gmail.com |
f46600e041a9e3fa1eb90c0961f25917ad284329 | e95fc8c562c050f47ecb6fb2639ce3024271a06d | /medium/46.全排列.py | 60bd223afd3aaf74a76e0693f8cd590cbe521c1d | [] | no_license | w940853815/my_leetcode | 3fb56745b95fbcb4086465ff42ea377c1d9fc764 | 6d39fa76c0def4f1d57840c40ffb360678caa96e | refs/heads/master | 2023-05-25T03:39:32.304242 | 2023-05-22T01:46:43 | 2023-05-22T01:46:43 | 179,017,338 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | #
# @lc app=leetcode.cn id=46 lang=python3
#
# [46] 全排列
#
# @lc code=start
from typing import List
"""
result = []
def backtrack(路径, 选择列表):
if 满足结束条件:
result.add(路径)
return
for 选择 in 选择列表:
做选择
backtrack(路径, 选择列表)
撤销选择
"""
class Solution:
def permute(self, num... | [
"ruidong.wang@tsingdata.com"
] | ruidong.wang@tsingdata.com |
02cdb66616bdde2dfae11f96162149ab105ca015 | dae129b83f5635e2ded9d6a9f97a15c3953a4c96 | /project.py | 69dbb0b76dca3d40ee6f91da7f4a88c9da63a141 | [] | no_license | barkev2009/Mini-Projects | 3584e6757595ac96f6a08c9f24e87773858d3a9f | 57bfc79b44627c433d1d7692b560d43571d5c493 | refs/heads/master | 2020-08-11T03:36:36.951408 | 2019-10-20T14:01:05 | 2019-10-20T14:01:05 | 214,483,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,394 | py | from datetime import date
# Printing the heading
print('''"Вояджер-1" был запущен 5 сентября 1977 года.
Предлагаем узнать примерное расстояние от зонда до Солнца на выбранную Вами дату,
предполагая, что зонд движется по прямой, с постоянной скоростью.''')
# Setting the velocity
velocity = 38241 # miles/hou... | [
"noreply@github.com"
] | noreply@github.com |
9e14947217a3b89187ed7b08faf9ab8095a03563 | 85a03f8c79cc2092709e7be55f8d63db1949df92 | /oldmain.py | 7e3912019f097631c654eca810519fef10c0f987 | [] | no_license | GeraAlcantara/pinchef | f3570664929a506cc4810598bc42b19081cd058d | 2379820a50cef6687e3905e14cc7f6f0a34ec65f | refs/heads/master | 2023-08-11T06:30:38.811606 | 2021-10-10T17:38:44 | 2021-10-10T17:38:44 | 412,414,537 | 1 | 1 | null | 2021-10-06T19:07:29 | 2021-10-01T10:00:26 | Python | UTF-8 | Python | false | false | 4,126 | py | # proceso de Oauth2 login
from datetime import datetime, timedelta
from typing import Optional
import os
from dotenv import load_dotenv
from fastapi import Depends, FastAPI, HTTPException, status
from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestForm
from jose import JWTError, jwt
from passlib.c... | [
"gerardo.mexicano@gmail.com"
] | gerardo.mexicano@gmail.com |
b259e075e6f57daf45d84ef30bc00fdb2c29c3b9 | 3dac960cd8cb0efa6ae726fc96e0748234f5437d | /03python-books/python3-cookbook/第一章:数据结构和算法/1.7 字典排序.py | f6ab72e2bcd24eb2abd367f59900b072ef6e994f | [] | no_license | nebofeng/python-study | 352b805163b3c81bee3d37f9240e336b6b5bd246 | 18c07f4ba44c9f35325e07a1c8c2984cab9abd34 | refs/heads/master | 2020-03-27T08:52:50.669866 | 2019-11-18T05:18:30 | 2019-11-18T05:18:30 | 146,294,997 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | #你想创建一个字典,并且在迭代或序列化这个字典的时候能够控制元素的顺序。
#为了能控制一个字典中元素的顺序,你可以使用 collections 模块中的 OrderedDict 类。
#在迭代操作的时候它会保持元素被插入时的顺序,示例如下
from collections import OrderedDict
d=OrderedDict()
d['foo'] = 1
d['bar'] = 2
d['spam'] = 5
d['grok'] = 4
# Outputs "foo 1", "bar 2", "spam 3", "grok 4"
for key in d:
print(key, d[key])
#当你想要构建一... | [
"nebofeng@gmail.com"
] | nebofeng@gmail.com |
eb4dcb0695216b1e4c121149f2ed15f123a1e73f | 5e6df6fe5430728428339fba5f4cc1b3bada3912 | /matcherScriptTwo.py | aced1d930aa337f5ec9e1fa67555a97765a72f0f | [] | no_license | MFredX/Honours-Scripts | 0f411f3620d1ffd508feea17f66f4a1843924e5e | 7a9b4e17472e0cd10c755d7571b5e889deb8aeef | refs/heads/master | 2022-10-16T13:43:02.726561 | 2020-06-12T13:24:45 | 2020-06-12T13:24:45 | 271,802,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,900 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 8 21:43:13 2020
@author: sachi
"""
import numpy as np
import cv2
from matplotlib import pyplot as plt
MIN_MATCH_COUNT = 10
img1 = cv2.imread('./Training/croppedDrive.jpg',0) # queryImage
img2 = cv2.imread('./Training/croppedLob.jpg',0) # trainImage
# Initiate SIFT d... | [
"47466168+MFredX@users.noreply.github.com"
] | 47466168+MFredX@users.noreply.github.com |
07f3f67d6f6f29eb55237b53dbf86e7f620319bd | aae1a200625dc357f8906f6b4532e041bd13e638 | /paml_parser.py | 1212bb9df23b121d129f5e44e5bb4da4c1165328 | [
"MIT"
] | permissive | prakashraaz/bootcamp_test | 1b2473c41f54a2b2f921efce9684a46b4cde4e2b | c664b4b6ff304009924c5680cc6f0c84c75833d3 | refs/heads/master | 2021-01-09T20:32:18.313764 | 2016-06-10T13:54:47 | 2016-06-10T13:54:47 | 60,851,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,814 | py | # PAMLparser. Outputs useful data from PAML outputs (baseml and codeml) in a
# tab-delimited form, readable by Excel, etc.
#! /usr/bin/env python
import sys
import re
Usage = """
You must give a file, and provide an output file name.
E.g., "paml_parser.py examplebaseml.output > cleanSummary.txt"
"""
# User inp... | [
"prtimilsina@gmail.com"
] | prtimilsina@gmail.com |
40d415f635b35add767833905aef591e6990c7bb | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/bgp/bgprtprefixcounthist1year.py | 71ca4307f2d3906eb50252edabe8f510d7043377 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,082 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
ca161f03be6e6ff891468e06abe663b58ea01712 | 56f027edf5924ef92034ae03682076725b83f31a | /company/employeeapi/migrations/0001_initial.py | 97d575de3ea813da21fab76180944332bb6ed572 | [] | no_license | pranay-prajapati/Company-Management-System-API | 08d5bbe6dee3d4bc479df2a625745cc146056a11 | 4ec0098db962935a9db74340e197e2f71e2941df | refs/heads/master | 2022-12-16T22:45:39.905530 | 2020-09-05T14:24:54 | 2020-09-05T14:24:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | # Generated by Django 3.0.3 on 2020-09-04 06:51
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Employee',
fields=[
('id', models.AutoField... | [
"60659922+pranay-prajapati@users.noreply.github.com"
] | 60659922+pranay-prajapati@users.noreply.github.com |
c13756a0ae83f1d431e071abd4b4d72cab702e9b | 3d5fab0210b4b069042bbf4440d4bdd470c5fa35 | /morse/stream/decode.py | 388b75be5c8bf6a328a72f5155bf5b81c9e0a70d | [
"MIT"
] | permissive | cheeseywhiz/cheeseywhiz | 26f7ada10bacd66a92c7664564c7cb698811ecf6 | 51f6651ddbaeebd14d9ce77776bc4cf3a95511c4 | refs/heads/master | 2023-02-09T20:58:38.050046 | 2020-07-10T19:06:49 | 2020-07-10T19:06:49 | 91,837,068 | 0 | 0 | MIT | 2023-02-02T03:11:25 | 2017-05-19T19:03:51 | Python | UTF-8 | Python | false | false | 753 | py | from decode_tree import decode_tree
class BitStream:
def __init__(self, numbers):
self.numbers = iter(numbers)
self.init_bit_range()
def next_number(self):
self.number = next(self.numbers)
self.bit_range = range(self.number.bit_length())
self.next_bit()
def next_b... | [
"cheesy.mac.dott@gmail.com"
] | cheesy.mac.dott@gmail.com |
f4b8900ed36ecdfb46767aa1eddfaae0508887d4 | 5cf1b49cf8c6ac048f714cd946aa9476cae2505e | /userprofile/migrations/0019_usermain_dob.py | a09cb2d81128cf8f4e91958a34ef046985b499d7 | [] | no_license | vatsv/PanaceiaProgect | 6e98e7fe9f32ccb2e28a89d182138824d709fcb8 | b1cbd9ed983e48d3987cc25da2e5ff26772c71c4 | refs/heads/main | 2023-03-21T13:09:16.345772 | 2021-03-04T07:05:13 | 2021-03-04T07:05:13 | 344,382,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | # Generated by Django 3.1.3 on 2020-12-08 11:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('userprofile', '0018_auto_20201208_1402'),
]
operations = [
migrations.AddField(
model_name='usermain',
name='dob',
... | [
"“vatsv91@gmail.com”"
] | “vatsv91@gmail.com” |
e62dab0374051f27143dd9f2e2707e9af79c2218 | c6f14e539b7fa1e2466bc22c78241ccd99b76447 | /tests/test_blog.py | 5c229929e75bc878643073f9dfef0a8d05da2cc5 | [] | no_license | cofm21/flask-tutorial | af8fc45d4835394f05f673fce5cfc9a3d069682d | d78cf01a70508da58d27480a2ebb0b32630aceab | refs/heads/master | 2020-04-08T13:21:35.303269 | 2018-12-03T17:27:27 | 2018-12-03T17:27:27 | 159,387,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,465 | py | import pytest
from flaskr.db import get_db
def test_index(client, auth):
response = client.get('/')
assert b"Log In" in response.data
assert b"Register" in response.data
auth.login()
response = client.get('/')
assert b'Log Out' in response.data
assert b'test title' in response.data
ass... | [
"connor.m@grownetics.co"
] | connor.m@grownetics.co |
df7db5f6cf855b9e25fa5feb01494b88573aacf4 | c5458f2d53d02cb2967434122183ed064e1929f9 | /sdks/python/test/test_contains_asset_predicate.py | 4fe42254ff5b1cf16affd36b2f5c261675e7f2ab | [] | no_license | ross-weir/ergo-node-api-sdks | fd7a32f79784dbd336ef6ddb9702b9dd9a964e75 | 9935ef703b14760854b24045c1307602b282c4fb | refs/heads/main | 2023-08-24T05:12:30.761145 | 2021-11-08T10:28:10 | 2021-11-08T10:28:10 | 425,785,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | """
Ergo Node API
API docs for Ergo Node. Models are shared between all Ergo products # noqa: E501
The version of the OpenAPI document: 4.0.15
Contact: ergoplatform@protonmail.com
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import openapi_client
from openapi_cli... | [
"29697678+ross-weir@users.noreply.github.com"
] | 29697678+ross-weir@users.noreply.github.com |
6d3d98d0120ad6d6ec0dceb5cf86b020ec9a9ecf | e2828bdae30efa4fde1894908af6d46a36ae3c15 | /Twitter-Tool-TRB/assessment/bin/easy_install | 3c4ba9415002928902d26184c642af9e7e562349 | [] | no_license | tbacas/Twitter_Django | 98b0ee13298b26abe436c71e8dc21d4104af17d7 | 6f25d2a91fa7ccb441909f1be94620cb930ed4a8 | refs/heads/master | 2020-07-06T17:42:14.791878 | 2020-05-26T20:38:40 | 2020-05-26T20:38:40 | 203,093,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | #!/Users/thomasbacas/Desktop/TwitterTool_TRB/assessment/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"thomas@redoakstrategic.com"
] | thomas@redoakstrategic.com | |
99027e30edf1a0bcd1aeb0c9f8caa4f0dd5e67be | bcc87219fcff3093758bbc4de6e09dfd21b127a8 | /grape.py | 342031003e84029f66ada092057b8359ae64cadb | [] | no_license | LeoHeller/BitRacer | b27ad57cde93c0ced1e89b802e51c73df4ad5906 | cea0a54a1a93436212598df1446d27ac746edaff | refs/heads/master | 2021-06-25T07:11:57.024327 | 2017-09-11T17:29:04 | 2017-09-11T17:29:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,764 | py | # 1. make a class that has the atributes of dodged count, position of x and y, trash speed, and class name
# 2. def save (writes the class to a file)
# 3. add save button to pause screen
# 4. add button on intro screen to go to a load save screen.
# 5. add buttons for loading the game
import os
import sys
import... | [
"ledo0071@gmail.com"
] | ledo0071@gmail.com |
72251e91e7a92f47684862d0a85c43ffa455136f | 3f0df23d130953dc29b6c7a5c4999ef3bd204dfb | /twitterapp/asgi.py | 42f1a211114274ea6ef27e665b1ec4dfe013c5a8 | [] | no_license | kaankulac/django-text-app | 5e4a773d9e644c484d9a5a8cdd9fa97ed5dd08a3 | cbb0c38c5dd66a787dce41f52ae5f2cd07a1e24e | refs/heads/main | 2023-08-01T02:11:40.424815 | 2021-09-13T08:30:02 | 2021-09-13T08:30:02 | 405,705,944 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for twitterapp 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.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"54685958+kaankulac@users.noreply.github.com"
] | 54685958+kaankulac@users.noreply.github.com |
92572d40e11aaec728a9177ec310fa9eb822e9f5 | b6f4e527154b82f4e3fa48f06ca53fc15bf08283 | /Day02/circle.py | 020bf65e82244b1110af1fb98f7a1eaca88e783e | [] | no_license | Light-City/Python-100-Days | 74118e36c658db6c897f847e7e554311af036b9d | 1fe049a1fe1e64082752d2d32cb75c1a4349cded | refs/heads/master | 2020-03-18T12:44:53.191512 | 2018-05-24T09:49:22 | 2018-05-24T09:49:22 | 134,741,794 | 3 | 1 | null | 2018-05-24T16:29:02 | 2018-05-24T16:29:02 | null | UTF-8 | Python | false | false | 288 | py | """
输入半径计算圆的周长和面积
Version: 0.1
Author: 骆昊
Date: 2018-02-27
"""
import math
radius = float(input('请输入圆的半径: '))
perimeter = 2 * math.pi * radius
area = math.pi * radius * radius
print('周长: %.2f' % perimeter)
print('面积: %.2f' % area)
| [
"jackfrued@126.com"
] | jackfrued@126.com |
ae34784aa1f3972444afd43c466afb94f3e83f8c | 0d8b08e790fcf57bf72d7afdd5d8afcd3beafa8d | /combinato-windows/css-copy-headers.py | 74d6394c04c9d28e0eb2dc39391f6411acbe3f29 | [
"MIT"
] | permissive | marijeterwal/combinato | 94d53375284a70cab7c7729617fe48c3fa0dbf57 | 4ccac676279c1e0bc679d25529849e85323c36df | refs/heads/master | 2020-04-16T03:11:36.693969 | 2019-01-14T14:21:55 | 2019-01-14T14:21:55 | 165,222,989 | 0 | 0 | MIT | 2019-01-11T10:10:12 | 2019-01-11T10:10:11 | null | UTF-8 | Python | false | false | 105 | py | #!/usr/bin/env python
# JN 2015-10-27 refactoring
from tools.get_header import parse_args
parse_args()
| [
"jonied@posteo.de"
] | jonied@posteo.de |
c4b95bb1509d20e46c920757aca3ca0e0a656d28 | cabc6694fa17f356d29e9a7537de69a94f79ca68 | /calculator.py | da7ac9d4352c0c7a5581aba4e41d57c4fa520116 | [
"MIT"
] | permissive | tejasmorkar/tkinter | 233c4c1a12141ce1652e596ab295c237a0ec3955 | 488eccade289b37302bb9544a91bb5b661492ae7 | refs/heads/master | 2020-12-07T05:51:50.035037 | 2020-01-08T20:40:16 | 2020-01-08T20:40:16 | 232,648,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,415 | py | from tkinter import *
root = Tk()
root.title("Simple Calculator")
# root.configure(bg="#242424")
e = Entry(root, width=35, borderwidth=5)
e.grid(row=0, column=0, columnspan=3, padx=10, pady=10)
def button_click(number):
current = e.get()
e.delete(0, END)
e.insert(0, str(current) + str(number))
def button_clear()... | [
"tejasmorkar@gmail.com"
] | tejasmorkar@gmail.com |
0ef74995d488190ad340d026e4e7f73bd2bcc8ba | 1119f754f57d8ece632866ac6e2e136de77466f4 | /new_case.py | ef4f51e5d0deeb1e10d29b940fe560cd55a95abf | [] | no_license | carissasun/HLS | 2cc0856832df128c6ce7a852cbd54dea0f21c17f | 2b1ad080b683c61ad345009f8a22e4d358a6b116 | refs/heads/master | 2021-06-27T08:53:45.340490 | 2017-09-17T00:37:20 | 2017-09-17T00:37:20 | 103,796,976 | 0 | 0 | null | 2017-09-17T02:18:57 | 2017-09-17T02:18:57 | null | UTF-8 | Python | false | false | 763 | py | import sys
from shutil import copyfile
year = "1L"
term = "Fall Term"
classmap = {
"civpro":"Civil Procedure",
"crim":"Criminal Law",
"lrw":"Legal Reading and Writing",
"legreg":"Legislation and Regulation",
"torts":"Torts"
}
def get_class_name():
for key in classmap:
print "%s - %s" %... | [
"kxhere@gmail.com"
] | kxhere@gmail.com |
8a2c9ca2bc9cee05798064ddf9b121627de61573 | 14603d7b42da64c86e05b1495c78dd9451bcf940 | /test_Subtract.py | 8347132e2154d742096367dfec7704dfac651c79 | [] | no_license | Vkutti/Calculator | 63ffe1fdb764651de6621d2fe0bc99bdceccecef | e4b0e2d88db87a0d88dde814bf82be115dfdf4ff | refs/heads/master | 2023-02-12T19:01:57.456528 | 2021-01-11T18:45:55 | 2021-01-11T18:45:55 | 291,496,510 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | import pytest
from SubtractFunctions import subtracting
john = 5
dylan = 6
mike = 7
ven = 100
kat = 150
def test_add_elementary():
assert subtracting(1, 2) == -1
def test_add_high_school():
assert subtracting(8000600, 6405006) == 1595594
def test_add_characters():
return_val = su... | [
"noreply@github.com"
] | noreply@github.com |
aa59920641826421de01225a970e86152cb78e97 | 1d00bfe48cb30d14eb45d08389d663581f297f49 | /pdf.py | fc8567a8713e9eff61ef560f56069608ac360a36 | [] | no_license | damirgafic/PDF-Playground | 10d3a61508747bb79038c942c1ce4542050051dd | cef5392e1ddb40d1fa88a487a9ded9ef7121347d | refs/heads/master | 2022-09-20T18:39:13.520431 | 2020-06-04T17:29:29 | 2020-06-04T17:29:29 | 267,965,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | import PyPDF2
import sys
inputs = sys.argv[1:]
def pdf_combine(pdf_list):
merger = PyPDF2.PdfFileMerger()
for pdf in pdf_list:
print(pdf)
merger.append(pdf)
merger.write('combined.pdf')
pdf_combine(inputs)
#with open('dummy.pdf', 'rb') as file:
# reader = PyPDF2.PdfFileReader(file)
# ... | [
"damirgafic@gmail.com"
] | damirgafic@gmail.com |
c201469ab4f413fd8c8302775d79ddbdb90d63b3 | cd20ef8372134b625989c7e7033118e919d89563 | /localize/__init__.py | 3d8473c1b054f158b96b7bf78490455c3e3171a8 | [] | no_license | adeeps1/Localization | f72d84e15e1f9cb195e28f87e7c6f047901524da | da672a59f4693881027aa2df6d2460c9c614f59a | refs/heads/master | 2021-08-23T03:06:50.007900 | 2017-12-02T20:26:15 | 2017-12-02T20:26:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | from __future__ import print_function
# Import all the different filters
from Kalman import *
from Particle import *
from Markov import *
| [
"kvmanohar22@gmail.com"
] | kvmanohar22@gmail.com |
3f3ffda4e1240e883906405ed000c5e8fbb3ffc6 | 1e61c600193ca26adfa5f667d5f8409028341cc5 | /TutorialSite/urls.py | 850e80390364628c2ab5e8ae5980e6e2ccdc8323 | [] | no_license | jtrinhx33/Django-Sandbox | 875a8d69516b22f0066d9cae8185f5cdfe8a2d3c | b728bd599206e810cc5f85c854a49fdfbfef08b5 | refs/heads/master | 2016-09-10T17:51:20.225572 | 2015-06-11T03:11:55 | 2015-06-11T03:11:55 | 37,236,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | """TutorialSite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/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')
Clas... | [
"jetrinh33@gmail.com"
] | jetrinh33@gmail.com |
b17a76e84bd5b341b2318577b474a833ebec0020 | 782ac271339bbaa317930205e39ce8622be11512 | /0x05-python-exceptions/3-safe_print_division.py | 883860b3c2519aa3c4adaf0113138f7be0ca45c4 | [] | no_license | portableDD/alx-higher_level_programming | bc19e2dac6eb5ff079494d8e8dc0d8d00b5241f3 | a7e08613558ec0dd4b355f863ef9f223d1872100 | refs/heads/main | 2023-08-28T15:04:44.949845 | 2021-10-12T15:04:51 | 2021-10-12T15:04:51 | 407,561,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | #!/usr/bin/python3
def safe_print_division(a, b):
try:
div = a / b
except (TypeError, ZeroDivisionError):
div = None
finally:
print("Inside result: {}".format(div))
return (div)
| [
"emmanueltemitopedorcas20@gmail.com"
] | emmanueltemitopedorcas20@gmail.com |
6b5be029fd1626d37c9b7f3db3aa07efd58e1011 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_123/627.py | 28c02feb9a393af2190da5d1cd6130c71872869c | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | __author__ = 'jeff'
from collections import deque
base = "A-small-attempt2"
#base = "A1_test"
f = open(base+'.in','r')
fout = open(base+'.out','w')
t = int(f.readline())
def proc( a, motes):
while( len( motes ) and motes[0] < a ):
a += motes.popleft()
return a
max_lev = 100000
for case in range(... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
0c77dbbd8fb08d26e300e02084f0f0fbd2f1fcfe | 80c3546d525a05a31d30cc318a44e053efaeb1f1 | /tensorpack/dataflow/imgaug/misc.py | 7fc983d4c9de61f53efc05459cca5493fcaca5a5 | [
"Apache-2.0"
] | permissive | yaroslavvb/tensorpack | 0f326bef95699f84376465609b631981dc5b68bf | 271ffad1816132c57baebe8a1aa95479e79f4ef9 | refs/heads/master | 2021-05-03T11:02:22.170689 | 2018-02-06T08:18:48 | 2018-02-06T08:18:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,419 | py | # -*- coding: UTF-8 -*-
# File: misc.py
import numpy as np
import cv2
from .base import ImageAugmentor
from ...utils import logger
from ...utils.argtools import shape2d
from .transform import ResizeTransform, TransformAugmentorBase
__all__ = ['Flip', 'Resize', 'RandomResize', 'ResizeShortestEdge', 'Transpose']
cl... | [
"ppwwyyxxc@gmail.com"
] | ppwwyyxxc@gmail.com |
6df0e64800da4c8a788cf625ac191169d6db205a | 5c4852f02b20c5c400c58ff61702a4f35358d78c | /editor_orig.py | 6a4e667273bf50ee0537555a81df701903e3eec4 | [] | no_license | anovacap/daily_coding_problem | 6e11f338ad8afc99a702baa6d75ede0c15f02853 | e64a0e76555addbe3a31fd0ca0bb81e2715766d2 | refs/heads/master | 2023-02-23T11:04:30.041455 | 2021-01-29T18:10:36 | 2021-01-29T18:10:36 | 302,237,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,992 | py | class SimpleEditor:
def __init__(self, document):
self.document = document
self.dictionary = set()
# On windows, the dictionary can often be found at:
# C:/Users/{username}/AppData/Roaming/Microsoft/Spelling/en-US/default.dic
with open("/usr/share/dict/words") as input_dictio... | [
"vagrant@localhost.localdomain"
] | vagrant@localhost.localdomain |
d045b497d933aa18b4778d7534a892d04146d5e7 | fd8f3f3d8b9a7f43f2961e290faa53fc29851baf | /auth_enj/urls.py | e6dc0b88d97a8cb6a12910e97a932da5f987f49f | [] | no_license | TwoCatsCanFly/localSite | 5d629e07183e24cb106612795d5e7bbbeabe8ed4 | 47a91990f6860bed315bb0c5af65c2e349934348 | refs/heads/master | 2022-12-06T22:23:07.441937 | 2020-09-01T09:00:00 | 2020-09-01T09:00:00 | 284,434,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | from django.urls import path
from .views import *
from . import views
from django.contrib.auth import views as auth_views
urlpatterns = [
path('register/', UserRegistrationView.as_view(), name='register'),
path('edit-profile/', UserEditView.as_view(), name='edit_profile'),
#path('password/', auth_views.Pas... | [
"TwoCatsCanFly@users.noreply.github.com"
] | TwoCatsCanFly@users.noreply.github.com |
d7ce13d83dd278c415907caea2967729f60ed941 | 78a8c8a60b9ebb6c5e01528253971f8464acdc27 | /python/problem79.py | be165c1f7339f7177c38ab3d2d5c3cc45a096b0d | [] | no_license | hakver29/project_euler | f1b2d19f0bf2c6b842256f961845424cd2dc696f | ab356a32d706759531cad7a1a6586534ff92c142 | refs/heads/master | 2021-06-03T13:39:22.758018 | 2020-12-01T23:42:35 | 2020-12-01T23:42:35 | 70,273,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | import pandas as pd
import os
path = './p079_keylog.txt'
data = pd.read_csv(path, header=None)
print(data)
# First letter: [1,3,6,7]
# Only 7 is always first: 7
# Second letter: [1,2,3,6]
# 3 before 1
# 3 before 6
# 3 before 2
# Second letter: 3
# Third letter: [0, 1,2,6,7,8,9]
# 1 before 9 2 8 6 0
# Third letter: ... | [
"haakongv@stud.ntnu.no"
] | haakongv@stud.ntnu.no |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.