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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
922ebf912b8f213223b4db80d2fa8d9fcccf14fb | 2f20b67079b4ce705fdc0cdbe0adf76a3eeb3fbf | /app.py | 1641662517b0bbc659797b97958bc3f19bf480d5 | [] | no_license | Dayanfreitas/BackpackProblem | 5facc3f013a86f4e14e5719df29dca7abb03310c | 9803af0226c978b39095e8df94092e42ff7a6e33 | refs/heads/master | 2023-04-18T17:33:41.275093 | 2021-04-25T21:05:00 | 2021-04-25T21:05:00 | 357,383,266 | 0 | 0 | null | 2021-04-25T21:05:01 | 2021-04-13T01:03:49 | Python | UTF-8 | Python | false | false | 443 | py | from model.DNA import DNA
from Evaluator import Evaluator
from Factory import Factory
from Helper import Helper
DNA_strand = [
DNA('Saco de dormir', 15, 15),
DNA('Corda', 3, 7),
DNA('Canivete', 2, 10),
DNA('Tocha', 5, 5),
DNA('Garrafa', 9, 8),
DNA('Comida', 20, 17)
]
factory = Factory(DNA... | [
"dayan.freitas@catolicasc.org.br"
] | dayan.freitas@catolicasc.org.br |
8cf7209b6884d1a58920a1ea9c7dea54945b17fe | 48053b5703865029fe03daf19897c7ffcf7f1b3b | /db/scripts/db_fix.py | 46e04ff2c6709aac10d733d63bf0cb8167a40b47 | [
"MIT",
"Apache-2.0"
] | permissive | mrcdb/secured-verifier | 2294bbe146f923b4500fd42498c7a0681025efad | d5ee0d5ec3e3f4132387aa4b47ca039023b69974 | refs/heads/master | 2021-08-26T04:42:06.748581 | 2016-11-11T11:08:20 | 2016-11-11T11:08:20 | 105,147,821 | 0 | 0 | null | 2017-09-28T12:53:00 | 2017-09-28T12:53:00 | null | UTF-8 | Python | false | false | 1,882 | py | #! /usr/bin/python
# db_fix.py: tool to fix the database
#
# Copyright (C) 2014 Politecnico di Torino, Italy
# TORSEC group -- http://security.polito.it
#
# Author: Roberto Sassu <roberto.sassu@polito.it>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms o... | [
"fulvio.valenza@polito.it"
] | fulvio.valenza@polito.it |
6c6e12fa925c57be0fddd4074aa52393dca4eb69 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02787/s069996134.py | 5242a0c98d9fb0fe819f9bb08a60a75b923ddb4e | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | import sys
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007
def main():
H, N, *AB = map(int, read().split())
magic = [0] * N
for i, (a, b) in enumerate(zip(*[iter(AB)] * 2)):
magic[i] = (a, b)
d... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b4fe770f4a895c8e71a2930295b5c5c898003e59 | a04a62d99cde78fe75707f5e5377f0f806b4033e | /ch3/e6.py | 6ef3b32de14e35931290a768be25b2a76a1e37cf | [] | no_license | pdavegit/simulation | 61f8db5e9e133a148e451395b4b35f121254d78a | 40098c910b2a3181e0f7340e067199a7b95b962f | refs/heads/master | 2020-08-06T14:29:56.069618 | 2019-12-08T18:13:31 | 2019-12-08T18:13:31 | 213,006,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | import math
import random
def g(x):
return x * (1 + x*x)**-2
def h(y):
return g(1.0/y-1.0)/(y*y)
def e6(iterations):
s = 0
for i in range(iterations):
r = random.random()
s = s + h(r)
return s/iterations
# Value from WolframAlpha is 0.5
print(e6(1000000))
| [
"prashant.dave.email@gmail.com"
] | prashant.dave.email@gmail.com |
90f9330b3d27713f5534ec9e92191468c61d2b44 | 02fecf1730d9a5c68afcd5ae870c31189fa097c5 | /project_101_dropbox.py | 8f1ffac045a122b0bc3ef55562ec940752aa4c47 | [] | no_license | saikeerthana-123/dropbox | d9570019bd9ba2854f47b59ea380e0c08166b241 | b9086ca4f61e7150aea0a3b826edbf43e97169e2 | refs/heads/main | 2023-04-01T00:26:15.203970 | 2021-04-05T13:27:47 | 2021-04-05T13:27:47 | 354,843,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | import dropbox
import os
class TransferData:
def __init__(self, access_token):
self.aT = access_token
def upload_file(self, file_from, file_to):
dbx = dropbox.Dropbox(self.access_token)
fileName = os.path.split(file_from)[1]
dropbox_file = '/CloudStorage/'+fileNam... | [
"noreply@github.com"
] | saikeerthana-123.noreply@github.com |
505d9fd6acced78c6852d1acddf2ecf72dc39434 | 47c82bec808ebee8a5579de81ee7f5a45ab81db5 | /api/mark.py | d9b463a9ae592f494ce2cd8ef36d701007a7606d | [
"MIT"
] | permissive | bitmaus/utopia | 00d44f596a082e0f7ea5849e0dc5a4e8d5441c40 | 178bfcc76fe1e8b31868aa9d4c1bbdc6a0283ca9 | refs/heads/master | 2020-09-06T20:04:05.603015 | 2019-12-10T06:53:18 | 2019-12-10T06:53:18 | 220,534,899 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,509 | py | # pip install tornado
import tornado.ioloop
import tornado.web
# pip install markdown
import markdown
import os
from markdown.inlinepatterns import InlineProcessor
from markdown.util import etree
# for custom tags like "tab", add "<div class='tab'></div>
# an oversimplified regex
MYPATTERN = r'\*([^*]+)\*'
NEWPATTER... | [
"v-masebo@microsoft.com"
] | v-masebo@microsoft.com |
cc3bce0210aec5a6b37c5f661b815fede4f12a36 | 1b3f9157fc9703566673a1de54429e26b5c71875 | /tests/hwsim/test_ap_ft.py | 191fee8ccd292b48359c5dea74424ed5f9a6ce79 | [
"BSD-3-Clause"
] | permissive | SKKU-ESLAB/ant-hostap | 9cc8b2ed11e5287bdd69c1bc01eb95748f1495ea | 3cd4c17ff4d4f1e265a150f88fec6a62e8c2ee01 | refs/heads/master | 2021-09-26T20:37:38.142347 | 2018-11-02T10:37:03 | 2018-11-02T10:37:03 | 104,550,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44,812 | py | # Fast BSS Transition tests
# Copyright (c) 2013-2015, Jouni Malinen <j@w1.fi>
#
# This software may be distributed under the terms of the BSD license.
# See README for more details.
from remotehost import remote_compatible
import binascii
import os
import time
import logging
logger = logging.getLogger()
import hwsim... | [
"redcarrottt@gmail.com"
] | redcarrottt@gmail.com |
d85f353c4db0e01fb98731f43294df2b67d36da6 | 5beca294842cb28676dfc978c15f8ef9f10f2a84 | /models/__init__.py | 8bcb7d0a94bbcb683b9ed8b38b864d44154e33b3 | [] | no_license | teddylew12/UQPINN_TF2 | 9caf6126c1ee7489ec5d2db10bcd44ede944a185 | 2673713f4616ae3a6052ab89ac20a32a566f180b | refs/heads/master | 2022-10-10T13:03:51.662630 | 2020-06-10T17:35:45 | 2020-06-10T17:35:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | from .disp_stiff_hard_model import DISP_STIFF_UQPINN
from .ODE_model import ODE_UQPINN | [
"theodore.k.lewitt@usc.edu"
] | theodore.k.lewitt@usc.edu |
5ffaae4117bd4bf7e03132abd98fdc4fb41b7eb5 | 090b86c70dea42de7bc852e30207d2a3c6f60ec3 | /flaskapp.py | bf2b548b68e3429b191d1d349018d5e49e21ddf4 | [] | no_license | spacebared/stellarbuild | 2dc48b996956f3668a548710066aa827ff406219 | b88e1485fcc640bd127285e9a577cd054323b4df | refs/heads/master | 2021-01-18T09:55:47.284721 | 2017-01-16T07:23:19 | 2017-01-16T07:23:19 | 79,092,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | #!/usr/bin/python
from flask import Flask, render_template, request
import os
import generate
import urllib2
import json
app = Flask(__name__)
@app.route("/", methods=["GET", "POST"] )
def home():
if request.method == "GET":
return render_template('root.html')
if request.method=="POST":
pair=gener... | [
"noreply@github.com"
] | spacebared.noreply@github.com |
ba5965b9baf02a4b46b03c043fe9d31d0dc5e810 | 5ed2eb094c75da388af64247f77203d1fd825476 | /venv/bin/rst2odt_prepstyles.py | c8c1e2ace582bddce4e18cc65da813a56e153039 | [] | no_license | aitorgolla10/textmining | acee8a4c3359270c40f8354d61f276acf642875b | 9a31a53e8751697864a1ead38218b873e6f4108e | refs/heads/master | 2022-11-05T08:16:09.630957 | 2019-11-17T22:38:14 | 2019-11-17T22:38:14 | 215,301,062 | 1 | 2 | null | 2022-10-10T06:44:55 | 2019-10-15T13:06:06 | Python | UTF-8 | Python | false | false | 1,736 | py | #!/home/aitor/PycharmProjects/textmining/venv/bin/python
# $Id: rst2odt_prepstyles.py 5839 2009-01-07 19:09:28Z dkuhlman $
# Author: Dave Kuhlman <dkuhlman@rexx.com>
# Copyright: This module has been placed in the public domain.
"""
Fix a word-processor-generated styles.odt for odtwriter use: Drop page size
specifica... | [
"agomez257@ikasle.ehu.eus"
] | agomez257@ikasle.ehu.eus |
39cd237334a038b1ff39b2dfba8cc9e2999a176c | 49b57280c96a18a7e777cf333f16d91242c11e32 | /visualizeData.py | 3e4c166c926291231c05b4831d935ac1bef8e525 | [] | no_license | cqiu32/TrackBot | c4d87a39542a4694414f262a816cd8c25dcd3b69 | 4f4decb122bde37a049786124f47cba91115bf3e | refs/heads/master | 2021-04-15T16:34:15.660024 | 2018-03-25T20:53:13 | 2018-03-25T20:53:13 | 126,738,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 27 20:00:14 2016
@author: badarim
"""
import numpy as np
import utilities as util
t = open('inputs/test01.txt');
f = open('training_data.txt');
data = np.loadtxt(f, delimiter = ',');
util.plotData(data, 'Training data')
data = np.loadtxt(t, delimiter = ',');
util.plo... | [
"noreply@github.com"
] | cqiu32.noreply@github.com |
15c218589b4f903cada7d469128742f24234299d | 98dccce37f452ea9afc71d6f509a09bbd7d4a73d | /h1ds/h1ds/version.py | 5f2361b2d97e53f740467cd4bc3d3908a4575771 | [
"MIT"
] | permissive | stellulata/h1ds | ac4f9b7d77c0a78a59467c32a0eb80ce103e7944 | df2b3ae13c2dfabd9bf846e0905b0a0ce0ca2d54 | refs/heads/master | 2021-01-22T00:36:40.689600 | 2014-05-24T19:00:17 | 2014-05-24T19:00:17 | 16,189,640 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,830 | py | """
Current h1ds version constant plus version pretty-print method.
Code copied from Fabric:
https://github.com/bitprophet/fabric/raw/master/fabric/version.py
This functionality is contained in its own module to prevent circular import
problems with ``__init__.py`` (which is loaded by setup.py during installation,... | [
"david.pretty@anu.edu.au"
] | david.pretty@anu.edu.au |
4adb79e41d2e8d69e12cdbad0271e95920198fca | ea43c00f1f40af538e3fe65635ef4aa8488f29c7 | /PycharmProjects/assignment/agents.py | b74852cb14339af319e48ede64aaa3545359915d | [] | no_license | ishrat134/python | 13cae73e5f3a161a6a3342ce3d1545a26515f886 | 6432bb8b8a0b47cbd502c1caed20fde3330b2442 | refs/heads/master | 2022-11-09T17:12:10.426855 | 2020-06-21T11:26:46 | 2020-06-21T11:26:46 | 273,888,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,519 | py | import pandas as pd
def agentAvailibility(agentData, selection_mode, selection_role):
agents = []
df = pd.DataFrame(agentData)
if selection_mode == "all_available":
df1 = df[(df['is_available'] == "True")]
i = 0
df3 = pd.DataFrame()
for roles in df1['Roles']:
re... | [
"ishratrmahajan@Apples-MacBook-Pro.local"
] | ishratrmahajan@Apples-MacBook-Pro.local |
64bacc9506ee8073571d4e6a9868841577b71d60 | 1f528631683f9d96c09dd4a4af243dd7213a4bd7 | /thumbnail.py | 6dffb24265b8649c5dce6c5d5183c7387998cc12 | [] | no_license | wd5/artcontactmeru | 4f8ede2a3f072c11ac0c8c8a74e0960382824537 | 2057f1b00db8eb808e0b4fb91a95fbe0a3e4f223 | refs/heads/master | 2020-12-30T14:55:54.067776 | 2009-11-12T07:30:00 | 2009-11-12T07:30:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,255 | py | # -*- coding: utf-8 -*-
import os, Image
THUMBNAILS = 'thumbnails'
SCALE_WIDTH = 'w'
SCALE_HEIGHT = 'h'
SCALE_BOTH = 'x'
def scale(max_x, pair):
x, y = pair
new_y = (float(max_x) / x) * y
return (int(max_x), int(new_y))
# Thumbnail filter based on code from
# http://batiste.dosimple.ch/blog/2007-05-... | [
"ruslan.popov@gmail.com"
] | ruslan.popov@gmail.com |
a5cc62bbcd61f788728da458ad2eeb0bd78592b3 | f2dddfcc0044c68d45d05fa2384c0bb59eb56534 | /2.11数组中常用的属性.py | 8f1b47190ea3ffdc1aba3b0a8192ea03ce53b5ad | [] | no_license | JokerTongTong/Numpy_learn | 796cc526e00e2348d6315720f000c6f5eb8249db | 8cd7a658c239be203c9fa674c512b9ce47f3559c | refs/heads/master | 2020-06-04T04:18:14.269327 | 2019-07-08T07:40:16 | 2019-07-08T07:40:16 | 191,870,094 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | # 2.11数组中常用的属性
import numpy as np
'''
数组中常用的属性
1.shape 通过元组的形式返回数组每一维度元素的个数
2.dtype 返回数组的元素类型
3.ndim 返回数组的维度
4.size 返回数组元素的总数
5.itemsize 返回数组中的每个元素在内存中所占用的字节数
数组占用总字节
1)nbytes属性
2)itemsize * size 两个属性相乘
6.nbytes 返回数组所有元素一共在内存中所占用的字节数
7.T 返回一个原数组【行|列】转换后的数组
原数组为二维数组 -- T属性相当于transpose
原数组为一维数组 -- T属性... | [
"guoqiang19951212@163.com"
] | guoqiang19951212@163.com |
0cb298185a5c4cfdbe1b0aaa35207797631ad1b4 | 0ad158a4b45ec7bc68c955d89ff37d1f59c5d429 | /scripts/aa_analysis_w_iupred.py | 2bdded64f4611deaf82e2e3dcf2708047eba1d1e | [] | no_license | ColdAdaptationScripts/cold_adaptation | 7b78da636b9ec5413a5ee672c730e36ad58204c8 | ef4dcdd89210d2af1954b6fb0fe9142163c2f0a0 | refs/heads/master | 2021-01-14T09:00:01.295226 | 2015-06-15T16:04:52 | 2015-06-15T16:04:52 | 37,476,426 | 2 | 1 | null | 2017-08-17T02:13:25 | 2015-06-15T16:15:47 | Python | UTF-8 | Python | false | false | 4,445 | py | from Bio import SeqIO
from sqlalchemy import create_engine
from Bio.SeqUtils.ProtParam import ProteinAnalysis
from subprocess import check_output
import os
# set the environmental variable of IUPred
os.environ['IUPred_PATH'] = "/home/yzolotarov/iupred"
amino_acids = ['A', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'K', 'L', ... | [
"yevgen.zolotarov@mail.mcgill.ca"
] | yevgen.zolotarov@mail.mcgill.ca |
af263a25de948b5b25b58ac7d00436867cd66cec | 6fbbca77bfa06fd95c1b9d84379f31aa2c271d49 | /nlsummary_utils/summarize/__init__.py | 4e31d6f77a33517ad44cddcbeaa6fbac9a1ba4b8 | [] | no_license | markliederbach/nlsummary-utils | 61b4bd6059d8a4836da2f1a5a2180ac4ee4e7657 | df0452267eec3fa8972ad25be30b920dd48d0ab6 | refs/heads/master | 2020-04-02T07:30:56.405380 | 2018-10-22T21:41:11 | 2018-10-22T21:41:11 | 154,200,207 | 0 | 0 | null | 2019-10-21T17:30:18 | 2018-10-22T19:06:14 | Python | UTF-8 | Python | false | false | 2,726 | py | import re
import nltk
import heapq
class Summary:
def __init__(self, text, language=None, max_sentence_length=30):
self.text = text
self.language = language or "english"
self.max_sentence_length = max_sentence_length
def get_summary(self, top_sentences=2):
"""
Provide... | [
"Mark.Liederbach@tdstelecom.com"
] | Mark.Liederbach@tdstelecom.com |
d8623f4624fd413559470e04029ceb65af97b499 | d9095800a56e2bb48de9e20b901e5f8bc6356bc6 | /Python/Lab4/challenge2_idle_detector.py | 75871bc4f48f4e901fefece647295cf14b982eb8 | [] | no_license | tajo0215/16LabPartnerships | c7cd7a879372a2343bfbe6c5eec52328132bae05 | 15b775eb79f289c6fef8049b76c6973d84f4d03a | refs/heads/main | 2023-05-26T10:18:00.755142 | 2021-06-11T03:38:38 | 2021-06-11T03:38:38 | 364,988,318 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,784 | py | from ECE16Lib.Communication import Communication
from ECE16Lib.CircularList import CircularList
from matplotlib import pyplot as plt
from time import time
import numpy as np
"""
If the value is 100 greater than 2427 or 100 less, then it returns true to represent active state
"""
def checkIdle(value):
return value... | [
"kanishkaroy0710@gmail.com"
] | kanishkaroy0710@gmail.com |
7633108013a04f6e5ef0c4287c65002bd12e70c6 | 2c4f71012cda2f7c896ab0f08e06a5a678aadfb7 | /FuncionesComp/func10.py | 47317bf4ba39de3b06261b5b4bcf9b82571d953e | [] | no_license | rvrn2hdp/informatorio2020 | 6eb4a9e5f768bec4bc3f710699965491773851b7 | 96c2aa3b4fd85538ff8bf1254ea0bce449f407e2 | refs/heads/master | 2023-02-19T01:55:34.968318 | 2021-01-25T22:33:32 | 2021-01-25T22:33:32 | 332,902,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | '''Ejercicio 10: Precedencia del operador
Escriba una función llamada precedencia que devuelve un número entero
que representa la precedencia de un operador matemático.
Una cadena que contiene el operador se pasará a la función como su único parámetro.
Su función debe devolver 1 para + y -, 2 para * y /, y 3 para ˆ... | [
"ortizjuanarg@gmail.com"
] | ortizjuanarg@gmail.com |
81b27a95d1df8125b4eeb7a6dc579656bf7802f0 | 61a204b5a51ff352f501004b9b2a5141238be1d7 | /Omenat/omenat.py | ceae07d355e72586e4ac4a75214aa7fde123f306 | [] | no_license | SampoPaukkonen/CSES-Algorithms | eb3c76fcdff21d6db776625405ff6b2c6bd51e93 | 1fc09a0481c740fce6218ea0cf9861bfc0d59bf8 | refs/heads/master | 2020-12-05T14:40:05.501578 | 2020-01-06T16:38:07 | 2020-01-06T16:38:07 | 232,141,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | def main():
n = int(input())
nums = [int(x) for x in input().split()]
total_sum = sum(nums)
def exhaust(i, sum_so_far):
if (i == 0):
return abs((total_sum - sum_so_far) - sum_so_far)
return min(exhaust(i-1, sum_so_far+nums[i-1]), exhaust(i-1, sum_so_far))
print(exhaust(n... | [
"sampopaukkonen@localhost.localdomain"
] | sampopaukkonen@localhost.localdomain |
3c23d5e63c1bf841488ae78f9c08cd61eccffa6e | 4c0276ba91a35ec951b23e44941b00f0f453f4f4 | /tech_project/bin/pyreverse | 481f449fb8762d0a23ababea6ee552147c96d880 | [
"MIT"
] | permissive | priyamshah112/Project-Descripton-Blog | 5e63ff863c306a83c4cd5019fef379f683781a2e | 8e01016c6be79776c4f5ca75563fa3daa839e39e | refs/heads/master | 2020-04-27T18:41:04.416384 | 2019-03-14T19:48:41 | 2019-03-14T19:48:41 | 174,582,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | #!/home/priyam/Project-Descripton-Blog/tech_project/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pyreverse
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_pyreverse())
| [
"priyam.ds@somaiya.edu"
] | priyam.ds@somaiya.edu | |
7e57694591ccea12ade2aaeb5ac1524ce38461db | 03dea3c0db7c8fafda71d23c3c2595f563ffb335 | /SignalMC/python/AMSB_chargino900GeV_ctau1000cm_NoFilter_13TeV.py | d9b642184847712cc96ebbd952b587fe419eaacd | [] | no_license | Andersen98/DisappTrks | 3952e9bf8ba270e2d88aa2e8d9ef805cf25dfc46 | 140a5efdc4c51a30e5fced6d34b7813876c2f2ee | refs/heads/master | 2020-06-27T03:41:59.136790 | 2017-07-12T15:19:18 | 2017-07-12T15:19:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,706 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.PythiaUEZ2starSettings_cfi import *
generator = cms.EDFilter("Pythia6GeneratorFilter",
pythiaHepMCVerbosity = cms.untracked.bool(False),
maxEventsToPrint = cms.untracked.int32(1),
pythiaPylistVerbosity = cms.untracked.int32(3),
filte... | [
"ahart@cern.ch"
] | ahart@cern.ch |
029b203d2855ea88a914710884650c4275ac4e46 | eef8e20c653191bf6294102b234a0fca118b242b | /Docs/Handouts/sample_eval_server.py | a9669b2a37558e9a2f244b830e78998709d909a4 | [] | no_license | nicolashww/CG3002-Dance-Dance-01 | 8d76d5899e97876f288dfe9b7d69500957d0962f | fa0159d4ee870f91288fb6a582518aba09df3347 | refs/heads/master | 2021-07-21T00:39:49.695502 | 2017-10-31T03:22:20 | 2017-10-31T03:22:20 | 108,950,555 | 0 | 0 | null | 2017-10-31T05:42:14 | 2017-10-31T05:42:14 | null | UTF-8 | Python | false | false | 5,682 | py | from tkinter import *
import socket
import sys
import server_auth
import random
import time
import threading
import os
import pandas as pd
class server:
def __init__(self, ip_addr, port_num):
global action
global action_set_time
# init server
self.auth = server_auth.server_auth()
... | [
"e0012616@u.nus.edu"
] | e0012616@u.nus.edu |
b818191531994619e2f64e216edd315786e81044 | 24927eac464cdb1bec665f1cb4bfee85728ec5e1 | /entry_parser/balenciaga.py | ca5ea1f4cb43c5aaeece995f78a8da7d00683e75 | [] | no_license | yingl/fashion-spider | d72ea8dfd4a49270fd3e64e7a507d6fcbaaf492c | 0698768cd21d509ec335d7202a753be4f6ad378b | refs/heads/master | 2021-01-01T18:14:17.848732 | 2017-09-27T08:44:47 | 2017-09-27T08:44:47 | 98,282,505 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | """ Balenciaga """
# coding:utf-8
import sys
sys.path.append('../')
import util
PREFIXES = ['www.balenciaga.cn']
def parse(driver, url):
products = []
driver.get(url)
elements = util.find_elements_by_css_selector(driver, 'a.item-display-image-container')
for element in elements:
products.appe... | [
"linying_43151@163.com"
] | linying_43151@163.com |
60b22d53fbf1e5893ab6925972c16edebae8fa71 | c6ae5d4c9b2a3acef09ee8254e1c1b67bc255b56 | /okex/v5/billtype.py | 1432ed9ee5152a20f37741012015561760391395 | [
"MIT"
] | permissive | PattonChen/okex-py | ce36a4ded7cb051a7167e3ba9aeb88bc4e0417f3 | cced7f1419da0940a2200ce66d62b4f9539949f2 | refs/heads/main | 2023-05-04T06:00:38.540463 | 2021-05-16T08:30:42 | 2021-05-16T08:30:42 | 367,833,565 | 1 | 0 | MIT | 2021-05-16T09:14:59 | 2021-05-16T09:14:59 | null | UTF-8 | Python | false | false | 302 | py |
from enum import Enum
class BillType(Enum):
# 划转
TRANSFER = 1
# 交易
TRADE = 2
# 交割
DELIVERY = 3
# 强制换币
FORCE_SWAP = 4
# 强平
FORCED_LIQUIDATION = 5
# ...
class BillSubType(Enum):
LINEAR = "linear"
INVERSE = "inverse"
# ... | [
"1103870790@qq.com"
] | 1103870790@qq.com |
9ee6d085738441c5e04afe2534663c554139d8e8 | fed0e4edf4df4b7a4abd52cbd1a0115243bdfcd0 | /hello.py | 11eec872b636492245036a4b82f4fe6982e46ba3 | [] | no_license | TitanVA/hh_parser | 62c5c9a87ab38a454c36d6ceba3dec1cd52f0ee3 | 0b51dc84ba5714de15629c8ec1d9da0dd9b2ecb1 | refs/heads/master | 2022-02-08T00:55:23.492072 | 2022-01-19T10:43:54 | 2022-01-19T10:43:54 | 236,823,784 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | print("Hello World!")
print("MR please")
| [
"viktorbezai@gmail.com"
] | viktorbezai@gmail.com |
7387594544abf24d14fe03730304610dfd2cb320 | 83714f63b17c46f9d002e74e43b9764019518ffa | /service/page/wechat/station.py | 552339d939f88dafedca2a6937ef3283830ba059 | [] | no_license | cash2one/DL-BIKE | db56f5b08dc9c690afecadbe80b22a6d8bacd92f | deced3892333f866525b46fa51ddbe0fa5ff8f58 | refs/heads/master | 2021-08-30T05:38:32.095432 | 2017-12-16T07:37:02 | 2017-12-16T07:37:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | # coding=utf-8
from tornado import gen
from service.page.base import PageService
class StationPageService(PageService):
@gen.coroutine
def get_station(self, conds, fields=None):
"""
获得租赁点信息
:param conds:
:param fields: 示例:
conds = {
"id": company_id
... | [
"panyuxin@moseeker.com"
] | panyuxin@moseeker.com |
1d80fe96db1c270109eea36af33536d1f681f4e0 | 0fa96aa3b1ee5cf752e20bad98ef02785c369225 | /quaducom/quaducom/assess/assess_shell/mn_resistance/ecb_law_mn_diagram.py | 971d0cc7a521f908aee65bce5fdb5716551192e2 | [] | no_license | simvisage/simvisage | 7a56ce0d13211513a86e3631db1b55dc62e85986 | acb2a8eb8b6caa57c1e9e15f724a2b43843c7b10 | refs/heads/master | 2020-04-04T07:32:47.598636 | 2018-12-10T15:10:43 | 2018-12-10T15:10:43 | 3,583,342 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 7,966 | py | '''
Created on Sep 4, 2012
@author: rch
'''
from etsproxy.traits.api import \
HasTraits, Int, Instance, Property, cached_property, DelegatesTo, \
Event, Button
from util.traits.editors.mpl_figure_editor import \
MPLFigureEditor
from matplotlib.figure import \
Figure
from etsproxy.traits.ui.api impor... | [
"rostislav.chudoba@rwth-aachen.de"
] | rostislav.chudoba@rwth-aachen.de |
c33b1a9b9b8f0ee903bf5055430c997fe15c27aa | f75331a2d999dbaf526ad3817042c4a3a7a3b9ae | /Tutorial/thread1.py | aab9386ed8ca7b3f74c0673f3440ad8b6d001bd6 | [] | no_license | Ken0327/Python | a51ca2dc1c88253159bffcb0e74781e6f814daa0 | d3f8f23231ef0e5197b8b457720874f61529ac06 | refs/heads/master | 2020-05-22T11:41:27.006398 | 2020-05-02T07:47:35 | 2020-05-02T07:47:35 | 186,328,441 | 0 | 0 | null | 2019-05-26T01:59:52 | 2019-05-13T01:59:44 | Python | UTF-8 | Python | false | false | 224 | py | import threading
def worker(num):
"""thread worker function"""
print('Worker:', num)
return
threads = []
for i in range(5):
t = threading.Thread(target=worker, args=(i,))
threads.append(t)
t.start() | [
"dr.k0327@gmail.com"
] | dr.k0327@gmail.com |
b8cefab5509feb30987e49668738d7972c1a5b0b | 4bc5a8aa032c125783265ba63832346162bd816c | /club_app/forms.py | 2effd94e470002d39d6055ce286f178c7977d6cd | [] | no_license | gstearmit/DjangoJinjaBootrap4 | ac6150cfbcbb1f9c2832b1e7fc38a3568f9ce4e1 | 7529f5d90edb04890b483032391e7a4f0803e13f | refs/heads/master | 2022-04-07T06:04:04.326197 | 2020-02-29T10:50:26 | 2020-02-29T10:50:26 | 243,951,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,083 | py | from django.utils.html import format_html
from django import forms
from django.forms.models import BaseInlineFormSet
from django_jinja_knockout.widgets import DisplayText, PrefillWidget, ForeignKeyGridWidget, MultipleKeyGridWidget
from django_jinja_knockout.forms import (
RendererModelForm, WidgetInstancesMixin, D... | [
"questpc256@gmail.com"
] | questpc256@gmail.com |
1e0e692ce6ec7d7c5c94dae68627581085f24155 | 7abb86db144fa6aeb69fcff571496a5bb54f812a | /experiments_archived/leave_subject_out.py | b11c71c11d3a7b6235960065eb6dc26aea044020 | [] | no_license | mamaj/shared-gpfa | 821273899956bd5a288db46007b11d04e9c9b588 | 72ef34b3574b674d0d4b1c4006e6ea8f8bc0bb22 | refs/heads/master | 2022-12-04T17:33:17.538648 | 2020-08-26T01:10:55 | 2020-08-26T01:10:55 | 255,756,129 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | import tensorflow as tf
import tensorflow_probability as tfp
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from tqdm import tqdm
from sklearn.model_selection import KFold
from shared_gpfa import SharedGpfa
from ea_data_loader import load_ea_data
import time
import pickle
import math
tf.get_log... | [
"mamareza.e@gmail.com"
] | mamareza.e@gmail.com |
34d8513c172a58e7d635c1cc20add3c5cfc710df | ffb4db36bf3959ed4a994f693c62d68092a91e63 | /image_space/utils.py | 405488ce25781aa69623a15abb722ef060c3b29d | [] | no_license | quasiben/image_solr | 8bc25db1e47f19d83d5b51b89e250f8da2cd285b | cc2baafa170bdbfecc1a0450ffd041de485f19fa | refs/heads/master | 2021-01-10T02:10:19.064770 | 2015-03-05T23:37:24 | 2015-03-05T23:37:24 | 31,621,600 | 2 | 1 | null | 2015-03-05T23:25:21 | 2015-03-03T21:12:28 | JavaScript | UTF-8 | Python | false | false | 1,319 | py | from image_space import app
from image_space.models import Image, IMAGE_TABLE_NAME
from image_space import db
# Upload Handling
def allowed_file(filename):
return '.' in filename and \
filename.rsplit('.', 1)[1] in app.config['ALLOWED_EXTENSIONS']
# EXIF Processing
def process_exif(exif_data, img_path... | [
"quasiben@gmail.com"
] | quasiben@gmail.com |
0c3eb34ca123217876148bd6cbe34e978632e747 | 6657a43ee360177e578f67cf966e6aef5debda3c | /test/test_warning_api.py | 7b7edb07cebe3c9a13d48a3b983ac64425eaa37f | [
"MIT"
] | permissive | NVE/python-varsom-avalanche-client | 3cc8b9c366f566a99c6f309ccdfb477f73256659 | c7787bf070d8ea91efd3a2a9e7782eedd4961528 | refs/heads/master | 2022-04-20T09:32:24.499284 | 2020-04-16T20:12:01 | 2020-04-16T20:12:01 | 256,318,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | # coding: utf-8
"""
Snøskredvarsel API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v5.0.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
im... | [
"jorgen.kvalberg@gmail.com"
] | jorgen.kvalberg@gmail.com |
e66c0eafd98efd5eaba61523e197950c35f3dd27 | 99672205d51f6b21aee5ee554a0dd5b0ab07cf16 | /tracer.py | 748e04ffd0b51319c54162671ab614fef47636c1 | [] | no_license | jukeks/FollowDatLight | 48d8fd5c323b794d4887f52062dd0e5cd00dc824 | 477c7f683ef0580ddcb3ff42501ed0584c8f37bd | refs/heads/master | 2020-12-25T18:20:34.538871 | 2013-02-03T12:05:05 | 2013-02-03T12:05:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,696 | py | import colorsys
from euclid import Vector3, Point3, Ray3, Line3, Plane
from euclid import Sphere as Sphere3
from multiprocessing import Process
from objects import *
class Tracer(Process):
def __init__(self, width, height, worker_id, worker_count, canvas, world, camera,
recursion_depth, multisamp... | [
"jukkapekka.virtanen@gmail.com"
] | jukkapekka.virtanen@gmail.com |
65ee34428a001611cc81d153a87842166b3b521d | 9fbbfb3dd1990be27acfada1a91af980f474c8f1 | /Chapter 07/rangesumBST.py | 603891b6170f47a25ae103aebce7585ed63a2d86 | [
"MIT"
] | permissive | bpbpublications/Python-Quick-Interview-Guide | 61a48446f910144a050a5bb1515ad48567dc9481 | ab4ff3e670b116a4db6b9e1f0ccba8424640704d | refs/heads/main | 2023-04-08T12:18:14.605193 | 2021-04-13T09:18:30 | 2021-04-13T09:18:30 | 350,315,060 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | from typing import List
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class BinTree:
def printTree(self,root:TreeNode)->None:
LevelList = [root]
self.printLevel(LevelList)
def printLevel(self,LevelList:... | [
"41231825+bpbpublications@users.noreply.github.com"
] | 41231825+bpbpublications@users.noreply.github.com |
b2dd51373cccb91f4deb163e655a49c0474caa3d | 96f594328c678a4bb05d32b20f51cd51c77d6931 | /Utility/NumpyFunctions.py | 89a8a9f3480d8fdcd1aa8f46cb603554f9ad04b9 | [] | no_license | LoganJF/CML_lib | b6bc7c0c96d305a50ddc3c816a338a8ee924cf02 | 4334da0755825e7d2c9f50cf1aab52dcbd81464b | refs/heads/master | 2020-03-15T07:35:48.841464 | 2018-05-23T21:22:10 | 2018-05-23T21:22:10 | 132,031,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,326 | py | """Purpose of this script is to hold functions used primarily with numpy arrays used in CML"""
# Add some dimension to your life
import numpy as np # I say numpy like 'lumpy', no I don't mean num-pie
# -------> UTILITY FUNCTIONS FOR BEHAVIORAL EVENT MANIPULATIONS
def append_fields(old_array, list_of_tuples_field_typ... | [
"loganfickling@gmail.com"
] | loganfickling@gmail.com |
961c58becc3bf6a9a9e1be3bd158eb47758d8de4 | 436da49d82df227fc2654c7e3c6acc72d6a6aad6 | /hindi/migrations/0010_auto_20170801_1131.py | 4be3c7fe387ce1731b1e77cf133e6677b9ffe53b | [] | no_license | mc639/Manavmitra | c91a2178f01427284d256ff152a4032f978e48a4 | 567d3b483d52e9285681916bfeda773a7b9ae0ed | refs/heads/master | 2020-07-30T14:41:55.736634 | 2019-09-23T05:02:26 | 2019-09-23T05:02:26 | 210,266,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-08-01 11:31
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hindi', '0009_auto_20170801_1111'),
]
operations = [
migrations.AlterField(... | [
"noreply@github.com"
] | mc639.noreply@github.com |
32947d0705476fc000360b6fd002966a4d7b6e6f | 827eebd690d8781cacb3926881e3b5e7dfa59ced | /index/migrations/0019_userprofile_avatar.py | f124dc9ab43871b4359490c31c13a0f98ace39bf | [] | no_license | shadownetz/arena | 91d1e8a97c4eae30b4c7513e3646d4f7338ffa92 | 8c507352055ef7ac8b7498684ad1273215d64715 | refs/heads/master | 2023-04-06T23:20:55.988807 | 2021-04-16T16:21:21 | 2021-04-16T16:21:21 | 192,147,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | # Generated by Django 2.2.1 on 2019-06-13 22:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('index', '0018_remove_userprofile_avatar'),
]
operations = [
migrations.AddField(
model_name='userprofile',
name='ava... | [
"shadownetz@localhost.localdomain"
] | shadownetz@localhost.localdomain |
795f936423965063c44b347705c53fd1c306692f | bf2aa4eab14a6a5347fe4af65cc4a37f512a465d | /people/migrations/0111_auto_20200530_0632.py | 7320c7e9f7c6db4746b6c85c51fb4fef42dfea53 | [] | no_license | drdavidknott/betterstart | 0cda889f5cd6bb779f6d1fa75cb4f2ef08eb626c | 59e2f8282b34b7c75e1e19e1cfa276b787118adf | refs/heads/master | 2023-05-04T07:32:24.796488 | 2023-04-16T15:26:30 | 2023-04-16T15:26:30 | 173,626,906 | 0 | 0 | null | 2023-02-18T07:27:55 | 2019-03-03T20:37:01 | Python | UTF-8 | Python | false | false | 623 | py | # Generated by Django 3.0.3 on 2020-05-30 05:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('people', '0110_auto_20200530_0631'),
]
operations = [
migrations.AlterField(
model_name='site',
name='password_reset... | [
"dkoysta@gmail.com"
] | dkoysta@gmail.com |
e58b131f07fa2a75b2676a80f3e936ed4481c7f7 | 6ae040579128d6dd90a12349d0d3935251a1c888 | /static_website/models.py | 63b1c660b5bccd5517a9c46f3814cf6ffca7bdae | [] | no_license | wkatbey/personal-website | 018c3f033fecac1aa1030384b234c8c1ffb60fa0 | f551b1f140d8d02511ffc13be2ffeb2a2362e0bb | refs/heads/master | 2023-03-13T04:50:45.013377 | 2023-03-05T02:28:22 | 2023-03-05T02:28:22 | 184,034,612 | 0 | 0 | null | 2022-12-09T04:49:53 | 2019-04-29T08:49:27 | Python | UTF-8 | Python | false | false | 393 | py | from django.db import models
class PageSectionText(models.Model):
value = models.TextField()
col_length = models.IntegerField()
class PageSection(models.Model):
heading = models.TextField()
heading_icon = models.TextField()
text = models.ManyToManyField(PageSectionText)
class HomePage(models.Model):
intro = mo... | [
"lunarxparallax@gmail.com"
] | lunarxparallax@gmail.com |
c07f5f20db0ddcca9d3b07ecdb404f2a7e817bcb | 1caf4418f3549567637f5e9893a445f52a38c6a0 | /CmsAdmin/user_content/app/dtos/change_account_password_dto.py | 29b05af87dbeee572f150ac6b43bf6236ec0b7b5 | [] | no_license | Final-Game/social_network_backend | c601563e08c0fd7de72a614944f354ef8d2d31d8 | 8111787d1d20eb87733ae360d8baa745a65e2743 | refs/heads/master | 2023-03-04T21:12:43.147084 | 2021-02-23T03:45:22 | 2021-02-23T03:45:22 | 290,542,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | from core.common import BaseApiException
class ChangeAccountPasswordDto(object):
old_password: str
new_password: str
def __init__(self, old_password: str, new_password: str) -> None:
self.old_password = old_password
self.new_password = new_password
self.validate()
def valida... | [
"kakavip.198.kaka@gmail.com"
] | kakavip.198.kaka@gmail.com |
f1b93a801b706405ece1b35bcdcdbe5618322de2 | 372924b8d84c05b026ff2d54ef7c5142d2656e2e | /app/cors.py | def90bb3551cc8b421a4a866ea11f8c680868e50 | [] | no_license | Tiberwood/proyecto1 | bc842284dfb4b60da32f2c4ecab53b598b41d783 | 4146ab6eec95280972f5776fbb17e81068194090 | refs/heads/master | 2023-07-30T04:33:35.748506 | 2020-08-20T02:13:22 | 2020-08-20T02:13:22 | 278,509,278 | 0 | 0 | null | 2021-09-22T19:33:07 | 2020-07-10T01:29:12 | Python | UTF-8 | Python | false | false | 155 | py | class CorsMiddleware(object):
def process_response(self, request, resp):
response["Access-Control-Allow-Origin"] = "*"
return response | [
"velero_chopin@MacBook-Pro-de-Belen.local"
] | velero_chopin@MacBook-Pro-de-Belen.local |
e0619261dfff4b95e7c919d59207e57c8051ebce | b2767589d425d3c37c3d3d9fbcfa6e09fc5e7839 | /Main.py | 8e2570c69532cc9f87d51b826ae7550d38b97f76 | [] | no_license | BigFlexLiu/Race_to_the_end | 580f3b12cc3d5a90285651840c8a5472e9939237 | 9f4a8068961c984ee85a591149085bb9f9eb808f | refs/heads/master | 2023-07-11T08:00:15.783523 | 2021-08-04T20:51:51 | 2021-08-04T20:51:51 | 392,821,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,576 | py | """
Jan 4, 2018
The main file for the game, not sure if there'll be more files
Created by Shenjoe
"""
import pygame
import time
import random
import sys
pygame.init()
black = (0, 0, 0)
white = (255, 255, 255)
red = (255, 0, 0)
green = (0, 255, 0)
blue = (0, 0, 255)
gray = (180, 180, 180)
car_width = 73
... | [
"73266210+BigFlexLiu@users.noreply.github.com"
] | 73266210+BigFlexLiu@users.noreply.github.com |
ee71398911054d72c2440fe57f222ff41fe9d50c | ebf997ac5814bd20a44646b6690de6913669f2e1 | /plugins/btsync/resources/btsyncUI/freenas/urls.py | 2b3a85c40b8dfa13a5dc5e20d84814d6cc7c5f00 | [] | no_license | MadMarty/freenas-plugins-1 | 4add49728e07fb75191352902969a1ecea67b248 | 4940cd7cc39a26882ea7f4a61799bcea1cea6b34 | refs/heads/master | 2021-01-22T04:23:36.608602 | 2016-05-06T18:02:47 | 2016-05-06T18:02:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | from django.conf.urls import patterns, include, url
urlpatterns = patterns('btsyncUI.freenas.views',
url(r'^edit$', 'edit', name="btsync_edit"),
url(r'^treemenu-icon$', 'treemenu_icon', name="treemenu_icon"),
url(r'^_s/treemenu$', 'treemenu', name="treemenu"),
url(r'^_s/start$', 'start', name="star... | [
"joshruehlig@gmail.com"
] | joshruehlig@gmail.com |
6d0ac1b874b42647dc1f9ae88bf71a781168b87f | e62d6ee0de22003a1458d99f5d2a73d85cbd4e6c | /algorithms.py | 9e9b2d0bea8b9213276076dee09cace3c6075a19 | [] | no_license | sarapple/AI-Search-Algorithms-Pure | ae34dca73c8bba42a872b117cb4688de37810ff6 | ee0556a36fe1f6b35c1fb1c33288f35b50f8151d | refs/heads/master | 2022-12-22T16:56:38.024966 | 2020-09-30T20:41:59 | 2020-09-30T20:41:59 | 227,245,818 | 0 | 0 | null | 2020-09-30T20:42:01 | 2019-12-11T01:03:04 | Python | UTF-8 | Python | false | false | 6,639 | py | from puzzle_state import PuzzleState
from node import Node
from utilities import Utilities
import queue as q
import resource
import itertools
class Algorithms:
@staticmethod
def search_wrapper(
client_defined_expand,
client_defined_goal_state_check,
client_defined_hashed_state,
client_defined_com... | [
"sarakwong1@gmail.com"
] | sarakwong1@gmail.com |
4d3fa52ea925a9fb3c4d090b66218b5948c5d3b4 | 1e3a3294a2e03331f9c3dd503f0c843cf5bee233 | /report_data/generate.py | a07a6707f6b8fad3046b05f46c8282b074ea4c49 | [] | no_license | amith2208/QuickScan | 69e8f80ef35949fb9182e476f943d7403515ffd3 | d6b2eb0dd84d44246cfedbc0af2e8ccdc9fead8d | refs/heads/main | 2023-08-23T21:42:53.745201 | 2021-10-10T07:40:05 | 2021-10-10T07:40:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,774 | py | from threading import Thread
import dominate
#import pdfkit
from dominate.tags import *
#from PyPDF2 import PdfFileMerger, PdfFileReader
import sys
#from data import *
from report_data.data import description
from report_data.data import links
from report_data.data import prevention_methods
from report_data.data import... | [
"prajwalcbk38@gmail.com"
] | prajwalcbk38@gmail.com |
62da7e7ad834064181e17740b6d6908c1a2d2afe | aa6b51e286f1ce1a728486b35e14a61ae292d17d | /Python Programs/Average.py | a74ca1889a3dea7289143c17d3dab5bb80eda784 | [] | no_license | Gowrishankarvv/Hacktoberfest21-letshack | 0f04f72e6eb9f9c27f9998eb5af9ea4572cd64d2 | 7b44be107ca16c4676e8606377c156037b89c687 | refs/heads/main | 2023-08-24T11:47:06.243943 | 2021-10-09T06:01:33 | 2021-10-09T06:01:33 | 414,051,131 | 3 | 1 | null | 2021-10-06T17:10:29 | 2021-10-06T03:05:27 | Jupyter Notebook | UTF-8 | Python | false | false | 150 | py | a = raw_input("Enter first number")
b =raw_input("Enter second number")
def average(a, b):
return (a + b) / 2
m = average(a,b)
print m
print a
| [
"noreply@github.com"
] | Gowrishankarvv.noreply@github.com |
e2e11ea69c4e7924998b15bb873a3ff24eb52dfe | abce6fa0083d17ef0db405bfceef2e48481634c4 | /codeforces/dp/Flowers.py | f8039857a7fc99953fd98c964c6dc86bee22a04f | [] | no_license | chandrasekharpatra/programming | 53586efd05d3e374770a32810b8fc27a576e316f | 00034d53740600fff4fe42614126b0c660bc9280 | refs/heads/master | 2020-09-16T13:05:33.168721 | 2019-11-24T17:01:04 | 2019-11-24T17:01:04 | 223,779,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | # https://codeforces.com/problemset/problem/474/D
#
# f(n) = f(n-k) + f(n-1)
#
MOD = 1000000007
SIZE = 100010
dp = [-1 for i in range(SIZE)]
def flowers(n, k):
if n == 0:
return 1
if dp[n] != -1:
return dp[n]
temp = 0
if n >= k:
temp = (flowers(n-k, k) % MOD)
temp += (flow... | [
"chandrasekharpatra1@gmail.com"
] | chandrasekharpatra1@gmail.com |
94525c4e1278e1b638d45df4e32589b8ea6e5133 | 3a891a79be468621aae43defd9a5516f9763f36e | /desktop/core/ext-py/pyasn1-0.1.8/test/codec/der/test_decoder.py | 5f0bc0b8be193a1564d66e29a71c3e468855d6a1 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"Apache-2.0"
] | permissive | oyorooms/hue | b53eb87f805063a90f957fd2e1733f21406269aa | 4082346ef8d5e6a8365b05752be41186840dc868 | refs/heads/master | 2020-04-15T20:31:56.931218 | 2019-01-09T19:02:21 | 2019-01-09T19:05:36 | 164,998,117 | 4 | 2 | Apache-2.0 | 2019-01-10T05:47:36 | 2019-01-10T05:47:36 | null | UTF-8 | Python | false | false | 963 | py | from pyasn1.type import univ
from pyasn1.codec.der import decoder
from pyasn1.compat.octets import ints2octs
from pyasn1.error import PyAsn1Error
from sys import version_info
if version_info[0:2] < (2, 7) or \
version_info[0:2] in ( (3, 0), (3, 1) ):
try:
import unittest2 as unittest
except ImportErr... | [
"erickt@cloudera.com"
] | erickt@cloudera.com |
20b6be7990c53a7581268c1002d933e95735033c | c8ff6492526834bf668999b4a4a1b391617adb86 | /src/first_time.py | d722ef935ede91c8890118af31d09a52ccffbf0b | [] | no_license | bendaten/first | 0ed4c73c328a5155138e5de8b8ba3f23050befe5 | ac72acf1a1d060a105b0451e1cda9b886aa4c2af | refs/heads/master | 2021-01-25T11:03:01.880344 | 2017-06-18T09:03:05 | 2017-06-18T09:03:05 | 93,906,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,199 | py | from datetime import timedelta
from dateutil.parser import parse
class FirstTime(timedelta):
"""FirstTime adds restrictions to timedelta. It allows only positive values and a has a conversion method"""
def __init__(self, hours=0, minutes=0, seconds=0):
"""
Constructor
:param hours:... | [
"daniel.bendavid@adap.tv"
] | daniel.bendavid@adap.tv |
fc15cd560d3f046123f961916546a3f7b77c6982 | e30e4c62f4ca027c88ed091e6bc7a8e0a6a7f06d | /components test codes/detect_pulse.py | 94af33d6ec29dfd1d9be2460e358508416fae17f | [] | no_license | ccgarces/DIYRobocar | d87937f6410e3d13ffa05c23ae69636ae8423f62 | e61ef6519ef3ece2c47ab2233dadb7b951d30b99 | refs/heads/master | 2023-05-05T05:36:45.055219 | 2021-05-25T03:41:48 | 2021-05-25T03:41:48 | 122,472,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,889 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Feb 11 21:23:15 2018
@author: ccgar
"""
# testing feedback 360 serving to get the steering angle or the car
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
pulse_starttime = time.time()
pulse_endtime = pulse_starttime
pulse_width = pulse_endtime -... | [
"noreply@github.com"
] | ccgarces.noreply@github.com |
232f046690d9f6130e0850886b3f080370df2f6f | 3b12cbf24b7b0254ad65f8aba3314f2c75d3f6ac | /chnSegment.py | ac4659d638f229a237d1c3016fcdd0ae53806ec2 | [] | no_license | Oohuo/GetBilibiliAllComment | d279fefb51865156a16c3ea4af48258097f0efe7 | 9c2af239b6979de07e52c70ae804f63c4704f685 | refs/heads/master | 2022-12-27T23:12:24.102481 | 2020-10-12T08:13:13 | 2020-10-12T08:13:13 | 294,630,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | # coding:utf-8
from collections import Counter
from os import path
import jieba
jieba.load_userdict(path.join(path.dirname(__file__), 'userdict//dic.txt')) # 导入用户自定义词典
def word_segment(text):
'''
通过jieba进行分词并通过空格分隔,返回分词后的结果
'''
# 计算每个词出现的频率,并存入txt文件
jieba_word = jieba.cut(text, cut_all=False) ... | [
"zouhan@asiainfo.com"
] | zouhan@asiainfo.com |
e76f03bb2f96d6ae3ce6a81c6e0b6e266df1d7cf | be62a62259025bf8ae6eae43ea1c0a0677239e36 | /Fourth_day/exercices/resolution2/Banco.py | f00b71517f1cc80edce8b0578cd1169a256187d6 | [] | no_license | MatheusGalhani/Python | 128517c94cf01548190782b27cccbdb36a3ce918 | 5a232c70d7800f448b232640ce5d5c12f394a943 | refs/heads/master | 2021-12-01T00:58:47.594000 | 2021-11-26T19:52:28 | 2021-11-26T19:52:28 | 224,693,318 | 18 | 2 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | class Banco:
def __init__(self, agencia, gerente):
"""
Criando um construtor e inicializando as variaveis
:param agencia:
:param gerente:
"""
self.agencia = agencia
self.gerente = gerente
def __str__(self):
"""
Mensagem padrão da classe
... | [
"matheus.galhani@dxc.com"
] | matheus.galhani@dxc.com |
47e9e98fb07d00a3566e7282ccfcb34c32e58352 | 08c9f8ca4aa953be3c3c040c78148df9f9d464c0 | /binary search tree(bst).py | 9e4de2e3a3646bb28ce13d28ae000945de45af94 | [] | no_license | vageesh-vag/data-structures | 7750a49cc340f86d1bef68d0ddea5ce58c517425 | 2b455ab7b728a9858ad8f3ca4e23517c842424ba | refs/heads/main | 2023-08-10T11:35:25.297150 | 2021-09-08T04:03:24 | 2021-09-08T04:03:24 | 309,274,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,239 | py | class node:
def __init__(self):
self.data=0
self.next=None
self.prev=None
class bst:
def __init__(self):
self.root=None
def add(self):
self.a=int(input('Enter data:'))
self.new=node()
self.new.data=self.a
if self.root is None:
... | [
"noreply@github.com"
] | vageesh-vag.noreply@github.com |
5192cca4e77259de02a4a24e8ff51ed496b5f1c5 | 4c94f00c35c055fed4c21f0a4302d7b48d5e691b | /hw3.py | e765256a5f9f4897b90b93d9a1b07fa18c0b637b | [] | no_license | kandmk/hw1 | c035bfbd9dcf68dbaaf1751ede7233f1dd20645f | d3e7850d975c4b3e333d6a2ac6854d9f1ad17cdd | refs/heads/master | 2020-03-18T23:17:58.828606 | 2018-06-21T17:27:10 | 2018-06-21T17:27:10 | 135,394,600 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,012 | py | def readNumber(line, index):
number = 0
flag = 0
keta = 1
while index < len(line) and (line[index].isdigit() or line[index] == '.'):
if line[index] == '.':
flag = 1
else:
number = number * 10 + int(line[index])
if flag == 1:
keta *= 0.1... | [
"miku.rixia.0121@gmail.com"
] | miku.rixia.0121@gmail.com |
40dbc8db421f0169754a1a634b4d9a9afecd14da | 061bdeedc4c0be95c7d4cbc2f31c666b728e790e | /flask_mysql/burgers/server.py | 92a50f2003c2f5e92093b8c9a5f898c0a5fe2ef8 | [] | no_license | akawoa/python | 49604157d296431c790bb4592eb8cbfffe42f225 | 3be5cdb7910f9cd6833d3648a6e3f8c5d93d3f49 | refs/heads/master | 2023-06-24T13:52:51.889428 | 2021-07-22T01:11:44 | 2021-07-22T01:11:44 | 383,282,161 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,335 | py | from flask_app import app,render_template,redirect,request,session
from flask_app.controllers import burgers
from mysqlconnection import connectToMySQL
@app.route('/')
def index():
return render_template("index.html")
@app.route('/create',methods=['POST'])
def create():
query = "INSERT INTO burgers (name,bu... | [
"72364753+akawoa@users.noreply.github.com"
] | 72364753+akawoa@users.noreply.github.com |
b3ac0a3390ef6660927064cd15d95012adf4bf95 | 8afb6b9c2ecf1b717301b2714cb62565d281b7d1 | /server.py | 8a302744c5fc7042d8d1868363b30554eac5846e | [] | no_license | sagutierrez10/D-N | f100bdad62881630abb3d4fd404301df33576b5b | 71a962d92711f2868c1e480c36952bad1aa8dab0 | refs/heads/master | 2023-07-15T01:51:54.461506 | 2021-08-29T18:31:25 | 2021-08-29T18:31:25 | 401,099,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | from flask import Flask, render_template, request, redirect, url_for
from ninja import Ninja
from dojo import Dojo
app = Flask(__name__)
@app.route("/")
def index():
dojos= Dojo.get_all()
return render_template("ninjas.html", dojos=dojos)
@app.route('/create', methods=['POST'])
def create():
data = {
... | [
"susanag995@gmail.com"
] | susanag995@gmail.com |
7042119118b6a349f705cc5540e5f3d55888e2fd | 74eeeaeabf73f2909794eb767b5126460ce69d92 | /object_detection2/modeling/onestage_heads/centernet_outputs.py | 39e6afac159d44ec42cf2a8e27e537f1ab279705 | [
"MIT"
] | permissive | seantangtao/wml | 1bb9f699467e8c03143d8b92becb121db3717747 | 8fbf060088816cd1a366d7cbd5dfe1a0e00f8d79 | refs/heads/master | 2023-07-15T10:35:11.713990 | 2021-09-03T07:50:47 | 2021-09-03T07:50:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,294 | py | # coding=utf-8
import tensorflow as tf
import wml_tfutils as wmlt
import wnn
from basic_tftools import channel
import functools
import tfop
import object_detection2.bboxes as odbox
from object_detection2.standard_names import *
import wmodule
from .onestage_tools import *
from object_detection2.datadef import *
from ob... | [
"bluetornado@zju.edu.cn"
] | bluetornado@zju.edu.cn |
3612b5e072cd20efa4dddf1146c44558b40b97d6 | 0258e0c9595406ceb3de32067aff776bc2a58fa8 | /test1.py | 8d7172f2fc5867f453187b5d1e84acd26e2737c4 | [] | no_license | akromibn37/python_code | 72c016c361b3ba2e04c83e1d1a703171b0bd8819 | 41d1a09f8ec8696e37ad83c1a0cb6506c7f0f4f6 | refs/heads/master | 2020-03-21T22:57:25.111642 | 2018-06-29T14:14:33 | 2018-06-29T14:14:33 | 139,157,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | s = "PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP-PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP-PPPP"
c = s.rfind("-")
print(c) | [
"apple@Apples-MacBook-Pro.local"
] | apple@Apples-MacBook-Pro.local |
2cae2a5d7197ed5182a6d2cffdbfef61f3c7dfef | 6cc337c1d7c0c7379ecd3d919ed7d847846c204e | /python/collections/defaultdict_tutorial.py | 48294edc30f1c6fb74af3c788ea5b0d5b030057f | [] | no_license | YiFeiZhang2/HackerRank | c51766832bf00fbfcba2da2edb9c99f01646c9b4 | 52012cb855959660e59c2fa206b3fcc744495846 | refs/heads/master | 2021-01-21T15:04:38.917614 | 2017-08-01T23:04:06 | 2017-08-01T23:04:06 | 59,052,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | #!/usr/local/bin/python3
from collections import defaultdict
word_tracker = defaultdict(list)
n, m = map(int, input().strip().split(" "))
for i in range(n):
word_tracker[input()].append(i+1)
for i in range(m):
a = input()
if len(word_tracker[a]) > 0:
print(' '.join(map(str, word_tracker[a])... | [
"richardzhang97@gmail.com"
] | richardzhang97@gmail.com |
db90103be84bf22c955c484c6dca4719b5fe48ea | ba83e59e5ef968c14c3bafdd8fabdc2ae80427ce | /ISS_overhead/ISS_overhead.py | bfc607ba76eb8d4dfd5eb944f28e6f722cfd7624 | [] | no_license | aingram702/ISS-International-Space-Station-Locator | 567ac6b16e5fb18aed7b15dfb7d00d85be6366f8 | 5fc31a7b1aa29bb30efee2b9b13894cc3382d573 | refs/heads/master | 2020-06-03T22:25:17.367136 | 2019-06-13T12:11:48 | 2019-06-13T12:11:48 | 191,756,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | #!/bin/python3
import json
import time
import turtle
import urllib.request
url = 'http://api.open-notify.org/iss-now.json'
response = urllib.request.urlopen(url)
result = json.loads(response.read())
location = result['iss_position']
lat = location['latitude']
lon = location['longitude']
print('Latitude... | [
"noreply@github.com"
] | aingram702.noreply@github.com |
23c9da32b69869238960f66a017f70336fff4f0d | 41c7c5d62c09a393b88b232134bc948325931102 | /reading_pictures.py | c8f2bc381ff40ceb134f74e4957e70f8f557aded | [] | no_license | livingbody/paddlehubweixinbox | a56e556fedbca80114e5f9c6f76329256690f665 | cb881970ab309a1e084a7b1057e42352f3a083c0 | refs/heads/master | 2023-03-26T22:29:21.195092 | 2020-09-26T13:43:29 | 2020-09-26T13:43:29 | 298,594,780 | 14 | 1 | null | 2021-03-09T02:52:07 | 2020-09-25T14:23:14 | HTML | UTF-8 | Python | false | false | 3,251 | py | # coding:utf-8
# author: Livingbody
# date: 2020.05.06
from flask import Flask, render_template, request, jsonify, Response
from werkzeug.utils import secure_filename
import os
import requests
import paddlehub as hub
import cv2
import time
from flask import Blueprint, render_template
import requests
impor... | [
"155203340@qq.com"
] | 155203340@qq.com |
59b36e6f70e181077d5021b948a4ee6e25aa097e | 8872e82cd8654a01e3369f8fed44eba5603a0c47 | /jsilasant_project/manage.py | 51f20663eafe8ffb04301f3ff326cf6af21174d9 | [] | no_license | Jsilasant/django_blog | d563cdce9a3ba110e186dcded90d39d3ab81910b | 70d78e95d27a9404bcb8930f83622e5a6ebbe5b3 | refs/heads/master | 2022-12-22T00:12:17.966948 | 2020-09-18T09:07:24 | 2020-09-18T09:07:24 | 292,794,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'jsilasant_project.settings')
try:
from django.core.management import execute_from_command_line
e... | [
"36745524+Rekalous@users.noreply.github.com"
] | 36745524+Rekalous@users.noreply.github.com |
ee8bbcc70a5cc065517522e8d1de01ba406fb8cf | 828afc40037f3d8988ab61f3def393dd21d59498 | /koren_master/scheduler/api_test.py | ff4a910f33973fd9a73d177342cf1624fb91881f | [] | no_license | Ji-Ha/Network-Aware-Placement-System-for-URLLC-service-in-Edge-cloud-environment | c11ff5bbd7a2fa2a3add4bd972f09d87978ef9e3 | 08c91064e98a0da9e8ab0f805e46ed093be204dd | refs/heads/master | 2023-01-14T16:36:54.404920 | 2020-11-20T07:48:15 | 2020-11-20T07:48:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | import requests
import json
network_status = requests.get('http://10.20.12.83:4000/api/rtt/'+"10.20.12.83")
# logger.info(network_status.json())
# filtering by rtt
#print(network_status.json())
#print(type(network_status.json))
# json = json.loads(network_status.json())
rtt = dict()
bdw = dict()
for network in net... | [
"djatkdgus789@gmail.com"
] | djatkdgus789@gmail.com |
93b8f2a74c8eae204c3eff357a4132caa01d2157 | 9f103c2c952f21de1b42396eb1fb006aa09a4da2 | /leak_R.py | 756c1c7c485aae49c2b34eb51ed5b4a68e13c3f1 | [] | no_license | loesZe/Side-Channel | 11c52a135cbae03670938e44c6c4edc1c4bb74fb | f8d6f442798330015c1022955c777585174b6d89 | refs/heads/master | 2020-03-10T23:45:07.069360 | 2018-05-29T21:54:46 | 2018-05-29T21:54:46 | 129,647,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,068 | py | #!/usr/bin/python
####################
# This script calculate the hypothetical leakage of the DES encryption of different inputs.
# The leakage depends on the input but also on the round key.
# For each input (m1, m2, .., m.) every sixet is considered one after the other.
# 64 different values (k0 k1 k2 .. k65) are c... | [
"loise.zussa@gmail.com"
] | loise.zussa@gmail.com |
7391f96cccf5955c47fc65310e753bd626d74a11 | 4ecce9af282ddf98bf88dedfd97b6b5b4ae09dcc | /sistema/rfid/core/admin.py | 8fc715ff7b61d9ddcaee5411ac7e8ef0cd22920e | [] | no_license | silviolleite/rfid | f32b3ef61624d955841a6e5f99b701e412dffa04 | 4925ce868d5b1e1a549da332f4391ef5d84eecef | refs/heads/master | 2020-04-03T04:36:18.801714 | 2018-11-15T18:08:27 | 2018-11-15T18:08:27 | 155,018,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | from django.contrib import admin
from rfid.core.models import Tag, Access_log, User, Place
admin.site.site_header = 'Sistema de Controle RFID'
admin.site.site_title = "Painel Administrativo"
admin.site.index_title = "Bem vindo ao sistema de controle RFID"
class UserAdmin(admin.ModelAdmin):
list_display = ('name... | [
"silviolleite@gmail.com"
] | silviolleite@gmail.com |
cd611676720cb7809ae22a6dc6dfa15292483a52 | 84fb91b3574a9f9e712a66455836652fe255314f | /Code/04b_merge_sort.py | 202716faccd8f019a4847f85ef9ffac7a30d4dea | [] | no_license | matiasvinicius/Algoritmos | c85220c4d81fa707b8b5027fbf0315921fc7f182 | ab27d74bacf9ffc1e5a21489c8df643814bf405f | refs/heads/main | 2023-06-19T21:42:15.674789 | 2021-07-16T03:43:27 | 2021-07-16T03:43:27 | 362,269,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | def merge(esq, dir):
i, j = 0, 0
ordenados = list()
while i < len(esq) and j < len(dir):
if esq[i] <= dir[j]:
ordenados.append(esq[i])
i += 1
else:
ordenados.append(dir[j])
j += 1
if i < len(esq):
ordenados += esq[i:]
... | [
"45612047+matiasvinicius@users.noreply.github.com"
] | 45612047+matiasvinicius@users.noreply.github.com |
bbd2ec9b046fce3a4eb1ef8ac8aa2fcd6687d9d1 | 9aaf10e9a1254c297f01f12ec3ef648c51ff3a11 | /Iniciantes/1178.py | cee4f466a75f3f401b5212ec31e8daece9b6e490 | [] | no_license | FelipeGabrielAmado/Uri-Problems | 4f790852110ad1a65169ab40de54879024528ffa | 53f8ae6e2ef94f8b101f2ebadce99e71fb0bed28 | refs/heads/master | 2022-02-21T05:39:48.057510 | 2019-09-28T11:36:36 | 2019-09-28T11:36:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | A = float(input())
V = []
for x in range(0,100):
V.append(A)
print('N[{}] = {:0.4f}'.format(x, A))
A -= A/2 | [
"felipegabrielamado@gmail.com"
] | felipegabrielamado@gmail.com |
5a990b82199ff52453e747acb3f7e6779b67e11c | bbab2f2e6cb9fd33bf633528e176639d7a5994c7 | /tests/test_skeleton.py | a81cc2b1c5bb79bad3505d1b5549f6f315f2eeec | [
"MIT"
] | permissive | a8/discovergy | a96a6fbf36a8f3499c188a5165db9a09c15143c5 | 7766a6eb74e8c3cf9b09dfdac21d79b31f5922e5 | refs/heads/master | 2022-04-16T03:27:01.959196 | 2020-02-24T22:00:50 | 2020-02-24T22:00:50 | 234,806,177 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | # -*- coding: utf-8 -*-
import pytest
import discovergy
__author__ = "Frank Becker <fb@alien8.de>"
__copyright__ = "Frank Becker"
__license__ = "mit"
def test_nop():
assert True == True
| [
"fb@alien8.de"
] | fb@alien8.de |
312b1e2bce53e43eed3cdd5faca54bc8a98d4c90 | ce9d90ac5dfd61cc1d3ec57378186a4895323abb | /tests/filters/helpers.py | 0bd99d08eb31da8ac72380689341d36b801acad4 | [
"Apache-2.0"
] | permissive | min-a-youn/plaso | 61ee7f280c471a2e9fcc3407445ddd4f3c5eb125 | 082ff564872f7dd1d0d5d68cca23b3f7b8cdedcb | refs/heads/master | 2020-09-20T22:07:34.631095 | 2019-08-28T06:06:48 | 2019-08-28T06:06:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,455 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Tests for the event filter helper functions and classes."""
from __future__ import unicode_literals
import unittest
from plaso.filters import helpers
from tests import test_lib as shared_test_lib
class CopyValueToDateTimeTest(shared_test_lib.BaseTestCase):
"""Te... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
612f28675276f7d89b2ecc3786da5525494c3549 | 3dfc1b17cc79187a2a3c5c24664d7ecbaf088596 | /ccmProject/myapp/migrations/0004_delete_employee.py | 289550b388160c1d526049c997b39453b5f9ac36 | [] | no_license | haha547/ccmproject | 12e54dd5856e9f24162ad5e7d38d191d037d4612 | f14dded3a20a48a99f77504347dec778ff1b63e7 | refs/heads/master | 2022-10-08T14:26:29.738704 | 2018-05-22T08:23:14 | 2018-05-22T08:23:14 | 134,064,351 | 0 | 1 | null | 2022-10-05T06:35:51 | 2018-05-19T13:27:50 | Python | UTF-8 | Python | false | false | 295 | py | # Generated by Django 2.0.5 on 2018-05-21 12:11
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('myapp', '0003_auto_20180519_2216'),
]
operations = [
migrations.DeleteModel(
name='Employee',
),
]
| [
"howard19970613@gmail.com"
] | howard19970613@gmail.com |
585427d77563d77c16d827d2729df517d3925f1d | ea710bd809078e079a8cfd66b2b1390fb608f54d | /test1.py | db1a8533c39ee5d33d03dfaff438973074b57c73 | [] | no_license | zq0324/zq | 7a460ae13b9d035409ab6edf8588e1ca4c92f32d | 62a159308076caf5ea97ffdf4b3260f4b82435c4 | refs/heads/master | 2020-06-24T12:25:05.611954 | 2020-04-29T06:07:32 | 2020-04-29T06:07:32 | 198,962,059 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267,582 | py | # coding=utf-8
# @FileName: test1.py
# @Author: ZhengQiang
# Date: 2020/3/17 10:01 上午
import re
b = b'POST /service/upload_pic.php?puid=139615558&chan=01&time=2020-03-17%2009:56:15&sequence=01 HTTP/1.1\r\nAccept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r\nReferer: http://192.168.1.149/testpic.php\r\nAc... | [
"p9p88ZLZkbHq5YB"
] | p9p88ZLZkbHq5YB |
cea632a0a8b982b9d16a62113fef8b1004a002d0 | a99440e707629c9dcab96e55cd9e14b57dde64aa | /hw0/run.py | c6aca958c87c800b5ca62aa0e06c068f06462559 | [] | no_license | b01901143/MLDS2017 | 03dc9816c795a983029a39ccd75905524e410c40 | 52575229bbcc48cf1c196e797e7beec613369309 | refs/heads/master | 2021-09-25T17:02:57.759109 | 2017-09-04T14:43:14 | 2017-09-04T14:43:14 | 154,452,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,651 | py | import os
import csv
import struct
import numpy as np
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
#download data and unzip them
mnist = input_data.read_data_sets("./data/", one_hot=True)
#==========mnist info==========
#mnist.train.images/labels, mnist.test.images/labels are arra... | [
"r05943135@ntu.edu.tw"
] | r05943135@ntu.edu.tw |
d15fd0a6853b2f38a462ef37d462539753a53184 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_089/ch12_2020_03_09_12_58_17_378201.py | a48a67c58fe14187f66e923fd33e0299ab4d37f9 | [] | 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 | 74 | py | def resolve_equacao_1o_grau(x):
f= a*x+b
a*x+b=0
return f
| [
"you@example.com"
] | you@example.com |
cf74d4ec90b798fcd24c62ce780f63475b1edb49 | 5c66d5d3856d9da448464e19d19be28dae7033cd | /test.py | fce3aec46cf4e7143009ce4ac503e8a120b55d4b | [] | no_license | S0Easy/script | 079892f8a2e0efb803f80e94e5d4dbaeaa3f57e9 | c3e57cfb5ec96e1bff5f1fa3c853587b4bdaaafa | refs/heads/main | 2023-07-19T04:02:22.198867 | 2021-09-03T12:01:08 | 2021-09-03T12:01:08 | 402,626,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | import gitlab
import datetime
print(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
gitlab_url = "http://10.10.10.22/"
token = "-xxVsB6xy4ayF-YmsYh4"
gitlab.Gitlab(gitlab_url, token).projects.get("2")
| [
"java01@qq.com"
] | java01@qq.com |
9a9aa7031ea30e35aab2b33f2280e8bd760eb381 | f09ef8957e068d178408898bfb10720d557acf06 | /sentiment.py | a7e28a98083430d56af013bd2b87ff205365bd91 | [] | no_license | siddoshi93/Sentiment-Analysis-of-IMDB-movie-reviews | a0269b6bb10debaaaad2a3808e4de92be02146c0 | ee52d601693e52f66d4d950ecdce190d2688e552 | refs/heads/master | 2020-04-19T13:05:25.057672 | 2016-08-27T21:19:07 | 2016-08-27T21:19:07 | 66,521,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,269 | py |
import sys
import collections
import sklearn.naive_bayes
import sklearn.linear_model
import nltk
import random
random.seed(0)
from gensim.models.doc2vec import LabeledSentence, Doc2Vec
#nltk.download("stopwords") # Download the stop words from nltk
import warnings
warnings.filterwarnings("ignore")
# User in... | [
"siddhant@Siddhants-MacBook-Pro.local"
] | siddhant@Siddhants-MacBook-Pro.local |
ebd1560c2026911a93809b748f87f9787212baa1 | 0417659607e56b674feaa201e5d0be2b666e3c4c | /blog/views.py | f49fb1f368e81c4df61e25a134cffcd2acec229b | [] | no_license | verastarlife/blog-django | 9b4ff0001b78e527880d872cb628b3cfbfe49b4b | 81b8b1cbfe49105ca9f528544849df34eadc5623 | refs/heads/main | 2023-01-21T13:06:56.191074 | 2020-11-29T22:04:16 | 2020-11-29T22:04:16 | 317,036,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | from django.shortcuts import render, get_object_or_404
from .models import Blog
def allblogs(request):
blogs = Blog.objects
return render(request, 'blog/allblogs.html', {'blogs':blogs})
def detail(request, blog_id):
detailblog = get_object_or_404(Blog, pk=blog_id)
return render(request, 'blog/detail.h... | [
"verastarlife@gmail.com"
] | verastarlife@gmail.com |
cb6b4e0e6d23842ffd173deb85ba367bdbd28c6f | e3926c54985f042c193905e06f32148037f094d6 | /simulator/scripts/tier2s.py | ffa35918268688955c4b5c2a435c14a58c9dd03b | [] | no_license | RS1999ent/protocol-evolvability | 8c398ee88c7ddc13f082bb20134fe804c4b0c24b | f406acbbabc7a34a3f8c0e4769f62f4e1e4c4f7b | refs/heads/master | 2021-01-17T09:34:49.251338 | 2015-09-04T13:39:25 | 2015-09-04T13:39:25 | 35,635,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,505 | py | from sets import Set
import sys
f = open(sys.argv[1], 'r')
nodes = Set()
providers = {}
customers = {}
peers = {}
numProviders = {}
numCustomers = {}
numPeers = {}
def addNode(n):
nodes.add(n)
if n not in providers:
providers[n] = []
if n not in customers:
customers[n] = []
if n not i... | [
"tranlam@wisc.edu"
] | tranlam@wisc.edu |
711375a12f3cbbac96635936842be4bdd32bb861 | 6af2ec50d3afcf9b638096badaa19d7be80f7cb8 | /captcha/tujian.py | a60fe278f1faeaa070e6779f457a36f627dd7e48 | [
"MIT"
] | permissive | WYEEE/JDMemberCloseAccount | acc73ace420b948699c948e27629f33743c04a51 | 1471cbcc330725d9af713ddac2c18f543dc08591 | refs/heads/main | 2023-05-28T12:01:29.155311 | 2021-06-11T10:14:57 | 2021-06-11T10:14:57 | 368,819,680 | 0 | 0 | MIT | 2021-06-11T10:45:49 | 2021-05-19T09:48:43 | Python | UTF-8 | Python | false | false | 1,318 | py | import os
import sys
import base64
import json
import requests
sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
class TuJian(object):
"""
图鉴验证类
图鉴打码地址:https://www.ttshitu.com
"""
def __init__(self, username, password):
from utils.logger import Log
self... | [
"yqchilde@gmail.com"
] | yqchilde@gmail.com |
7bb4179aa4bbbb1f06631d13ab17c3564a767a29 | 3e7b2ebb64e9e324ce47d19def21ae62cc1e56a6 | /My Thought/reverse a string.py | 296417613cb9272f294f6413f7eee55df1ccb0ce | [] | no_license | shuvo14051/python-data-algo | 9b6622d9260e95ca9ffabd39b02996f13bdf20d1 | 8f66ff6f2bd88a0ae48dac72e4ea6c5382a836ec | refs/heads/master | 2023-02-03T03:04:01.183093 | 2020-12-13T10:13:15 | 2020-12-13T10:13:15 | 274,106,480 | 0 | 0 | null | 2020-07-05T06:33:28 | 2020-06-22T10:24:05 | Python | UTF-8 | Python | false | false | 188 | py | # this is a complete pythonnic way
# print(a[::-1])
a = "Shuvo"
li = []
for i in a:
li.append(i)
reverse = ''
for i in range(len(li)-1,-1,-1):
reverse += li[i]
print(reverse)
| [
"shuvo1137017@gmail.com"
] | shuvo1137017@gmail.com |
372e5d2a06935c31531ffc115e0579a28d541b6a | db61a87fd7952b04b59d8daac282c776423d7114 | /app/models.py | 2636d94536304cf8cbc4129fbd9c29a5e008a9c5 | [] | no_license | Marshall-Diffey/Order_Up_SQLAlchemy | 7df59ea6f9f51be920e49a12e168672b6ad8600e | e65588a042b43b7c2645f1843e374adbaca6541d | refs/heads/main | 2023-04-12T09:39:25.040631 | 2021-05-12T23:34:27 | 2021-05-12T23:34:27 | 366,809,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,623 | py | from flask_sqlalchemy import SQLAlchemy
from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
db = SQLAlchemy()
class Employee(db.Model, UserMixin):
__tablename__ = 'employees'
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(10... | [
"marshalldiffey@yahoo.com"
] | marshalldiffey@yahoo.com |
4097dc4928226ce67c6d923fff671e5ca2b9b7d3 | e20ed90b9be7a0bcdc1603929d65b2375a224bf6 | /generated-libraries/python/netapp/job/job_private_delete_iter_key_td.py | 7dde8422f159e87e74cc57255dc0b70f0ea0cce6 | [
"MIT"
] | permissive | radekg/netapp-ontap-lib-gen | 530ec3248cff5ead37dc2aa47ced300b7585361b | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | refs/heads/master | 2016-09-06T17:41:23.263133 | 2015-01-14T17:40:46 | 2015-01-14T17:40:46 | 29,256,898 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,520 | py | from netapp.netapp_object import NetAppObject
class JobPrivateDeleteIterKeyTd(NetAppObject):
"""
Key typedef for table jm_local_jobs_table_remove
"""
_key_2 = None
@property
def key_2(self):
"""
Field vserver
"""
return self._key_2
@key_2.setter
def ... | [
"radek@gruchalski.com"
] | radek@gruchalski.com |
c1a9c9d7328644c97214524d3fff4f34452756db | 1981662a960415ae0ed269224abd47678a8d2ebc | /backend/app/__init__.py | 925157f8900ea6ddffba6cf5a2182f1dd4cdc793 | [] | no_license | haydenhw/team-calendar | 6bb52c65eeb7dc0cb387868b369a3a95fd057ef4 | 79d9e10213892995e877abb85f49e0af99d27540 | refs/heads/master | 2020-05-24T14:37:44.295882 | 2019-05-19T00:54:09 | 2019-05-19T00:54:09 | 187,312,856 | 0 | 1 | null | 2019-05-18T22:22:58 | 2019-05-18T04:12:11 | JavaScript | UTF-8 | Python | false | false | 302 | py | from flask import Flask
from flask_cors import CORS
from flask_sqlalchemy import SQLAlchemy
from config import Config
app = Flask(__name__)
app.config.from_object(Config)
CORS(app, resources={r"/rest/*": {"origins": "*"}})
db = SQLAlchemy(app)
db.app = app
db.init_app(app)
from app import routes
| [
"akshaydon93@gmail.com"
] | akshaydon93@gmail.com |
ea7f3396c57626afd2225e916f31262d410b5840 | 6cfdab6c944528c02a7cc77228a3c336105d63c3 | /benchmarks/ODT/scaling_magni.informatik.tu-cottbus.de_20-03-06_00:43/plot.py | 37233d7d7a773c1a81486371daba8e775d2a3ace | [] | no_license | ManyThreads/mythos-applications | a07a4a992ee7a30f294238741f2612eb9304f071 | 79a47229146f665ddc2aa171770260267a3a5b32 | refs/heads/master | 2021-07-09T01:12:29.119193 | 2020-12-17T10:37:22 | 2020-12-17T10:37:22 | 216,578,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,716 | py | import numpy as np
import matplotlib.pyplot as plt
import sys as sys
#function for reading the run times from ODTLES out files
def read_data( file_name ):
data = []
with open(file_name) as fp:
line = fp.readline()
while line:
words = line.split()
if(len(words)>1):
... | [
"gypsephi@b-tu.de"
] | gypsephi@b-tu.de |
7f893bc5ede151e3ba8385f0ff5bff7a0cfe4beb | 497ead1ee1e09a2530aa771ae059989e341684d7 | /python/cuml/dask/preprocessing/LabelEncoder.py | 4c731de842b1d1109949e96d1b4ad9f7128da6cf | [
"Apache-2.0"
] | permissive | xieliaing/cuml | 193f5753696bbfd4de8e3eaef919c18da2fd1d1a | 78092ddde28d5a810e45d6186f049c1309121408 | refs/heads/master | 2022-11-10T16:45:38.818055 | 2022-11-03T23:12:07 | 2022-11-03T23:12:07 | 159,592,316 | 0 | 0 | Apache-2.0 | 2018-11-29T01:59:07 | 2018-11-29T01:59:07 | null | UTF-8 | Python | false | false | 7,769 | py | # Copyright (c) 2021-2022, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | [
"noreply@github.com"
] | xieliaing.noreply@github.com |
3cd88a93ec624282caf04872b0d591e54a297d80 | bd12b2b84643023ff65734bc187d0c05cc540c4c | /scripts/compare_comparators.py | fe07f218b50049761eee72939c20fa091c4412af | [
"Apache-2.0"
] | permissive | alexander-bzikadze/graph_diff | 27bdc3c25c4b3a567bda8c2c967a74ccb8f412f9 | c7d5510590d8f6999697a3e197d4e806c320e968 | refs/heads/master | 2021-05-16T13:03:25.026373 | 2018-05-01T18:16:35 | 2018-05-01T18:16:35 | 105,353,922 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,676 | py | import logging
from graph_diff.graph import rnr_graph
from graph_diff.graph.graph_generator import GraphGenerator
from graph_diff.graph_comparison import generate_n_comparator_tests
from graph_diff.graph_diff_algorithm import GraphMapComparatorByNodeNum, GraphMapComparatorByEdgeNum
from graph_diff.graph_diff_algorithm... | [
"alexander.bzikadze@gmail.com"
] | alexander.bzikadze@gmail.com |
b374191a7cf732d53d219ab1e5838ac5a74b3ab2 | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/cherrypy/test/test_virtualhost.py | e9b88bd297cb6047933124c32d619fd6c0d22cc0 | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 3,718 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\carbon\common\lib\cherrypy\test\test_virtualhost.py
import os
curdir = os.path.join(os.getcwd(), os.path.dirname(__file__))
import cherrypy
from cherrypy.test import helper
class VirtualHostTest(helper.CPWebCase):
def setu... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
152c01b7254082a6295aa8c64ce3f0600ca33d97 | be134c181703b95aca1e48b6a31bcfdb7bcfcc76 | /site/mezzanine_old/galleries/migrations/0001_initial.py | 11f1937e16fbf9cff1135c9e2c992c658bbfd803 | [] | permissive | aldenjenkins/ThiccGaming | 0245955a797394bcfeedb2cfb385f633653ba55d | 4790d2568b019438d1569d0fe4e9f9aba008b737 | refs/heads/master | 2022-12-16T02:43:36.532981 | 2021-11-17T04:15:21 | 2021-11-17T04:15:21 | 154,858,818 | 0 | 0 | BSD-3-Clause | 2022-12-08T02:58:44 | 2018-10-26T15:52:39 | Python | UTF-8 | Python | false | false | 1,837 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import mezzanine.core.fields
class Migration(migrations.Migration):
dependencies = [
('pages', '__first__'),
]
operations = [
migrations.CreateModel(
name='Gallery',
... | [
"alden@aldenjenkins.com"
] | alden@aldenjenkins.com |
e548da9b76ae377c55faac5fcbf80779b1b12dcd | 82326639459108ec750c724ec3118b0f210389ef | /configs/swa/swa_cascade_s50_rfp_normal.py | 829753ee10abc4ae10851eee9c6f86b151cd8eba | [
"Apache-2.0"
] | permissive | hlcedu/TileDetection | e9fdf27e11455b04d30ddbcb82f9fb6004c4da91 | 77b5ef4bb4db29f5ffe6a6fa9f87b4bfe8516e4c | refs/heads/main | 2023-03-25T07:25:34.862983 | 2021-03-23T12:52:56 | 2021-03-23T12:52:56 | 353,211,852 | 1 | 0 | Apache-2.0 | 2021-03-31T03:21:43 | 2021-03-31T03:21:43 | null | UTF-8 | Python | false | false | 798 | py | _base_ = ['../tile_round2/cascade_s50_rfp_mstrain_with_normal.py', '../_base_/swa.py']
only_swa_training = True
# whether to perform swa training
swa_training = True
# load the best pre_trained model as the starting model for swa training
swa_load_from = 'work_dirs/round2/cascade_s50_rfp_mstrain_aug_with_normal/latest... | [
"huangyifei@fabu.ai"
] | huangyifei@fabu.ai |
0621b89dd6b05e512d441b4979260367e3f6e5c3 | d4f7d1b2eea81e42db32638d0fdaf35908786a95 | /mshow/updateList.py | 36ebd3a5e544f3ce88a75b99feda9783577f88ae | [] | no_license | gyuha/mshow_downloader | e47e1d1a26203b5dbba4b36e0ad2f01d87368235 | f44f6f706bdc3742bb892f9c96557a327fe040c3 | refs/heads/master | 2022-08-24T03:53:51.697041 | 2022-08-13T15:30:28 | 2022-08-13T15:30:28 | 161,354,810 | 7 | 0 | null | 2022-08-13T15:30:10 | 2018-12-11T15:31:19 | Python | UTF-8 | Python | false | false | 3,446 | py | from bs4 import BeautifulSoup
from collections import OrderedDict
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from mshow.config import Config
from mshow.dataSave import loadJsonFile
from mshow.driver... | [
"nicegyuha@gmail.com"
] | nicegyuha@gmail.com |
fc94bfc8c1c5fa1df951fab64844fca2a07b5310 | 8cf593d60d02be4692bce873656c85466fc1d8e1 | /cw7/Zad1.py | 44641eb1ec798de123460d5e7fff7ebaa097f101 | [] | no_license | michals-lab/Python | 502ad5202c962808d499e16545aea5ca73c3fe21 | 09e2c76368215e3345ee5130bf56ca626ffbbe38 | refs/heads/master | 2021-01-25T23:55:35.358748 | 2020-05-20T07:26:42 | 2020-05-20T07:26:42 | 243,231,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | import numpy as nu
x = nu.arange(3).reshape(1,3)
y = nu.arange(6,9).reshape(1,3)
print(x*y) | [
"59738119+michals-lab@users.noreply.github.com"
] | 59738119+michals-lab@users.noreply.github.com |
6e260c0f266108fca49853195f3c3f8c7721266f | 5f2b7f5eef576dfa575bac913c39c30607f946a1 | /Assignment1.py | ed4eb2bcf302203f7f796407791ca5a42df62013 | [] | no_license | Kolokodess/switch_python_Ada | f9c3a6728b25ca3d1cb30ea20ffb77de6bd73cd8 | 42a42751cac75fab4fb01505294be6a3ef25268e | refs/heads/master | 2021-06-18T11:07:38.416980 | 2017-04-04T08:41:46 | 2017-04-04T08:41:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | balance = float(raw_input ("Enter Balance:"))
Annual_interest = float(raw_input("Enter Annual Interest rate:"))
min_payment_rate = float(raw_input("Enter Minimum payment rate:"))
total_payment = 0
months = 1
while months <= 12:
#m_m_p = minimum monthly payment
m_m_p = min_payment_rate * balance
monthly_interest =... | [
"ada.oyom@gmail.com"
] | ada.oyom@gmail.com |
1b70bccd5370036cb4520982e27696d6b98d1e47 | 10729b1d8e2761e49c56a6a308ee6b2f486d4076 | /PropertyScraper/__main__.py | f60db63a37a55ba97aa880ef3f66de8d9c0edd6f | [] | no_license | thebend/real | 9042e4cd261bee306e3ffb81b26e55416851eb71 | db2a32ac356fdd7d342aed138cac744e31e329a0 | refs/heads/master | 2021-06-11T00:10:48.589182 | 2021-03-04T07:08:34 | 2021-03-04T07:08:34 | 82,351,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | #pylint: disable=C0103
''' Execute scraper with default settings '''
import logging
from datetime import datetime
from PropertyScraper import Scraper
log_filename = '{:%Y-%m-%d}.log'.format(datetime.now())
db_filename = '{:%Y-%m-%d}.db'.format(datetime.now())
logger = logging.getLogger('PropertyScraper')
file_handl... | [
"Benjamin Davidson"
] | Benjamin Davidson |
d7bbfd2760b81ed149e6934e5af021b63f9918e5 | c609ee5dd092f571e120181408f6fc40b00ec9b1 | /Judgement.py | 7e6e105b673c4af28f52d78294eab231156fe8d6 | [] | no_license | s1280068/DiceGame | 9a138fee21ab9fb1e7151e1712906b773248fa22 | 8fde44cad5e821e454905e0d03c5b89d8df0e6d0 | refs/heads/master | 2023-06-11T06:33:04.085154 | 2021-07-02T03:25:50 | 2021-07-02T03:25:50 | 382,206,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | import random
print('Rolling the dice...')
Dice = []
Dice.append(random.randint(1,6))
Dice.append(random.randint(1,6))
print(f'Die 1: {Dice[0]}')
print(f'Die 1: {Dice[1]}')
print(f'Total value: {sum(Dice)}')
if sum(Dice) > 7:
print(f'You won!')
else:
print(f'You lost!')
| [
"s1280068@u-aizu.ac.jp"
] | s1280068@u-aizu.ac.jp |
ca94fb0f772c696f598a29b72de22c76e653eb65 | 67a60399e79144054a5cca8436218c1005423978 | /frux_app_server/__init__.py | 1bb9603cde757fa3455ec4109debe17e1626ebae | [
"Apache-2.0",
"MIT"
] | permissive | camidvorkin/frux-app-server | e84616009b11bc354c46e4fa54f64d3d3aa6384b | 21098234a7867908250022e3e1c0580417d1ca35 | refs/heads/main | 2023-06-28T00:50:27.991923 | 2021-07-30T19:43:51 | 2021-07-30T19:43:51 | 360,342,828 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | try:
import importlib.metadata as importlib_metadata
except ModuleNotFoundError:
import importlib_metadata # type: ignore
__version__ = importlib_metadata.version(__name__) # type: ignore
| [
"cdvorkin@medallia.com"
] | cdvorkin@medallia.com |
ecf24d7d6ee11295a51d53aedecf26dcf7c0a36a | f57a425d2bfe242f59bfccefb844c06f6a924bb9 | /LinearRegression.py | d8742adbfb5eb3ca9eda275cfd5df8ec9b9b7d75 | [] | no_license | MostafaZegoo/NLP_Project | a48208d4626e1b2254f96757714db77f14ae2880 | 363942bea9d297c9af47e28a5fd35fcf8860dda2 | refs/heads/master | 2020-03-12T23:19:17.713877 | 2018-08-21T08:29:59 | 2018-08-21T08:29:59 | 130,863,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,706 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.preprocessing import LabelEncoder
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score,confusion_matrix,classification_report
... | [
"noreply@github.com"
] | MostafaZegoo.noreply@github.com |
b08be16b6f55bbb29dd93651676a710322f99cdd | 2fcb5da42f0aff62c88189bd36fc5f61a40eb604 | /vardautomation/timeconv.py | 3b84b24deda8187b48a85d3ae7948559d45a7404 | [
"MIT"
] | permissive | tomato39/vardautomation | d45ec446a1cd06c2e7b7ec5378772953fa7b4caa | efa24d9420d6a6f732e8b0a846874a289a7cb095 | refs/heads/master | 2023-08-23T01:44:00.014196 | 2021-10-21T23:05:52 | 2021-10-21T23:09:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,647 | py | """Conversion time module"""
from fractions import Fraction
from .status import Status
class Convert:
"""Collection of methods to perform time conversion"""
@classmethod
def ts2f(cls, ts: str, fps: Fraction, /) -> int:
"""
Convert a timestamp hh:mm:ss.xxxx in number of frames
:... | [
"ichunjo.le.terrible@gmail.com"
] | ichunjo.le.terrible@gmail.com |
0c33b6b087134d2d154945f70cb86c1e18641dbc | f78bf2e853fd07aba9fb64617e7a3f6d169a5854 | /MANUFACTURER.py | a8e8270ea55eb738a2c8c8d40e3236483b84a9e1 | [] | no_license | daemonluo/ua-parser-python | b321e4581300bd6d59912a9e5e620d7d6637722a | a92fc61e44a11f24c834c754812425be2df44c40 | refs/heads/master | 2021-06-11T22:51:12.775335 | 2016-09-01T14:04:56 | 2016-09-01T14:04:56 | 67,136,467 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115,269 | py | #coding=utf8
import re
STRINGS_SAMSUNG = 'Samsung',
STRINGS_SHARP = 'Sharp',
STRINGS_SONY_ERICSSON = 'Sony Ericsson',
STRINGS_MOTOROLA = 'Motorola',
STRINGS_LG = 'LG',
STRINGS_HUAWEI = 'Huawei',
STRINGS_HTC = 'HTC',
STRINGS_COOLPAD = 'Coolpad',
STRINGS_ASUS = 'Asus',
STRINGS_ACER = 'Acer';
STRINGS_BASED = ' based devi... | [
"woshiluolaifeng@hotmail.com"
] | woshiluolaifeng@hotmail.com |
b01d1738f1683a3b3cff5b6198a8926953464429 | 084916df5eff5e2a3f19ac5d86c401b467cb3969 | /assignment1/bfs-wikipedia.py | 484c57e34cfa312faa7ec9728cc7539fd575ab0e | [] | no_license | cvalenzuela/NOC_Intelligence-Learning | 2850b87c2ead8be97be193375129eee2ea16c0e8 | 9074fae4f1e20d7f93ef6e1ef9f75b92374d2f51 | refs/heads/master | 2021-01-23T04:20:26.702674 | 2017-04-30T03:50:19 | 2017-04-30T03:50:19 | 86,189,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,938 | py |
# coding: utf-8
# An implementation of bfs based on Grokking Algorithms chapter 6 and NOC-S17-2-Intelligence-Learning bfs examples.
# Using a Breadth-First Algorithm (BFS), this script will search for the shortest way to get from one article in Wikipedia to a specific word or term used in another article.
# Cristóbal... | [
"cvalenzuela@nyu.edu"
] | cvalenzuela@nyu.edu |
bb86890b77d314e21ced1d0d6e8ca9908fe3952a | baccbb4478c01c4c102cc1cfae56103f179a50d8 | /scripts/handle_mysql.py | 83cd4c7631baa42559ce110f8b02604fc0a58aa8 | [] | no_license | cheer1106/test_cheer | a09b5f11e85f06e0aa1c0fef69b6b30e069a38b1 | 6e29266daabdcf45a7a76da2a5653d6ef6b1c108 | refs/heads/master | 2020-09-29T08:27:03.935876 | 2019-12-10T10:44:30 | 2019-12-10T10:44:30 | 226,999,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,061 | py | """
============================
Author:cheer
# @time:2019-11-19 10:01
# @FileName: handle_mysql.py
# @Software: PyCharm
# @Cnblogs :https://www.cnblogs.com/*****
============================
"""
import pymysql
import random
from scripts.handle_yaml import do_yaml
'''
类封装的原则:不同功能写不同的方法
'''
class HandleMysql(object):
... | [
"1498053436@qq.com"
] | 1498053436@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.