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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9bfef8ea5ee76a8076e4ae4927c5af7803deeabb | dc5675b4e32cac0807ea07f70ff75d53497d903e | /causal/convert_to_npy.py | 95245c92657dc0b18ded4d24ed9332b9228f1c2e | [] | no_license | jeff-da/cracking-the-commonsense-code | 7ea8d17fb56541c19f860d498be22d8641c38d22 | 8a54f01888959245f066da8c7c921d949adce93e | refs/heads/master | 2020-10-01T15:40:32.213604 | 2019-12-12T09:31:10 | 2019-12-12T09:31:10 | 227,568,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | """
Convert the GloVe co-occurrence data to a numpy matrix.
"""
from argparse import ArgumentParser
import struct
import numpy as np
from scipy.sparse import coo_matrix, lil_matrix
from tqdm import trange
p = ArgumentParser()
p.add_argument("--vocab_file", required=True)
p.add_argument("--cooccur_file", required=Tr... | [
"jexeld@gmail.com"
] | jexeld@gmail.com |
c1207cd99cf050f5920e60b5acdcba64e82686ab | 34dab2e882e304f1b371c7e1dabcc6eacbc67dc9 | /contrib/bitrpc/bitrpc.py | e3b01c117726add9397660c62e7553c5664a2ecf | [
"MIT"
] | permissive | worldgold/test | 6ac526c4e80b94e27fd0751b48b0bddb6134c6da | 9645229c1d2e30e215e9e0424a52121606fefec9 | refs/heads/master | 2021-01-19T18:39:55.932086 | 2017-08-23T09:48:59 | 2017-08-23T09:48:59 | 101,150,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,838 | py | from jsonrpc import ServiceProxy
import sys
import string
# ===== BEGIN USER SETTINGS =====
# if you do not set these you will be prompted for a password for every command
rpcuser = ""
rpcpass = ""
# ====== END USER SETTINGS ======
if rpcpass == "":
access = ServiceProxy("http://127.0.0.1:10332")
else:
access = Se... | [
"inder@system.(none)"
] | inder@system.(none) |
40fc3a0276b1fc14e4cbde317b29b1d2aaf23308 | c3cc02f10e8e6e892da1c033d8f9f20efc01213a | /upload-login-registration-django/AuthProject/templates/EPIC/Joining/views.py | b6fd731b2fbebcffcd0697b079d2dc0e2d3764e3 | [] | no_license | benchmarketdev/Python-Django | 43d2b28a8538a8c43aad9b37e23488c325ed9f1b | 20e6ac34c3f010a0ab36fd2d6bf8114a20d158f7 | refs/heads/master | 2020-04-01T04:32:42.320898 | 2018-10-13T18:35:28 | 2018-10-13T18:35:28 | 152,867,922 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,805 | py | from django.shortcuts import render, redirect
from models import *
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from datetime import datetime
import datetime, decimal
from Employee.models import *
from Library.emailer import *
from Users.models import *
from djan... | [
"eagle@gmail.com"
] | eagle@gmail.com |
adc05494fa63bf6c34d7e85ba4b3674a26b19617 | a5e9150f12fe0de60fe8851e1ed9f7b45ca01a00 | /keras_cifar10.py | dc386e3cff981333990ceaead537f870e2d54d02 | [] | no_license | dain5832/DL4CV | d73b9b8cd1807d01b6d3e56b75ce536c56078cc8 | 2af85f03e9bf87e6f9ff27554f7ec02c95d40f03 | refs/heads/master | 2022-11-14T15:23:58.049282 | 2020-07-06T07:15:51 | 2020-07-06T07:15:51 | 277,467,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,588 | py | # import the necessary packages
from sklearn.preprocessing import LabelBinarizer
from sklearn.metrics import classification_report
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense
from tensorflow.keras.optimizers import SGD
from tensorflow.keras.datasets import cifar10
imp... | [
"noreply@github.com"
] | dain5832.noreply@github.com |
6a90b6ebc4229778b978fc7673384247a2d2f335 | d60951deacf824b7cd34fef618d42336d8e0d6d3 | /src/laser_slam/src/DataAssociator.py | e4e82d132713a78db6847d695a15db0757ba2dce | [] | no_license | kevinatorchen/Husky | 4ad3663ae4f94d961b6b9091c40d8988f01a75e5 | c76710bb06b0d3ad4b89b2d5626d79b156cad2f2 | refs/heads/master | 2021-05-02T09:30:04.785522 | 2018-04-23T12:01:44 | 2018-04-23T12:01:44 | 120,824,581 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,600 | py | import numpy as np
MAX_MULTI_DIST = 0.4
JOINT_PENALITY = 100
MAX_INDIV_DIST = 4
MAX_RANGE = 10
MIN_RANGE = 0
class DataAssociator:
def __init__(self, laserSLAM):
self.slamInstance = laserSLAM
@staticmethod
def joint_compat_score(hypothesis, Z, X, d_z, d_x):
"""
compute the join... | [
"thibaut@homiwoo.com"
] | thibaut@homiwoo.com |
954328033e830e24754e6bdfd16070c83a6e687a | f11be78c01892f7c9dc44178ceeaacc0283f582f | /jsonschema_marshmallow/codegen/__init__.py | e031ea4e64bb66032fcc999588b2c073ec93bcfd | [
"MIT"
] | permissive | gijzelaerr/jsonschema-marshmallow | c6c8e5097f57e609832df30f02513b5d3e4737d0 | e73e523cd32f2235525a9c61e731c741268e4164 | refs/heads/main | 2023-06-24T00:43:45.410868 | 2021-07-20T11:57:54 | 2021-07-20T11:57:54 | 387,666,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | from jsonschema_marshmallow.codegen.cli import codegen
| [
"gijs@pythonic.nl"
] | gijs@pythonic.nl |
351cca2054fb8641c34017b3bc190680a699b824 | 4b44a299bafbd4ca408ce1c89c9fe4a449632783 | /python3/10_Modules/Parallel_Processing/a_get_cpu_count.py | 0a0464db866ec3a6c8aa2be9e3d728d2be413a38 | [] | no_license | umunusb1/PythonMaterial | ecd33d32b2de664eaaae5192be7c3f6d6bef1d67 | 1e0785c55ccb8f5b9df1978e1773365a29479ce0 | refs/heads/master | 2023-01-23T23:39:35.797800 | 2020-12-02T19:29:00 | 2020-12-02T19:29:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | import multiprocessing as mp
result = '''There are {} processors, in number, in this \
computer'''.format(mp.cpu_count())
print(result)
print(dir(mp))
print(mp.current_process())
| [
"uday3prakash@gmail.com"
] | uday3prakash@gmail.com |
6a2420036fa088bc0c7d614f108b8106288d4953 | f6a9b4b571d58078fc15e65ec1f50828b64f3b09 | /pulp-client/handlers/user.py | 9e5d40643c0e32bf8f75c05f3f51efff9f196e78 | [] | no_license | AyushGupta-Code/pulp-client | f36451fa320f27da83d63defcb3e497ccfa1565c | dc25ad8d87d7bc542955bdb5a54d4294d3dcc034 | refs/heads/master | 2023-04-09T14:41:56.062154 | 2021-04-18T16:11:59 | 2021-04-18T16:11:59 | 350,825,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,050 | py | from db.user import User
from flask_login import login_required
from flask import Flask, redirect, request, url_for, Blueprint
from flask_login import current_user
import requests
import json
#creates a page
userpage = Blueprint('userpage', __name__, template_folder='templates')
# userid is a variable and "users" is... | [
"ayushgupta20011@gmail.com"
] | ayushgupta20011@gmail.com |
7ab40d2eabfadbc816c5944cc521cefd12a0cfe9 | 3b19ca40d0dac17891600a99a4377b489f28e84c | /lib/nginx_log_parser.py | 0d5dd9ef784c53a25210a38e06a19c5dfd8ad2d7 | [] | no_license | danshipt/xddos | f65859e949ea098ff7a4562542f33161b925a18c | c61dac6114862fb53935413765d87e27573d4412 | refs/heads/master | 2021-10-08T15:20:24.348491 | 2017-03-22T14:31:08 | 2017-03-22T14:31:08 | 43,751,055 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,393 | py | from __future__ import unicode_literals
import re
class AccessLogRecord(object):
def __init__(self):
self.date = ''
self.domain = ''
self.ip = ''
self.http_code = ''
self.request_uri = ''
class NginxLogParser(object):
pattern = re.compile(r''
... | [
"bxtgroup@gmail.com"
] | bxtgroup@gmail.com |
7befb3c8b70e9b0355a8ee12802fd32712ce8bce | 668b98e9a4c2c8cc86135a620ead342b4195ecbe | /generate | 102b97c8b233ad329f9de3164d1192eab2460a85 | [] | no_license | treeman/why_cryptocurrencies | 0b4851ad8791ec35a0e5a8d8fa2d7ce2395242f4 | 9b9b771c7a89f4263aa9bcb11d3fc2210c747f33 | refs/heads/master | 2023-06-21T12:47:49.646774 | 2023-06-09T07:14:16 | 2023-06-09T07:14:16 | 179,041,862 | 45 | 11 | null | 2023-02-23T08:31:06 | 2019-04-02T09:17:18 | Perl | UTF-8 | Python | false | false | 2,289 | #!/usr/bin/python3
import glob
import subprocess
import os.path
import shutil
import errno
# Can upload with rsync -a -v _site/ <dest>/
# Could extend this with using a cache of sha256 output files
# to see if we should regenerate or not,
# but just cleaning _site/ is easier before build
# and using raco to update d... | [
"mail@jonashietala.se"
] | mail@jonashietala.se | |
3b53916e8912c613bc14b8d7042442b25b0154cd | 3c2e1395b0af0f0cbde14628f92d0ca075a1f089 | /loop.py | 112932b422e970b4866ef8ee67c65fb388763173 | [] | no_license | tylerweis14/SeniorDesignIIProject | e69ec54c0116305c243e32603fcc66179dd27663 | 0a55b66686e805c405585e35623c04c2c8bffb28 | refs/heads/master | 2022-06-15T03:30:55.908037 | 2020-05-06T15:21:08 | 2020-05-06T15:21:08 | 258,570,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,135 | py | import numpy as np
from scipy.interpolate import interp1d
from scipy.integrate import ode
from scipy.integrate import odeint
from scipy.integrate import solve_ivp
import matplotlib.pyplot as plt
def dydt(t,y, params):
x, y, z_f, z_c=y
alpha,lamb,beta,c_pf,c_pc,m_f,m_c,W_ce,T_cine,a_f,n_e,alpha_f,alpha... | [
"noreply@github.com"
] | tylerweis14.noreply@github.com |
523f716dc6a787ce7d6eb918648030f3ec9e97be | 203f8465075e098f69912a6bbfa3498c36ce2a60 | /sandbox/person_follower/src/follower/msg/_WaitActionGoal.py | 518c8b03a5d36551ca3d0537d1a0fbd58db54de3 | [] | no_license | robcn/personalrobots-pkg | a4899ff2db9aef00a99274d70cb60644124713c9 | 4dcf3ca1142d3c3cb85f6d42f7afa33c59e2240a | refs/heads/master | 2021-06-20T16:28:29.549716 | 2009-09-04T23:56:10 | 2009-09-04T23:56:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,433 | py | # autogenerated by genmsg_py from WaitActionGoal.msg. Do not edit.
import roslib.message
import struct
## \htmlinclude WaitActionGoal.msg.html
class WaitActionGoal(roslib.message.Message):
_md5sum = "54f5dc6d242ed96aa3e20c82006143e4"
_type = "follower/WaitActionGoal"
_has_header = False #flag to mark the presen... | [
"ethandreyfuss@f5854215-dd47-0410-b2c4-cdd35faa7885"
] | ethandreyfuss@f5854215-dd47-0410-b2c4-cdd35faa7885 |
08aea1c4cf86277a51c4d590dbf843a9e116acea | 3ccd609f68016aad24829b8dd3cdbb535fb0ff6d | /python/bpy/types/FILEBROWSER_UL_dir.py | d242f98ab9b1a289208ea3db9e875d5ed1fb5d58 | [] | no_license | katharostech/blender_externs | 79b2eed064fd927e3555aced3e2eb8a45840508e | fdf7f019a460de0fe7e62375c1c94f7ab0e9f68d | refs/heads/master | 2020-04-11T14:00:29.393478 | 2018-10-01T00:40:51 | 2018-10-01T00:40:51 | 161,838,212 | 1 | 1 | null | 2018-12-14T20:41:32 | 2018-12-14T20:41:32 | null | UTF-8 | Python | false | false | 140 | py | class FILEBROWSER_UL_dir:
def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index):
pass
| [
"troyedwardsjr@gmail.com"
] | troyedwardsjr@gmail.com |
fb85a52144a9c86363881b3524450dd3278eed03 | 64054ffdbde22ac17d2caff30cd53752c29e7bf4 | /courses/migrations/0003_auto_20180225_2023.py | c5d7affdffe11313a0b80a866e33744e8103b25d | [] | no_license | fernandovbs/simplemooc | 76fac35133d9b5acf5ae7b47fa8449a6842206e5 | ca68fbb503fc2cb7c58dd6ec718c8ecf153e957b | refs/heads/master | 2021-04-30T00:08:36.157836 | 2018-03-30T21:57:02 | 2018-03-30T21:57:02 | 121,570,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | # Generated by Django 2.0.1 on 2018-02-25 20:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0002_auto_20180214_2338'),
]
operations = [
migrations.AlterModelOptions(
name='course',
options={'verbos... | [
"fernandostorm1@gmail.com"
] | fernandostorm1@gmail.com |
eebf0e423107f15c0c1e58dc38ee919714391509 | 82287f24760966e5d5d99fcd3c4d96bbc4a0eb81 | /First Test.py | 9968a6eacd1a5549d317d38d9ebf082bed005982 | [] | no_license | JHarzenetter/Planetensimulation | 766f42d22e12cd822d2b5c7a99c09286f1beaa31 | 61a591179dcea7485d6d9dc0392a963932bff3ba | refs/heads/master | 2020-04-05T03:15:16.682453 | 2018-11-07T08:08:30 | 2018-11-07T08:08:30 | 156,507,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | import math
print("hallo")
def calc(number):
return number**2
print(str(calc(8)))
print(str(math.sqrt(calc(6))))
| [
"johannes.harzenetter@gmail.com"
] | johannes.harzenetter@gmail.com |
91129a536dccabd4d97cb50c44fef92adc6b28fc | e8204c87247729a4dd7c302e6949daeb371a9996 | /main.py | 84772714c518e4615e508acbd607fb2162e06f25 | [] | no_license | umarshabir/Turtle-crossing-game-Frogger- | 0080adef09b29cda64bfd50874dda6f677117541 | 720c9a6c1ebdb542d14e8a5fcde509e40a5c89fe | refs/heads/main | 2023-03-18T12:50:06.694265 | 2021-03-11T14:59:09 | 2021-03-11T14:59:09 | 346,738,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | import time
from turtle import Screen
from player import Player
from car_manager import CarManager
from scoreboard import Scoreboard
player = Player()
car_manager = CarManager()
scoreboard = Scoreboard()
screen = Screen()
screen.setup(width=600, height=600)
screen.tracer(0)
screen.listen()
screen.onkey(player.move, "... | [
"noreply@github.com"
] | umarshabir.noreply@github.com |
10ef64737d16248a9f71ed4a09aa9ea77ca86f54 | c109c11c93a628086e1181d16906304070c396b6 | /Test04_散点图.py | 6af7672e98029cb137f1729f3e15fc253b7c5a55 | [] | no_license | Monkey-D-Luffy-star/Py_DataAnalyse01 | 24e3aea4fac2b079f7823d2abf164c24a9714bb1 | 3fba96133d675294d61b067d03fbe7932ff098ae | refs/heads/master | 2022-11-30T03:10:51.376333 | 2020-08-08T01:41:03 | 2020-08-08T01:45:02 | 285,835,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,257 | py | from matplotlib import pyplot as plt
from matplotlib import font_manager
y_3 = [11, 17, 16, 11, 12, 11, 12, 6, 6, 7, 8, 9, 12, 15, 14, 17, 18, 21, 16, 17, 20, 14, 15, 15, 15, 19, 21, 22, 22,
22, 23]
y_10 = [26, 26, 28, 19, 21, 17, 16, 19, 18, 20, 20, 19, 22, 23, 17, 20, 21, 20, 22, 15, 11, 15, 5, 13, 17, 10, 11... | [
"1451955616@qq.com"
] | 1451955616@qq.com |
7b835c930ee026e800a8f2c827ca7cc2dd2b6951 | b4ec04d6a2a4ba57d11b577326086c14d9b9408b | /freshontheboattests/testUserRegistration.py | 48a96a3d9990ad9a29a052739e0cbb4104299f60 | [] | no_license | petergzli/FreshOnTheBoat | 91268d43f91c85da0bacafa268b42e2f1e3dfe6c | 6320bcd798ad23d6ed936fddeb51a040a28853b2 | refs/heads/master | 2021-01-20T10:06:13.318571 | 2015-11-25T18:52:36 | 2015-11-25T18:52:36 | 41,778,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | #The Following Script is a sample POST tester, to see if your entry was successfully added to database.
import requests
url = 'http://127.0.0.1:5000/users/new/'
params = {"firstname": "Carly", "lastname": "Jepsen", "username": "callbaby", "encrypted_password": "baby"}
HTTPresponse = requests.post(url, data = params)
p... | [
"petergzli@gmail.com"
] | petergzli@gmail.com |
cb3c52836c92de725f4b0b5bc037f530ce63d13a | 656b431bf7ac23d5593ddf4fb69c29c251d744cb | /zen/layer/base/node.py | 91c5f8a19f460b42f4d3cf942d8f853c60c39140 | [] | no_license | knighton/zen-0.14 | 2c8e4f0aa2e6c862d4022eb346a619268250273e | 7936e43a115d00888bf6c523525bf9f3e7a49256 | refs/heads/master | 2021-01-21T05:33:01.494392 | 2018-05-17T15:01:30 | 2018-05-17T15:01:30 | 101,927,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,619 | py | from copy import deepcopy
from ..arch.vee import Vee
class Node(Vee):
"""
A node of a neural network.
They consist of input and non-input nodes (Inputs and LayerNodes).
"""
def __init__(self):
self._out_shape = None
self._out_dtype = None
self._out_data = None
se... | [
"iamknighton@gmail.com"
] | iamknighton@gmail.com |
52a5a034b32eedf99db0c7b0b8e8069b46531061 | a54dc0d9ea54cb568f66f2ff24f1971f77eac19c | /code/message/start_face_recognition_message.py | 8bf6faa09233eb803189942dc734e303ef52a4be | [
"MIT"
] | permissive | ITE-5th/skill-image-caption | 25a42b90e9058eb40959fd01c96ee8f0d73616dc | 1a77d27b4fbadd89a6390e8707d4a7975b1edb8d | refs/heads/master | 2020-03-16T23:29:31.414857 | 2018-07-27T18:06:38 | 2018-07-27T18:06:38 | 133,079,676 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | from .message import Message
class StartFaceRecognitionMessage(Message):
pass
| [
"m.zaher.airout@gmail.com"
] | m.zaher.airout@gmail.com |
a3d375e158820a56402b5129f60972b9f1c6a911 | 5dde747548ef6e78e073e8a14d2c4a3ccbab0d39 | /Experiments with pywhatkit/pywhatkit.py | 5ae68a0a685d178ed49a09647523c9583cd73646 | [] | no_license | nandinichhajed/Python-Projects | 9ba9ecae0717791e98a4ff4440be7a0bf2cc99e7 | 07dfa4b99c5cebf3abfd2089f23506debf2e0a8c | refs/heads/main | 2023-08-18T08:34:27.135830 | 2021-10-06T11:23:37 | 2021-10-06T11:23:37 | 382,581,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | import pywhatkit as kit
# Sending whatsApp message
kit.sendwhatmsg_instantly("+919406655668", "Hiiiii")
kit.sendwhatmsg_to_group("group name", "Hiiiii", 22,33)
kit.sendwhats_image("+91**********", img_path="path", caption="caption")
# To search something on web browser
kit.search("python")
# To find information
kit.... | [
"nandinichhajed08@gmail.com"
] | nandinichhajed08@gmail.com |
b316ac46f5b5539ea3578aae0e065e9d9d12f5d0 | c7145148ad0d68b2ae6a94c5295a5e2e8189388b | /solutions/1-introduction/starred/11799.py | 8ab72169f18bb00acb4bd46cd027972fb3159a84 | [] | no_license | Ochirgarid/uhunt | 63a94d6ff3474110e596ccb9153e52f96f6a9c09 | 45d9de7c8bb8fe73958fe132e483ae6d52bcd0f7 | refs/heads/master | 2023-02-06T01:07:40.379692 | 2020-12-31T14:52:34 | 2020-12-31T14:52:34 | 324,241,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | if __name__ == "__main__":
t = int(input())
for c in range(t):
h = list(map(int, input().split()[1:]))
print("Case {}: {}".format(c+1, max(h))) | [
"ochir.garid@gmail.com"
] | ochir.garid@gmail.com |
97067240f3603e9eccc91bbf918e2013e744e8ff | 077edc89068e3024904db9973214ab0d7dd14eac | /airflow/plugins/operators/load_fact.py | 1abea7288a489cf3dc9bbb5455102e9b94c07060 | [] | no_license | eflemist/airflowdatapipelines | 2b2aedd996f2ceef31b1d52a04171a37528730f9 | cc675028341f18fa94959ea899c251d5b70f8aa6 | refs/heads/master | 2023-03-27T12:48:18.587203 | 2021-03-25T19:36:55 | 2021-03-25T19:36:55 | 351,539,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 978 | py | from airflow.hooks.postgres_hook import PostgresHook
from airflow.models import BaseOperator
from airflow.utils.decorators import apply_defaults
class LoadFactOperator(BaseOperator):
ui_color = '#F98866'
insert_sql = """
INSERT INTO {}
{}
"""
@apply_defaults
def __init__(sel... | [
"eflemist@gmail.com"
] | eflemist@gmail.com |
81b8a4f9af2aa380377c9d6d5cced5d7971abdd4 | ead4170bcd27518252592faad66be2e1febf6133 | /prg19.py | aef99b960f5161874142cd1fc3f7c2ce95c0eaea | [] | no_license | peazybabz/Python-Tutorials-for-beginners | 657b562dc3e8ef4e5026ed15adc3ae11b0d4f3e9 | 5df118b2ff99f8b678ce5ebce695896387a40fe4 | refs/heads/master | 2020-04-01T11:12:16.217665 | 2018-10-17T18:24:34 | 2018-10-17T18:24:34 | 153,151,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | #19. Python Program to Check Armstrong Number
# take input from the user
num = int(input("Enter a number: "))
# initialize sum
sum = 0
# find the sum of the cube of each digit
temp = num
while temp > 0:
digit = temp % 10
sum += digit ** 3
temp //= 10
# display the result
if num == sum:
print(num,"is an ... | [
"npeace81@yahoo.com"
] | npeace81@yahoo.com |
b53d51e90634a68addf27b8fb44bc961f55f096a | e5e2b7da41fda915cb849f031a0223e2ac354066 | /sdk/python/pulumi_azure_native/web/v20190801/web_app_diagnostic_logs_configuration.py | b955573f291c7fb008c4a782dcab13d6ce640e51 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | johnbirdau/pulumi-azure-native | b7d3bdddeb7c4b319a7e43a892ddc6e25e3bfb25 | d676cc331caa0694d8be99cb90b93fa231e3c705 | refs/heads/master | 2023-05-06T06:48:05.040357 | 2021-06-01T20:42:38 | 2021-06-01T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,078 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | johnbirdau.noreply@github.com |
8bb474e67284156e8874fe976147f794bece629e | 9d767c7df630aa7782264cc51073065e1f5d4c5d | /mlia-examples/src/book/itemsets/fpgrowth.py | 63673ca3cc752ccdb6d86d30bef3666a042b1e84 | [] | no_license | GomesNayagam/workspace | 497e6eaad2785875a02f870cd384516b72501110 | d23e806cbbe0decc8a34bcd61636468a46f439a4 | refs/heads/master | 2016-09-06T17:45:52.800243 | 2014-09-25T13:51:20 | 2014-09-25T13:51:20 | 24,454,554 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,319 | py | from __future__ import division
from numpy import *
class TreeNode:
def __init__(self, nameValue, numOccur, parentNode):
self.name = nameValue
self.count = numOccur
self.nodeLink = None
self.parent = parentNode
self.children = {}
def inc(self, numOccur):
self.count += numOccur
def disp(... | [
"gomes.uma@gmail.com"
] | gomes.uma@gmail.com |
cc45df1680460ba8ad0cf37c8e58af522b26b94e | 87b11aedcce596b47775eabc34e4c3c7d1e4c6a7 | /venv/Scripts/easy_install-3.7-script.py | d80ab360d01bbf3cd015cdaa955a421eef6213eb | [] | no_license | EstebanLauKoo/testPython | fa9dc29878fedaa4cafce086b62276cb5cad542f | d9d54b6ab6980f434904ee4a8606199b49b13bc8 | refs/heads/master | 2020-05-09T15:48:19.930899 | 2019-10-17T03:14:55 | 2019-10-17T03:14:55 | 181,246,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | #!C:\Users\esteb\PycharmProjects\testPython\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.... | [
"4801459559Ee"
] | 4801459559Ee |
93fdc72b73f69d9440a0a0c7fba0adaaf73f0d90 | e92ef35f88c743597cfabe1a9e584ed659695c4a | /fr_util.py | b07ebf42256fe56194849637e319e54d98b09dff | [] | no_license | yshenkai/face_decetion_rec | 2c1f3d8e06b164d59fdccbcc9eb5e0f438e50f00 | 0cd66665e781e05625c21588e17d60d13202e43b | refs/heads/master | 2020-08-08T11:27:35.655213 | 2019-10-09T04:36:29 | 2019-10-09T04:36:29 | 213,821,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,203 | py | import tensorflow as tf
import numpy as np
import os
from numpy import genfromtxt
from keras.models import Model
from keras.layers import Input,Conv2D,Dense,MaxPooling2D,AveragePooling2D,BatchNormalization,Activation,ZeroPadding2D,concatenate,Flatten,Lambda
import h5py
import matplotlib.pyplot as plt
import cv2
from ke... | [
"mlshenkai@163.com"
] | mlshenkai@163.com |
3e6a874a64e7d69cc870d2a47199ffe654c59f9b | 904e75e2ceff81c18a432fe1b951b683e859cbed | /views/console/voucher.py | 809b9bed03144310d4c914e793626e5bbf9acd22 | [] | no_license | PUYUP/plutoborn | a42c65fa360de41a1236af00b5718948dc1b9940 | e6b47b7f183fcff60fa803329e11c2e87de560ef | refs/heads/master | 2022-12-05T17:06:10.049472 | 2020-08-19T09:12:45 | 2020-08-19T09:12:45 | 254,116,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,675 | py | from django.conf import settings
from django.views import View
from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from django.utils.decorators import method_decorator
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.db.models.functions impor... | [
"hellopuyup@gmail.com"
] | hellopuyup@gmail.com |
1d6c708e713687a606bcec30490c9970a32b2031 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/94/usersdata/203/55258/submittedfiles/mediaLista.py | 9f8eabcc98947ef4aefb6758c5a6a0a6eab90482 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | # -*- coding: utf-8 -*-
n=int(input('tamanho da lista: '))
l=[]
soma=0
for i in range (1,n+1,1):
l.append(input('elemento da lista: '))
for i in range (0,n-1,1):
soma=soma+l[i]
media=soma/n
print ('%.2f' %l[0])
print ('%.2f' %l[n-1])
print ('%.2f' %media)
print ('%.2f' %l) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
7e17abc002edaf1847bf7df750090433bf144d0b | f0bf7911733f0f2af23a49ac8c0da156b62add23 | /Postinstall/ubuntu-13.10-postinstall.py | 09f194a5385fcbf5a64bfed35651cc33840bcb91 | [] | no_license | MicoFive/System | 6b61b93dbf010b55fe81ca997bc2f98017ade771 | 88dee781042b39926f57090d354849195f9b5e2b | refs/heads/master | 2020-05-17T04:49:27.920818 | 2014-03-07T12:34:34 | 2014-03-07T12:34:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,702 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Mon script de post installation Ubuntu 13.10
#
# Syntax: # sudo ./ubuntupostinstall-13.10.sh
#
# Nicolargo (aka) Nicolas Hennion
# http://www.nicolargo.com
# Distributed under the GPL version 3 license
#
"""
Post installation script for Ubuntu 13.10
"""
import os
impo... | [
"merigo4@gmail.com"
] | merigo4@gmail.com |
ce9aee9d33bc3e4d2e66296e526a530465aed07b | 1b4162fe830f2612d701efaddc62b591fec9c8c6 | /Single_Number.py | 515a51fc0b62e03b7d2b22e9f5df2ed92ba80550 | [] | no_license | Tammon23/30-Day-LeetCoding-Challenge-April-2020 | 018e2bd5f8afeafa561c24dd8e9b134d0c82892a | a34ebc1bee64b9f56aa35f1898a86210816e05dd | refs/heads/master | 2021-05-25T19:47:57.803140 | 2020-04-14T17:16:44 | 2020-04-14T17:16:44 | 253,896,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | class Solution:
def singleNumber(self, nums: List[int]) -> int:
x = 0
for num in nums:
x ^= num
return x
| [
"noreply@github.com"
] | Tammon23.noreply@github.com |
53e8ec09614013b9b3ef59d207b098d21fc40046 | cacae0bef45a3716c64463709cb29804a47a7a36 | /crypto/backtest/multicoinbacktester/HistDataManager.py | 144566d8416be6948e47f3d8e6255be5adbd732d | [] | no_license | prometuse/myquant | d2c89612b41294bb128210469330f083a5c098d0 | 2ff0fa845bc7aa719546c3826d5a01cbd054a203 | refs/heads/master | 2023-07-08T10:39:51.760310 | 2021-08-12T08:12:10 | 2021-08-12T08:12:10 | 383,455,610 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | """
对历史的净值、年化、回撤信息进行快照记录
每个周期都有个instance
"""
class HistDataManager(object):
def __init__(self, init_cash, start_time):
self.net_array = [init_cash]
self.end_times = [start_time]
self.btc_pct_array = [1.0]
self.btc_price_array = []
self.pct_array = [1.0]
self.... | [
"kebi@xiaohongshu.com"
] | kebi@xiaohongshu.com |
f16c623f2284f4fcc342ceffbc101ff396686148 | 59b3dce3c770e70b2406cc1dd623a2b1f68b8394 | /python_1/lessons/calculations.py | 9fc441721ed85e47fac26d241c4db2cfd87301c8 | [] | no_license | patrickbeeson/python-classes | 04ed7b54fc4e1152a191eeb35d42adc214b08e39 | b5041e71badd1ca2c013828e3b2910fb02e9728f | refs/heads/master | 2020-05-20T07:17:36.693960 | 2015-01-23T14:41:46 | 2015-01-23T14:41:46 | 29,736,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | print("""---------------
Some Calculations
---------------""")
print(314159e-5)
print(10**6, 1j**2)
print(3 + 2 * 4, 1 / 3)
print("-" * 20)
print((3.14159 * 16) ** 2)
print(3.14159 * 16 ** 2)
print(20 * "-")
print("------------------\nEnd of Calculations\n--------------") | [
"patrickbeeson@gmail.com"
] | patrickbeeson@gmail.com |
982f09e06da9b91e11bebb4ecf8d383bc704f702 | a5cf1d2fc478d490df05eb198d1a0fb77fcb0bc9 | /flask_oauthlib/contrib/client/__init__.py | 4b777b4430dcbd3daf2326ea063c4e02dca552ae | [
"BSD-3-Clause"
] | permissive | ageis/flask-oauthlib | 516df1a661441cc46c26ab5e9b07fa328066a5f4 | 9414e002505354e8b5b3aa5f54a0889c836aa732 | refs/heads/master | 2021-01-05T05:11:59.090723 | 2020-04-19T07:20:23 | 2020-04-19T07:20:23 | 240,891,932 | 1 | 0 | BSD-3-Clause | 2020-04-19T07:20:24 | 2020-02-16T12:58:27 | null | UTF-8 | Python | false | false | 3,277 | py | import copy
from flask import current_app
from werkzeug.local import LocalProxy
from .application import OAuth1Application, OAuth2Application
__all__ = ['OAuth', 'OAuth1Application', 'OAuth2Application']
class OAuth(object):
"""The extension to integrate OAuth 1.0a/2.0 to Flask applications.
oauth = ... | [
"me@lepture.com"
] | me@lepture.com |
5e959bda895dddc623e59dd72adc9c4788f1414b | 59adbf277a13f3a2ba3983827765f5fd390e76de | /Keras_CNN_PPO_StarCraft/ppo.py | 4d81b733f7820dc50266f61004ac78bf8bea082f | [] | no_license | oppa3109/Reinforcement-Learning-2 | dde58b783bbaa7a2780c37b2aa8565eb4e34493c | 2eead1fe012c23b1cf774ffa45cd96e4e8fd321c | refs/heads/master | 2020-04-01T16:40:32.413900 | 2018-10-17T03:31:32 | 2018-10-17T03:31:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,452 | py | import numpy as np
import copy
from keras.layers import Dense, Flatten, Input
from keras.layers.convolutional import Conv2D
from keras import backend as K
from keras.optimizers import Adam
from keras.models import Model
class PPOIQN:
def __init__(self):
self.state_size = (16,16,2)
self.action_size ... | [
"jangikim@JaeYoons-MacBook-Pro.local"
] | jangikim@JaeYoons-MacBook-Pro.local |
0e296f08acd7ff148357f120355d83bb5f2da93e | 655cf8b34ba341b884efe016b475d9f3c9afa0fb | /AWS_deployment/predict.py | 0859de47b7f55cba1f7952235a1ac4ae2598d752 | [] | no_license | ruizhang84/Udacity_Deep_Learning | 9d9f845e9cb05eea3f36370397f4659615a6f4eb | 6768cbd742302869eadf30e155b4f7ffef41c3f0 | refs/heads/main | 2023-02-25T19:53:38.795753 | 2021-01-30T05:02:17 | 2021-01-30T05:02:17 | 333,578,955 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,168 | py | import argparse
import json
import os
import pickle
import sys
import sagemaker_containers
import pandas as pd
import numpy as np
import torch
import torch.nn as nn
import torch.optim as optim
import torch.utils.data
from model import LSTMClassifier
from utils import review_to_words, convert_and_pad
def model_fn(mod... | [
"ruizhang84.mail@gmail.com"
] | ruizhang84.mail@gmail.com |
943ac7709e5f4f17286ef6b651f71be631533082 | ad8566dace0e4ab4b419b1bb5bc055b095adce72 | /ics/migrations/0092_remove_processtype_description.py | acb8d0bee88038f50cc34248f7adb737cbad17e4 | [] | no_license | mayanb/wafflecone | 6c844c4c908f7c9b8e41d0d42faeefbfa8b9573e | fcd45a3b745232e52af3bdffa3fab25f13c7464d | refs/heads/staging | 2022-12-14T03:34:14.618001 | 2018-09-26T21:35:52 | 2018-09-26T21:35:52 | 74,408,398 | 1 | 0 | null | 2022-12-08T00:46:05 | 2016-11-21T21:40:59 | Python | UTF-8 | Python | false | false | 397 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-04-10 19:41
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ics', '0091_auto_20180406_1749'),
]
operations = [
migrations.RemoveField(
... | [
"steven@usepolymer.com"
] | steven@usepolymer.com |
f597975a435f3e4d97e6bbccfe4d07f900f11b58 | c36edf21f868315e1a1f63cf8a88398c926b3a8b | /jianzhioffer2/35_复杂链表的复制.py | bcae997330612f3f1daef99281f28dc6d597b8a6 | [] | no_license | kcmao/leetcode_exercise | 85037de7b148b7dc162c52c672510d260dfe3574 | e52e0e18b7cef923a5f0eb000968f4234199978f | refs/heads/master | 2020-04-11T01:57:50.254666 | 2019-08-04T13:02:28 | 2019-08-04T13:02:28 | 161,431,354 | 1 | 0 | null | 2019-05-27T14:35:49 | 2018-12-12T04:10:37 | Python | UTF-8 | Python | false | false | 1,874 | py | # -*- coding: utf-8 -*-
class ComplexNode(object):
def __init__(self, value, next=None, sibling=None):
self.value = value
self.next = next
self.sibling = sibling
def clone_complex_link(head):
insert_next(head)
connect_sibling_nodes(head)
return reconnect_node(head)
#链表后面添加节点
d... | [
"kc_mao@qq.com"
] | kc_mao@qq.com |
7368f03dd1696be11ed81d20842c9e5a92573891 | 28605e3a678d7b18284842998652df5581f46f90 | /rooms/FluchtVorDemCode.py | 97c0e93a952bb04003c421c6abe0d58b04111ab2 | [] | no_license | TimPaet/EscapeRoom | 4d111c7af7ec4adfc0480415aed523484f592bc7 | 1d324a3d00996df179d1c5c0dc72d1023e9b6f9f | refs/heads/main | 2022-12-30T21:30:54.635582 | 2020-10-21T07:23:55 | 2020-10-21T07:23:55 | 305,713,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,406 | py | from EscapeRoom import EscapeRoom
class FluchtVorDemCode(EscapeRoom):
def __init__(self):
super().__init__()
self.set_metadata("Tim", __name__)
self.add_level(self.create_level1())
self.add_level(self.create_level2())
self.add_level(self.create_level3())
... | [
"noreply@github.com"
] | TimPaet.noreply@github.com |
8f001741a050048888b40125820ca38f28f4b9c6 | bf470bcf0910b2d3713d898677e91af1da5a2664 | /release.py | 7c8abaa7ddd3cecad54a91e01d47d19d522aac12 | [] | no_license | JRepoInd/repository.boogie.dist | a8e18ef3b01601ccb4072d48c1e674fc7d9d4266 | c9df894edda98c4786c40a9c3eb02b758117b536 | refs/heads/master | 2021-06-12T04:17:27.213095 | 2015-08-22T22:07:03 | 2015-08-22T22:07:03 | 41,871,615 | 0 | 0 | null | 2021-06-02T15:45:21 | 2015-09-03T16:47:18 | Python | UTF-8 | Python | false | false | 6,187 | py | # -*- coding: utf-8 -*-
import sys
import os
import shutil,stat
import urllib2
import urllib
import md5
import datetime
import time
import re
from distutils.version import StrictVersion, LooseVersion
from xml.dom import minidom
import shlex
from subprocess import Popen, PIPE
def runcmd(cmd,cwd):
args = shlex.split(c... | [
"huseyinbiyik@hotmail.com"
] | huseyinbiyik@hotmail.com |
563b81ef58b37b716b6b4764e3162f6d22c8d652 | 864713da7d1f08836df68c97605fa5a006973661 | /syncer.py | dfa86b38cfa6ace20786f593ca946d2b5ba6476b | [] | no_license | svl7/mao-orchestrator | dab7151c2663aff228b41c38c9760ef88bce5a78 | 74c07e532a0edc33b19fd99bd9f693e3f0e936e1 | refs/heads/master | 2022-11-09T19:57:28.685028 | 2020-06-18T13:04:26 | 2020-06-18T13:04:26 | 273,239,229 | 0 | 0 | null | 2020-06-18T13:00:01 | 2020-06-18T13:00:00 | null | UTF-8 | Python | false | false | 5,057 | py | import git
import datetime
import configparser
import requests
import json
import schedule
import shutil
import base64
import glob
from datetime import datetime
import audit
import logging
from etcd_client import write, get
logging.basicConfig(level=logging.DEBUG)
config = configparser.ConfigParser()
config.read('conf... | [
"pang@zhaw.ch"
] | pang@zhaw.ch |
45c367e2b6e55ebf0655d04ec1a4b52b8f687ab5 | ed79aa13b08d737bdb464867d3014429b536f20b | /Principles of Computing/week7/poc_wrangler_gui.py | 54b0accc8089efa6040e23debf05dc492933736b | [] | no_license | mykhailo-dmytriakha/python | d04a7fdbe5e4aa537f0b1a89fdccf3a959e58759 | 6edffd14164cdb659a64f104dd4c683d33db332c | refs/heads/master | 2023-04-07T08:43:50.055850 | 2015-11-02T09:00:49 | 2015-11-02T09:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,593 | py | """
Word Wrangler GUI
"""
import SimpleGUICS2Pygame.simpleguics2pygame as simplegui
# Global constants
FONT_SIZE = 20
OFFSET = 4
ROW_HEIGHT = FONT_SIZE + OFFSET
COLUMN_WIDTH = 80
GRID_SIZE = [25, 4]
CANVAS_WIDTH = COLUMN_WIDTH * GRID_SIZE[1]
CANVAS_HEIGHT = ROW_HEIGHT * GRID_SIZE[0]
def draw_word(canvas, word, pos... | [
"mdmytiaha@playtika.com.ua"
] | mdmytiaha@playtika.com.ua |
8113e61753b63a1adf848618b5af0bff3890f601 | eecbf2f570b46e5a890847288144f2df8097d988 | /awlsim/core/instructions/insn_zr.py | f279e701766a8124bf9e436cb8dc38b157639018 | [] | no_license | ITI/PLCNet | 8ebb34dc57862abfc3a635fb3cee197601cade71 | 7f2c1a9d3a8a0ca8d8ab9a8027c65bc0ff0db64c | refs/heads/master | 2020-06-10T00:19:14.916423 | 2016-10-01T06:53:38 | 2016-10-01T06:53:38 | 193,533,866 | 2 | 0 | null | 2019-06-24T15:42:51 | 2019-06-24T15:42:50 | null | UTF-8 | Python | false | false | 1,490 | py | # -*- coding: utf-8 -*-
#
# AWL simulator - instructions
#
# Copyright 2012-2014 Michael Buesch <m@bues.ch>
#
# 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 2 of the License, or
... | [
"vig2208@gmail.com"
] | vig2208@gmail.com |
f45bd2b725edf19a4c9f528650707dc5900d8683 | 83959c80527cd727042bc3467b6e537fca8bef1a | /kbengine_stone_assets/scripts/common/tornado/platform/windows.py | b1d701de4fcc5ac181dde0a8d77764622db74e77 | [] | no_license | shanlihou/ttxiaoyouxi | 696697807cbf9d1fe41fb10fe64f8f29d5bd8864 | bca20863c4e1b5d6f3f835fee17c700292918a6c | refs/heads/master | 2020-04-26T13:12:13.153761 | 2019-03-03T12:36:04 | 2019-03-03T12:36:04 | 173,572,763 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | # NOTE: win32 support is currently experimental, and not recommended
# for production use.
#from __future__ import absolute_import, division, print_function, with_statement
#import ctypes # type: ignore
#import ctypes.wintypes # type: ignore
# See: http://msdn.microsoft.com/en-us/library/ms724935(VS.85).aspx
#SetH... | [
"shanlihou@gmail.com"
] | shanlihou@gmail.com |
8196628ce9f57044a85ddc3d821f773a8f4e9e87 | 1df91806ccab863df60c4f386fdfcae3654b5488 | /main.py | 31436318f06f60078d477d6ca797bf99452fcc48 | [] | no_license | Anurag-gg/discord-gateway | 51350e8a0f7a052ed59a6fe62b526c734eedc755 | fd8960502dd23a1bb8ebb064993a4645dd6abcfc | refs/heads/master | 2023-08-25T19:50:45.661426 | 2021-09-24T11:42:16 | 2021-09-24T11:42:16 | 408,313,939 | 2 | 0 | null | 2021-09-24T11:42:17 | 2021-09-20T04:50:38 | Python | UTF-8 | Python | false | false | 3,388 | py | import asyncio
import websockets
import json
from config import BOT_TOKEN
class Connect:
def __init__(self, token):
self.sequence = "null"
self.token = token
self.heartbeat_received = True
self.status = 'identity'
asyncio.run(self.main())
async def send_json(self, ws, ... | [
"dsanurag520@gmail,com"
] | dsanurag520@gmail,com |
28f96418834a90cd0b5b509bc776c9f3b0b639c5 | c49193f4ceca8d3a98ceda70549beed3ad23c87e | /dir.py | 3ac16b286eadcf03d898e7091b50677f787c2d1a | [] | no_license | myousefnezhad/easyfmri-old | bec95d2879513f55d663d9afe0bf73fe4c832c46 | 1ef75d84e57649797faad13b9f2a2770a33ac120 | refs/heads/master | 2022-05-28T08:09:17.542375 | 2018-04-10T10:09:53 | 2018-04-10T10:09:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | import os
def getDIR():
return os.path.dirname(os.path.abspath(__file__)) | [
"myousefnezhad@outlook.com"
] | myousefnezhad@outlook.com |
d50db3f0895bfcfe6b6a9eb5f62c99302983871e | a29c6e83ae4f9010941d15c8fd4cfc67680bb054 | /pandas/pandas_sample.py | 11ec8f3f3066928a773948c21c7d305883c6a906 | [] | no_license | ym0179/bit_seoul | f1ff5faf4ae20fbc8c0e2ed10a005f8bd4b2c2b8 | 14d1fb2752312790c39898fc53a45c1cf427a4d1 | refs/heads/master | 2023-02-27T19:52:23.577540 | 2021-02-08T00:30:16 | 2021-02-08T00:30:16 | 311,265,926 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,632 | py | #Day9
#2020-11-19
import pandas as pd
import numpy as np
from numpy.random import randn
np.random.seed(100)
data = randn(5,4) #5행 4열
print(data)
df = pd.DataFrame(data, index='A B C D E'.split(),
columns='가 나 다 라'.split())
print(df)
data2 = [[1,2,3,4,], [5,6,7,8], [9,10,11,12],
[13,14,15,16... | [
"ym4766@gmail.com"
] | ym4766@gmail.com |
ddc3a481f63796292ef24894d2303cc7aa6bb7c0 | de996400d54cc2073671e2bab976534e8263bacb | /molecule-design/moldesign/sample/__init__.py | 6a4baed4f892c46a1a9b987c82b38d3e5e6e5344 | [] | no_license | tskluzac/colmena | c865e233d0f4cea20f2d3e14ef73425aee5bf78f | 042ce37e5acc8a240845b8cce11effe832c1c913 | refs/heads/master | 2022-11-28T17:52:19.819967 | 2020-08-06T19:41:49 | 2020-08-06T19:41:49 | 285,658,744 | 0 | 0 | null | 2020-08-06T19:52:04 | 2020-08-06T19:52:03 | null | UTF-8 | Python | false | false | 42 | py | """Functions for sampling new molecules""" | [
"ward.logan.t@gmail.com"
] | ward.logan.t@gmail.com |
282003de7549f1fec022667910ea65020374ae23 | 26706446b4d2b0b61fa3caf4b49b121605d22dc7 | /amazon book scraping/content/amazon_scraping/amazon_scraping/items.py | e5452cfbfec12f946210d8967d10939dec33ade4 | [] | no_license | shreenathchavan/amazon_books_scraping | 368ebecf5eea07137198bdb30e089900e99f0815 | 09c07aa846a2dace0396a87030cfcd033114c410 | refs/heads/master | 2020-08-26T11:19:06.715865 | 2019-10-23T08:24:59 | 2019-10-23T08:24:59 | 217,004,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class AmazonScrapingItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
product_name = scrapy.Field()
... | [
"noreply@github.com"
] | shreenathchavan.noreply@github.com |
bf56ed2037a8d92ae1cd83b1ca14a15536c85df2 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2385/60677/251112.py | a199b651fd4db5634ac382da13966aee61e6f9bc | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | times=int(input())
for i in range(times):
n=int(input())
k=1
answer=1
while n-2*k+2>0:
answer+=n-2*k+2
k+=1
if n==4:
answer=8
print((answer)%(10**9+7)) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
100085c9ff8dfe960f7623aef842be6bb33faecb | b816109a8d8fc9c14613096179ece4e39caca26c | /demo/mysql.py | 80ccd0d77b8681e9d476676f0a4fca695e956b97 | [] | no_license | yuyiqiushui/WaiStar | 0ef16bd804ec6677c71713a876502283cfda8742 | cefa0fd706526f3785c387c10e343dc16c3d4001 | refs/heads/master | 2020-03-23T21:47:04.488667 | 2018-08-25T06:55:10 | 2018-08-25T06:55:10 | 142,132,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | import pymysql
# 打开数据库连接
db = pymysql.connect("localhost", "root", "", "cyl")
# 使用cursor()方法获取操作游标
cursor = db.cursor()
# SQL 插入语句
sql = "SELECT * FROM EMPLOYEE \
WHERE INCOME > '%d'" % (1000)
try:
# 执行SQL语句
cursor.execute(sql)
# 获取所有记录列表
results = cursor.fetchall()
print(results)
for ... | [
"yu_qiushui@163.com"
] | yu_qiushui@163.com |
a4c56e977fcf8aa0aa8b1d5700eac711f0e99616 | e1ffebca6a0f185663c779462e3ca27866f557b8 | /GROUP_project/project/api/migrations/0002_auto_20191204_0429.py | 9dcf91bc2afb5abac10e0bf7a31e18ff8156c88e | [] | no_license | asselyer/Backend2019 | d8d85d7850261880fe4aeef9092b0a8c7b1b6767 | ec5931e2bd22ec62e68592a4199c00184f4dacc3 | refs/heads/master | 2020-07-24T13:38:21.246351 | 2019-12-04T03:16:27 | 2019-12-04T03:16:27 | 207,944,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,680 | py | # Generated by Django 2.2.3 on 2019-12-03 22:29
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('api'... | [
"asel.yer98@gmail.com"
] | asel.yer98@gmail.com |
af3d099f71d75651e8da95d4362fc5e824ea06bf | 1886065d10342822b10063cd908a690fccf03d8b | /appengine/findit/waterfall/analyze_build_failure_pipeline.py | df1014f2a3c07efd6b1e1306d39bff06edb9fa1f | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/chromium-infra_A6Y5 | 26af0dee12f89595ebc6a040210c9f62d8ded763 | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | refs/heads/master | 2023-03-16T15:33:31.015840 | 2017-01-31T19:55:59 | 2017-01-31T20:06:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,205 | py | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from common import appengine_util
from common.pipeline_wrapper import BasePipeline
from common.pipeline_wrapper import pipeline
from libs import time_util
fr... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
787c24412b397526436422830135624073c3a5f3 | 6c6b8b967bf1690d815ba8223a15abf3f8862fd7 | /Generation/GAN/DCGAN/Predictor.py | 37067cf92a23c6b09ca365927a39597f0b4d9ce3 | [] | no_license | ihatasi/Learning | 82450c1d05493e83409265bd28ab881dbc035222 | 89c03dcce586d403aee1e0f7c36fadbce1c8c881 | refs/heads/master | 2020-04-29T22:54:23.803216 | 2019-11-27T10:25:40 | 2019-11-27T10:25:40 | 176,462,219 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,461 | py | #!/usr/bin/python3
import chainer, argparse, os
import numpy as np
import matplotlib.pyplot as plt
from PIL import Image
from chainer import Variable
parser = argparse.ArgumentParser(description="DCGAN")
parser.add_argument("--n_dimz", "-z", type=int, default=100)
parser.add_argument("--dataset", "-ds", type=str, def... | [
"ihatasi@gmail.com"
] | ihatasi@gmail.com |
2f33946708e96988142b72cc588f156227951dad | 82aef51947f319caaae43f963139c5c73c80ad3c | /venv/bin/pip | eaf2a486ba5d3ba7b3148524cbdfcbe3888a7809 | [] | no_license | 15PFIEV-Mobile/Back_End | fe61c0fec2da03c2e986200dfa7a27661cad9030 | b6079d835c2ade86af4451c25693607cad01f70a | refs/heads/master | 2020-09-03T09:32:18.265657 | 2019-11-04T07:21:01 | 2019-11-04T07:21:01 | 219,436,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | #!/mnt/c/Work/MobileProgramProject/Back_End/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"tranhuuminhdung97@gmail.com"
] | tranhuuminhdung97@gmail.com | |
8edf96788c2caa2a1890ea500b31a820d27944dc | baf9b3674cedea6ebf75f5b0f3618528bf385bb3 | /basket/migrations/0002_auto_20210722_1001.py | 45fd523d60e3e91b853eacea86fd7423613b58a6 | [] | no_license | ElfKnell/spiridonis | 3377f73a23802017e3f97f4601bc3f8541c5cb0b | 95cb29f02ec9d0745b68520e520f80a45a618dca | refs/heads/master | 2023-07-06T15:39:09.985267 | 2021-08-17T11:59:12 | 2021-08-17T11:59:12 | 385,142,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | # Generated by Django 3.2.4 on 2021-07-22 07:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('basket', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='basket',
name='summa',
),
... | [
"akyrych84@gmail.com"
] | akyrych84@gmail.com |
163bceb89be6c5814429028d9689ebf667748722 | 169776e1b0ce571a4083b650dde4637d11767084 | /challenge_3/outings.py | 8dbe59d89ab7f7e9ee3d249267e82fbe90c8d6f5 | [] | no_license | Nesken-weche/Gold_challenges | 1a97c0e20b87bde5f6057f82df5c50289ed65410 | 155bad1560db0a0fe9536338f8c09e9fdd704324 | refs/heads/master | 2020-04-24T16:32:24.664326 | 2019-02-22T18:37:31 | 2019-02-22T18:37:31 | 172,111,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py |
class Outing:
def __init__(self, eventType, attendees, date, total_cost_per, total_cost_event):
self.eventType = eventType
self.attendees = attendees
self.date = date
self.total_cost_per = total_cost_per
self.total_cost_event = total_cost_event
def __repr__(self):
... | [
"wnesken@gmail.com"
] | wnesken@gmail.com |
86762ac129647cb737b6d6c2cca219b9978b9803 | 57845f9780811164e16917345063485db9c2f601 | /Opinionated/Opinionated/urls.py | d61889940a3ef4e14e2b8f782895ec7c64b59bbf | [] | no_license | popsonebz/Django_Projects | 19e2f710c0d6160cff3c441f8e0f502b9a368e52 | e87b4a09d6f759a6108c96cad8e8f83dc9479e3f | refs/heads/main | 2023-06-13T03:08:41.730901 | 2021-06-27T19:26:35 | 2021-06-27T19:26:35 | 382,118,013 | 0 | 0 | null | 2021-07-01T18:06:35 | 2021-07-01T18:06:34 | null | UTF-8 | Python | false | false | 1,074 | py | """Opinionated URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"odedereoluwapelumi13@gmail.com"
] | odedereoluwapelumi13@gmail.com |
16db3ba118bc263f264b8f33598c0d0ecd59ba1a | b2805a484e5af57aaee093be1c22895621cefcce | /appsrv/xchgb/aes.py | a14400c549450725e5d23aee856e16e7eeb79d51 | [
"Unlicense"
] | permissive | jzvelc/xchgb | 2cb30a9dd9eb09f34e3ec1781af417e0bf0bac94 | 5a2e7ef7ef7686c4ba06127fa8022beb9fb54a34 | refs/heads/master | 2021-05-26T18:10:00.159785 | 2011-09-22T07:05:20 | 2011-09-22T07:05:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | import base64, random, string
from django.conf import settings
from Crypto.Cipher import AES
# the block size for the cipher object; must be 16, 24, or 32 for AES
BLOCK_SIZE = 32
# the character used for padding--with a block cipher such as AES, the value
# you encrypt must be a multiple of BLOCK_SIZE in length. Thi... | [
"greg@ghughes.com"
] | greg@ghughes.com |
1bc9d03fd65b59a18d155611ec479ee53115593a | dca7588fbabca0d0e52dd4e5a29d5720aa8253a7 | /app_users/views.py | a2ee2e5dd3396feed65bdf85a5197f119b90033f | [] | no_license | raiatul14/cms | 00c93b02774f30ba6d7725527ee83608c9c2d996 | 5597ebac7bdf478865bae5351f8e47df67ed934e | refs/heads/master | 2022-12-19T19:16:17.960711 | 2020-10-13T04:32:52 | 2020-10-13T04:32:52 | 303,295,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | from django.shortcuts import render
# Create your views here.
from .views import * | [
"atul.rai@routemobile.com"
] | atul.rai@routemobile.com |
b344b015fd8b1fc9a5d0dde7daab89f194665ebf | bb828b46527bf15011315b7d67d8b20b05f8858c | /innovate/migrations/0003_auto_20210211_0122.py | 4ceb135c5353ec0162fc90772b8faacbc2a0c8d4 | [] | no_license | Rushilwiz/launchx | 7b334da60eab38ade5db8a9868caf62f68e207f5 | 85821a6fcd91c09c1579787f31a388119ae237c3 | refs/heads/master | 2023-03-08T19:55:15.080057 | 2021-02-21T01:27:25 | 2021-02-21T01:27:25 | 334,251,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | # Generated by Django 3.1.6 on 2021-02-11 01:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('innovate', '0002_auto_20210208_1549'),
]
operations = [
migrations.AddField(
model_name='competitor',
name='county',... | [
"rushilwiz@gmail.com"
] | rushilwiz@gmail.com |
350dcd30a907105662e6bda717ac24f31ad8370f | 2136701f48ad131084b331039d864f85988cf451 | /spider/.svn/pristine/35/350dcd30a907105662e6bda717ac24f31ad8370f.svn-base | c6842a58e1a64674b74afbe2cc40404b328236bd | [] | no_license | cuiyulin77/other | 9d374a47d482f1c3f9ef0f3ac4429487643b04b9 | c00cafaf7607452966fa523c4d0b04edb7f153e6 | refs/heads/master | 2020-05-18T04:24:26.095929 | 2019-04-30T06:37:53 | 2019-04-30T06:37:53 | 184,169,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,692 | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
from pymysql import *
import re
class WbUserPipeline(object):
def process_item(self, item, spider):
return item
... | [
"494658565@qq.com"
] | 494658565@qq.com | |
98cd32da38e634d818253e5c656b496ead30b1f9 | 9fa1e85560401833143ce6e6f5867964e96cf070 | /fastapi_websocket/main.py | 0135ce530487b61eb699425ff410068cec8c2c60 | [] | no_license | red-fox-yj/Clock-In-Server | 50c11e6737d7fd0974e4fd39ec0c3556a801cc4d | 80dc82e6d3f85d3d98f34047ae3544866aa2dab1 | refs/heads/master | 2023-03-05T15:00:56.811226 | 2021-02-21T03:18:14 | 2021-02-21T03:18:14 | 334,340,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,388 | py | from fastapi import FastAPI, WebSocket
from fastapi.responses import HTMLResponse
import uvicorn
import ast
from distribution import _search, _modify, _read
app = FastAPI()
html = """
<!DOCTYPE html>
<html>
<head>
<title>Chat</title>
</head>
<body>
<h1>WebSocket Chat</h1>
... | [
"redfox@chancefocus.com"
] | redfox@chancefocus.com |
8b515c6c433d4a5d55c450239b53ce47683b707d | 31c8e8cd5e36c62f22ae39a26bc9cf73d22f62ea | /tasks/tasks/webapp/models.py | 4cb1f81a7dfea6dd6e5e2510ff3c0dfc619dd269 | [] | no_license | kadyrkulove/lab_work39 | 52ee57529dedc12e116312cbc2693df4dae3c108 | 1ca9a4217f3f68a79021b7287512d7e61890faae | refs/heads/master | 2020-04-10T17:18:43.235739 | 2018-12-10T13:08:09 | 2018-12-10T13:08:09 | 161,170,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | from django.db import models
# Create your models here.
class Task(models.Model):
title = models.CharField(max_length=50, null=False, blank=False, verbose_name='Задача')
description = models.TextField(max_length=1000, null=True, blank=True, verbose_name='Описание')
status = models.CharField(max_length=20,... | [
"kadyrkulove@gmail.com"
] | kadyrkulove@gmail.com |
2e67dafe7fac1cbbc5927705e346ad37a6ed6c89 | fcde32709c62b8ee86da459bb7c8eee52c848118 | /爬虫1903/day09/Baidu/Baidu/settings.py | 6b94193878c3f25ccff9e68ecba1f7857d9f4e73 | [] | no_license | klaus2015/py_base | 6b92d362c3d7dc0e09205a037f4d580381dac94d | ec32c731c1c2f6a0dab87f1d167397e4fa86b8de | refs/heads/master | 2022-07-28T15:49:30.383648 | 2020-05-11T15:31:43 | 2020-05-11T15:31:43 | 261,777,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,181 | py | # -*- coding: utf-8 -*-
# Scrapy settings for Baidu 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/latest/topics/... | [
"598467866@qq.com"
] | 598467866@qq.com |
2539ab608f51a1b8084f54a8df8cc8edca59a28f | d684ac6e0adfd85851c05bb9dac484bfb4d50eb9 | /lab9/DNS_AdrianArdizza_2006524896_C_lab9__/AdrianArdizza_C_fantasi_terakhir.py | cb0c8182697c1bb2668d332007778f25bedb8b67 | [] | no_license | Meta502/lab-ddp-1 | 743dc8f8f72ae52a505788c80fe91d28c74c681d | fc04cfc1a7e85b32eee36f1158d94fce9c9a0251 | refs/heads/master | 2023-02-08T13:23:33.128796 | 2020-12-30T19:03:10 | 2020-12-30T19:03:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,999 | py | class Hero():
def __init__(self, name, hp, attack):
"""
Constructor untuk class Hero, akan dipanggil saat inisiasi objek dan saat dipanggil dengan super().__init__
"""
self.__name = name
self.__attack = int(attack)
self.__hp = int(hp)
# Getter
def get_name(se... | [
"adrian.ardizza@gmail.com"
] | adrian.ardizza@gmail.com |
91079f8f88ab0a1167f775522a0138301831fe3b | 7ee7c0c67ffbae807005ed6b9f20f3f829125ae7 | /bg.py | 8c6caa1044d80a10e670364654faec627ffb78d3 | [] | no_license | bradenrupp/background | 86998c435e9702ea4fec72016ea01131aa2d878d | cbf7b3b8f88089aa215d8296742824033a2ba8bf | refs/heads/master | 2020-09-27T03:56:33.269880 | 2019-12-06T23:41:47 | 2019-12-06T23:41:47 | 226,423,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | #!/usr/bin/env python3
import ctypes
import os
import time
def change_bg():
pathToBmp = os.path.normpath("C:/Users/Public/.bg.bmp")
SPI_SETDESKTOPWALLPAPER = 20
ctypes.windll.user32.SystemParametersInfoW(
SPI_SETDESKTOPWALLPAPER, 0, pathToBmp, 0)
if __name__ == '__main__':
while True:
... | [
"Rupp.Braden@principal.com"
] | Rupp.Braden@principal.com |
727bfe5706d30425d6dc1953d30b21f36aeb2901 | 74eafe55252eff97fd9a2e1e6564ecf243f7c058 | /oop/squares_gen.py | ab286f9884b1857157fe12a048b69b5aa72e1f91 | [] | no_license | srikanthpragada/demo_24_june_2019 | c5ddef71eb721367d656924d312e9ca7ac80c34a | fa7aca273d1ffe6ded34795a639910ab91ce66a0 | refs/heads/master | 2020-06-11T10:19:22.384096 | 2019-08-01T15:28:26 | 2019-08-01T15:28:26 | 193,929,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | def squares(num):
for i in range(1, num + 1):
yield i * i
for n in squares(5):
print(n)
| [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
96156b6d36634e172c1e69fe6a700c58280d6896 | 311b5a3603fa3e321b2a0dd0d1dbf99922cf1fcd | /src/GUI/main.py | a9c2397ecccb5209c85de8946073792baf7d4f28 | [] | no_license | grmahs/sphero-project | 012215b45d757e5ef3d61734ba4624339e9ac1ba | 2779ff8d8452093b04e8914f62cff7b37f32350c | refs/heads/master | 2020-06-01T13:20:00.720139 | 2019-07-16T21:01:49 | 2019-07-16T21:01:49 | 190,792,447 | 0 | 0 | null | 2019-06-07T18:39:14 | 2019-06-07T18:39:14 | null | UTF-8 | Python | false | false | 1,372 | py | import contextlib
with contextlib.redirect_stdout(None):
import pygame
import r2d2
import server
import sys
pygame.init()
serv = server.Server(None)
serv.start()
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
GREEN = (0, 255, 0)
RED = (255, 0, 0)
PURPLE = (255, 0, 255)
size = s_w, s_h = (500, 500)
screen = pygame.di... | [
"josephcappadona27@gmail.com"
] | josephcappadona27@gmail.com |
f7d45287bca0ec55ea32d9ed5da25480ec9a3285 | e608c9525e88ba3589cb4a2fd47f6a2e0442bfb2 | /pycorrector/seq2seq/corrector_model.py | 02bd512d259867d51f01a8b89dbf7780a9222e09 | [
"Apache-2.0"
] | permissive | YC-wind/pycorrector | 9f5c14d2cc0cf6f53ff253c6035cf816e1f334d8 | c68ea194a95949f6d6ffb7cb33dfc6679e1bbc9e | refs/heads/master | 2020-03-16T21:56:53.394037 | 2018-05-02T04:05:17 | 2018-05-02T04:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,328 | py | # -*- coding: utf-8 -*-
# Author: XuMing <xuming624@qq.com>
# Brief:
import random
import numpy as np
import tensorflow as tf
from tensorflow.python.ops import array_ops
from tensorflow.python.ops import embedding_ops
from tensorflow.python.ops import math_ops
from tensorflow.python.ops import nn_ops
import seq2seq
... | [
"507153809@qq.com"
] | 507153809@qq.com |
93320c27e48d82cb9a176e9aed8825a5e95f31a2 | cee3e57aaae9eaeb16f696e3cdad5f32c3af6861 | /evennia/server/portal/mssp.py | 5ff0a7b319a0e8139ee16b4a057e3b81c4e8bf0c | [
"BSD-3-Clause"
] | permissive | Sa1tC/evennia | 8ef7fae9cbeb2d46bd6cdf5c5482331f9e0846ff | 1248428d132fde1b975678b53e22c1ca68a73a43 | refs/heads/master | 2021-01-23T12:32:03.594263 | 2017-05-22T06:21:25 | 2017-05-22T06:21:25 | 93,164,000 | 0 | 1 | null | 2017-06-02T12:36:55 | 2017-06-02T12:36:55 | null | UTF-8 | Python | false | false | 6,861 | py | """
MSSP - Mud Server Status Protocol
This implements the MSSP telnet protocol as per
http://tintin.sourceforge.net/mssp/. MSSP allows web portals and
listings to have their crawlers find the mud and automatically
extract relevant information about it, such as genre, how many
active players and so on.
"""
from bui... | [
"griatch@gmail.com"
] | griatch@gmail.com |
60a0fbaf539bce85c0bf31da706243dab58d5230 | ea5ff0005d6409872dd42981cf22eb601e2f827c | /histogram.py | d295fd4c0c7eaa4ef21fc0b124ee79330e1ba2d7 | [] | no_license | muhamuttaqien/corn-soil-identifier | ccd0ed9cc91a935155287e26687d82a02e5409d4 | a235d96811bcc560dc1d7c4cb267ce5d2b2b5b70 | refs/heads/master | 2021-09-02T22:56:18.019044 | 2018-01-04T01:17:27 | 2018-01-04T01:17:27 | 115,904,668 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | #!/usr/bin/env python
import cv2
import math
import numpy as np
from matplotlib import pyplot as plt
def analyze_histogram(img):
"""
find and analyze histogram
"""
hist = cv2.calcHist([img],[0],None,[256],[0,256])
return hist
def plot_histogram(img):
"""
plot and analyze histogram for ... | [
"angga.muttaqien@ruma.co.id"
] | angga.muttaqien@ruma.co.id |
aef3c3624058a9104e4a84e3fdb7e33668a84b8c | 90d4b790f9a7198760fdbcfad6abd2da851f2f4e | /0x0F-python-object_relational_mapping/3-my_safe_filter_states.py | b2b27fdbdcc3fbb2c02bd4aa205bc8225158b438 | [] | no_license | Murega14/holbertonschool-higher_level_programming | 2817a532d7d6739ed046e350903e394ed1bae0a3 | f29a4c4e74c01798cb51bfe5160432569a1ca833 | refs/heads/master | 2023-03-15T08:22:06.926537 | 2018-09-09T20:46:33 | 2018-09-09T20:46:33 | 572,548,803 | 1 | 0 | null | 2022-11-30T14:11:06 | 2022-11-30T14:10:32 | null | UTF-8 | Python | false | false | 643 | py | #!/usr/bin/python3
# gets all states via python yee boi with your own state SAFE
def main(args):
# gets all state stuff SAFELY
if len(args) != 5:
raise Exception("need 4 arguments!")
db = MySQLdb.connect(host='localhost',
user=args[1],
passwd=args[... | [
"Dkazemian@gmail.com"
] | Dkazemian@gmail.com |
6968bced836ffb47e8b4d896ae663bc05f94bc97 | 3f6f4c7360898b1761efca0f868970c7521839d7 | /install.py | 1c693aee56c974c70ac7b59ce652d41adf951f1a | [] | no_license | westporch/ipmitool_time_sync | dc1859dda0222aa2a5904d5386ea70e8998faab3 | 3ec23da4da11c604f3a04e8e515e0d71afad7fc2 | refs/heads/master | 2021-01-10T02:17:25.875101 | 2015-12-02T03:00:28 | 2015-12-02T03:00:28 | 47,167,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | #!/usr/bin/python
#Hyeongwan Seo
import os;
os.system("chmod 655 ipmitool_time_sync.sh")
ABS_PATH=os.getcwd() + "/./ipmitool_time_sync.sh"
#부팅 시 스크립트를 자동 실행하도록 /etc/rc.d/rc.local에 쉘 스크립트를 등록함.
f = open("/etc/rc.d/rc.local", "a")
data = ABS_PATH
f.write('\n' + data)
f.close()
| [
"westporch@gmail.com"
] | westporch@gmail.com |
658bfe4a687bf49d9390ea8b857434f7f6b6ae1b | fe8a8101f3b028161cc5a191680b0608b48baa6e | /python-study/dataType/dataType5.py | 2c3685831c4e7c8eb30ac5234a041009e5e369db | [] | no_license | prkhyo/coding-test | b61953829b7536d4901ba386e05d64459190718f | 3938902e8d768d6da63fa338758bb92723f663a8 | refs/heads/master | 2023-08-31T21:07:08.044407 | 2021-09-26T17:05:09 | 2021-09-26T17:05:09 | 388,933,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,586 | py |
# 집합 자료형
# 집합의 특징 : 중복 허용 X, 순서 X
# 집합은 리스트 혹은 문자열을 이용해서 초기화할 수 있음
# 초기화 방법
# (1) set() 함수 이용
# (2) 중괄호{} 안에 각 원소를 콤마,를 기준으로 구분하여 삽입
# 데이터의 조회 및 수정에 있어서 O(1)의 시간에 처리 가능
# 집합 자료형 초기화 방법1
data = set([1, 1, 2, 3, 4, 5, 5])
print(data) # {1, 2, 3, 4, 5} -> 중복 원소 제거
# 집합 자료형 초기화 방법2
data = {1, 2, 4, 5, 5, 5,... | [
""
] | |
8065cd7502032e1ffa597e2ed1a2c51f7334439f | 91f9d18a82b106bdadeaccc19dd6bab658ef6ea4 | /datastructures/LinkedList.py | 8f75d58c86a7c71592719932be3b00d45f2f5f7f | [] | no_license | elianajn/CP307 | 6ae518ee449c5d9230b37ce17566e226da101625 | dd132429299e0fe570fd6f5e1e706c31fd4a16da | refs/heads/main | 2023-01-15T18:07:52.215792 | 2020-11-11T18:40:22 | 2020-11-11T18:40:22 | 305,578,531 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,512 | py | class ListNode:
def __init__(self, data):
self.data = data
self.prev = None
self.next = None
def __repr__(self):
return str(self.data)
class LinkedList:
def __init__(self):
self.first = None
self.last = None
self.current_size = 0
def size(self... | [
"elianajneu@gmail.com"
] | elianajneu@gmail.com |
289b20a0b72d988bd1e32bbce7bf486152eca97b | b62bd0e4c83ce06ee0fbe1e99131fdaf79908cec | /test/integration/ggrc/models/mixins/test_with_action.py | d5b7ecd0556678d5992cb460340bf0d0d8820893 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ch-t/ggrc-core | 8cbacf674ed4a319da7f370f5d40bbfdb70791cd | c1ff8c0319dc3bad59f35525227e2b4c9a505841 | refs/heads/dev | 2021-01-19T17:05:31.961848 | 2017-08-22T05:28:39 | 2017-08-22T05:28:39 | 101,045,324 | 0 | 0 | null | 2017-08-22T09:23:09 | 2017-08-22T09:23:09 | null | UTF-8 | Python | false | false | 19,989 | py | # Copyright (C) 2017 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"""Integration test for WithAction mixin"""
import copy
from ggrc.models import all_models
from integration.ggrc import api_helper
from integration.ggrc import TestCase
from integration.ggrc.generator im... | [
"alena.sheshko@gmail.com"
] | alena.sheshko@gmail.com |
7b1992faec0c1b2d12b7ad49f4d454f2fe93c9e7 | ac042704660f07263a9b7918c9d19e8027e2c01b | /qn 13.py | 0a8a84e201e1017ecb24dbbf67cab6fd0d002f36 | [] | no_license | Prashant414/python | 23387f2d205ceb36f141e4b4529ff9c3e80d2679 | f5ff2b280b4bf29df2723b9d1d16690e65aaf62f | refs/heads/main | 2023-03-21T10:23:32.119726 | 2021-03-09T17:59:45 | 2021-03-09T17:59:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | # Print First 10 natural numbers using while
i=0
while i<=10:
print(i)
i=i+1
| [
"prashantshyam09@gmail.com"
] | prashantshyam09@gmail.com |
12cf3bfd6a7899ebfae769750b1a5a17ec2edcfe | 1b9fb0b96327d155b7d076daaae749000b9a12b0 | /cs214/django/mysite/west/views.py | c969fb0097c738485fc518b28576626fa514ac09 | [] | no_license | wangjiezhe/shiyanlou | c929d7ae81ccec4d019e7eaee9cc33b42632c84e | 55f1665814c8a7ce34811fd61126811a9f91e057 | refs/heads/master | 2020-04-15T19:54:02.864363 | 2016-04-27T03:03:05 | 2016-05-10T12:11:49 | 39,290,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | # -*- coding: utf-8 -*-
from django.shortcuts import render
from django.http import HttpResponse
from west.models import Character
from django.core.context_processors import csrf
from django import forms
# Create your views here.
class CharacterForm(forms.Form):
name = forms.CharField(max_length = 200)
def first... | [
"wangjiezhe@gmail.com"
] | wangjiezhe@gmail.com |
1a442203491aa25653aae444c840e22b780f5b94 | 35c98eaa78de7bec7f985d62febb62f17a2177fc | /nlde/engine/eddynetwork.py | eef6a1c1c01f51fac5239869918e7fcaa182346c | [] | no_license | maribelacosta/nlde | a24499e8115c62352a6e16746ef89ca06252ed40 | df6d850b23ba617ae6872798c3165f01de8c5e68 | refs/heads/master | 2022-04-25T17:54:45.593633 | 2020-04-23T10:12:25 | 2020-04-23T10:12:25 | 258,157,557 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,963 | py | """
Created on Mar 23, 2015
@author: Maribel Acosta
"""
from eddyoperator import EddyOperator
from nlde.util.sparqlparser import parse
from nlde.util.explainplan import explain_plan
from nlde.planner.optimizer import IndependentOperator, create_plan
from multiprocessing import Process, Queue
class EddyNetwork(object... | [
"maribel.acosta@kit.edu"
] | maribel.acosta@kit.edu |
2d43f4dfb1eaf4ad3fad458a1b6c1adda9da703d | e941fed78264cbb32df8909d881c64721f75b295 | /home/urls.py | faf95fcd176062a101b39b0173ae70922090e0a6 | [] | no_license | PelaNisha/third_django-user-auth- | 3f5e7418438cef9416d54de290a75e7632965876 | d6eef69e00909b4489e6258151e9345fce0cf31b | refs/heads/master | 2023-05-27T22:57:43.864612 | 2021-06-05T15:45:12 | 2021-06-05T15:45:12 | 371,736,249 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | from django.contrib import admin
from django.urls import path, include
from home import views
urlpatterns = [
path('', views.index, name = 'home'),
path('login', views.loginUser, name = 'login'),
path('logout', views.logoutuser, name = 'logout'),
] | [
"nishapela777@gmail.com"
] | nishapela777@gmail.com |
eac0b5d45b5a0ac966f08a4b8b83a3c1d6fdf69c | dea690c107a041ebae0d30ba5ae143c39661303d | /Pong/Bola.py | e2edcfce4df8d6f1caa89a73f45f0b475e4ee7c7 | [] | no_license | esponja92/pyolito | 73b04f27089b16cc50baa260ec52170c55450b65 | 142fd9b3370ca254ff6cb49652543b73303c7a70 | refs/heads/main | 2023-03-13T12:43:05.417946 | 2021-03-28T02:27:30 | 2021-03-28T02:27:30 | 352,139,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,039 | py | import pygame
from ObjetoAtivo import ObjetoAtivo
class Bola(ObjetoAtivo):
def __init__(self, centro_x, centro_y, raio, cor):
self.largura = 15
self.altura = 15
self.velocidade = 5
self.inicial_x = centro_x
self.inicial_y = centro_y
self.cor = cor
self.ra... | [
"hugodantas@tic.ufrj.br"
] | hugodantas@tic.ufrj.br |
e8602b17915bca9838d8ff2d73861d1902c2a90a | 4acdda2a7e17c8cfbaa8fe2cb6c39db964dc25d2 | /tests/test_blog.py | 3d745bac59ddce2a126679d8c6ad7ae0acc1e9b2 | [
"MIT"
] | permissive | Vitalis-Kirui/Personal-Blog | c5dafb0aac197effac92d191ca39a25495108140 | 49af71b70f32ff4a588df26cd38091a6d80eb805 | refs/heads/master | 2023-07-31T00:49:04.553066 | 2021-09-26T19:47:50 | 2021-09-26T19:47:50 | 409,132,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | import unittest
from app.models import Blog, User
class BlogTest(unittest.TestCase):
def setUp(self):
self.user_id = User(username='vitalis', password='computer', email='vitalis@gmail.com')
self.new_blog = Blog(blog_title='My Birthday',posted_at='14/3/1998', blog_content='The date I took my first ... | [
"vitalis.kirui@student.moringaschool.com"
] | vitalis.kirui@student.moringaschool.com |
ac684f0dba65c38917b56bb8e3c8b63747f120b8 | d5588bc2feccee17ed8f40d524acd66f47bdf228 | /src/Problem/Selectors/value_selector.py | 811f08df2a98b6890744d66270d54f33bd2b1788 | [] | no_license | AltiTorie/CSP | cb477edbb755686095bf72af357889cadf193fa7 | c2ad8086c1f77e66a1c85b30bb448e5647386620 | refs/heads/master | 2023-03-28T21:33:29.255717 | 2021-04-19T22:00:48 | 2021-04-19T22:00:48 | 357,532,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,687 | py | from abc import ABC, abstractmethod
from src.Problem.problem import Problem
class ValueSelector(ABC):
def __init__(self, csp: Problem):
self.csp = csp
@abstractmethod
def select_values_order(self, assignment, variable, domains=None):
...
class TakeOriginalValueSelector(ValueSelector):
... | [
"Arek.ste99@wp.pl"
] | Arek.ste99@wp.pl |
6ca84c2dba4135fe731d4c342f84ee3cb1aca083 | 3cfc01eab152e5b97554a0965e79fc1221b71321 | /pitches.py | 0248bae1ee649a43672db25dff4671911742178f | [
"MIT"
] | permissive | ZhouLihua/leetcode | 5ebe8bd9dcd04bf2c822cfb3c338d2d25231bba5 | 7a711e450756fb7b5648e938879d690e583f5957 | refs/heads/master | 2021-11-18T17:26:53.492232 | 2021-09-17T07:58:25 | 2021-09-17T07:58:25 | 127,875,412 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | import sys
import math
def total_Hours(speed, pitches):
totalHour = 0
for pitch in pitches:
totalHour += math.ceil(pitch / speed)
return totalHour
if __name__ == "__main__":
try:
line = sys.stdin.readline().strip()
if not line:
raise Exception("negative")
va... | [
"jerry.zhou@dell,com"
] | jerry.zhou@dell,com |
081db6e86bf88d1f2fc3d81b85d4d5b8b30fe946 | c98672a6ea8cf91130dc5acbcc1b4bba4f7d2045 | /workTool.py | 2e59ff0c5edc8b87d70571fede4dd48b674f3fa2 | [] | no_license | kexin-do/python-book-down-biquge | f8e335b3450d5a9825e445aa5a178656426d1417 | 45489a7e0a499b12758ec278f75310fc4037e7d9 | refs/heads/master | 2020-07-19T13:10:36.726886 | 2019-09-05T02:21:05 | 2019-09-05T02:21:05 | 206,455,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,092 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jul 12 15:13:31 2018
@author: root
"""
from bs4 import BeautifulSoup
from enum import Enum
import requests,time,sys
selectorType = Enum('selectorType',('book','menu','text'))
contents = {}
class WorkTool:
def __init__(self,target,charset='utf-8'):
self.s... | [
"kexin_do@163.com"
] | kexin_do@163.com |
d9d4fc280b8d97cbb947ddebab7ab59ca5aa1ae2 | 512267fc9295a9296dc9da3f0947e324a2f37984 | /startingout/tests.py | 39beac1031a362881763120ddc9bc09c60cfd163 | [] | no_license | joroson/startingout | b55bd8c45c4b70ae5147f0a98a6adf6888d2ed51 | 92091ae7f73f246c6cc700d5effe4e9da91f8bef | refs/heads/master | 2023-03-02T18:01:54.362286 | 2021-02-01T10:18:10 | 2021-02-01T10:18:10 | 317,985,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | import unittest
from pyramid import testing
class ViewTests(unittest.TestCase):
def setUp(self):
self.config = testing.setUp()
def tearDown(self):
testing.tearDown()
def test_my_view(self):
from .views.default import my_view
request = testing.DummyRequest()
info ... | [
"joe@10kinds.tech"
] | joe@10kinds.tech |
24589718db31ecf9fa0256f8e90ded54357ef870 | 21b4410b96d7f56ce8b27dc1015680e926eb5fce | /ModuloString/aula135.py | 742f365aa3ddafc5bedff1760f647bcb804c7b2f | [
"MIT"
] | permissive | pinheirogus/Curso-Python-Udemy | ddef17ae861279ec8e6cc44183b91bbe11bbd100 | d6d52320426172e924081b9df619490baa8c6016 | refs/heads/main | 2023-07-17T12:01:23.731329 | 2021-09-01T01:49:21 | 2021-09-01T01:49:21 | 401,896,087 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py |
from string import Template
from datetime import datetime
with open('template.html', 'r', encoding='utf8') as html:
#Neste caso, o arquivo está sendo lido e passando uma string para a classe Template
template = Template(html.read())
data_atual = datetime.now().strftime('%d/%m/%Y')
corpo_msg = templat... | [
"pinheirogustavo@gmail.com"
] | pinheirogustavo@gmail.com |
9d6439a6b2d66e84bc71bc05fe37f2fd23593da6 | fc23456b470ed67b2052faa8d8b40af57243c66e | /core/mysite/submodels/image.py | f8b8dbcf44ff277c61fc933c5b5d144c3864fb99 | [] | no_license | hamedsalim1999/doprax-django-with-docker | 3b0918fe974dbf7ba8a5e5337dbcb1621be44c99 | d0ebe6268bb7d36f39934db21ab45ec479aea51f | refs/heads/master | 2023-07-18T05:15:13.816184 | 2021-09-08T17:39:04 | 2021-09-08T17:39:04 | 404,428,747 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | from django.db import models
from django.core.files import File
import secrets
import os
from django.urls import reverse,reverse_lazy
from django.conf import settings
from .base import Publish,Timestamp
from django.utils.text import slugify
class Image(Timestamp):
title = models.CharField(max_length=128, null=Tru... | [
"hamediran1999@gmail.com"
] | hamediran1999@gmail.com |
0170c0c289bd5cba1649c1763329778c4f8675d5 | fc36b33714a04eb3f916fb6d58f1935482ae1dee | /blog/models.py | 5591dbc876494f8f4f8674ec2fd394a46728819f | [] | no_license | williamleeIao/my-first-blog | ec03645fb5d58a08561362b6b8f4239165feee04 | 91e4401cc844301d09106d6985aa9bf76bf60497 | refs/heads/master | 2020-03-14T15:32:32.525071 | 2018-05-01T02:56:19 | 2018-05-01T02:56:19 | 131,669,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | from django.db import models
from django.utils import timezone
# Create your models here.
class Post(models.Model):
author = models.ForeignKey('auth.User', on_delete=models.CASCADE)
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(
default=ti... | [
"wilee_6@hotmail.com"
] | wilee_6@hotmail.com |
de0b7d4aab3481f7eee89ede7eb41a802bda201e | 1ac173361f4de3e0a2fed0b3454d57b6bbf77d0c | /rapi/principal/migrations/0030_auto_20160622_1713.py | 7c2757888796db93a9945d408b45416073603930 | [] | no_license | Alpha004/Raph2 | c75274d826ef2de0ac69d37e771cb11084f1d7ae | c4e0c608ea4eb8f2bcdd2c34ded48340532a05c2 | refs/heads/master | 2021-08-28T19:58:04.125143 | 2016-07-27T05:01:29 | 2016-07-27T05:01:29 | 63,810,009 | 0 | 0 | null | 2021-07-30T01:01:52 | 2016-07-20T19:52:28 | HTML | UTF-8 | Python | false | false | 607 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.3 on 2016-06-22 17:13
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('principal', '0029_auto_2016... | [
"jesusalren93@gmail.com"
] | jesusalren93@gmail.com |
0f3fc8831e53c6a2ac259688095352d63dd2b74e | 3f893fef9b7b22bd6fd801b9bcb956e7912f302c | /aliu/packages.py | 9ff4a1b654df8f45e44eb4ca90b90335ed7d0325 | [
"MIT"
] | permissive | a2liu/pytill | 63eb54a9bf8fb3554c8f5052232662cd58f2e949 | f05587707495471bc7403f9582cc89ad455a6a5f | refs/heads/master | 2020-04-14T19:12:45.197035 | 2019-01-05T01:13:06 | 2019-01-05T01:13:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | import sys
PACKAGE_DIR = '/Users/aliu/code/python/packages/'
def add_local(*packages):
for package in packages:
sys.path.insert(0,PACKAGE_DIR+package)
| [
"albertymliu@gmail.com"
] | albertymliu@gmail.com |
1e274d74ad26e7dd53ac6e762c283f06a179f1b5 | f15d80adc1f2b48d571811c0e6ec67ba63dac836 | /camera-test.py | 4fcafb352bb246453ce908ade5b81752aa3fda58 | [] | no_license | rozymahsun/facenetattendance | 51c672e39c53e38a4b3ad7716822b88853c8455e | 4f6dd57a464c6ff0999cd9026a10e231dfedead3 | refs/heads/master | 2020-03-18T23:58:43.294627 | 2018-05-31T06:13:18 | 2018-05-31T06:13:18 | 135,444,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | import numpy as np
import cv2
import datetime
cap = cv2.VideoCapture(0)
cap.set(cv2.CAP_PROP_FRAME_WIDTH, 320)
cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 240)
#cv2.VideoCapture.set(CV_CAP_PROP_FRAME_WIDTH, 640)
#cv2.VideoCapture.set(CV_CAP_PROP_FRAME_HEIGHT, 360)
#cap.SetCaptureProperty(CV_CAP_PROP_FRAME_WIDTH,
#cap.set(cv2.... | [
"rozymahsun@gmail.com"
] | rozymahsun@gmail.com |
b65c7ff857bea66c9ec4b62378b036c2c3736f91 | a25d5619405bf737c82b662e8132a19048ca454c | /bin/pip3.6 | 8e69065add3182dec6089a4cc75682b65541ded8 | [] | no_license | daisakuhazui/django | 8d87df6e95a9dcac2499c62ffc99b76e8610c06d | 0204f0228657846f6f4895ce3a6bba74126d7ba6 | refs/heads/master | 2020-03-19T01:23:04.650085 | 2018-05-31T06:30:17 | 2018-05-31T06:30:17 | 135,541,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | 6 | #!/Users/daisakuhazui/develope/django/tutorial/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"daisakuhazui@MacBook-3.local"
] | daisakuhazui@MacBook-3.local |
c1ee39b1b2a7ca3e916a559da292bc53bfdc5b74 | 017f62ebc7357dc665723a5b4fa75294f31fda8f | /lib/jnpr/eznc/resrc/srx/nat/nat_proxy_arp.py | 10fe27280370f10dad027ec9771f769faed67709 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | cro/py-junos-eznc | c2588d9fde7b65ec523c558d741716f3a19621c7 | 4c111476cc8eb7599462379ddf55743ae30bbf5c | refs/heads/master | 2021-01-20T16:36:20.034788 | 2013-11-19T19:17:32 | 2013-11-19T19:17:32 | 14,535,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,235 | py | # 3rd-party modules
from lxml.builder import E
# module packages
from ...resource import Resource
from .... import jxml as JXML
class NatProxyArp( Resource ):
"""
[edit security nat proxy-arp interface <if_name> address <ip_prefix>]
Resource namevar:
tuple(if_name, ip_prefix)
Description:
This res... | [
"jschulman@juniper.net"
] | jschulman@juniper.net |
60d963412a48fad3faf24a928539525426ead706 | 41d5dbdba29881755a44ee4e4fc15afd1f70e83b | /events/models.py | 4baceaf5ada3724abb836862c652100e5daacb5c | [] | no_license | aniket1004/adminpanel | 9493500856f5175317d74e6c6322085ac9f5101f | fdb5e40c55294762eb2959834c5297d307eb654a | refs/heads/master | 2023-04-23T14:38:18.730038 | 2021-05-03T12:19:08 | 2021-05-03T12:19:08 | 363,909,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | from django.db import models
# Create your models here.
class Event(models.Model):
name = models.CharField(max_length=100,blank=False,)
slug = models.CharField(max_length=100,blank=False,)
date = models.DateField(auto_now=False, auto_now_add=False)
| [
"aniketdhole1004@gmail.com"
] | aniketdhole1004@gmail.com |
8f26c0707c6e96062c78e160ebb53b168b45685b | b18ff1d2a88cdad6d8ca73a8e6c34943f7bee055 | /toolcall/models/__init__.py | b223e50a69b3e81be3d40cd155596ad4cbf3849e | [
"MIT"
] | permissive | thebjorn/toolcall | 9c812d608a67990dfb04b4e8bc1ebfcd4e7440c3 | 2c1597c8224958b4751cfb09f7a1b4439ca6df09 | refs/heads/master | 2021-06-13T21:33:12.495795 | 2019-08-31T10:50:55 | 2019-08-31T10:50:55 | 147,824,176 | 0 | 0 | MIT | 2021-06-10T20:46:47 | 2018-09-07T13:02:31 | HTML | UTF-8 | Python | false | false | 53 | py | # -*- coding: utf-8 -*-
from .tool_models import *
| [
"bp@datakortet.no"
] | bp@datakortet.no |
903984715773801ca2e11ea4b30d93214d206d25 | 30d9898c1b4a2be116e8c764ae91fb5ff4b216f5 | /project_python基础/4.18.py | 0c2bf7fa8ef697d14e8da6126a06f633fc696337 | [] | no_license | CgangerCG/PythonLearning | 402a267c84d73f903e8290ea3a20208fd9fdf183 | 67616bfd2aa709b6344e6b7d0124f1e8d710246d | refs/heads/master | 2020-03-28T20:16:20.273278 | 2018-09-17T01:56:32 | 2018-09-17T01:56:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | import random
print(random.sample(range(100),10))
print(random.randrange(1,100,2))
print(random.choice("abcdefghij"))
print(random.choice(['apple','pear','peach','orange'])) | [
"34260109+chengang0727@users.noreply.github.com"
] | 34260109+chengang0727@users.noreply.github.com |
411d7c55267cfccce2048ad8cd1fd9304f605fe2 | 8a1a0a657a400ffac264bbf9eec55eb3c0a264c8 | /pyverilog-0.9.1/pyverilog/utils/scope.py | 1511633b52a9806ea8375b332551fbb3e0337bbf | [] | no_license | gayatri267/PyverilogTutorial | e82295f7ba329dda6b438e54c2d667e15ce015ce | a63fa9fe3acef4afc9d7bbe8a742996039560d8a | refs/heads/master | 2021-09-07T02:42:35.992051 | 2018-02-16T01:17:04 | 2018-02-16T01:17:04 | 112,436,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,129 | py | #-------------------------------------------------------------------------------
# scope.py
#
# classes for definition of scope
#
# Copyright (C) 2013, Shinya Takamaeda-Yamazaki
# License: Apache 2.0
#-------------------------------------------------------------------------------
import sys
import os
import copy
sco... | [
"gayatri267@gmail.com"
] | gayatri267@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.