blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0ed82aba8af8eeb63fcb0b05507f0253e61ae4b3 | a016ccc9a49e11e7dcb78b040c31fe20922bdf02 | /TOM_air/ray_traj_3D_batch_stretched2.py | ef45a730ff112e14b807fc32bcb7a149992eadb1 | [] | no_license | hgoumner/Python | 568f11fadec73c690b297824503d58cdb750be1e | d210fb3f881ce9b9d997d77b6bdcdd402ab27cdf | refs/heads/master | 2021-06-03T23:55:46.135583 | 2021-05-24T19:40:00 | 2021-05-24T19:40:00 | 107,972,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,752 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Dec 8 08:35:08 2017
@author: goumnero
"""
#%% Import modules
import numpy as np
import pandas as pd
import scipy.interpolate as si
import numdifftools as nd
from scipy.integrate import odeint
#%% Input
# Load file
direc = '1 K/KFH/T15_5055'
data = pd.rea... | [
"noreply@github.com"
] | noreply@github.com |
ab1b6495c6b5e7313cea6a884eb8ff95bfdbac39 | 1ebd29d8b8ae0f6b209a5c00dcda2cbaa1212245 | /wxnotify/common/database.py | 369fa2d1d5ec3110bc0a1daca7cc95d13274c996 | [] | no_license | mxgnene01/wxnotify | 92ea0ccf67b8a8fe563bcfd8a464a1b7edf21352 | 26bd8b2bda9ff64b236cf55c5c140c1ad25aed9c | refs/heads/master | 2021-06-24T17:19:39.640141 | 2017-08-14T10:08:33 | 2017-08-14T10:08:33 | 98,369,502 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Meng xiangguo <mxgnene01@gmail.com>
#
# _____ ______
# ____==== ]OO|_n_n__][. | |]
# [________]_|__|________)< |MENG|
# oo oo 'oo OOOO-| oo\_ ~o~~~o~'
# +--+--+--+--+--+--+--+--+--+--+--+--+--+
# ... | [
"mengxiangguo@daling.com"
] | mengxiangguo@daling.com |
4707dc437370ad22fffa4b3c6ee6be7a01756a24 | d3c3b59c9a9a31b8bebe9994573a8d51638f58fb | /ch02/odbchelper.py | 76031eb18fe332d1e0a0f050ac9ff78a8b394d64 | [] | no_license | agzon/py-dive | 4f5e1a129fb06b07eb5c04f500a8ae3fc8b428c6 | e3f2bbdf7b06dd1919b7ff34ac36434043e41162 | refs/heads/master | 2021-01-10T14:58:58.795980 | 2017-02-06T21:35:52 | 2017-02-06T21:35:52 | 52,632,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | """odbchelper.py sample script
This program is part of "Dive Into Python", a free Python book for
experienced programmers. Visit http://diveintopython.org/ for the
latest version.
All this stuff at the top of the script is just optional metadata;
the real code starts on the "def buildConnectionString" line
"""
__au... | [
"argu01@gmail.com"
] | argu01@gmail.com |
71c286a51bd25e93264d4d7a44f0b59c77bdbea6 | 8fb9b99e5f05ffdc1e690bcc3bdcb6bcad4ec077 | /src/comparators/compare_functions/cca.py | a172e7c72bcfebb844d00ebaa53dabbae133b2f6 | [
"Apache-2.0"
] | permissive | asd249180/similarity_and_matching | 6cc716d08c863aaae7596017d79800f4c6992fd5 | 225cbc4850a790a37ea18d4c519a4306e9db3590 | refs/heads/main | 2023-05-28T21:20:40.989333 | 2021-06-04T19:22:34 | 2021-06-04T19:22:34 | 373,938,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | import numpy as np
def rearrange_activations(activations):
batch_size = activations.shape[0]
flat_activations = activations.reshape(batch_size, -1)
return flat_activations
def cca(x1, x2):
x1_flat, x2_flat = rearrange_activations(x1), rearrange_activations(x2)
q1, r1 = np.linalg.qr(x1_flat)
... | [
"anonymus@anonymus.com"
] | anonymus@anonymus.com |
4a998100d229be9b4cc057ea25709326a34e031b | 1d2c2b487599d09214f8c4f4f1d5056126811f51 | /curriculum/tests/test_admin.py | 15998439cd053535e0431fb11ec47d9a828a08dd | [
"MIT"
] | permissive | Vj-Ydv/jobs | c49a50493133733ecdcc9a57f169a0beeacc8b1c | 9b1f65dfb91cf4d8d32b674cf4e14713b31beee1 | refs/heads/master | 2023-07-06T00:23:55.535407 | 2019-06-28T04:09:41 | 2019-06-28T04:09:41 | 194,122,950 | 0 | 0 | MIT | 2023-06-30T22:19:39 | 2019-06-27T15:45:50 | Python | UTF-8 | Python | false | false | 1,291 | py | from django.test import TestCase
from django.contrib.auth import get_user_model
from django.core.urlresolvers import reverse
from curriculum.tests import factories
User = get_user_model()
class AdminExportResumeTest(TestCase):
def setUp(self):
self.user = User.objects.create(username='Mike', is_superuser... | [
"vizayyadav123@gmail.com"
] | vizayyadav123@gmail.com |
9f2e3d33fd9bbd0961bbb6c4ac1974785fc50739 | 20be3dda44d1ab807c3964fb3376c8e326c4a2e1 | /Lib/site-packages/salesforce_api/client.py | ecbfa3081620553497821d4a4b73258f1a323490 | [
"BSD-3-Clause"
] | permissive | rayhaneHamoumi/arduino | 33650b076b279349e2c3802640342b5f7dbb92da | 7ebe595baea056ca6b9eeb8b80fa170bd179000e | refs/heads/master | 2022-10-29T06:16:38.183718 | 2020-06-12T09:19:28 | 2020-06-12T09:19:28 | 268,807,931 | 0 | 1 | null | 2022-10-12T08:40:23 | 2020-06-02T13:25:40 | Python | UTF-8 | Python | false | false | 1,537 | py | import requests
from .core import Connection
from . import login
from .services import sobjects, basic, tooling, deploy, retrieve, bulk
from .utils import misc as misc_utils
class Client:
def __init__(self, connection: Connection = None,
domain: str = None, username: str = None, password: str = N... | [
"38473988+rayhaneHamoumi@users.noreply.github.com"
] | 38473988+rayhaneHamoumi@users.noreply.github.com |
9b8b8903a02b1d8d679121b8d00342707eab6385 | 5249381720c1feaa6bb91966d1919da77fc4eb76 | /python_web_demo/l7_05_元素操作.py | e556b593ff1d3a003dd04c93d2486927c099af81 | [] | no_license | liqi629/py_study | 7ab34d816e622fe57c2a3373a7f5d82472802dc8 | c3d192be9f755c9ea912006e545fd6f5ea43370d | refs/heads/master | 2022-12-24T10:02:38.707313 | 2020-09-29T07:27:27 | 2020-09-29T07:27:27 | 299,537,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | # -*- coding: utf-8 -*-
# @Time : 2019/5/21 22:52
# @Author : l7
# @Email :liqi_629@163.com
# @File : l7_05_元素操作.py
# @Software : PyCharm
from selenium import webdriver
import time
#打开浏览器Chrome
driver = webdriver.Chrome()
#打开网址
driver.get("http://www.baidu.com")
#3、获取属性值
value = driver.find_element_by_id(... | [
"liqi_629@163.com"
] | liqi_629@163.com |
58cad4e5e762aad9c4bc57dfc52447bb0ccc5fe0 | 913c7e153667d3477ace6c730a06ab6f02a07b3c | /example_all_any.py | 280bd0a1f2c0f11cfc664ddba523110f429ec0cc | [
"MIT"
] | permissive | sidh261805/python_examples | 67af337cfe165f9ba258573028df1f9142343050 | 7ea5d34b7a27e8b85b39c8fa4ce21d36309b7de3 | refs/heads/main | 2023-07-14T13:53:58.447861 | 2021-08-23T12:39:04 | 2021-08-23T12:39:04 | 399,098,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | num1 = [2,4,6,8,0]
num2 = [1,3,5,6,7]
#if any True final is true
print(any([num%2==0 for num in num1]))
print(any([num%2==0 for num in num2]))
#if all True final is true
print(all([num%2==0 for num in num1]))
print(all([num%2==0 for num in num2]))
def sum(*args):
if all([(type(arg)==int or type(arg)==float) fo... | [
"noreply@github.com"
] | noreply@github.com |
dd592073d7319d4f9de6d016e818569d784ce8ad | 67063668c781d5b1fd1c1d69c79a045ed4f10176 | /python/openpyxl/formatting/formatting.py | 3623fa596808fd1a46665a90561c3fbe4494afdd | [
"MIT"
] | permissive | jrockway/tichu-tournament | eacb08b2dd502578fec3780d692648f0d58e90f4 | 6335b8fab89b76c42ac5a078176a500a11f0e4ff | refs/heads/master | 2020-03-09T21:09:31.431690 | 2018-04-19T23:31:44 | 2018-04-19T23:31:44 | 129,002,367 | 0 | 0 | MIT | 2018-04-10T22:31:00 | 2018-04-10T22:31:00 | null | UTF-8 | Python | false | false | 1,487 | py | from __future__ import absolute_import
# Copyright (c) 2010-2016 openpyxl
from openpyxl.compat import OrderedDict, deprecated
from openpyxl.styles.differential import DifferentialStyle
from .rule import Rule
def unpack_rules(cfRules):
for key, rules in cfRules.items():
for idx,rule in enumerate(rules):
... | [
"teytanna@gmail.com"
] | teytanna@gmail.com |
0db720bca678bb4b6aec58ca3f248ba45ffaea0b | b0dd7779c225971e71ae12c1093dc75ed9889921 | /tools/build/v2/test/example_make.py | 4ade4c204d542c9e6e7fe65c9f7be22c69a02ee5 | [
"LicenseRef-scancode-warranty-disclaimer",
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | blackberry/Boost | 6e653cd91a7806855a162347a5aeebd2a8c055a2 | fc90c3fde129c62565c023f091eddc4a7ed9902b | refs/heads/1_48_0-gnu | 2021-01-15T14:31:33.706351 | 2013-06-25T16:02:41 | 2013-06-25T16:02:41 | 2,599,411 | 244 | 154 | BSL-1.0 | 2018-10-13T18:35:09 | 2011-10-18T14:25:18 | C++ | UTF-8 | Python | false | false | 418 | py | #!/usr/bin/python
# Copyright (C) Vladimir Prus 2006.
# Distributed under the Boost Software License, Version 1.0. (See
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
# Test the 'make' example.
import BoostBuild
t = BoostBuild.Tester()
t.set_tree("../example/mak... | [
"tvaneerd@rim.com"
] | tvaneerd@rim.com |
e1e61cd4ef9166e1611b2c6ef5f6fb8843d4461f | 9bad4a99448df1957981d8c2fbd3ef4001d71fea | /a-3-6-1-take pictures.py | fddd724f0c4b653eb41e5300cdf2080766f8d2fd | [] | no_license | paulcwlin/raspi-AIoT-test | a991cac81335c4036cf34d48a9824a8fa077e1c7 | ada56e0668c07a9575a82023dff38e02c0b9220e | refs/heads/master | 2023-04-19T06:23:26.122336 | 2021-04-29T10:00:25 | 2021-04-29T10:00:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | import cv2
ESC = 27
n = 1
index = 0
total = 100
def saveImage(face_image, index):
filename = '/home/pi/Documents/raspi-AIoT-test/images/h1/{:03d}.jpg'.format(index)
cv2.imwrite(filename, face_image)
print(filename)
faceCascade = cv2.CascadeClassifier('/home/pi/opencv/opencv-master/data/haarcascades/haa... | [
"bauroad@gmail.com"
] | bauroad@gmail.com |
4ef26b0753379281e0cd30b80b7422037c4c41e0 | 49260d1490f82a19a6173a74acd416a71530aff9 | /linearRegression.py | c79fe34c911cf43d1a83a779d863087f11f8e2c1 | [] | no_license | SohamSankhe/ml_project | 52cc49dc9d2ab673a7958a29ccdbee8432024cc9 | f2bf4bf69b9420ab208ab5659f2c5de1b25c62fb | refs/heads/master | 2020-04-08T06:11:40.870761 | 2018-11-26T04:53:04 | 2018-11-26T04:53:04 | 159,088,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,734 | py | from numpy.linalg import inv
import numpy as np
from numpy import array
from sklearn.linear_model import LinearRegression
import utils
class RidgeRegResults(): # class to store findings for k fold ridge
def __init__(self):
self.k = 0
self.lamb = 0
self.testIndex = 0 # to id hold out parti... | [
"sankhe.so@husky.neu.edu"
] | sankhe.so@husky.neu.edu |
85ab2941878d47522bed6e8ecb023b9ccf8a7bfd | 31059d647e1294b7da3947cd03d2704019423698 | /alter_elist_add_fxfs.py | 0fa1dc5ff5a2d4178a84f12a75308696bd50c99f | [] | no_license | ZQ-Qi/stock_analysis | aadd1beec9505a30e61be3ffc9ba1e552b28a7e5 | 063a39af182e9f6c98211a40a967f374472fafd5 | refs/heads/master | 2022-02-28T22:46:44.547653 | 2019-10-01T08:07:21 | 2019-10-01T08:07:21 | 198,556,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,050 | py | """
为event_list添加fxfs列
"""
import db_pool
def get_fxfs_from_zfss(db_p, gpdm, dt):
conn = db_p.connection()
cur = conn.cursor()
sql = "select fxfs from zfss where gpdm = '{}' and ssggr = '{}';".format(gpdm, dt)
cur.execute(sql)
result = []
for item in cur.fetchall():
result.append(item[0... | [
"153089761@qq.com"
] | 153089761@qq.com |
d9490cc769b627d539016c7c03a8e2e7f239b62d | 2d925dda36ff0eefcaf5c90e458c2b22535aa4f7 | /anagram/anagram.py | 8fb6d872752ab60846d7c0c059105a30579f40cd | [] | no_license | butterflylady/exercism | 0e06fd1a037cebf9e5557007a1bca9f7fc8cb55a | db269c86f5bea138cd9754a9598803f9db28958a | refs/heads/master | 2023-02-21T14:08:14.031962 | 2021-01-31T15:28:40 | 2021-01-31T15:28:40 | 334,437,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | def find_anagrams(word, candidates):
output = []
for candidate in candidates:
if sorted(candidate.lower()) == sorted(word.lower()) and candidate.lower() != word.lower():
output.append(candidate)
return output
| [
"mpaluyanava@gmail.com"
] | mpaluyanava@gmail.com |
40b4f0b5df2d355ba842d5f383f5bf540849b622 | c5c515271252c72960d25ee4e06223a6218c9b11 | /modules/archwiki.py | e954e0995c4d7e313db1318f11d48697b4638a2c | [] | no_license | Ramblurr/phenny | 94c7640333af04ef6b603fcd50e55e010cfe7def | 2ae48cfb1bfba4504369ea219309fb1c8ee7f0ca | refs/heads/master | 2021-01-16T20:03:06.138297 | 2011-09-08T20:50:13 | 2011-09-08T20:50:13 | 1,330,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,723 | py | #!/usr/bin/env python
"""
archwiki.py - Phenny ArchWiki Module
Copyright 2008-9, Sean B. Palmer, inamidst.com
Licensed under the Eiffel Forum License 2.
http://inamidst.com/phenny/
modified from Wikipedia module
author: mutantmonkey <mutantmonkey@gmail.com>
"""
import re, urllib
import web
import json
wikiapi = 'ht... | [
"mutantmonkey@gmail.com"
] | mutantmonkey@gmail.com |
0b002e3505a22cf48a76a9204c69ed9ff0a0bb6d | 7a8462ca6a11feabce71ff4a52d1f5aedd43579e | /AxiSEM3D/python_scripts/wisdom_kernel.py | 9667d18a2ff554b0288cef602aa54096d0d1a749 | [
"MIT"
] | permissive | AlexSzen/private_Axisem3D | ae33784098213e8af176ebe3a39d8a7e95b8abbd | a213a8ae7322c2089c7ea04405ef2f50fe3dbe72 | refs/heads/master | 2022-05-14T17:35:45.405735 | 2019-11-06T15:11:12 | 2019-11-06T15:11:12 | 153,783,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,802 | py | '''
given a kernel with a fourier expansion, looks at
decay of fourier coefficients to produce a new fourier expansion
sufficient to model the kernel.
objective : learn the maximal necessary expansion for kernels.
'''
import numpy as np
class wisdom:
def __init__(self, kernel, nuKer, epsilon):
self.kerne... | [
"alexandre.szenicer@linacre.ox.ac.uk"
] | alexandre.szenicer@linacre.ox.ac.uk |
ca01a478a22da5ba31a35679e40f37f0484ca29c | 62d2cf85a2a1649d0a8f5525f12aa95746672729 | /python_trade/sample.py | 6a6eda096f2d09a2d2a44cf2a8bd48e43de1b122 | [] | no_license | lyonLeeLPL/trade | 803361aea0fb9783c470d02cc1c3f2217b1ddd7e | 364a27e9f821bc7ec3ab2f08203d13eb66793d6e | refs/heads/master | 2022-07-17T05:27:33.004895 | 2019-12-13T09:21:00 | 2019-12-13T09:21:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,786 | py | # coding: UTF-8
import json
import websocket
from time import sleep
from logging import getLogger,INFO,StreamHandler
logger = getLogger(__name__)
handler = StreamHandler()
handler.setLevel(INFO)
logger.setLevel(INFO)
logger.addHandler(handler)
"""
This program calls Bitflyer real time API JSON-RPC2.0 over Websocket
""... | [
"auiiiiiehhh@yahoo.co.jp"
] | auiiiiiehhh@yahoo.co.jp |
4fb6ff6dd32429c062cd48f322e5d6fce54804f9 | f98360a069da91c059b118a11de14c3e5c3dc867 | /ubonn-thesis/pyfeyn/myPyFeyn/draw_stuff.py | df62cf6f73c6545666147a597ac11851e692392d | [] | no_license | maxxrichard/master_thesis | 2ed417052606e369a86e6506a304a0eccff3404b | 8219aeffd80ce57588a700b51a6117e1595227a2 | refs/heads/master | 2022-10-01T11:29:25.442348 | 2020-06-04T20:28:22 | 2020-06-04T20:28:22 | 257,579,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,319 | py | from pyfeyn.lines import Fermion
from pyfeyn.lines import Photon
from pyfeyn.lines import Gluon
from pyfeyn.lines import Higgs
from pyfeyn.points import Point, Vertex
from pyfeyn.deco import Label
nfermion = -1
nboson = -1
ngluon = -1
nhiggs = -1
fermions = []
bosons = []
gluons = []
higgs = []
def draw_fermion(pnt1... | [
"maxx@Maxxs-MacBook-Pro.local"
] | maxx@Maxxs-MacBook-Pro.local |
8b76c4c375aea7fe9a1c694c2fa0e4056e6d9237 | 6ad27445a594f260282f2625642770214fcfc165 | /list.py | e1884270d7ae90d384d69e6e60a74c2cbd32084c | [] | no_license | SalwanSaad/Calculator | aa699b4603b246a8619a0c2a9331aef513138346 | af8da13959ff12e3945b43e96f0d17905df27554 | refs/heads/main | 2021-07-05T17:37:08.599068 | 2021-01-04T20:06:08 | 2021-01-04T20:06:08 | 216,663,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,454 | py | import math
def options():
try:
process = input("Mathematical process: ")
if len(process) > 1:
num1 = int(input("First number: "))
else:
num1 = int(input("First number: "))
num2 = int(input("Second number: "))
process2= process.upper()
i... | [
"salwansaad923@gmail.com"
] | salwansaad923@gmail.com |
b124a78815e0655538b0bb9fe7abee2151399fb4 | 6738267a19303a5f394f3ec6d0a9c7eae7398957 | /poly.py | efe3d1efb5ebcd6a5ecbafa785810ffd088843ec | [] | no_license | glotyuids/PolyGame | f7d0099b07080c2f6b5a3551b7f720d6b55c39f0 | 1d1ae11ab9c7e6de3c37cc397b90c85d28c530f3 | refs/heads/master | 2021-05-30T14:11:04.851179 | 2015-09-16T08:54:13 | 2015-09-16T08:54:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,755 | py | # -*- coding: utf-8 -*-
import copy
from math import sin,cos,tan,pi
LOG = 0
MOVE = (255,0,0)
WALL = (0,0,0)
FINISH = (0,255,0)
class Polygon():
def __init__(self,lst,tp = WALL):
self.pts = []
import pprint
print 'in Polygon!'
pprint.pprint(lst)
if self.is_poly(lst):
self.pts = lst[:]
self.move = 0
... | [
"tgp.anth@gmail.com"
] | tgp.anth@gmail.com |
08e20fd5b8051010de8501c00270473ce91e4799 | cac36cd5a5b0b1d5ee25284c41d6cebe40f63293 | /epam2021sphinx/source/conf.py | 1ba128a6170e833f98fce471ffe701ebc158f4a1 | [] | no_license | sls88/python_epam_2021 | ae18d76154a00aff28773961a990da07736ba76c | d2b36912189004b578af99986363775442b4a8bd | refs/heads/master | 2023-04-18T16:32:10.951193 | 2021-05-03T17:12:11 | 2021-05-03T17:12:11 | 342,913,438 | 0 | 0 | null | 2021-05-03T17:12:12 | 2021-02-27T17:16:06 | HTML | UTF-8 | Python | false | false | 2,865 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"sls8@ya.ru"
] | sls8@ya.ru |
0c815faa784cf962acdc946c5bee68a0aada38e0 | a8bf0789f4035d7979439a380b4dd746a0383ed8 | /app/__init__.py | 84a9fa4714fdf3c3d2b6b27dd18b3bb96db237ea | [] | no_license | chaeum/app | 8679d1a8a22cd55ea5f7606a49a2413f8837a308 | 447f2abde7a99ba6f40310f72f788b2dc8e31af3 | refs/heads/master | 2021-01-20T00:21:34.760038 | 2017-04-23T04:38:25 | 2017-04-23T04:38:25 | 89,117,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | # -*- coding: utf-8 -*-
__all__ = [""]
| [
"max2002jung@naver.com"
] | max2002jung@naver.com |
496b9b1a0ac781eb298c49dd56dddeaa0c0fd2fa | 266fb6ba49327e33ca5b758163a448e8179663dc | /backend/bitter_sound_27405/settings.py | 60170ff259fe2d424ef41917e8ab1bd57166f9ef | [] | no_license | crowdbotics-apps/bitter-sound-27405 | 9be168773f9330011996bd87dee3ae0f773417cb | cba493a67768a176c46e443fe30097657baeaa83 | refs/heads/master | 2023-05-06T02:46:31.203591 | 2021-05-26T00:35:37 | 2021-05-26T00:35:37 | 370,863,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,120 | py | """
Django settings for bitter_sound_27405 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
i... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
662e21ad2ed1290dd365a18efacf200e970e124a | 30eced58206ff84b918f12cb7030a9d719964bdb | /mail.py | 0566acd3c0de794e5468f1d450c1924dfc5a4aa5 | [] | no_license | yassinerabhi/IoT-WQMS | af87a0531c44b360e8f388f8b9b375a9ac8ab163 | cb4924be86534b3015ab5431512dae3f1373510f | refs/heads/master | 2023-06-25T06:58:53.927843 | 2021-07-26T12:04:36 | 2021-07-26T12:04:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,531 | py | """
This is an Email transaction module
Created on Sun, 25th of May 2019
Authors: Isaac Agyen Duffour & John Pk Erbynn
This module handles the alert of any wrong data which is collected and send as email (gmail)
Data can be sent to multiple emails concurrently ie. addresses in lists
Uses Simple Mail Transfer Protocol... | [
"john.erbynn@gmail.com"
] | john.erbynn@gmail.com |
2bbd2fa42d3b7ef77f232286819679441c18a017 | c4e7ab2cef2e88e809ee14f962415552a3f0e62c | /lib/dockerAPI/container_function.py | 87f764d18936c3ef318ee7be48cb332e47c38a3b | [] | no_license | SerhiiRI/svmacm | 33b0cb8a008f2e7e8d7506cf3eb6227b468b3f87 | 827c80f9b6b5d38c89178e2e1b263d5c1f6415fd | refs/heads/master | 2020-04-30T15:09:29.027017 | 2019-07-16T05:19:26 | 2019-07-16T05:19:26 | 176,912,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,178 | py | def containerNameId(container_stats:dict) -> (int, int):
return container_stats['name'][1:], container_stats['id']
def containerStatus(container_object) -> str:
return container_object.status
def cpuPercentUsage(container_stats:dict) -> int:
CPU_PERCENT = 0.0
CPUTotalUsage = float(container_stats[... | [
"sergiy19981@gmail.com"
] | sergiy19981@gmail.com |
8d9c4a094530aa6fd1659cf637aa8f7a717eef3d | 63a5380d51f869a2cab239c18213f819ba23b900 | /Crudapp/views.py | f5ca18081418d0d60f5282821b286d800c899454 | [] | no_license | siva209/CRUD_Operations_Django | 7ced565b873dee1c2b303214964c2131e1e814cc | 73e8823e25566894afaf0120fd89991bdd6a9790 | refs/heads/master | 2023-02-09T09:38:31.195752 | 2021-01-03T15:51:24 | 2021-01-03T15:51:24 | 326,310,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 933 | py | from django.shortcuts import render, redirect
# from .models import Student
from .forms import StudentForm
# Create your views here.
from .models import Student
def insert_view(request):
form = StudentForm()
if request.method == 'POST':
form = StudentForm(request.POST)
if form.is_valid():
... | [
"sivanarayanayeruva209@gmail.com"
] | sivanarayanayeruva209@gmail.com |
0caf191fb549f59d8228d559861332387941c4a7 | 0852f95cb118158ddaa22ef44456011653200168 | /imonitor/manager/admin.py | 53ce6e36279be468a9599cf005c1b30cb93c2045 | [] | no_license | ultigeo/projectrack | 62695b7590116c2e9d508df8ad8287365d411513 | cc92a175826c2ac801d9f46facda49c140932262 | refs/heads/master | 2021-01-10T02:07:17.959683 | 2016-03-18T09:43:11 | 2016-03-18T09:43:11 | 53,311,808 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,339 | py | from django.contrib import admin
from manager.models import *
# Register your models here.
class projectAdmin(admin.ModelAdmin):
pass
class membershipAdmin(admin.ModelAdmin):
pass
class departmentprojectsAdmin(admin.ModelAdmin):
pass
class teamAdmin(admin.ModelAdmin):
pass
class projectshipAdmin(ad... | [
"swanjohi9@gmail.com"
] | swanjohi9@gmail.com |
c1027f7f2d99905f06539e0831e15ca0d9c30088 | b287837b42e00dc3b6b3b18f47c118f0e90136db | /W23_G_stride/dcgan.py | 4eabd49c410d080bb8d8dc7c0e2134e90667a2b8 | [] | no_license | GoareguerLucas/GAN-SDPC | 5adb0be8a9a3d52f27aad5f8429a5c498d6c5ec1 | 3142daa400502b7c3af73ffe6c00b4fe5a1531ec | refs/heads/master | 2023-03-31T06:21:59.340058 | 2019-11-20T10:25:15 | 2019-11-20T10:25:15 | 178,813,378 | 2 | 0 | null | 2023-03-24T22:48:50 | 2019-04-01T07:56:20 | Python | UTF-8 | Python | false | false | 14,455 | py | import argparse
import os
import numpy as np
import itertools
import torchvision.transforms as transforms
from torchvision.utils import save_image
from torch.utils.tensorboard import SummaryWriter
from torch.utils.data import DataLoader
from torchvision import datasets
from torch.autograd import Variable
import tor... | [
"lucas.goareguer@etu.univ-amu.fr"
] | lucas.goareguer@etu.univ-amu.fr |
73f418059cd93c1b2a8f0ff43f32f7dec2126d23 | bed5bc17c2ae6914d3c0f797b399cf3e581567fe | /shopping/shop_app/models/category.py | b84cfdbcca933cdbfeea29e33d5faf73b11f587e | [] | no_license | the-vampiire/medi_assessment | 5eb12ad38b2dd24ac64371f7c50fcdd241fbbdeb | 6a316c4c13ac36e3981487b2846ee802183f7761 | refs/heads/master | 2021-04-15T03:55:57.900107 | 2018-04-02T04:59:36 | 2018-04-02T04:59:36 | 126,254,426 | 2 | 2 | null | 2018-03-26T09:44:10 | 2018-03-21T23:52:11 | Python | UTF-8 | Python | false | false | 276 | py | from django.db import models
class Category(models.Model):
class Meta:
db_table = 'categories'
verbose_name = 'category'
verbose_name_plural = 'categories'
name = models.CharField(max_length = 50, blank = False)
def __str__(self):
return self.name
| [
"vampiirecodes@gmail.com"
] | vampiirecodes@gmail.com |
132a673c4540d33115e6d942dd7104bf39238eeb | f56f89b4834b4dde8cb2528a013e36e217e28eff | /accounts/models.py | 5b88a8a13c358d98c14b1c72bbd4424e083f80dc | [] | no_license | mainliner/paintind | 6c271ac8bb42b96d2b0add5c73c6a2cf4480c4bc | bd3c9282b655716c8f687a812b1735406c76b6e7 | refs/heads/master | 2020-12-24T13:43:55.951264 | 2013-09-14T09:01:31 | 2013-09-14T09:01:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | from django.db import models
from django.contrib.auth.models import User
class User_info(models.Model):
user = models.ForeignKey(User)
photo = models.CharField(max_length=500)
fans_num = models.IntegerField()
follower_num = models.IntegerField()
describe = models.CharField(max_length=500)
def __unicode__(self):
... | [
"nosongyang@gmail.com"
] | nosongyang@gmail.com |
c417b65d88af2a41f1a6f2a8abc0ebe574230c12 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /tbz5ji3ocwzAeLQNa_17.py | e50d572a8bfe14ab16d76f9f91ad29fc1f351a4f | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py |
def exit_maze(maze, directions):
l = len(maze)
w = len(maze[0])
for y in range(l):
for x in range(w):
if maze[y][x] == 2:
sx = x
sy = y
for i in directions:
if i == 'N':
sy -= 1
elif i == 'E':
sx += 1
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
d93299d81fdc7fe2ace91bc0ea286e69ce8136aa | cda54a77875d95fb0a60f3655263b2e3d68984bf | /program0_test.py | 873aa777ac19e4737180c9534a3686abde3c2455 | [] | no_license | bilashProshad/Python-code | 87ef96d62bc262648427980b357e1cb7de56194d | 4d84238f3c57d6877d23629fd10c9d0bee6fb35e | refs/heads/master | 2023-05-04T10:54:48.481436 | 2021-05-26T19:50:36 | 2021-05-26T19:50:36 | 371,153,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,368 | py | graph = {
"S": {"A": 2, "B": 1, "G": 9},
"A": {"C": 2, "D": 3},
"B": {"D": 2, "E": 4},
"C": {"G": 4},
"D": {"G": 4},
"E": {"E":0}
}
heuristic = {
"S": 6,
"A": 0,
"B": 6,
"C": 4,
"D": 1,
"E": 10,
"G": 0
}
class graphProblem:
def __init__(self, initial, goal, graph... | [
"pbilash64@gmail.com"
] | pbilash64@gmail.com |
ebd9d906222fd020229e5ca693eed78aaf12a12e | 31134588835ee5e3e0a20fea8797789a5c74fe33 | /Tamoo | 518e8c3856f6d7dd35603320fd552101e3c5d1bf | [] | no_license | tamoo320/ally | dc16815cd5bc4b26dd49e83c24bf01521b832848 | 8a92bf7bbfe1041185c92a4b44483aa24b7737f5 | refs/heads/master | 2022-06-30T18:35:40.478192 | 2020-05-12T15:47:34 | 2020-05-12T15:47:34 | 263,379,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,710 | #!/usr/bin/python2
#coding=utf-8
import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,requests,mechanize
from multiprocessing.pool import ThreadPool
from requests.exceptions import ConnectionError
from mechanize import Browser
reload(sys)
sys.setdefaultencoding('utf8')
br = mechanize.Browse... | [
"noreply@github.com"
] | noreply@github.com | |
2072ae91d99cd4b79f0e44d24a9b507f95cc2c02 | f5772055d0d876271c1725b22bf72bf7ee8b023f | /ner/hash-2-pos-chunk-128-64.py | 9a5a7e42c73ba9b892d942f61600770f14abf000 | [
"MIT"
] | permissive | danche354/Sequence-Labeling | 175d01d82d0909d83d9f74507a897fb7c663ab66 | 1af1fbbacf2db4f969b6046d39eee24623a11cc0 | refs/heads/master | 2020-06-11T03:29:10.068740 | 2017-07-16T14:43:43 | 2017-07-16T14:43:43 | 76,015,154 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,562 | py | from keras.models import Model
from keras.layers import Input, Masking, Dense, LSTM
from keras.layers import Dropout, TimeDistributed, Bidirectional, merge
from keras.layers.embeddings import Embedding
from keras.utils import np_utils
import numpy as np
import pandas as pd
import sys
import math
import os
from dateti... | [
"pengzonghui@foxmail.com"
] | pengzonghui@foxmail.com |
de17d29ef0e4c7870bf659be6303286e52e36dff | eb6a65c8eaa9d430d9b30240dccbfb4f99c34115 | /server/core/migrations/0006_deposit.py | c6c140460f87e2edff97534af98ed66cb9d832d8 | [] | no_license | dopeboy/underline | 17c2658b95cada089325cf28ad23211b4622e480 | 9028c444771f0ac8bd7d0f2c7ed326d338bf80ab | refs/heads/main | 2023-06-17T15:49:49.511694 | 2021-07-14T21:48:38 | 2021-07-14T21:48:38 | 335,760,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | # Generated by Django 3.1.6 on 2021-02-25 22:31
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('core', '0005_slip_entry_... | [
"arithmetic@gmail.com"
] | arithmetic@gmail.com |
4973e698c7ce6debf75044283b024b5fb6d6c342 | 765c2f42845173a915792f66acd122d7826e4410 | /CRF/source/change_test_format.py | fae645f3564e1afac826ded98e82e37ad40124e3 | [] | no_license | ShrutiGanesh18/joint-ner-re | aa964cad43affa815bfc437ed583126632cdee99 | d8bec136c24b89b0321a415b3031b27c9d0cc96d | refs/heads/master | 2021-08-22T15:08:40.388252 | 2017-11-30T13:58:26 | 2017-11-30T13:58:26 | 112,617,288 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | f = open("test_output", "r")
g = open("evaluate_test_output", "w")
for line in f:
if line=="\n":
g.write("\n")
else:
args=line.split()
g.write(args[0]+" "+args[1]+" "+args[4]+" "+args[5]+"\n")
f.close()
g.close()
| [
"ganapathy@ganapathys-MacBook-Pro.local"
] | ganapathy@ganapathys-MacBook-Pro.local |
4857276be5e2c578f37cec04bf6cd1501343a4b6 | 9c33dafed8efa674448c56ae271d38b86ee936c4 | /final review demo/communication.py | 871b28f1e081c04cf5862ead750f40e2b379bc7f | [] | no_license | ARC-syn/UP-2 | ab98d20fe4ba99d07452d0b8d7de2b79120fe0b5 | 70aa718865f0cb5b228c80d0fb76cb9cc99d6b76 | refs/heads/main | 2023-05-04T12:35:01.550207 | 2021-05-25T19:03:23 | 2021-05-25T19:03:23 | 340,664,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,907 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 25 23:39:57 2021
@author: MrSan
"""
import socket
import struct
class comm:
def __init__(self):
self.ClientSocket = socket.socket()
host = '127.0.0.1'
port = 1233
print('Waiting for connection')
try:
... | [
"noreply@github.com"
] | noreply@github.com |
1d6ab9387bb79ad61478237022abe9051420f9df | e523770b755a43accfa02ee3ea86af4aeac438e7 | /0_startcamp/day1/list1.py | fe1002030eee81ac5ee114d5bc0f89f22c828945 | [] | no_license | AhnDogeon/TIL | a21f8e70bdd917fd1ec58d55955fa6b3e70c4ca4 | b4ae78b7c6c08ab6076312ba3b44493248ab5195 | refs/heads/master | 2022-11-30T10:14:32.880643 | 2021-02-11T16:09:27 | 2021-02-11T16:09:27 | 162,255,917 | 1 | 1 | null | 2022-11-22T03:46:04 | 2018-12-18T08:32:42 | Jupyter Notebook | UTF-8 | Python | false | false | 201 | py | numbers = [1, 2, 3] # 변수 이름은 뜻을 담아서 짓자!
family =['mom', 1.64, 'dad', 1.75, 'sister', 1.78, True]
mcu = [
['ironman', 'captain'],
['xmen','deadpool'],
['spiderman']
] | [
"qltiqlti@gmail.com"
] | qltiqlti@gmail.com |
ef4059d5bcb4e277045e6b56baedb795edbd75a0 | 29d2ec5d980fc950d3404fe6e1bce36a6a797af8 | /mms_curlometer.py | 383871c028c4921b8ff0ec56ef57213767c1812d | [] | no_license | KBergst/mms-structure-finder | 9d7b6f3fb1e608ff12052f9d5fc20fcb39ea48e7 | 6a913b1a672dcb670dcde0007741e1fb2750a9dc | refs/heads/master | 2023-07-11T19:51:05.823863 | 2019-07-08T15:15:32 | 2019-07-08T15:15:32 | 190,035,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,819 | py | #full_curlometer.py code adapted for use with MMS CDF files
#import sys #for stopping while debugging
import numpy as np # for matrix calculations
import math # for pi and sqrt
#import glob # for sensible listdir()
import cdflib #for importing cdf files
from copy import deepcopy # for obtaining variables in CEF files
... | [
"kendra.bergstedt@gmail.com"
] | kendra.bergstedt@gmail.com |
972e96e0720ba97f5e6daa01c0c6ae41da58743c | 40195e6f86bf8620850f0c56e98eae5693e88277 | /coremltools/converters/mil/frontend/tensorflow2/ssa_passes/test_v2_passes.py | 8b9ec829878c1c138997390b2bd3ce30180b7664 | [
"MIT",
"BSD-3-Clause"
] | permissive | apple/coremltools | 009dfa7154d34cab8edcafa618e689e407521f50 | feed174188f7773631a3d574e1ff9889a135c986 | refs/heads/main | 2023-09-01T23:26:13.491955 | 2023-08-31T18:44:31 | 2023-08-31T18:44:31 | 95,862,535 | 3,742 | 705 | BSD-3-Clause | 2023-09-14T17:33:58 | 2017-06-30T07:39:02 | Python | UTF-8 | Python | false | false | 1,850 | py | # Copyright (c) 2020, Apple Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-3-clause license that can be
# found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
import copy
import numpy as np
from coremltools.converters.mil.mil import Builder as mb
from coreml... | [
"noreply@github.com"
] | noreply@github.com |
7a6926b4dee56ee9dd1021485553feb60dee8c57 | e99017069ca8bed159f15a9decbbe6710ad87b2a | /troof/settings.py | 288b42c7dd9bffc910a7d1b364950f4369740113 | [] | no_license | jpkim921/trooff | 0d145deea519337eab886e25ca2cd27ac80481fd | 37920d67e54681df6ff765c6dba1ff20791f7dd1 | refs/heads/master | 2020-12-04T17:48:38.760280 | 2020-05-19T14:39:15 | 2020-05-19T14:39:15 | 231,856,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,401 | py | from .additional_settings import *
"""
Django settings for troof project.
Generated by 'django-admin startproject' using Django 3.0.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3... | [
"jpkim921@gmail.com"
] | jpkim921@gmail.com |
8aa0f39e07e9651a42f290f8faecb7f2935690eb | 330eb2728ecbe6c6a76e95e34ded5c073c8d2af3 | /sonora_portal001/artistas/views.py | 11b6ca60e40a56c727d70bdc5c0c6a86e2c239da | [] | no_license | Vieceli/sonora_portal001 | ca503b82b69f51e23399d50ae68f1e765144628a | ee282fa2e35cc61abf0393f8f0aebac91eff2e22 | refs/heads/master | 2021-01-23T22:53:11.536090 | 2011-07-20T18:00:07 | 2011-07-20T18:00:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | # Create your views here.
from artistas.forms import ArtistaForm
from django.http import HttpResponseRedirect
from django.shortcuts import render_to_response, get_object_or_404
from django.template.context import RequestContext
from artistas.models import Artista
def artistas(request,template_name):
usuario=reques... | [
"jhoni@jhoni.sonorah.local"
] | jhoni@jhoni.sonorah.local |
e61da909e3d710561f6645f4e8ff84bd9716d626 | 8db7e81c480dc66c8e31ccdd30fd979cc0b9e40e | /Rating Application/Untapped Rating Interface/run_program.py | b9839f470c5eb47bc12761fa73c7688f4ddf7cbc | [] | no_license | Timpryor91/beer_style_rating | cb304e8a4e32c201940a16eafc3183965d4c51a5 | e738f1a9c56efb9c505a88770ad52ee8059fd1e0 | refs/heads/master | 2023-05-13T23:32:31.021584 | 2021-05-28T12:43:05 | 2021-05-28T12:43:05 | 340,421,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | # -*- coding: utf-8 -*-
"""
@author: timpr
"""
# from tool_interface import initiate_interface
from tool_interface import Interface
from modules.beer_data import import_beer_data
import tkinter as tk
# Run the application
if __name__ == "__main__":
# Import beer style names and statistics
style_avgs, st... | [
"68749717+TimPryor1000@users.noreply.github.com"
] | 68749717+TimPryor1000@users.noreply.github.com |
2f2a5ca2e0a1306df87c7be41fa4cd4ff935189e | c84a552307fa5aee2aa3aa086171c06b8d83390a | /quiz/views/contest.py | db3950e0f06ee31bc860bf53f3dc7378bb94cae1 | [] | no_license | dien-hust63/Django-QuizSite | a00a05473b57b43577e981048f4800cf657783f4 | c69c30b8b525a17ac6f8d5f4b3fcdcb76f530a86 | refs/heads/main | 2023-05-03T18:48:29.780670 | 2021-05-23T04:19:27 | 2021-05-23T04:19:27 | 370,032,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,842 | py | from django.shortcuts import render, redirect
from quiz.models import *
from django.views import generic
from django.shortcuts import get_object_or_404
from quiz.forms import QuizTestForm, CustomUserCreationForm, QuizForm
from django.contrib.auth import authenticate, login
from django.contrib import messages
from djang... | [
"nguyendien2804@gmail.com"
] | nguyendien2804@gmail.com |
1c296da03be34c0ca03a869d860edac26218380f | 6f2380fe4087783603a36ce966ab9b5e99ac4cbb | /demo1/booktest/migrations/0006_auto_20190708_1351.py | 83b1a21d8b7535ca7bef558a2df9a3dfcc4021b3 | [] | no_license | zhlxcl/Python1904xcl | aab0d4989d9065bff5d5334a1a1e1188cbd3619d | f4cc21ed0fb6d40349490a084b983b4e897c8d91 | refs/heads/master | 2022-12-14T20:12:16.014524 | 2019-07-19T08:47:19 | 2019-07-19T08:47:19 | 194,625,840 | 0 | 0 | null | 2022-11-22T04:07:44 | 2019-07-01T07:53:59 | JavaScript | UTF-8 | Python | false | false | 783 | py | # Generated by Django 2.2.3 on 2019-07-08 05:51
from django.db import migrations, models
import django.db.models.manager
class Migration(migrations.Migration):
dependencies = [
('booktest', '0005_heroinfo_type'),
]
operations = [
migrations.CreateModel(
name='Ads',
... | [
"2870175885@qq.com"
] | 2870175885@qq.com |
15c40d56d32074dfb192bd80aec27d245d6634b0 | 027698c1805955cb7222f682a0b3939e0f8405a1 | /dataType/dict_p1.py | a517ae07cd48e935d0bd71680f8585213ef042aa | [] | no_license | mrbartrns/introducing-to-CS | e0c114ce175169d6750bdee9fd8ddf3ad264f18e | 2fceef111ebed0ee0e8266997973dd410f45e7fa | refs/heads/master | 2022-12-07T23:46:33.329046 | 2020-08-30T14:39:04 | 2020-08-30T14:39:04 | 280,989,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | animals = { 'a': ['aadvrark'], 'b':['baboon'], 'c':['coati']}
animals['d'] = ['donkey']
animals['d'].append('dog')
animals['d'].append('dingo')
def how_many(animals):
count = 0
for k in animals:
count += len(animals[k])
return count
def biggest(aDict):
'''
aDict: A dictionary, where all th... | [
"mrbartrns@naver.com"
] | mrbartrns@naver.com |
ca756c26eab8193970e8afce664fde448e00dc44 | e845f7f61ff76b3c0b8f4d8fd98f6192e48d542a | /djangocg/utils/dateformat.py | 7d4066b71cc299624e0bb228c36944639457df5d | [
"BSD-3-Clause"
] | permissive | timothyclemans/djangocg | fd150c028013cb5f53f5a3b4fdc960a07fdaaa78 | 52cf28e046523bceb5d436f8e6bf61e7d4ba6312 | refs/heads/master | 2021-01-18T13:20:13.636812 | 2012-08-31T23:38:14 | 2012-08-31T23:38:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,943 | py | """
PHP date() style date formatting
See http://www.php.net/date for format strings
Usage:
>>> import datetime
>>> d = datetime.datetime.now()
>>> df = DateFormat(d)
>>> print(df.format('jS F Y H:i'))
7th October 2003 11:39
>>>
"""
from __future__ import unicode_literals
import re
import time
import calendar
import d... | [
"timothy.clemans@gmail.com"
] | timothy.clemans@gmail.com |
46ad0d5fbbffd25af388851a3e9e9c76744a7ff7 | 260f8c791b853cc14c6b432a1fc917bbfaec9337 | /train.py | ab8d5ecaaa155c77c031d13e66e1c6cdd39f8466 | [] | no_license | sambd86/Brain-MRI-Classification | 842922c68394a273471329c0cbada1136abba18c | 574aa2c2a405c69557035bfc63d97d9e8724e87a | refs/heads/master | 2020-08-07T07:57:22.152591 | 2019-02-15T18:40:47 | 2019-02-15T18:40:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,624 | py | import numpy as np
IMG_PX_SIZE = 80
HM_SLICES = 16
LR = 1e-3
MODEL_NAME = 'boldvst1w-{}-{}.model.tflearn'.format(LR, '2conv')
train_data = np.load('muchdata-80-80-16.npy')
import tflearn
from tflearn.layers.conv import conv_2d, max_pool_2d
from tflearn.layers.core import input_data, dropout, fully_c... | [
"noreply@github.com"
] | noreply@github.com |
a592272c84f6a3a7394a8e55e211e79f8bdeb7e8 | 2bb1b960054b1655918b9a9255c455ca45650e26 | /Project4b/NeuralNet.py | e4169f157745102770cba3bdffc1d03c732f4012 | [] | no_license | jluo80/CS3600-Introduction-to-Artificial-Intelligent | 0a880b069544ce44936cc0c9007836539b722ae0 | 6d1f7d0257e39518f61c439776bff9ac6bfbc88f | refs/heads/master | 2021-01-20T04:54:52.010638 | 2017-04-28T23:20:26 | 2017-04-28T23:20:26 | 89,749,940 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,976 | py | import copy
import sys
from datetime import datetime
from math import exp
from random import random, randint, choice
class Perceptron(object):
"""
Class to represent a single Perceptron in the net.
"""
def __init__(self, inSize=1, weights=None):
self.inSize = inSize+1#number of perce... | [
"noreply@github.com"
] | noreply@github.com |
52ab1199935d944737191ee8695649293a30c578 | ac12fef34ba743c739c61745bdc47ef60b9c9a95 | /core/permissions.py | 05a48bc07a2d07ad41a033c368dbd431a1a479f0 | [] | no_license | learningnoobi/UserManagementApi | cc5efebc8939f6c70662424a989624371bc4dcb2 | 67a19f904e0a2d638c81d589ae5a90b9195f8185 | refs/heads/main | 2023-05-27T17:00:35.394679 | 2021-06-12T10:42:36 | 2021-06-12T10:42:36 | 373,291,017 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | from rest_framework import permissions
from .serializers import UserSerializer,CurrentUserSerializer
class ViewPermissions(permissions.BasePermission):
def has_permission(self, request, view):
data = CurrentUserSerializer(request.user).data
if not data.get("role") is None:
vi... | [
"fanime492@gmail.com"
] | fanime492@gmail.com |
befa8fcb42b0ff630f187373b3a5359fd8258cb8 | a91f09527b64f18b30d7aeb761f6e5d97ed67f45 | /TheMain.py | 56db697bab6623fd10eb4139b63ae35aa57bd666 | [] | no_license | Michedev/TrainingForHashCode | 469a32214ca7327b39749dd3b2cf2fe75d5f7bc6 | 2ef5a7444dbc9ced0f2159e6cc0a78263df74dd9 | refs/heads/master | 2021-01-11T15:27:15.451692 | 2017-01-30T20:51:40 | 2017-01-30T20:51:40 | 80,348,276 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | from InputParser import InputParser
from Deliver import DeliveryGuy
theParser = InputParser()
theParser.loadInput("test.in")
theDeliveryGuy = DeliveryGuy()
theDeliveryGuy.start(theParser.drones, theParser.orders, theParser.warehouses, theParser.deadline)
print (theDeliveryGuy.commands) | [
"andrea.dolfi0@gmail.com"
] | andrea.dolfi0@gmail.com |
038b53660861622923bdc0d10d6cac2b42de1207 | 428ea81730a7102cb3ede62d16d16ed79cab7905 | /Mundo_1/desafio035.py | 4686757b8ed5a1954ce48f2a4e43250cad243748 | [] | no_license | reinaldoboas/Curso_em_Video_Python | 290f5387bd70caf74c06b33cdb34d9b2809088c3 | 7c36b84df957721ff20019eb90fdabdd49acaa94 | refs/heads/master | 2020-11-27T06:59:24.683947 | 2020-06-10T13:49:09 | 2020-06-10T13:49:09 | 229,346,624 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | ### Curso em Vídeo - Exercicio: desafio035.py
### Link: https://www.youtube.com/watch?v=NZiNphKkxhg&list=PLHz_AreHm4dm6wYOIW20Nyg12TAjmMGT-&index=36
### Desenvolva um programa que leia o comprimento de três retas e diga ao usuário se elas podem ou não formar um triângulo.
comp1 = float(input("Digite o primeiro comprim... | [
"noreply@github.com"
] | noreply@github.com |
c5ba88ddbf30f317b40371913a3a3022c5efaeb6 | 401f6332eebcb0f665aee236a1336d6bd30b39ac | /webportal/models.py | 4063c34edd97e1af73227b054438e3b78eabf1a6 | [] | no_license | rsribas/djangoapp | 6672e533f8ee9a1f3c54c617eca30d0d50c01045 | ed02dbe652edd1c396bc766ed0aa1b4f6121aae4 | refs/heads/master | 2021-01-20T21:45:45.844339 | 2017-08-29T17:47:44 | 2017-08-29T17:47:44 | 101,788,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
# Create your models here.
from django.contrib.auth.models import User
#import django_tables2 as tables
class Support(models.Model):
"""Abertura de Tickets para a o NOC"""
assunto = models.CharField(max_length=200)
descr... | [
"rsribas@gmail.com"
] | rsribas@gmail.com |
3969fa2604803a4a5f5149a43be5f14967340d9d | be7949a09fa8526299b42c4c27adbe72d59d2201 | /cnns/nnlib/test/python_tests/parse_args.py | b460897c20a5fa8622862b59fca874d6026418e8 | [
"Apache-2.0"
] | permissive | adam-dziedzic/bandlimited-cnns | 375b5cccc7ab0f23d2fbdec4dead3bf81019f0b4 | 81aaa27f1dd9ea3d7d62b661dac40cac6c1ef77a | refs/heads/master | 2022-11-25T05:40:55.044920 | 2020-06-07T16:14:34 | 2020-06-07T16:14:34 | 125,884,603 | 17 | 5 | Apache-2.0 | 2022-11-21T21:01:46 | 2018-03-19T16:02:57 | Jupyter Notebook | UTF-8 | Python | false | false | 674 | py | import argparse
parser = argparse.ArgumentParser(description='Process some integers.')
parser.add_argument('integers', metavar='N', type=int, nargs='+',
help='an integer for the accumulator')
parser.add_argument('--sum', dest='accumulate', action='store_const',
const=sum, default=... | [
"adam.cajf@gmail.com"
] | adam.cajf@gmail.com |
10e80daf8d1343d953d869670b653a0a5e1f970b | 82c9b71a53a37486aba79c4131caa75fa85f4e19 | /Localization/convert_img.py | be6f75f425d40c01871603c8b40c01e316c07244 | [] | no_license | diamondspark/LVSegmentation | b0750e2db8a5a8adc56a32b138eccd700ee21c5a | f0d23abeef4efd52b14359d7f1b045f6dba8d461 | refs/heads/master | 2020-12-02T06:45:42.309098 | 2017-08-03T23:20:56 | 2017-08-03T23:20:56 | 96,894,014 | 0 | 0 | null | 2017-07-11T16:23:51 | 2017-07-11T13:07:12 | Python | UTF-8 | Python | false | false | 522 | py | from image import readImage
import os
src = '/data/gabriel/LVseg/dataset/Training'
import scipy.misc
#for i in os.listdir(src):
# if(i=='Training'):
for j in os.listdir(src):
for k in os.listdir(src+'/'+j):
if '.dcm' in k:
I = readImage(src+'/'+j+'/'+k,'dicom')
scipy.misc.imsave('/data/gabriel/LVseg/data... | [
"gabrielthomas281@gmail.com"
] | gabrielthomas281@gmail.com |
6177d284bd6e936bcf5790431d5c49eb42f90d68 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_peering_stats.py | f9ffa9854ccf5d162867be4267f96a7b4ecc3553 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,601 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
a140d9e849a9ad7f7ce35a8ba56f519ec5b24da9 | 56518dd10339075dffc3d73058576b31ab1a2287 | /mystatusapp/apps.py | 4d8984bf9128f8098fa4d50e8f42a85b4d1133ef | [] | no_license | mori-0903/make_mystatus | 51349870f2bfdcb41857fb101ab1621ecd4ab640 | e50345d306036ba8cd30ddc65529edecb144b6e2 | refs/heads/main | 2023-05-31T14:39:10.360159 | 2021-06-28T12:00:42 | 2021-06-28T12:00:42 | 380,733,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | from django.apps import AppConfig
class MystatusappConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'mystatusapp'
| [
"moriforest537@gmail.com"
] | moriforest537@gmail.com |
f4bda8b4f5f2409aa4d584318295eff1a71ccdd5 | 9ab1139119e0a942b90286a32179b0b37b9f2bd4 | /main.py | 9fe9b7d8fefe491e34d8c2a2fefdbdab44493dda | [] | no_license | carlsec/olx_cars | 3a15a24f2b89640a6b95e93a02bfad6d574afca7 | 9ac706b3ff46a38e9ede5afa66a58d67d1a63570 | refs/heads/main | 2023-05-30T16:29:50.898474 | 2021-06-21T02:20:40 | 2021-06-21T02:20:40 | 378,564,614 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,627 | py | from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from bs4 import BeautifulSoup
import pandas as pd
from tqdm import tqdm
import requests
import numpy as np
import datetime
import time
import os
list_fuels = ['Gasolina', 'Flex', 'Diesel', 'Gás Natural', 'Etanol']
list_types = ['SUV',... | [
"carlsec@protonmail.com"
] | carlsec@protonmail.com |
99c959c4de418120bb052622993f89f76210342f | 30d5ea193ca3d73c2dfdf2528f92d5c396f93311 | /instapybc/urls.py | 1b63fe699dbbc02a7e134d8ee088642ea60675c4 | [] | no_license | udayRedI/instapy-backend | 0d696e6272ca0fbcdb63c9e97ea2de916d455a85 | d37ea01a0d37801140ab975639eadfff3dfc1647 | refs/heads/master | 2020-06-26T06:12:01.016554 | 2019-07-30T02:09:32 | 2019-07-30T02:09:32 | 199,556,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | """instapybc URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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-bas... | [
"uday@1stmain.co"
] | uday@1stmain.co |
4efd371132d1a0e5e0beaf8f40c49129ad27cf04 | 02ce998368c08bf5423d3b40165feab05dac4b21 | /server/cards/c0000000017.py | b4e0513ffab372fac0adc1dcc2f27210c5b2c5a1 | [] | no_license | zblcm/python-StoneAsh | 2e0f779a614d063b9a0bb2ef24e8199e9ddfd784 | d2d76a3be2cf93982288de2113a372683fd60336 | refs/heads/master | 2021-07-11T14:57:40.159292 | 2017-10-16T06:14:30 | 2017-10-16T06:14:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | from const import *
from buff import *
def init(self, mode = True):
self.name = "水元素"
self.description = "冻结受到该生物伤害的敌方生物。"
self.typ = CARD_CREATURE
self.subtype = [SUBTYPE_ELEMENT]
self.originalcost = [0, 0, 3, 0, 0, 0] #White Fire Water Tree Light Death
self.orimaxhealth = 4
self.oriattack... | [
"zblcm3@gmail.com"
] | zblcm3@gmail.com |
99ad5aaa350a7200f74fb1bb86a0109da555bcc2 | 01e490a878999d01a3587b0b135ebb4d51cd61a4 | /Window/BaseWindow.py | a5abcc6c9cd2a89fe79ffed24643797b5e014839 | [] | no_license | Cyned/spotu | 977daf45ef83ac6c88be00b5596eb7c966afd17b | 1128e49b99ca54063c519d7f32cf755ffbf27cf6 | refs/heads/master | 2021-08-08T14:13:20.161886 | 2017-11-10T13:10:38 | 2017-11-10T13:10:38 | 110,248,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,315 | py | from tkinter import Tk
class BaseWindow(Tk):
def __init__(self, master=None):
super().__init__(master)
self._create_variables()
self._conf()
self._create_widgets()
self._create_layouts()
self._create_bindings()
def _create_variables(self):
"""
... | [
"cynedenis@gmail.com"
] | cynedenis@gmail.com |
6de6c68c8f1fe42715b7566ce5dc23c0173f980c | 0b7b017db9386b74d90ffe541878a756b0ed2976 | /contacts/migrations/0003_remove_contact_birthday.py | 87a7ea0df5de064f8dfd7390951bcae91657931d | [] | no_license | divanov11/contacts-list-with-django-backend | fe95e12bdcc54da535e5c4dc553d377603721d0e | 1ed8bb67ef202d9548e220a6d42203f5cc5dc0ef | refs/heads/master | 2023-02-16T09:33:56.469146 | 2021-01-11T00:07:18 | 2021-01-11T00:07:18 | 328,499,192 | 19 | 2 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | # Generated by Django 3.1.4 on 2021-01-10 22:49
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('contacts', '0002_auto_20210108_1420'),
]
operations = [
migrations.RemoveField(
model_name='contact',
name='birthday',
... | [
"ivanovsin11@gmail.com"
] | ivanovsin11@gmail.com |
9945a3bfa5b3ebae32c8982e01b0bb9c7954a926 | 6cf266ddd53df60e9361a23bb1924c38185eed9b | /tests/util/s3_util.py | 69d86545a945f64beb62439a9ab5935de5121a7b | [
"Apache-2.0"
] | permissive | jsoft88/Impala | f2d54c1fae7eaa4e783aa1f89c686f6901c1bd15 | 40c01a7f92d2248229e8e45291a1ef43b8c40f48 | refs/heads/cdh5-trunk | 2021-01-15T08:26:30.451304 | 2016-07-12T04:54:21 | 2016-08-02T11:53:20 | 65,306,967 | 0 | 0 | null | 2016-08-09T15:36:42 | 2016-08-09T15:36:41 | null | UTF-8 | Python | false | false | 3,844 | py | # Copyright (c) 2016 Cloudera, Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"cloudera-hudson@gerrit.cloudera.org"
] | cloudera-hudson@gerrit.cloudera.org |
943782f14203b64efe4714db8a392c66edf59048 | 0aad4ba48f2fcdfbfac68db1dcf83592ad014141 | /docker-com/yuanqu/SystemManage/migrations/0001_initial.py | df47f8a2d76d41438e89e890f9506d919032b84b | [] | no_license | cauckfgf/fullstack | d55f5640df4c8c5917f0b23b405422975f347bef | e398797d23b2ef1afd3605f5600a9c4dae8efec8 | refs/heads/master | 2021-07-17T10:49:21.211777 | 2020-04-09T14:16:54 | 2020-04-09T14:16:54 | 123,122,968 | 1 | 3 | null | 2020-03-23T13:55:05 | 2018-02-27T11:59:44 | JavaScript | UTF-8 | Python | false | false | 1,265 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2019-06-25 04:10
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Config'... | [
"fgf@bimsheng.com"
] | fgf@bimsheng.com |
41cd82e5658b965f8dc84ee880167cd76fa6546c | 73e9c173e62e0821de2c1db4e5a29b613d4602e3 | /somaticseq/combine_callers.py | 155698472c3837fa9940e9d45b3dc0bcff3c9543 | [
"BSD-2-Clause"
] | permissive | wangdi2014/somaticseq | 388aed215d3ad1a8011ab429fc00a70154d67f4f | 32dcd8c8306041d3d18800f84fd7fdfc64c2a7f9 | refs/heads/master | 2020-03-26T20:49:06.597061 | 2018-08-17T22:04:19 | 2018-08-17T22:04:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,042 | py | #!/usr/bin/env python3
import sys, os, argparse, gzip, re, subprocess
MY_DIR = os.path.dirname(os.path.realpath(__file__))
PRE_DIR = os.path.join(MY_DIR, os.pardir)
sys.path.append( PRE_DIR )
import genomicFileHandler.genomic_file_handlers as genome
import vcfModifier.copy_TextFile as copy_TextFile
import vcfModifie... | [
"li_tai.fang@bina.roche.com"
] | li_tai.fang@bina.roche.com |
b6bdc8f40c3a821677c921ecff412bb789fb3fa1 | 63f702bec4b674da982b793eb5611485c5f174c6 | /K-Means/kmeans.py | e755b601c25de648c4aa0326dc8a7f9fa4feb412 | [] | no_license | sinderoth/Machine-learning | 3783959b538cd1c37fc93c7c5153e35910a5e966 | f0fb3da16d55f659d54a3afe42290a490f59f585 | refs/heads/main | 2023-06-13T07:17:28.173809 | 2021-06-29T19:02:11 | 2021-06-29T19:02:11 | 313,746,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,063 | py | import math
import random
import numpy as np
import copy
random.seed(5710414)
class KMeans:
def __init__(self, X, n_clusters, max_iterations=1000, epsilon=0.01, distance_metric="manhattan"):
self.X = X
self.n_clusters = n_clusters
self.distance_metric = distance_metric
... | [
"noreply@github.com"
] | noreply@github.com |
9f97c3870679ef7592e94f1c166d780fd092ecbb | 79b390363bee87a0f112a1890e7c3784a74df5a2 | /feature_selection/add_woe_dynamic.py | 395311eb22a36aca6a4d0b6477fa51f0403d9707 | [] | no_license | hbwzhsh/machine_model | 12194599c1385c078a8f8828c293040f835eb14a | 8e6151492898691b48a2c3b240880fabe41d155b | refs/heads/master | 2021-05-12T03:20:14.329296 | 2016-09-06T08:40:46 | 2016-09-06T08:40:46 | 117,614,763 | 1 | 0 | null | 2018-01-16T01:28:22 | 2018-01-16T01:28:22 | null | UTF-8 | Python | false | false | 2,552 | py | #-*- coding: utf-8 -*-
import pandas as pd
import numpy as np
#可以动态处理区间为0的情况IV计算函数
#dataframe是包含‘y’和‘pivot_table‘专门计数的列的
#如果series_1的索引是区间形式,则dataframe的特征的值列也是化为区间形势的特征值,这样才能计算
def add_woe_dynamic(dataframe, series_1, series_0, feature_name):
temp = pd.DataFrame(series_1).copy()
temp['woe'] = 0
total_1 =... | [
"421833081@qq.com"
] | 421833081@qq.com |
3234a40720adb1820739571e807eb92f143a513b | df100eb20af5b2be0b0642cfd7fd02958497de0a | /convertors/simple_convertors/analyzer.py | 6e165e54b214750a21b393e04f2ff1f22a31c218 | [] | no_license | LingConLab/Bashkir_corpus | 2d3c5292c81eea08f2b9ba0f51e724c5b06b31f4 | 2798c0d6498d0aac7c41f44abe73bc7a1e2e618a | refs/heads/master | 2021-06-18T14:33:49.640984 | 2021-01-28T12:24:12 | 2021-01-28T12:24:12 | 157,969,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,005 | py | import re
import copy
import os
class DumbMorphParser:
"""
Contains methods that add context-independent word-level
morhological information from a parsed word list to a
collection of JSON sentences. No actual parsing takes
place here.
"""
rxWordsRNC = re.compile('<w>(<ana.*?... | [
"pelmenium.sokurium@gmail.com"
] | pelmenium.sokurium@gmail.com |
765c98c8dd00c1b34bb4f6c1d9611de782fb19f1 | 05da5f5a21ce358f621d12291bee8a1e912319b2 | /madefood/polls/views.py | 16c35f32d140a71a3be272b635ba887ea5a536f4 | [] | no_license | Kamilstepniewski/DjangoProject-Recipe_App | 904ddf31a5ba5754bdc806888b39f9d64b791e81 | 54f78cbbe1a3520624bd96be467dbe429171d706 | refs/heads/master | 2020-05-09T13:40:14.445001 | 2019-04-20T15:29:05 | 2019-04-20T15:29:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | from django.shortcuts import get_object_or_404,render
from django.http import HttpResponse
from .models import Poll,Comment
# Create your views here.
def polls_list(request):
recipes = Poll.objects.all()
context = {'recipes': recipes}
return render(request,'polls/recipes.html', context)
def recipes_detail(request,r... | [
"35572477+Kamilstepniewski@users.noreply.github.com"
] | 35572477+Kamilstepniewski@users.noreply.github.com |
0437d45df3907592b0a10dd025509d6c0f01a063 | cb3753caf27ab53e3dcf187b89a3f58ba93a6562 | /Rotate String.py | b90c4ea458a338c550f1f13262077306c76b3db4 | [] | no_license | robertchengkt/LintCode | dc4d5c14867d66ee21b617ef4ccab218fadc809f | 7f7066d0807654af9b13aa16df2e3b737793af3f | refs/heads/master | 2020-04-15T14:31:06.312510 | 2016-10-29T03:36:06 | 2016-10-29T03:36:06 | 49,547,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | class Solution:
# @param s: a list of char
# @param offset: an integer
# @return: nothing
def rotateString(self, s, offset):
# write you code here
if offset == 0:
return s
chrList = list(s)
newList = []
i = 0
while i < offset:
newList.append(chrList... | [
"chengchang8@gmail.com"
] | chengchang8@gmail.com |
2e029ba1eb517c3e91b40586e221617bef7cc79c | ddf89d98c7fa2cfe4a64c5a9796dd06bf0b2b6ca | /test.py | b43c4224965c2b98c2e82198e190cbc6931c15ce | [] | no_license | kgerman84/Test | 855bbcfb7935b72ace9409cb9e0348b90577ded6 | 13e9651ec04a40de98b5a73527e14ea9ea79de33 | refs/heads/master | 2021-01-10T22:47:23.848331 | 2016-10-10T10:29:50 | 2016-10-10T10:29:50 | 70,351,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | #!/usr/bin/env python
import sys
a1 = int(sys.argv[1])
a2 = int(sys.argv[2])
caunt = 0
for i in range (a1,a2+1):
if ((i%10 + i%100//10 + i%1000//100)
== (i%10000//1000 + i%100000//10000 + i%1000000//100000)):
caunt = caunt + 1
f = open('test.txt', 'w')
f.write(str(caunt))
f.close()
print caunt
| [
"kgerman84@gmail.com"
] | kgerman84@gmail.com |
3da2c220a49a54cea7eca6b1aa7aff30b2b7c283 | 99dcb18a9e3ea367272f740b8cbf3c34285a0c08 | /samples/generated_samples/aiplatform_generated_aiplatform_v1_tensorboard_service_write_tensorboard_run_data_sync.py | b29147d3fc8c9dc447b2e378c7ab7777942fd231 | [
"Apache-2.0"
] | permissive | googleapis/python-aiplatform | 926a4873f35dbea15b2fd86c0e16b5e6556d803e | 76b95b92c1d3b87c72d754d8c02b1bca652b9a27 | refs/heads/main | 2023-08-19T23:49:02.180075 | 2023-08-19T13:25:59 | 2023-08-19T13:27:27 | 298,017,988 | 418 | 240 | Apache-2.0 | 2023-09-14T21:08:33 | 2020-09-23T15:43:39 | Python | UTF-8 | Python | false | false | 1,814 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | noreply@github.com |
57485776a4ffeae26eb959d8100093431ae0bddf | 5152422abf6208bf631bc3322f4491e5589c1ee0 | /volttron/SolarAgent/solaragent/pyowm/stationsapi30/stations_manager.py | 402e54a7017c4f135590b3acc524febf55e9bcc3 | [] | no_license | wietlabs/volttron-optimizer | e74fc3e53176b4130a1b1c31ec9a393cd404e94c | 0c06db6842209d5a9b58ba5a76c04a3764f626e9 | refs/heads/master | 2022-11-08T19:27:07.450103 | 2020-06-17T17:57:28 | 2020-06-17T17:57:28 | 268,601,158 | 0 | 0 | null | 2020-06-17T11:10:19 | 2020-06-01T18:29:48 | Python | UTF-8 | Python | false | false | 10,995 | py | """
Object that can read/write meteostations metadata and extract related
measurements
"""
from pyowm.commons.http_client import HttpClient
from pyowm.stationsapi30.parsers.station_parser import StationParser
from pyowm.stationsapi30.parsers.aggregated_measurement_parser import AggregatedMeasurementParser
from pyowm.s... | [
"bleble103@op.pl"
] | bleble103@op.pl |
ab360bec8cf99a92bbc1598f7170bfff77391d5f | d866c0dca34a7ce98bf6c965ee54bcb6f6042f33 | /source/week_5_part_1.py | 4dc3b8ac477ae5b804297312dd66f8ef296ac3dd | [] | no_license | RasselJohn/ML | 0b8acf57602a484a30aa51d57c2286c65944c8e8 | a3742176e73fd7329639ce1a86582a79f2634e81 | refs/heads/master | 2021-08-02T07:20:25.474284 | 2021-07-25T11:56:41 | 2021-07-25T11:56:41 | 146,184,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | # Композиция алгоритмов
# Случайный лес
# Регрессия
import pandas
from sklearn.ensemble import RandomForestRegressor
from sklearn.model_selection import KFold, cross_val_score
from source import create_answer_file
data = pandas.read_csv(r'..\data\abalone.csv')
# приводим поле к числовому виду
data['Sex'] = data['Se... | [
"Rassel"
] | Rassel |
1659481855f03de945b35b46a831242522f624fe | 8698757521458c2061494258886e5d3cdfa6ff11 | /core/adversarial/accuracy_repeated_reconstructions.py | e5a3818ba69a8a7afb6c10a7dea992487a9635d7 | [
"MIT"
] | permissive | ricvo/argo | 546c91e84d618c4bc1bb79a6bc7cba01dca56d57 | a10c33346803239db8a64c104db7f22ec4e05bef | refs/heads/master | 2023-02-25T01:45:26.412280 | 2020-07-05T22:55:35 | 2020-07-05T22:55:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,330 | py | import numpy as np
import tensorflow as tf
import pdb
import argparse
from tensorflow.examples.tutorials.mnist import input_data
from datasets.Dataset import Dataset
from core.argo.core.ArgoLauncher import ArgoLauncher, get_full_id
from core.argo.core.TrainingLauncher import TrainingLauncher
from core.argo.core.TFDee... | [
"volpi@rist.ro"
] | volpi@rist.ro |
3653a5d7e910e73b48d90c9bbccb57a8c8c80049 | 16dbd5e49d52b675f820f20019bd7a052f125a43 | /Tools/Scripts/webkitpy/layout_tests/servers/web_platform_test_server.py | 332c3c32f71fe28fd028f8c5b9e5ec114eb650f3 | [
"BSD-3-Clause"
] | permissive | steveorsomethin/webkit | 614bec0948a7e6a3ecf488e7501b9ac7fa6d9154 | 26fff3c477cee750ae7d5a03263070e98b514398 | refs/heads/master | 2023-05-27T00:22:59.895565 | 2015-02-25T01:43:42 | 2015-02-25T01:43:42 | 31,293,548 | 1 | 0 | null | 2015-02-25T02:34:11 | 2015-02-25T02:34:10 | null | UTF-8 | Python | false | false | 8,458 | py | # Copyright (c) 2014, Canon Inc. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and ... | [
"youenn.fablet@crf.canon.fr@268f45cc-cd09-0410-ab3c-d52691b4dbfc"
] | youenn.fablet@crf.canon.fr@268f45cc-cd09-0410-ab3c-d52691b4dbfc |
f3d14c4f37f3d61fb7bc19b05ed9d7953bdf6a1e | b4c2fafa90b7775d38581473e7b792999b8037f1 | /handlers/Profile.py | b8e24986caf35e34ec44aeae94aa6642f7607150 | [] | no_license | DamonJie/ihome | 126f84c6f5587d9f65295cc293e392e649bada17 | 8db1ed8441c01f4cfaeb383f311900e2c1ec71bf | refs/heads/master | 2020-04-12T15:39:14.772918 | 2018-12-20T14:43:52 | 2018-12-20T14:43:52 | 162,582,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,932 | py | import logging
import constants
from handlers.BaseHandler import BaseHandler
from utils.response_code import RET
from utils.qiniu_storage import storage
from utils.commons import required_login
class ProfileHandler(BaseHandler):
"""个人信息"""
@required_login
def get(self):
user_id = self.session.data... | [
"1832329265@qq.com"
] | 1832329265@qq.com |
b195df519818411291df92af9e17a1398789bfd5 | c155d27bf74255b8315603518c5ab76d0638dfea | /uv/serpens/flux_correlation_CN_HCN_log_Jy_v2.py | 749360d463819d4bdba2436ddab099aedfe9d64d | [] | no_license | amirocha/doktorat | 406c2e4476a5a22c863c37eb5f581a369800e936 | 22c90228f6bca9d0b116c73457b7e86ae4462167 | refs/heads/master | 2021-07-05T14:18:26.324886 | 2020-08-03T19:28:50 | 2020-08-03T19:28:50 | 152,316,686 | 0 | 0 | null | 2020-04-03T20:22:37 | 2018-10-09T20:28:29 | Python | UTF-8 | Python | false | false | 4,578 | py | """Flux correlation"""
import matplotlib.pyplot as plt
import numpy as np
import scipy.stats as stat
import math as m
from scipy.stats import linregress as regr
DIST=436. #Ortiz-Leon 2017
L_sun = 3.86e26 #W
freq = {'CN': 113490985000, 'HCN': }
c = 299792458 # m/s
k = 1.38e-23 #Boltzmann constant [J/K]
conversion_... | [
"mirochagnieszka@gmail.com"
] | mirochagnieszka@gmail.com |
e75b0875409a78b37d8d31a235ea8c260247ca24 | a702762648baeaaf48e2fe623707caf484d721ce | /TenniSoda/wsgi.py | 5b9f89108963219648b07e326451a95fa8f1f873 | [] | no_license | Championzb/TenniSoda | f0414d4d50e5c0bf766e7933390c8c9c433e90e6 | 057b6d6ea0782eb761aac10e6f7f94620476807d | refs/heads/master | 2020-05-31T05:49:11.007701 | 2015-03-27T16:54:32 | 2015-03-27T16:54:32 | 20,361,046 | 0 | 0 | null | 2014-06-21T02:42:13 | 2014-05-31T17:25:56 | CSS | UTF-8 | Python | false | false | 645 | py | """
WSGI config for TenniSoda project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "TenniSoda.settings")
from django.co... | [
"zhangbin.1101@gmail.com"
] | zhangbin.1101@gmail.com |
56d35c8be025ff1d54f1f4ad818ab5e623008fe1 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_herding.py | 2aa0cb990f8008f89f85be0e917a16355fd6d51e | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py |
#calss header
class _HERDING():
def __init__(self,):
self.name = "HERDING"
self.definitions = herd
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['herd']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
06e974b302ffa4d3cb39f52e50406a79d78f7264 | 505dc7e998f921177b61cc88a1fc7ec71d98b7de | /main/migrations/0002_post_title_tag.py | e07c5c311e18975c1e4f4c6aa3ebbfefaa7927ba | [] | no_license | Jerome4914/Blog | f2a64cf43ea7f3caf816d744f9bb8356ef6f1822 | 32aa532351d2b6773f14f713b6dbf9ae328ad26a | refs/heads/main | 2023-08-06T15:44:08.259064 | 2021-10-08T07:17:22 | 2021-10-08T07:17:22 | 401,833,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | # Generated by Django 2.2 on 2021-08-31 17:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='post',
name='title_tag',
field=m... | [
"jeremyballew@hotmail.com"
] | jeremyballew@hotmail.com |
ab6114c3cbc6fcae25a05ce741d018a20a657aba | eaf319e5d25a9bbf9ce9bb9ff596efda7e0b1ac5 | /deviceselectwidget.py | ca3592aeca69218454512895becb6d9b83e840af | [] | no_license | igrekus/mult_i1_measure | 4a3e43b99c66e0288bb042ecb47907c60aa3c224 | bcee674c0cfcb5f7de02dcf5d804b7a5be3449aa | refs/heads/master | 2020-05-24T01:04:14.936612 | 2019-08-19T10:38:51 | 2019-08-19T10:38:51 | 187,028,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | from PyQt5.QtCore import pyqtSignal, pyqtSlot
from PyQt5.QtWidgets import QWidget, QVBoxLayout, QRadioButton, QButtonGroup, QLabel, QComboBox
class DeviceSelectWidget(QWidget):
selectedChanged = pyqtSignal(str)
def __init__(self, parent=None, params=None):
super().__init__(parent=parent)
se... | [
"upload234@mail.ru"
] | upload234@mail.ru |
0b3748a7100aa612a78fc96bc481e5e90e940cf3 | 78518b65b6823ac42b20515ae7716ada4b59db3d | /手写代码/第17章 智能算法/17_3.py | 33d3e08f23e41d7ca1f5669656876126df991ba9 | [] | no_license | YunHao-Von/Mathematical-Modeling | 70d6ad8f2f543751883afdc85aa19b1c80a106a0 | 4fe153453cccb4b474166c104e08d13ed72bc5ac | refs/heads/master | 2023-03-02T23:16:40.839865 | 2021-02-15T09:52:24 | 2021-02-15T09:52:24 | 339,029,227 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | from sklearn.linear_model import Perceptron
import numpy as np
x0 = np.array([
[-0.5, -0.5, 0.3, 0.3],
[-0.5, 0.5, -0.5, 1.0]
]).T
y0 = np.array([1, 1, 0, 0])
md = Perceptron(tol=1e-3)
md.fit(x0, y0)
print(md.coef_, md.intercept_)
print(md.score(x0, y0))
print("预测值为:\n", md.predict(np.array([[-0.5, 0.2]])))
| [
"Alctrain@163.com"
] | Alctrain@163.com |
16334c323a1baf3cb4ef5e1fb4385aa513405fd9 | 30abe88a996722bd714cbae02d2b5403df0f6746 | /scripts_new/6_determine_target_releases.py | f29b708b374153ed22e2b36963e66f15f3d69a2a | [] | no_license | KilbyBaron/Not-All-Bugs-Are-The-Same | 5a293c64062db86982f0f63ab27eb3c1666338c8 | 5b30826407452d5c9796b4c0e4a2337bb95b112e | refs/heads/master | 2020-08-18T21:38:09.087774 | 2020-01-03T17:12:29 | 2020-01-03T17:12:29 | 215,835,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,297 | py | import os
import pandas as pd
import numpy as np
import re
import time
import datetime
import math
"""
This script locates the 3 consecutive minor releases of each project
with the most post release bug fixing commits.
"""
def count_pre_post():
version_data = pd.read_csv(dir+"/intermediate_files/release_dat... | [
"kjbaron@uwaterloo.ca"
] | kjbaron@uwaterloo.ca |
8389770d0730504c914a4e099e8054f4ee6b6b14 | 98c5349213b5705f1870e506f3ab729dbefb55a9 | /app.py | 08335e0bca452a1057e24a468a4ff3b43b4d6b92 | [] | no_license | aritroper/TheOnionPeeler | 3810adc31747915f3b2b9ab1f02081aa5d88de68 | 55f2deaa5e9333f60479c31deb6e6db80890e53e | refs/heads/master | 2020-05-17T11:52:51.175166 | 2019-04-26T21:45:15 | 2019-04-26T21:45:15 | 182,567,210 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,442 | py | import praw
from random import shuffle, randint
from flask import *
app = Flask(__name__)
# Updates for article in question
is_true = True
s_link = ""
@app.route("/", methods=["GET", "POST"])
def index():
return render_template("index.html", headline=generate_headline())
@app.route("/guess", methods=["GET", "POST"... | [
"aritroper@yahoo.com"
] | aritroper@yahoo.com |
8eced85c27eae6bed3281d1ca966cb978c8f304a | a3aaa7cbfb658218456be1d6e4e5b6060c454a87 | /util.py | c84f4aaf1780bfd780bd7161617eda33b7bc6577 | [] | no_license | nick9914/machine_learning_for_trading | 825ad0ab017546f92b895fe91a13343356f63932 | 9fa50a917111def922cdc67eccef16f9f5d3159b | refs/heads/master | 2020-04-11T06:04:49.095902 | 2019-05-06T03:38:17 | 2019-05-06T03:38:17 | 124,329,260 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,822 | py | """MLT: Utility code.
Copyright 2017, Georgia Tech Research Corporation
Atlanta, Georgia 30332-0415
All Rights Reserved
"""
import os
import pandas as pd
def symbol_to_path(symbol, base_dir=None):
"""Return CSV file path given ticker symbol."""
if base_dir is None:
base_dir = os.environ.get("MARKET_D... | [
"jnicolasvaldez@gmail.com"
] | jnicolasvaldez@gmail.com |
10fdba63f4eb65b2041a156081fd3b9245f73110 | c270323cb953e917b06601791fa71ab093f86df8 | /app.py | 12d629a239f4e03002fd0f9caaa4aa74fc743bd2 | [] | no_license | masheilmir/CourseWebsite | 6017d85c30ee688036585d2c4719d79498a1afc1 | e56f7d025dba42ae2576cf13f604d8aafd39276f | refs/heads/master | 2022-12-12T10:23:22.104005 | 2020-09-08T00:57:05 | 2020-09-08T00:57:05 | 256,661,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,608 | py | from flask import Flask, render_template, request, g, flash, redirect, session, abort, url_for, escape, Markup
import sqlite3
import os
DATABASE = './database.db'
# the function get_db is taken from here:
# https://flask.palletsprojects.com/en/1.1.x/patterns/sqlite3/
def get_db():
db = getattr(g, '_database', N... | [
"noreply@github.com"
] | noreply@github.com |
6d92a891992f6af7b4de9006ce4e62ea9be8b1ea | c828f5c86e8ae7a157bd3f212c4bd754ee04e5e7 | /exercise_coding_test_6.py | ed190e91d5b9b242bf252dd4909b7e95c6804591 | [] | no_license | SeungHune/beakjun | c319e33f10a3dfd3acb090a7872b900ed92c5419 | 5d4610557aa56efc41053954299924ab890812f2 | refs/heads/master | 2020-12-03T04:37:48.054739 | 2020-11-10T10:50:17 | 2020-11-10T10:50:17 | 231,204,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | # 정렬 - 가장 큰 수
def solution(numbers):
if sum(numbers) == 0:
return "0"
new_numbers = []
for num in numbers:
new_numbers.append(str(num) * 3)
new_numbers.sort(reverse=True)
# print(new_numbers)
answer = ""
for num in new_numbers:
if len(num) == 3:
answer +... | [
"xyz9080@naver.com"
] | xyz9080@naver.com |
efad60cd854e2a20cac04b122979cbe3bc3f4a4b | 371ed532b391ab33a06015ff2c41336e8f3ff188 | /main.py | 86021e8deb76d793c69355582d09051e0d866e4c | [] | no_license | dfquicazanr/fast-backend | 5e6d25155fbff5697055bc2bd8d9f98d23e30db7 | 8f0b3275024a29631dad2de4635cb8fb1fc62e5a | refs/heads/master | 2023-04-04T08:54:37.113035 | 2021-04-12T15:28:37 | 2021-04-12T15:28:37 | 357,243,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py | import json
from typing import List, Optional
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from pydantic import BaseModel, ValidationError
origins = [
"http://localhost:4200"
]
class ClubMember(BaseModel):
name: str
age: int
class Club(BaseModel):... | [
"dany11261995@gmail.com"
] | dany11261995@gmail.com |
0a198360ab5ca0d9f238fe307559023e665ae59b | 8d8a7919c624117eb412d0b12d3cf4d3ab7c69c4 | /experiments_configs/wsi_on_dummy_64x8x8/90ep_adam_exp_v1_7_6_1_b32_64_acc2_11_batches.py | 11d97bf6e4187a4cb28a7f90effdbc59fa20cc91 | [] | no_license | ruslangrimov/pcancer | 03b7bb2db07aabe2b63ee07770f7e27668c40180 | 1d14f98e55d97214e76b6da7f3289e139814e30d | refs/heads/main | 2023-02-23T08:16:18.453001 | 2020-06-14T17:24:52 | 2020-06-14T17:24:52 | 333,192,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,295 | py | import os, sys
sys.path.append(os.path.dirname(__file__))
import _default as d
from lib.utils import update_r
d.epochs = 90
d.warmup_steps = 0
d.batch_size = 16
hparams = {
'module': {
'params': {
'model': {
'params': {
't_sz': 7,
't_ste... | [
"grimovr@gmail.com"
] | grimovr@gmail.com |
8b6b9baacf2bf2f174c9f6645576f4486a39710a | 35756ce20d25af6529155537ee8e2e3f1f889308 | /6.00X/ps3_hangman2.py | 9a00666d28683360de54cf24a4c19597cdd72fe7 | [] | no_license | macroscopicentric/practice | 4501d3a28d76d29e91f203afe2f9fcd2d4950580 | 194d17a6034a8b44ae82c87190504ad516cda931 | refs/heads/master | 2021-01-19T20:27:48.567264 | 2014-08-27T16:29:56 | 2014-08-27T16:29:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,105 | py | # 6.00 Problem Set 3
#
# Hangman game
#
# -----------------------------------
# Helper code
# You don't need to understand this helper code,
# but you will have to know how to use the functions
# (so be sure to read the docstrings!)
import random
import string
WORDLIST_FILENAME = "words.txt"
def loadWords():
"... | [
"rachel.b.king@gmail.com"
] | rachel.b.king@gmail.com |
7917887add58e4ea0bcdad9defeb3a862053a299 | 53aaac91271841228909dd58ba85ef724d00bbb6 | /animatedsprite.py | 4ce1180450629887c0935e7d45eb942faeb926fd | [] | no_license | ateoto/pysfmltest | 87f718894ade45132074a66876e42fb3703ccff5 | 2178bb3c38ac84f7106a8c0006ed671306fe41a7 | refs/heads/master | 2021-01-15T23:40:09.112780 | 2012-08-29T05:50:15 | 2012-08-29T05:50:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,819 | py | import sfml as sf
from collections import deque
"""
texture = sf.Texture.load_from_file('data/art/male_walkcycle.png')
frames = deque()
for f in range(0, texture.width, 64):
frames.append(AnimationFrame(texture, sf.IntRect(0,f,64,64), 0.1)
walkcycle_north = Animation([
AnimationFrame(tex... | [
"mattmccants@gmail.com"
] | mattmccants@gmail.com |
f97479e46c4c5ef17d2a4777809d8b0b89a19474 | d2dfd89555fc12686c5ed348cb5dd81a2df9998e | /src/python/pants/backend/google_cloud_function/python/rules_test.py | 6707f6aa2161433b462a77fc069961c0f72c0feb | [
"Apache-2.0"
] | permissive | Eric-Arellano/pants | 01c8e50fec51768c6a40845479ebdef70d8f04b3 | 53a7665da8d49e440dc6d3a67b5a36024ed971a2 | refs/heads/main | 2023-06-27T15:38:13.506346 | 2023-06-20T12:25:23 | 2023-06-20T12:25:23 | 139,469,637 | 0 | 0 | Apache-2.0 | 2023-05-31T11:06:47 | 2018-07-02T16:48:31 | Python | UTF-8 | Python | false | false | 10,319 | py | # Copyright 2019 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
import os
import subprocess
import sys
from io import BytesIO
from textwrap import dedent
from zipfile import ZipFile
import pytest
from pants.backend... | [
"noreply@github.com"
] | noreply@github.com |
0fd2a319ccf7ab64993493eeb7dfa5f2aeceff38 | b75e141bd724c12713c3780c68beb70450efee2f | /2. Filter/FilterOpenCV.py | 25dabaec25487728a84304f810fb11c693e03a91 | [] | no_license | ibyudha/29-07-2020_OpenCV | 472588fd5745671296f47447fd84e2f30b235231 | 7f83dabf2ae32a43f768c69b03f151154d2666e6 | refs/heads/main | 2023-01-22T19:59:22.358023 | 2020-12-05T07:37:38 | 2020-12-05T07:37:38 | 317,524,661 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,056 | py | # -*- coding: utf-8 -*-
"""
Created on 14/11/2020
@author: Gus Yudha
"""
import cv2 as c
import numpy as n
import math as m
def Convert_Ukuran_Citra(a, lebar, panjang):
ukuran = (panjang, lebar)
return c.resize(citra, ukuran, interpolation = c.INTER_AREA)
citra = c.imread ("1815051012.jpeg", ... | [
"noreply@github.com"
] | noreply@github.com |
215616e2ea755088fa21f32a70300b14cf208f9c | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2140/60829/285720.py | 898bdad05e5dd21e0d4d2646299d9c486b4d186d | [] | 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 | 426 | py | nn=int(input())
for p in range(nn):
a=int(input())
n=1
res=""
kk=a
while a>0:
if n%2==0:
a=a-1
res=res+str(n//2)+" "
else:
a=a-n//2-1
for s in range(n//2+1):
res=res+str(kk)+" "
kk -= 1
n=n+1
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
bc8f20e2059200731aa3b7b789b57f8c86621509 | 70f5a1a946290ea5ad9a83325f444d65de8fd9b1 | /_/compute_x_or_y_test.py | 0acf699f536f5e512f101eaaa58b74b586b53884 | [] | no_license | davidkipstar/FEM | 91f0b60a770770b0c5b73a6d0b35077e0d0a8d1d | 29abbc4afed00789ebddaf67390f21fe857591cd | refs/heads/master | 2020-09-26T04:31:40.873418 | 2019-12-06T10:35:03 | 2019-12-06T10:35:03 | 226,165,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | import sys
from compute_x_or_y import compute_x_or_y
with open(sys.argv[1], "rt") as f:
lines = f.read().splitlines()
del lines[0], lines[0], lines[-2]
b_1 = lines[-1]
b_spl = b_1.split(" ")
b_test = []
for i in range(len(b_spl)):
b_test.append(float(b_spl[i]))
del lines[-1]
lines2 = []
for ... | [
"david.arnold93@gmail.com"
] | david.arnold93@gmail.com |
94960e078c9e3916681b9cf5586902f26295040f | 69d57bbb32008a6174468ed8f01532cf318996b7 | /demo01.py | 7cdce4bb3ffd12757d7fa8b145485b7973363fe2 | [] | no_license | HandSomexvv66/itcast_test12 | deb5388ac73b59dbe97e5ec72dc27a6de024040b | 2720f6fa9335ebb094b950c7b63cada5225f9ced | refs/heads/master | 2020-08-17T16:50:49.492626 | 2019-10-17T04:02:47 | 2019-10-17T04:02:47 | 215,689,213 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | print('软件测试彭于晏')
print('牛逼啊') | [
"email@example.com"
] | email@example.com |
e0c984afcd1f4fccb80e153c90f1627ada1af52a | fe15d678aeece784bb9fdd5e7211bedab98f79ea | /sib_api_v3_sdk/models/send_smtp_email_sender.py | fa3c3f0de73ba8dcd2e349ffefac9f341ff96cb2 | [
"MIT"
] | permissive | Edraak/APIv3-python-library | bec8014814ca5a3eaa98dad0f9a3b71acc71316c | 4a97bf479d92ca08d5a2881ac37e397d3a1846b4 | refs/heads/master | 2022-04-16T18:18:37.406313 | 2020-04-10T19:02:09 | 2020-04-10T19:02:09 | 254,713,617 | 0 | 0 | MIT | 2020-04-10T19:00:58 | 2020-04-10T19:00:57 | null | UTF-8 | Python | false | false | 4,935 | py | # coding: utf-8
"""
SendinBlue API
SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at h... | [
"aakanksha@sendinblue.com"
] | aakanksha@sendinblue.com |
3dd7c3f65e14b78958e8369738bb17b7439df1b5 | c4a57dced2f1ed5fd5bac6de620e993a6250ca97 | /huaxin/huaxin_restful_service/restful_xjb_service/v1_services_fund_findhotsearchproduct_entity.py | 937e9b0575a6717a572f56f3bd8ef4aa2b8546be | [] | no_license | wanglili1703/firewill | f1b287b90afddfe4f31ec063ff0bd5802068be4f | 1996f4c01b22b9aec3ae1e243d683af626eb76b8 | refs/heads/master | 2020-05-24T07:51:12.612678 | 2019-05-17T07:38:08 | 2019-05-17T07:38:08 | 187,169,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,811 | py | import json
from code_gen.lib.basic_troop_service_entity_handler import BasicTroopServiceEntityHandler
DOMAIN_NAME = u'10.199.111.2'
URL = u'http://%s/V1/services/fund/findHotSearchProduct?'
BODY_DATA = ''
_BODY_DATA = ''
if BODY_DATA:
_BODY_DATA = json.loads(BODY_DATA)
QUERY_DATA = u'timestamp=1495434109309&nonce... | [
"wanglili@shhxzq.com"
] | wanglili@shhxzq.com |
fe52028f642c5e303add875b04d4a7db496a04c2 | 3a458d9efb62c055542beb6685c7250910bc4fdc | /awx/main/tests/functional/models/test_job_options.py | 65add96de980233a1f7b8f1793bc264e384e6cea | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"Python-2.0",
"Apache-2.0"
] | permissive | aperigault/awx | 2e1b8c56592fdc20812b0c3841fb836d1a7a61a8 | 2ef840ce128a8028fe63b01b47bc5be5304062b2 | refs/heads/devel | 2021-11-21T03:28:31.346758 | 2021-10-12T18:19:40 | 2021-11-16T15:27:27 | 125,395,064 | 0 | 0 | Apache-2.0 | 2018-07-13T13:37:14 | 2018-03-15T16:22:23 | Python | UTF-8 | Python | false | false | 759 | py | import pytest
from awx.main.models import Credential
@pytest.mark.django_db
def test_clean_credential_with_ssh_type(credentialtype_ssh, job_template):
credential = Credential(name='My Credential', credential_type=credentialtype_ssh)
credential.save()
job_template.credentials.add(credential)
job_temp... | [
"rpetrell@redhat.com"
] | rpetrell@redhat.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.