blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
88765ffc6d2e5ee1831ec76273004b16ccb63d99 | 4890476a3327f961088f84fc55070a9fdfe9bf28 | /Globals/InterpolatorConfig.py | 8fe764b73b9a908bd8f58fb3c04980043e9acf3e | [] | no_license | HeylonNHP/RIFE-Colab | 57e96dca1bbf595df617537bdf1dd6c26b2e1459 | 4cc5e2a7f6592b638e7bf1285b5b31297b008c8f | refs/heads/main | 2023-04-28T08:56:15.895203 | 2022-12-01T12:11:47 | 2022-12-01T12:11:47 | 324,138,048 | 41 | 8 | null | null | null | null | UTF-8 | Python | false | false | 3,370 | py | class InterpolatorConfig:
_interpolators = ["RIFE"]
_interpolator = "RIFE"
_interpolationFactor = 2
_loopable = False
_mode = 1
_clearPngs = True
_nonLocalPngs = True
_scenechangeSensitivity = 0.20
_mpdecimateSensitivity = "64*12,64*8,0.33"
_enableMpdecimate = True
_useAccura... | [
"heylon96@hotmail.com"
] | heylon96@hotmail.com |
bd37cf16ee9e512ade1ab66de0a4fc96f3ee351e | 0ba3a5afc0530ed33a40ccd91c16c61759ae6eaa | /src/manage.py | 9fa5e680576cc736659086628a4c8ef6090e66d6 | [] | no_license | dusano/skram-si | c7e15e65548b2a65701eb25693be997c5cded112 | 8efc8723c16219913137de8ac59ff673880b4a64 | refs/heads/master | 2016-09-05T17:02:01.690806 | 2009-10-20T14:02:20 | 2009-10-20T14:02:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | #!/usr/bin/env python
from appengine_django import InstallAppengineHelperForDjango
from django.core.management import execute_manager
InstallAppengineHelperForDjango()
try:
import settings # Assumed to be in the same directory.
except ImportError:
import sys
sys.stderr.write("Error: Can't find the file 's... | [
"dusano@10.2.10.129"
] | dusano@10.2.10.129 |
fc66ce7eef4204e29af5b1ed9877349c975bd6e5 | 714ed39eacf82ea38f88049004d5f4a33b36b2e6 | /app01/admin.py | a633ec7062e47583ae9e0bc605857feed3c99012 | [] | no_license | 000ze/blogplus | 084321edcdafef6699ecc2b5b66022133400e94c | 4fafedcdf0d4051a31672bfaf57a7975ca58290b | refs/heads/master | 2020-07-06T12:54:49.103609 | 2019-08-18T15:45:11 | 2019-08-18T15:45:11 | 203,024,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | from django.contrib import admin
# Register your models here.
from app01 import models
admin.site.register(models.UserInfo)
admin.site.register(models.Article)
admin.site.register(models.Blog)
admin.site.register(models.ArticleDetail) | [
"1413511414@qq.com"
] | 1413511414@qq.com |
06fa170ccd418451d8d7b406afe2929d0fbb78fc | cb16a721c2c1323fbaa76e97c9e29c5b45cf6cd9 | /SCRIPTS/spherical_grating_calculator1.py | aa485989b1f54baf6ae62f004c3f03563ddcb1be | [
"MIT"
] | permissive | JoelBNU/ShadowOui-Tutorial | c11a1907dfded9233910aaf0c7993daf492e70dd | 4629d896c1f02f811d5a1b491f6fca1a7c67a70e | refs/heads/master | 2022-04-19T07:39:16.338099 | 2020-04-16T19:50:57 | 2020-04-16T19:50:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | import numpy as np
#
#
#
r = 30.0
theta_deg = 88.2
d0 = 1.0/800
E0 = 1000.0
m = -1
#
# inputs
#
theta = theta_deg * np.pi / 180
print("------------- INPUTS ----------------------")
print("theta = %f deg = %f rad"%(theta_deg,theta))
print("1/d0 = %f lines/mm"%(1/d0))
print("r = %f m"%(r))
print("order = %d m"%(m)... | [
"srio@esrf.eu"
] | srio@esrf.eu |
3672d80c0bc812c42ce0a7dbdfdb3012e013ef46 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nndrift.py | cad8168819fddaa2056bd7c0c319f562f787d4d2 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 1,213 | py | ii = [('EmerRN.py', 1), ('CookGHP3.py', 1), ('LyelCPG2.py', 23), ('CoolWHM2.py', 2), ('GodwWSL2.py', 1), ('RennJIT.py', 1), ('AubePRP2.py', 2), ('MarrFDI3.py', 1), ('BailJD2.py', 1), ('ChalTPW2.py', 3), ('FitzRNS3.py', 6), ('ClarGE2.py', 4), ('CarlTFR.py', 6), ('LyttELD.py', 1), ('AinsWRR3.py', 1), ('KiddJAE.py', 1), (... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
f8d1df13a32b152ef6e5c1e221284e1850dc7044 | 5deac722170f2935eded633e817e82c7560df23e | /env/bin/pip3.5 | 49101450dc50d9646e32e7f41846c9487837d95f | [] | no_license | ajalascuna/midtermlascuna | dd3f260d98ba0d2d10ab6aa6e1f986438f660d4f | 73aee29b62222b7caa66d9595148b162d0203715 | refs/heads/master | 2020-04-19T04:13:43.215282 | 2019-01-09T19:18:31 | 2019-01-09T19:18:31 | 167,956,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | 5 | #!/home/ajalascuna/midtermquiz/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ajalascuna@addu.edu.ph"
] | ajalascuna@addu.edu.ph |
c30abdde76f9a5210d02716031d5b3093b7290f9 | 87cfca0f1062fb14633d00c5683a45e9d6e6b4ff | /05.Function.py | 29cc1bf35380872fdc062aded5262bb82b721556 | [
"Apache-2.0"
] | permissive | r569594043/PythonBeginner | 2d00604b7165c5d4cad9f5ce27831acfaf09c3f1 | 69b38e3bc99de50530353809c3d501db000314ae | refs/heads/master | 2020-09-12T14:34:48.322057 | 2014-01-15T05:58:29 | 2014-01-15T05:58:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,343 | py | #-*- coding: utf-8 -*-
'''
Functions
See Also: http://docs.python.org/3/tutorial/controlflow.html#defining-functions
http://docs.python.org/3/tutorial/controlflow.html#more-on-defining-functions
'''
# Error
#def func():
def func():
pass
def func(num, num1=1, num2=2):
print(num, num1, num2)
... | [
"rxb123b@qq.com"
] | rxb123b@qq.com |
8036381aacef7ace854f8b2a4789c058d384c77f | 788dd0c4d3a72bf259b09130edb9cd8a3c5b5dfd | /animation.py | e2592f7539f19843cb7957a64c85cadc43f12751 | [] | no_license | pacmancode/oldcode-python27 | 8c6eb9676420f17655ea20db39872c60a7416c38 | 0ce4ca0c1664663f388c60055108014a6199d471 | refs/heads/master | 2020-07-31T01:08:04.663785 | 2019-09-23T19:12:46 | 2019-09-23T19:12:46 | 210,428,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,243 | py | class Animation(object):
def __init__(self, name):
self.name = name
self.frames = []
self.col = 0
self.forward = True
self.speed = 0
self.dt = 0
self.finished = False
def addFrame(self, frame):
self.frames.append(frame)
def getFrame(self):
... | [
"jrichards@secureopensolutions.com"
] | jrichards@secureopensolutions.com |
1281775fb7304ddf8b2eb0ea08b2564a95409475 | 63935c746e3c34162842f9320a90b58bf7ba0d23 | /pyFileFinder/__init__.py | a0134e944835b1d680fb3126ea082d55d1213369 | [
"MIT"
] | permissive | 20centcroak/pyFileFinder | b62b73c4c58a4ddb3bbad1ec5591f68a963135e9 | bb9499f8ba9f2803e862373ebc97d3bb6c0f4b97 | refs/heads/main | 2023-08-10T19:51:17.742819 | 2021-09-28T15:37:31 | 2021-09-28T15:37:31 | 301,203,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | from pyFileFinder.finder import Finder | [
"vpaveau@outook.com"
] | vpaveau@outook.com |
7aeb425aab67befbdb125816c194891556d4f865 | 7a86b717b9783ed11813375297b02bd8ccdca1ba | /bin/fdh.py | 9c2f5aa9fd9e7582aded32cd9a6dca34e3c735b7 | [] | no_license | zaurky/flickr-download-helper | c5a16a42e833fce0fc3a37a88e2b6f231193fd35 | 543a00a7a40ba21755e8e17cdc5450d7e9e038b6 | refs/heads/master | 2021-01-10T20:24:56.214285 | 2014-05-30T16:04:14 | 2014-05-30T16:04:14 | 1,831,446 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | #!/usr/bin/python
"""
flickr_download_helper.py
This small program was developed to help retrieve full bunch of photos from flickr.
To have the description of the parameters, please read flickr_download_helper.config or start the program with the --help flag
"""
import sys
import traceback
import flickr_download_he... | [
"zaurky@zeb.re"
] | zaurky@zeb.re |
e4e3961fcf038e77f898d134bfcfaa27cd7b62ed | 52e4f0785bccebe1f862c59e2c49027c4cfaed4d | /049_group_anagrams.py | f5ebf57f5d5f64752b5a8e6c8fbc34d01e2efec7 | [] | no_license | toddbryant/leetcode | fab5ee07351dbf6fbdb8c8d68b87489ad94e78ea | fb96ab3162f8ee2063b48f4c74d1c1c3b44ed0c3 | refs/heads/master | 2022-09-12T01:07:59.553735 | 2022-07-22T20:48:23 | 2022-07-22T20:48:23 | 218,164,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | """
Given an array of strings strs, group the anagrams together. You can return the answer in any order.
An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.
"""
from typing import List
class Solution:
def groupAnag... | [
"toddbryant@live.com"
] | toddbryant@live.com |
fa070f1b9885fd3f07e93a37204795baecfb1784 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_18178.py | c0fa06963601f1748528156c7d1517b0475862d4 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | # convert dictionary key and value to unicode
d = {'firstname' : 'Foo', 'lastname' : 'Bar'}
d = {unicode(k):unicode(v) for k,v in d.items() }
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
66980e80f0d2389c12e9fe0a0102aa543f9e2e3c | 4f5ecb8e2f57453b0b47dbf97689ed14860df88a | /mysite/settings.py | 4c9acbf551bcc9fd4fefd481593b35dfc64817e4 | [] | no_license | jonmid/mysite | dd438d6adccbaf72f703184dd4f72cb08d7979f6 | 46cabbfb1cfed1a620386db0e63eb9a0c8854e85 | refs/heads/master | 2020-03-28T13:20:22.652974 | 2018-09-17T16:38:54 | 2018-09-17T16:38:54 | 148,385,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,117 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# Bu... | [
"jamideros@hotmail.com"
] | jamideros@hotmail.com |
2027c4c2eed0772be86f773eff59f08150b097fd | 6a92ef61c9d7f43d9fbc1e78ced7ee9f91d73040 | /tests/helpers/boring_model.py | 6ef2518bbef11b52b539fb70c0f389dbdf4ec53a | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | kkoutini/pytorch-lightning | 98af7b144835943f39fa998e0cf072b9bce72e82 | e98b2d072966536f568df65d2e2c1b8d8f36a327 | refs/heads/master | 2021-12-15T01:40:10.085980 | 2021-03-25T13:53:56 | 2021-03-25T13:53:56 | 230,491,888 | 0 | 1 | Apache-2.0 | 2019-12-27T18:05:24 | 2019-12-27T18:05:24 | null | UTF-8 | Python | false | false | 4,924 | py | # Copyright The PyTorch Lightning team.
#
# 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 agreed to i... | [
"noreply@github.com"
] | kkoutini.noreply@github.com |
30500571d05223db576fdd6001f47f192e21d484 | 11b9c2c8320dc2116f714835764c3c8d8586da93 | /tools/tundra2-txml-converter.py | 708fba2e05f97561308b0a419f69994eafc50cab | [
"Apache-2.0"
] | permissive | Ilikia/naali | 42e57a3ac01469ea66ace11e9020cfc9b824b8ea | 9a2d06fb6b00cc5b5645794e9a5d4beab61bf56f | refs/heads/master | 2021-01-15T16:11:08.557582 | 2011-08-22T07:37:01 | 2011-08-22T07:37:01 | 2,153,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,026 | py | import sys
import os
"""
For this script to work you need the jack.mesh from /media/models in /data/assets
You will have to manually put your txml file name down in the __main__ func to:
--> fileName = "putFileNameHere.txml" <--
1. Run this script on your tundra 1.x txml
2. This will create a... | [
"jonne.nauha@evocativi.com"
] | jonne.nauha@evocativi.com |
c340f4cdf3f2b24c8b031f33a536adccafda34b9 | d0666366463ec75f12b8516f2aa3cb97adec2f8d | /python_codes/leetcode/weakest_row.py | b5be6af522f54ed019cf4e6f3702e974c45242ea | [] | no_license | RamSinha/MyCode_Practices | f45fcd447dc5efd456da5cedee3f3d8a843d2a57 | 403a6130ee791927dfdc2f2a46c1a112271bccb0 | refs/heads/master | 2022-12-12T11:13:03.073748 | 2022-05-06T09:35:01 | 2022-05-06T09:35:01 | 20,994,924 | 0 | 1 | null | 2022-12-06T00:03:46 | 2014-06-19T09:27:53 | Python | UTF-8 | Python | false | false | 1,097 | py | #!/usr/bin/python
def kWeakestRows(mat, k):
# Note that there is a more conscise solution just below. This code
# avoids the use of advanced language features.
m = len(mat)
n = len(mat[0])
# Calculate the strength of each row.
strengths = []
for i, row in enumerate(mat):
stre... | [
"ram.sinha@careem.com"
] | ram.sinha@careem.com |
11a2b132db710a54b271d93c567961b45820f1d5 | fd3193cd703656ea7f553209f69b366499f432fb | /NeuralNet/tf_SGD.py | eb09da3d0fc76a818fe4c88e9e1ef02156a466d7 | [] | no_license | mlomnitz/TensorFlow | 812bf19549edad6e6b98ae00dff7830dd36e48fa | fb8fcb7c7523a07351c9ff9942ef146f9a576e09 | refs/heads/master | 2020-04-05T12:32:30.548507 | 2017-06-30T17:53:29 | 2017-06-30T17:53:29 | 95,128,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | # *******************************************************************************
# **
# ** Author: Michael Lomnitz (mrlomnitz@lbl.gov)
# ** Python module defining stochastic gradient descent model for use in
# ** tensorflow classifier
# **
# ******************************************... | [
"michaellomnitz@Michaels-MacBook-Pro.local"
] | michaellomnitz@Michaels-MacBook-Pro.local |
494754f3bba4e0f79b281e6380671c97500bbc39 | ffab2010f61aa362a9adb98c3fe47a3d7bd6dd09 | /cartridge/shop/management/commands/product_db.py | aaf2ae0a9f03fbf95c89b4485844a664abfa7394 | [] | no_license | aleksey-zhigulin/fireplace_shop_mezzanine_and_cartridge | d8a9e2b986857cc45da1a583b34009a6d0bfed7e | 2d33e2cf31169f6e095418a31835f63b2b439025 | refs/heads/master | 2020-05-25T09:52:28.841786 | 2014-10-20T13:23:47 | 2014-10-20T13:23:47 | 19,139,936 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,908 | py | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import unicodecsv as csv
import xlrd, xlwt
import os
import shutil
import sys
import datetime
import random
from optparse import make_option
from django.core.management.base import BaseCommand
from django.core.management.base import Com... | [
"a.a.zhigulin@yandex.ru"
] | a.a.zhigulin@yandex.ru |
6a25d4d6d328e9c9e20a919af3c29624807e564e | 31fb7c74b94e46a325e6b05501c6972a401cf423 | /PYTHON/BASIC_PYTHON/수업내용/06/06-022.py | 1acb02ba0306bc46a2fb34757a430458c72b4e81 | [] | no_license | superf2t/TIL | f2dacc30d6b89f3717c0190ac449730ef341f6a4 | cadaaf952c44474bed9b8af71e70754f3dbf86fa | refs/heads/master | 2022-04-10T13:55:24.019310 | 2019-12-12T11:15:31 | 2019-12-12T11:15:31 | 268,215,746 | 1 | 0 | null | 2020-05-31T05:32:46 | 2020-05-31T05:32:46 | null | UTF-8 | Python | false | false | 211 | py | #06-022.py
import re
pattern = re.compile(r'[a-z]{2}')
ret = pattern.search('123abc123')
#ret = pattern.search('abcXde')
if ret:
print('Matched : ' + ret.group())
else:
print('NOT matched')
| [
"noreply@github.com"
] | superf2t.noreply@github.com |
a488e2a0e9def915d59b71868f6f2957a4f6ebf6 | 5a9159cba858b007ec8946948e6badd0234fe429 | /aocday23/aoc23a.py | dde2266c37bc3c01eb9e3a82418d9c5ec5a28cf4 | [] | no_license | chakradhar123/aoc2020 | b9c7a7b6497a508603d132046a729d167ab8dc1e | c6dcd2db9b51e92e5453728a069817346d05d9df | refs/heads/main | 2023-02-04T19:18:48.273202 | 2020-12-25T06:04:11 | 2020-12-25T06:04:11 | 317,446,950 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | s=[int(x) for x in list(input())]
moves=0
i=0
n=len(s)
m=max(s)
while moves!=100:
curr=s[i]
temparr=[s[(i+1)%n],s[(i+2)%n],s[(i+3)%n]]
p=i
s.pop((p+1)%len(s))
p=s.index(curr)
s.pop((p+1)%len(s))
p=s.index(curr)
s.pop((p+1)%len(s))
tempcurr=curr
while(True):
curr-=... | [
"chakradharvasurama@gmail.com"
] | chakradharvasurama@gmail.com |
11de8e05cca61b6ffd595bf66f7fe24c18151278 | ea3f25d71d2bc15674f1222a7948764775b5d2e6 | /lambada/tests/common.py | 1fdeb4695102c0c0c956d3820cf748fdf73d704f | [
"Apache-2.0"
] | permissive | Superpedestrian/lambada | bb671ffd8ed5e111e6a0a39b41df3ee658046eb9 | adc4fad618f8e5383ca5cd9122e42f89079550f9 | refs/heads/master | 2021-07-12T02:45:43.257226 | 2016-10-24T14:55:22 | 2016-10-24T14:55:22 | 69,257,822 | 6 | 2 | Apache-2.0 | 2021-03-25T21:39:47 | 2016-09-26T14:20:11 | Python | UTF-8 | Python | false | false | 505 | py | """
Common test functions used across test files.
"""
import os
def make_fixture_path(folder, filename='lambda.py'):
"""
Make path to fixture using given args.
folder (str): Folder name that contains fixture(s)
filename (str): Filename to pass, if ``None`` will return folder
"""
path = os.pa... | [
"x@carsongee.com"
] | x@carsongee.com |
b29bd9952d1e42eb245ca6d98e7ca2b04729ec47 | 86e8fa4b5b3ef494c32efc8d9f92c27247317860 | /Backspace String Compare-optimal.py | c81facf43f754a3b5dc5f149dc81a4adaa0febe7 | [] | no_license | hemeshwarkonduru/leetcode | 21135b7585c6bbaf25351d4e8edaacdd5a8c1699 | a8afa93ffb6f8e788ef5f9711e5dd2648c363043 | refs/heads/master | 2022-11-04T21:38:27.685658 | 2020-08-03T16:41:11 | 2020-08-03T16:41:11 | 284,752,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | class Solution:
def backspaceCompare(self, S: str, T: str) -> bool:
i=len(S)-1
j=len(T)-1
skip1=skip2=0
while(i>-1 or j>-1):
c=S[i] if i>=0 else ""
c1=T[j] if j>=0 else ""
if(c=='#'):
skip1+=1
i-=1
... | [
"noreply@github.com"
] | hemeshwarkonduru.noreply@github.com |
1002d041306ded41191f4bc17fe4371066c97883 | 21a98cb39b51607fa150459d6e2afc79c2818cf0 | /python_practice/class_python/python_oo.py | d4867c7807572c3ee6046c300f39354b022a6472 | [] | no_license | z1069867141/hogwarts_lg | bc038b39d688ce99357d24ed41fe05a63db06bfa | faf530b4a81e5c6aae0cf97628b085be708b913f | refs/heads/master | 2023-05-28T20:17:23.864529 | 2021-06-16T02:33:05 | 2021-06-16T02:33:05 | 285,639,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | # 面向对象
class House:
# 静态属性 -> 变量, 类变量, 在类之中, 方法之外
door = "red"
floor = "white"
# 构造函数,是在类实例化的时候直接执行
def __init__(self):
# 实例变量,是在类实例化的时候直接执行,以“self.变量名的方式去定义”,实例变量的作用域为这个类中的所有方法
self.door
self.yangtai = "大"
# 动态属性 -> 方法(函数)
def sleep(self):
# 普通变量,再类之中、方法之中... | [
"919824370@qq.com"
] | 919824370@qq.com |
21f724acdad82167ac50071d25b664cab8ce963a | adb4f695d8c392c62e005dda67a41dd5ab1fcb6f | /subida/tree/preprocessing.py | 865e4d21d2f0e571e379fe9ad64fe6173d3fcbe3 | [] | no_license | luisbalru/PumpItUp-PC | 93e3549856c48a7afc89c324ff6dbc30f5ee9d03 | 381d6d1802407e2db9f3d9c67ce6809443ac99d4 | refs/heads/master | 2022-04-05T13:55:53.660532 | 2020-02-18T17:33:11 | 2020-02-18T17:33:11 | 234,961,917 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,804 | py | import numpy as np
import pandas as pd
## Data loading
train_dataset = pd.read_csv("../../data/training.csv")
train_labels = pd.read_csv("../../data/training-labels.csv")
test_dataset = pd.read_csv("../../data/test.csv")
## Conversion of date recorded to date data type
train_dataset['date_recorded'] = pd.to_datetime(... | [
"fluque1995@gmail.com"
] | fluque1995@gmail.com |
48a38fed26e0f936067d8ea8bc0bea6ac00ca437 | e8e7438518680fd0db80cb1c467c745c8db740f2 | /portCheck.py | 7f793845bd60f5c531b15d9d8df06c42e36a341e | [] | no_license | joerod/python | ef5c5184c4acd673e409fded329a4647875d1162 | d8218338d43abdb6f6f552e234030aaeb93cdcac | refs/heads/master | 2022-06-21T08:05:43.074238 | 2022-05-23T02:24:49 | 2022-05-23T02:24:49 | 23,096,216 | 1 | 1 | null | 2020-12-23T23:53:41 | 2014-08-19T03:58:53 | Python | UTF-8 | Python | false | false | 663 | py | import socket
import argparse
parser = argparse.ArgumentParser(
description='Python command line tool to check for open ports on a host',
epilog="python portCheck.py --host 192.168.1.221 --port 3389"
)
parser.add_argument("--host", required=True, help="IP of machine running to check")
parser.add_argument("--po... | [
"noreply@github.com"
] | joerod.noreply@github.com |
d6842d9077daa9def21f14f9375efd1e66cb673a | 69ad085dc6bab4d48c4db336ccc2dee8589143b1 | /predicting_stock_price/predicted_vs_reality.py | 40610589059decb5736c29386bba16a1ee205e71 | [] | no_license | razisamuely/predict | 9e1e88885aedcc1393fa49ac8b258f4f5ca66b9d | 65e1a22bf62d1c5360d62849486e0b6d67b38ffc | refs/heads/main | 2023-03-22T10:44:27.983779 | 2021-02-23T15:50:56 | 2021-02-23T15:50:56 | 305,181,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,264 | py | # %%
from datetime import date, timedelta, datetime
from feature_engineering import featureEng
from data_generation import get_data
from train import Train, ClfTrain
import pandas as pd
import numpy as np
pd.set_option('display.max_rows', 500)
import pickle
from predict import Predict
from general_functions import nex... | [
"raz.shmuely@ironsrc.com"
] | raz.shmuely@ironsrc.com |
08ffcd1b33e03a0e636914a804faf0bca35a9280 | 95fe1c74e48b38886aa6a0f30aca5f531ac3e4ab | /graph_main.py | 89642c32d64e5d5fd5d25ff54b83ba5a5feb7a64 | [
"MIT"
] | permissive | svenhsia/Entropic-Wasserstein-Embedding | 24f7ee16b261b9a56d0de98ba0a14c52f27ca4a0 | db837b92759cb5c921e7c06b2357861ec687e9de | refs/heads/master | 2021-07-13T09:08:44.369781 | 2020-07-21T12:28:18 | 2020-07-21T12:28:18 | 181,919,633 | 10 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,524 | py | import os
import sys
from time import time
import logging
logging.basicConfig(format='%(asctime)s - %(levelname)s - %(message)s', level=logging.INFO)
import numpy as np
import tensorflow as tf
import networkx as nx
from graph_generator import GraphGenerator
from utils import *
# graph_id = sys.argv[1]
embed_dims = ... | [
"cheng.zhang@polytechnique.edu"
] | cheng.zhang@polytechnique.edu |
576d4f1cf0e88629805b3c8cf300bbcc50a634db | 7b6563dffdd349426395935acafa7bc970d19bad | /finchcollector/main_app/migrations/0006_finch_user.py | 0dd89eb302edcb7c889251e23d3b55f76e83266b | [] | no_license | rashmika13/Finch-Collector-App--Django | 706c01d52ea263533a5339411a941a2d5a4545ae | 067d980f1ac2e2eb40a1036de801069333219425 | refs/heads/master | 2022-11-12T23:23:18.426818 | 2020-07-03T17:54:07 | 2020-07-03T17:54:07 | 275,243,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | # Generated by Django 3.0.7 on 2020-07-03 16:39
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),
('main_app', '0005_photo')... | [
"50966008+rashmika13@users.noreply.github.com"
] | 50966008+rashmika13@users.noreply.github.com |
70b345612778f35358858da39926f532da20da86 | db8b789b6f985ae49021c41f421ecef60c2f9265 | /models/shopify_discount_program.py | 23aba8f3a9a0ca386d7af77034e9e68fe57dad97 | [] | no_license | Kanta-sill/shopify_app | da04f850c46f474accb581865f975778f5f59321 | 432a887727b739dbb193421e95616348ebe902c6 | refs/heads/main | 2023-06-08T06:12:35.079435 | 2021-06-10T08:12:20 | 2021-06-10T08:12:20 | 375,590,917 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,168 | py | import werkzeug
from odoo import api, fields, models, _, tools
import shopify
class ShopifyDiscountProgram(models.Model):
_name = "shopify.discount.program"
_description = "Discount Program"
def get_discount_shop(self):
user_current = self.env['res.users'].search([('id', '=', self._uid)])
... | [
"duc200032@gmail.com"
] | duc200032@gmail.com |
bc0060f516bc7d3faaa17cf838512f5acc8c5414 | 73c9761bb59609f96625595cc05271fd664b6ba9 | /self | 6b46c41182d56095e82844414c5ecd57c5910be2 | [] | no_license | tahinpekmez/MyPython | 82bd32afdca246e258a438396e0904b7fcb50f6e | c26b7fbd36859e5d5b7d34b0f177f9428900827b | refs/heads/master | 2023-01-07T14:21:40.104874 | 2020-11-05T22:03:21 | 2020-11-05T22:03:21 | 277,694,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | #!/usr/bin/python
class Myclass():
i = 123
def __init__(self):
self.i = 345
a = Myclass()
print(a.i)
print(b.i)
| [
"noreply@github.com"
] | tahinpekmez.noreply@github.com | |
bc431979c5f0465fa37fddcd96b6854a989da6ea | c82e62c44ae6716532c06b12ad2f28d225e69ddb | /loader/cifar10C_loader.py | 56ef1b1a344ff1d53f39fe12aa12eed3cbca2928 | [
"MIT"
] | permissive | ag027592/Geometric-Sensitivity-Decomposition | d38f2d84d05453555b9cfd60eaa29d8be70131b9 | 3770449735a2fd976edb22b644cc0846a860c1f7 | refs/heads/main | 2023-08-24T13:47:15.996656 | 2021-10-29T00:37:28 | 2021-10-29T00:37:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,600 | py | from PIL import Image
import os
import os.path
import numpy as np
import pickle
from typing import Any, Callable, Optional, Tuple
from torchvision.datasets.vision import VisionDataset
from torchvision.datasets.utils import check_integrity, download_and_extract_archive
import torch
class CIFAR10C(VisionDataset):
""... | [
"jtian73@gatech.edu"
] | jtian73@gatech.edu |
bf5604ca5b513c7fa3cb1c95f48ebed455079e86 | 026f77d3b55be99116eef25278ec13d01a97f469 | /contact/views.py | d5405b4fbbb945b1c0c966eb95f0de68c61d7572 | [] | no_license | Aleksandr-yask/Django-online-store | 195dc22f6b878743a6be77c1162fbfb15bdefb5b | fd8aa1ca4c8d907859e8280b61333593632112f2 | refs/heads/master | 2021-04-13T01:03:09.077950 | 2020-03-22T06:33:16 | 2020-03-22T06:33:16 | 249,122,408 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | from django.shortcuts import render
def contact(request):
return render(request, 'contact/contact.html', locals())
| [
"yasakov.org@gmail.com"
] | yasakov.org@gmail.com |
f63b099e702b81e6e40d28709f906a8297067d54 | dc7de1db263cb661d7c473c9bfcb444cfe730d9f | /rel/RE_run2.py | 47dcc3d39cea5af5e3d18825dc31bc489a1515aa | [] | no_license | BBBigBang/PM | 8e0bb0a4b1c6468f2b2ccd4a51fefd6cca43609e | 6d5288a10b7929327cac5b3ef731a30d7cb7a344 | refs/heads/master | 2020-03-24T04:00:02.071355 | 2018-12-06T03:26:23 | 2018-12-06T03:26:23 | 142,439,877 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,940 | py |
import Corpus_PM
#import LSTM_RE_Predict
import LSTM_RE_Predict_v2
import FileUtil
import subprocess
import os, sys
import Keyword_Extraction
from Constants import home_dir, threshold
import logging;
import time;
model_file = home_dir + 'data/liver.in.train.h5'
def run2(abstract, entity_list, eval, re... | [
"136481981@qq.com"
] | 136481981@qq.com |
7f18cf4075648d529d0b0c1e30b44536723806cd | 991dacb980ffbd1485bb824258148f39c0aea192 | /Python2.7/ichowdhury_2.3.py | 851bca620892c7a1c11974604cb944d2ec75ff24 | [] | no_license | iac-nyc/Python | cc8accca9aa16a710de6004343728540deb3e501 | d39d05ffc45d51e8ca1d260ad9fb7dd659fb0c08 | refs/heads/master | 2020-03-30T16:31:30.253188 | 2018-11-28T13:41:49 | 2018-11-28T13:41:49 | 151,413,265 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | # Name : Iftekhar Chowdhury
# Date : Oct 31, 2015
# Homework 2.3
sample_text = """ And since you know how you cannot see yourself,
so well as by reflection, I, your glass,
will modestly discover to yourself,
that of yourself which you yet know not of. """
search_string = raw_input ('Please enter a text to replace:')
n... | [
"007ifte@gmail.com"
] | 007ifte@gmail.com |
73278f19d0a296b6c7ef34fbfc7a1b5ef6391db3 | 183d2d3f74997d98b6c8e38ddf146a0975464445 | /gewaraSpider/Config.py | 2609236b32e77bceb7275c02e916d324b3f571d5 | [] | no_license | TopcoderWuxie/gewaraSpider | a8545b8e1ba196e95416d7205247ff31efcac78c | d28b49e2f90b662d0d75c77f0a5f5025a8046c71 | refs/heads/master | 2020-03-06T16:03:53.274427 | 2018-03-27T10:01:45 | 2018-03-27T10:01:45 | 101,733,083 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,231 | py | #coding: utf-8
PATH = r"moviesUrls.txt"
import pymysql
conn = pymysql.connect(
host= "59.110.17.233",
port= 6306,
user= "aliPa",
password= "6y3*p*o$Uj>1s$H",
database= "ysali",
charset= 'utf8',
)
# 网页链接的时候使用
BaseUrl = "http://www.gewara.com"
# 服务器响应的时候提交的URL
BasePostUrl =... | [
"top.wuxie@gmail.com"
] | top.wuxie@gmail.com |
8e2a04db0d7e5ceb1c9cf1d397ba155439e61a9c | e6a875704e32276bd9a7da63520ae5ba18ed27d5 | /app.py | b424a3c98aa0349713b21c5e163b121cfe744693 | [] | no_license | xLightless/IOWrapper | 83685c8a44977d263349faebfd0a877c9f75764d | c7b1d8453ef7f193f7438ad6112770ec798b4dff | refs/heads/master | 2023-08-31T06:05:00.274036 | 2021-10-25T03:14:21 | 2021-10-25T03:14:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,827 | py | import os
import time
import pandas as pd
import json
file = "credentials.txt"
class Client(object):
def __init__(self,auth=False):
""" Wraps the authentication process of the HTTP requests into a managable system """
self.auth = auth
self.credentials = {}
def set_additional_c... | [
"lightlessgaming@gmail.com"
] | lightlessgaming@gmail.com |
026d15229905e121cbef24b485b49a5ea8634d13 | 4f55d730827f07c1f54262d35ac916957fa4c409 | /dynamicsynapse/DynamicSynapsePhasePotraitSimple.py | 8aab57c2f510840f69727bb036ed84b53d1d5eb7 | [] | no_license | InsectRobotics/DynamicSynapsePublic | be84eae967e76496dc92c8a3e01ba55d9c272d1a | 18b000b7344bb82ecbc31045ec3b5bb72234b8c9 | refs/heads/master | 2020-03-22T20:43:18.044297 | 2018-07-11T22:24:24 | 2018-07-11T22:24:24 | 140,625,783 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 42,969 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Wed Nov 1 18:05:14 2017
@author: chitianqilin
"""
import numpy as np
import copy
import matplotlib as mpl
import matplotlib.pyplot as plt
import time
import dill
from mpl_toolkits.mplot3d import Axes3D
from matplotlib.backends.backend_pdf import PdfPages ... | [
"chitianqilin@163.com"
] | chitianqilin@163.com |
67dd5b06d0a10a8ed2e4e11b0a3227b995768ab7 | 557544d64ea0e3017769e2c8e0efbb89df59dbcc | /ae.py | 0f8a59531a1bd95759dd7f1bd3bff8bf9a15863f | [] | no_license | SameepYadav/Processing-of-missing-data-by-neural-networks | b3a2131e52c52bb86e6cb630b5e06df4863fa2b6 | 47060bb45efefd48086926a3bc381ae9aa5ba46b | refs/heads/master | 2020-06-10T17:07:27.273515 | 2019-04-16T19:08:46 | 2019-04-16T19:08:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,476 | py | import os
from datetime import datetime
from time import time
import numpy as np
import tensorflow as tf
from sklearn.impute import SimpleImputer
from sklearn.mixture import GaussianMixture
from tqdm import tqdm
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
RANDOM_SEED = 42
tf.set_random_seed(RANDOM_SEED)
# Training Par... | [
"struski@ii.uj.edu.pl"
] | struski@ii.uj.edu.pl |
b4adbee7dc1a76265d5a9b2eba55bc3f1aced083 | d96dc8f7dc72de011b7d73745994a1c3cb8f748a | /services/__init__.py | ebf1484b2a72250748154a4142d6c98348ddc1ec | [] | no_license | xChuCx/RetailHero-Recommender | 5fe12cf9d271b97c1ab9cd2d382fdfc5a0903200 | abaa16b4522cc4725bd2c142e3af93fd84bba67d | refs/heads/master | 2022-04-05T06:55:28.333399 | 2020-02-24T08:35:22 | 2020-02-24T08:35:22 | 236,315,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | # services/__init__.py
import os
from flask import Flask
from services.api.RecSystem import RecSystem_blueprint
def create_app(script_info=None):
app = Flask(__name__)
# config
app_settings = os.getenv('APP_SETTINGS')
app.config.from_object(app_settings)
app.register_blueprint(RecSystem_blueprin... | [
"xChuCx@gmail.com"
] | xChuCx@gmail.com |
677d0ea08eaa32b52af16f400ea56ea987e0451f | 5a965b99a698bae7b2ade1bc3541380bfbe0c59e | /21.Functions_As_Objects.py | 006be0a3b8f8c6539f4679e0af015a316b735527 | [] | no_license | sanjay-3129/Python-Tutorial | 29b03368db10140af39883e3ceef32ffe3710d64 | ba505f0ef1e79a6190fddb7159249e28acaf8ae6 | refs/heads/master | 2021-10-23T22:50:11.773143 | 2021-10-23T08:00:12 | 2021-10-23T08:00:12 | 230,701,854 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | """
Functions can be assigned and reassigned to variables and later referenced by those names.
"""
#(i)
def multiply(a,b):
return a*b
opr = multiply
print(opr(5,6))
#(ii)
def multiply(a,b):
return a*b
opr = multiply(5,6)
print(opr)
#(iii) - functions can also be used as arguments of other functions
... | [
"noreply@github.com"
] | sanjay-3129.noreply@github.com |
10d59197b17d10daa02d8b52a2e5f4754e2b561f | 833147941be211a1743dded2fd5ae294e5cd6edf | /ctapipe/io/tests/conftest.py | 27705d2c05a44188f63b846b24ee63cb7da950fb | [
"BSD-3-Clause"
] | permissive | mireianievas/ctapipe | a1b852713c1829a17de51449265deaf7cf237a93 | 70f29b1c6b9be1366721609454b03d788419ce01 | refs/heads/master | 2022-05-02T16:42:40.520869 | 2022-03-16T15:28:43 | 2022-03-16T15:28:43 | 338,308,440 | 0 | 0 | BSD-3-Clause | 2021-02-12T12:09:08 | 2021-02-12T12:09:07 | null | UTF-8 | Python | false | false | 840 | py | import pytest
from ctapipe.io import EventSource, DataWriter
from ctapipe.utils import get_dataset_path
@pytest.fixture(scope="session")
def r1_path(tmp_path_factory):
return tmp_path_factory.mktemp("r1")
@pytest.fixture(scope="session")
def r1_hdf5_file(r1_path):
source = EventSource(
get_dataset_p... | [
"maximilian.noethe@tu-dortmund.de"
] | maximilian.noethe@tu-dortmund.de |
3e82565d895cbfaf27bde201ca3c75de23def36f | 9f73bf74e1f090c69f0401aecba84d8ce1c2c11c | /linear_series/src/linear_series/class_base_points.py | 6d301d5aa6a7a6801340c5dce006e109857068fc | [
"MIT"
] | permissive | niels-lubbes/linear_series | 3ae6d7465919aa212b46e0a278c496f47117660c | 51cb24d34fcb822ee120930c6d7da006a349e08c | refs/heads/master | 2020-12-02T17:46:30.263662 | 2019-12-13T17:58:15 | 2019-12-13T17:58:15 | 96,425,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,210 | py | '''
Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.
Created on Aug 4, 2016
@author: Niels Lubbes
This file declares 2 classes: "BasePointTree" and "BasePoint".
'''
class BasePointTree():
'''
This class represents a tree of base points of a linear series of
... | [
"niels.lubbes@noadds"
] | niels.lubbes@noadds |
47255733e840182e4df902b7997de36140721620 | 62c8d299cffa3211d3a04378005c5f3523cd58bd | /studentMain.py | 8640b45883d55b0272299fdf809b9775b5af79c9 | [] | no_license | Shanjiv/Linear-Regression | a5ae794be19c56679364d5417882248f54141752 | d1b12b1becbae344ff932037935b97b71756363e | refs/heads/master | 2021-01-10T15:37:11.181517 | 2016-01-27T16:14:34 | 2016-01-27T16:14:34 | 50,519,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | #!/usr/bin/python
import numpy
import matplotlib
matplotlib.use('agg')
import matplotlib.pyplot as plt
from studentRegression import studentReg
from class_vis import prettyPicture, output_image
from ages_net_worths import ageNetWorthData
ages_train, ages_test, net_worths_train, net_worths_test = ageNetWorthData()
... | [
"shan_ratnam@yahoo.de"
] | shan_ratnam@yahoo.de |
1098889d8bb98070a11efb5e7df7e42a2f322918 | bd8967aaea29ebfe9ec5264d927816de53472a86 | /config/test_settings.py | a5fa23ed10f25fdc648c429f2ced40b2e4b7defa | [] | no_license | MaksimLion/django-graphql-react-simpleapp | 1067c0ef4d67824370301562dc8edfca5c4a7ac3 | cca1153934fcf58690c44c86d80365051bee547b | refs/heads/master | 2020-05-17T02:05:23.359156 | 2019-04-25T14:01:52 | 2019-04-25T14:01:52 | 183,445,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | from .settings import *
DATABASES = {
'default' : {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:'
}
}
PASSWORD_HASHERS = (
'django.contrib.auth.hashers.MD5PasswordHasher',
)
DEFAULT_FILE_STORAGE = 'inmemorystorage.InMemoryStorage'
| [
"maxim226356@mail.ru"
] | maxim226356@mail.ru |
e96d13937dcfa94ceeaed7298fcf4cb23198c36f | d33516802a7c4674dacd7f1335097abc16d7a211 | /SharedParking_Group_4_code/王文浩-接口自动化代码/start/start_api.py | 31df0a39f0dc95847149d2aa89708053a2422b79 | [] | no_license | wangwenhaohao/shareparking_G4 | f16be52da03d20dbaf066a51a40ba9355e6f193d | 60fefa75435c31e3dbfc4446e5fd93dedeaee22b | refs/heads/main | 2023-01-14T17:16:13.976424 | 2020-11-26T03:23:37 | 2020-11-26T03:23:37 | 313,612,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | from HTMLTestRunner_cn import HTMLTestRunner
from sharedParkingPlace1111.tools.parse import FileParse
import unittest
from sharedParkingPlace1111.testcase.owner_parking_api import TestParkingAPI
class AllStart:
def start(self, path):
suite = unittest.TestSuite()
loader = unittest.TestLoader()
... | [
"1500115788@qq.com"
] | 1500115788@qq.com |
d2ef7781954aa600215bead6ed1537f201d90757 | 2ef014463a30fca56ae045884465fd8672c47b3d | /django_pro/Users/models.py | 221731f0416cdce15eaa45f9bd47cc471e5467d7 | [] | no_license | Jiangkai2018/django_pro | e226aa5eaa2b712093fb5eb81490790ab891ee73 | a5c4408a4317b9be384b4f5216b00d4d4ed4b7c7 | refs/heads/master | 2020-04-12T02:52:52.752835 | 2018-12-18T08:29:35 | 2018-12-18T08:29:38 | 162,256,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | from django.db import models
# Create your models here.
class Users(models.Model):
username = models.CharField("用户名",max_length=20)
password = models.CharField("密码",max_length=20)
realname = models.CharField("真实姓名", max_length=255)
sex = models.CharField("性别", max_length=10)
email = models.EmailFie... | [
"1637213781@qq.com"
] | 1637213781@qq.com |
3afe179639c2001840cd2dbc07063d1cad265419 | d3a5b967b16aa4e0a0e296e62cbd43a8fd780363 | /DataFrame/itertuples().py | f25e4f6ed945b7cc4a6f925edd4c3e7843deb008 | [] | no_license | andrew5205/My_Pandas | 690dc054d69968c390128c5fea7dd9f5d971a1aa | 35a7cda2f9fbd4150114888f12d8f3e29c07cbf1 | refs/heads/master | 2023-02-12T15:45:42.694933 | 2021-01-16T04:29:45 | 2021-01-16T04:29:45 | 326,882,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py |
# df.itertuples(index=True, name=Pandas) - Iterate over DataFrame rows as namedtuples.
import pandas as pd
df = pd.DataFrame({
'num_legs': [4, 2],
'num_wings': [0, 2],},
index=['dog', 'hawk']
)
# print(df)
# # num_legs num_wings
# # dog 4 0
# # hawk 2 2
pr... | [
"andrewchung11@gmail.com"
] | andrewchung11@gmail.com |
a5fd28c7ffef396eaa2b4349febc201f7c44d61b | 50621c0cbfc7e9c23957c557b4e21971ec11fcf6 | /vehicle counting/main.py | 9d7a43eff073ebcf1c9c7851592ddc8b353f84f2 | [] | no_license | Hashmeet229/Vehicle_count_mdel | 2701a2078ea3012108faaa6a33a8f3975a298956 | e067b1a7e5830711a8008c42c639edcc6effad22 | refs/heads/master | 2023-04-01T00:54:12.144324 | 2021-03-29T10:46:54 | 2021-03-29T10:46:54 | 352,604,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,093 | py | import cv2
import numpy as np
from time import sleep
largura_min=80 #Largura minima do retangulo
altura_min=80 #Altura minima do retangulo
offset=6 #Erro permitido entre pixel
pos_linha=550 #Posição da linha de contagem
delay= 60 #FPS do vídeo
detec = []
carros= 0
def pega_centro(x, y, w, h):
x1 = int(w ... | [
"hashmeetsingh409@yahoo.com"
] | hashmeetsingh409@yahoo.com |
766f3f730b71b9f62fb1644f7c289f4b0e1fda4b | fbbae3b182f601670b6568f295a23cd7b7f7f620 | /scripts/pick_ref_from_paf.py | 51125bc62dbb6d670e5041f35d2edeaa4253b325 | [
"MIT"
] | permissive | jmeppley/np_read_clustering | 4a74896973892bd917516736335ebdd6376838d2 | 88a23c729f42f2249926d2e3420f3c30e01bfddd | refs/heads/main | 2023-04-19T20:23:13.104017 | 2021-05-14T00:50:31 | 2021-05-14T00:50:31 | 351,255,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | import pandas
from hit_tables import parse_blast_m8, PAF
from Bio import SeqIO
# pick a best read
hits = parse_blast_m8(str(snakemake.input.paf),format=PAF)
hit_matches = hits.groupby(['hit','query']).agg({'matches':sum})
mean_matches = {r:hit_matches.query(f'hit != query and (hit == "{r}" or query == "{r}")').matches... | [
"jmeppley@gmail.com"
] | jmeppley@gmail.com |
4f2f99004a0e686eef2bc53c51e5ed5b221a0cb3 | 288a00d2ab34cba6c389b8c2444455aee55a8a95 | /tests/data23/recipe-578221.py | be4002651ea48b719e8744eeded95287e6f3f139 | [
"BSD-2-Clause"
] | permissive | JohannesBuchner/pystrict3 | ffd77b7bbc378bd4d8f21b5c6bd69a0d64a52ddb | 18b0dd369082422f9bf0f89c72e7acb53a49849c | refs/heads/master | 2023-08-14T06:37:37.954880 | 2023-07-13T11:16:38 | 2023-07-13T11:16:38 | 268,571,175 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,507 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Recipe
# ----------------------------------------------------------------------------
class recipe:
@staticmethod
def enter_event(notified_f):
def wrapper(f):
def caller(obj, *args, **kargs):
notified_f(obj, *args, **kargs)
... | [
"johannes.buchner.acad@gmx.com"
] | johannes.buchner.acad@gmx.com |
6f506575a29cec64e93559190ea52f8a7ae7108d | 2d209ce06ce527d29997ed9af9938e5bfd049903 | /tests/test_app.py | 8e9f53fe3be83d8f5269c45c2a10342ba409fe5d | [
"MIT"
] | permissive | martinmaina/flaskWeb | d925ccc237fb62511c062e2e42feb260a303e369 | c3bf6fe63ae76d6168a4e6c7c2ae17c33b41f31a | refs/heads/master | 2022-12-11T12:24:56.402365 | 2019-03-15T00:44:03 | 2019-03-15T00:44:03 | 175,322,492 | 0 | 0 | MIT | 2022-12-08T01:41:54 | 2019-03-13T01:19:28 | HTML | UTF-8 | Python | false | false | 1,752 | py | import unittest
from app import app
class TestingApp(unittest.TestCase):
#Does the app loads up correctly
def test_index(self):
tester = app.test_client(self)
resp = tester.get('/', content_type='html/text')
self.assertEqual(resp.status_code, 200)
#Does the app requires logi... | [
"m0Lzixs3m0qy@gmail.com"
] | m0Lzixs3m0qy@gmail.com |
bf77d76c896cc754fd8b930a615cc17a6d6ceb5d | 6d13de0d1ca89badfb76c677ffa8d7e2829677cb | /beaconWeb/apps/beacon/models/deal_place.py | d89319726a19ca74e04f52af68c266a76337c0c7 | [] | no_license | jasjitsingh85/beaconweb | 08a2b97346aea6db87dd19567c39a0d99f383ae8 | 269c6683f759fd7e75d13ea9eec8ad63ee24df53 | refs/heads/master | 2021-01-13T03:43:09.308401 | 2016-12-24T16:12:15 | 2016-12-24T16:12:15 | 77,268,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,527 | py | from django.db import models
from beaconWeb.common_utils import smart_format
from beaconWeb.apps.beacon.common.constants.place_sales_status import PLACE_SALES_STATUS
from point_of_sale import PointOfSale
class DealPlace(models.Model):
longitude = models.FloatField(db_index=True)
latitude = models.FloatField(d... | [
"jazjit.singh@gmail.com"
] | jazjit.singh@gmail.com |
59124cc9eaca6ffaa9d4578175f23e410831ad22 | d36ed6850556e159594156f069280c6bb4aa9e13 | /manage.py | 29f5145a6288c75313bf20bc66b772edd16fc6a3 | [
"MIT"
] | permissive | underflow101/intraviewAI | ab85e2211e839ece1af1de57c72f277c53a3bdf5 | 0775fe532d650c53d3248a3ccf5b6d67b948ebbe | refs/heads/master | 2022-09-10T17:44:39.594494 | 2020-05-29T02:38:51 | 2020-05-29T02:38:51 | 265,801,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'intraviewAI.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Im... | [
"ikarus125@gmail.com"
] | ikarus125@gmail.com |
470e383186c84807b83b797a5d3fe2a8f83a3797 | 9ed9ee7b72c2aecefac44b24ddf0172607ebe86b | /venv3/bin/django-admin | e7be1a88a44490e7be83d227fd10b593a2319af8 | [
"MIT"
] | permissive | vict0rl/lovealldogs | e414497be388ed1df7bdc4af73e10e2a7f08bc9b | 8ed5f4376cd2b692004fe445f4b4fe2919885d11 | refs/heads/master | 2021-09-23T10:09:21.036242 | 2020-02-07T00:05:48 | 2020-02-07T00:05:48 | 238,802,365 | 0 | 0 | MIT | 2021-09-22T18:31:47 | 2020-02-06T23:01:29 | Python | UTF-8 | Python | false | false | 307 | #!/home/pypi/Desktop/cleanup/loveofalldogs/venv3/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"leungvb@gmail.com"
] | leungvb@gmail.com | |
903717c0239cdbaab433ca713f2762dd4090b147 | 1e90b086510e82ece55c75036c89cc8961b6c1c4 | /client.py | 40708145c3215f117ca0471c414907e1d48801e4 | [] | no_license | saurabh1120/python-chat-application | 363072684a910505ed906e4c9b1e60c79d5031ee | b8f387a4125ef11bae38d9e8ec042925165d7623 | refs/heads/main | 2023-01-05T18:49:15.649127 | 2020-10-25T18:30:41 | 2020-10-25T18:30:41 | 307,165,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | import socket
UDP_IP = "127.0.0.1"
UDP_PORT = 5018
print("IP address",UDP_IP)
print("Port number ",UDP_PORT)
sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
try:
while True:
message=input("enter message to be sent ").encode()
if message in [b"Q",b"q"]:
break;
sock.s... | [
"noreply@github.com"
] | saurabh1120.noreply@github.com |
c9916da70d4b249b2cffcb7bc6636e200540d8ba | a73cb19f3e20f8205552052397b5aee1040bc119 | /edx_ws/build/catkin_generated/order_packages.py | a58c31d83cf7496f24b54419fba20d73e5053b46 | [] | no_license | aabs7/ROS | bfa5d01c125afb3811f9af42475be7cb8922901b | ed037520c940715b909350b9793e944d2207775e | refs/heads/master | 2022-12-08T10:24:57.466726 | 2020-08-23T04:10:29 | 2020-08-23T04:10:29 | 288,091,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | # generated from catkin/cmake/template/order_packages.context.py.in
source_root_dir = '/home/abhish/tutorial_ws/edx_ws/src'
whitelisted_packages = ''.split(';') if '' != '' else []
blacklisted_packages = ''.split(';') if '' != '' else []
underlay_workspaces = '/home/abhish/tutorial_ws/edx_ws/devel;/opt/ros/melodic'.spl... | [
"abheeshkhanal@gmail.com"
] | abheeshkhanal@gmail.com |
bdb95ee4505887d95877ca3f592d4b8b5565ae5f | 7db4fe5ccdc894536870a913cc49c5740845257b | /exercicios_curso_em_video/ex078.py | d62ad7de3b38046e13324b5c6885bce6c73b167c | [] | no_license | ErickJonesA7X/py_lessons2 | b62ea2f6d9e238d3a1cd67c6c933512e707dfac2 | 6472a21c7c2cb3e772eec3dd3d1e75be05f8608b | refs/heads/master | 2022-12-08T09:25:14.669312 | 2020-07-17T14:57:37 | 2020-07-17T14:57:37 | 252,834,258 | 0 | 0 | null | 2021-06-02T02:31:46 | 2020-04-03T20:30:36 | Python | UTF-8 | Python | false | false | 700 | py | valores = list()
maior = menor = 0
for c in range(0, 5):
valores.append(int(input(f'Digite um valor para a posição {c}: ')))
if c == 0:
maior = menor = valores[c]
else:
if valores[c] > maior:
maior = valores[c]
if valores[c] < menor:
menor = valores[c]
print... | [
"jonescomercial@gmail.com"
] | jonescomercial@gmail.com |
7c9ddf86c654c30a83b0d6faa6ebd8e0e03e5c96 | 3d7afb98400180c74b3b642e95f107e9f2639e6e | /02_api_server/app_name/models.py | a6eba645ff72878c406bdfbc6b9c9f581b39cbe1 | [] | no_license | parkeunsang/django_blog | 6cd96e9be5a62c3ed519ceb95157f29bc39a642b | 3bba2137de05a35b64af605753815b91ee5eaa53 | refs/heads/master | 2023-06-24T10:22:37.352454 | 2021-07-18T08:04:27 | 2021-07-18T08:04:27 | 374,155,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | from django.db import models
class Question(models.Model):
name = models.CharField(max_length=5)
age = models.IntegerField() | [
"dislive@naver.com"
] | dislive@naver.com |
c73d9c7f05e17c3588c3b21d88860513158f2b14 | 4d0d8d045d3a104a87a50c3dfc4569faac095254 | /cementerio/forms.py | f3b8c755535bf6c2e3a9a65f46535bc0a662f1d1 | [] | no_license | tapiaw38/obraspublicas | 07dedadda38e5e33f4bac3760974cd251b4e253c | fc1721ecf421402ca3d6b746cf733a6da47a8694 | refs/heads/master | 2020-12-29T12:08:52.301814 | 2020-04-29T04:31:44 | 2020-04-29T04:31:44 | 238,602,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,177 | py | from django import forms
from cementerio.models import Cementerio
# Create you forms
class cementerioForm(forms.ModelForm):
class Meta:
model = Cementerio
fields = [
'fecha_compra',
'usuario',
'construccion',
'lote',
'lote_num',
... | [
"tapiaw38@gmail.com"
] | tapiaw38@gmail.com |
24425531c7148d11ec8d15bbc859b75ade65dd3b | c95acbeffa00fee3efbc1b290ad7b1fa15769025 | /server.py | fb3a1a9fa2bb00fdd3fabd438fe79801a6c3e8b4 | [] | no_license | saugatsthapit/FTP-server | 07f6c87400bf679b9bdfd098e93598e5c407e19a | 6f7d580ecae213d21bb447fe7d6014dac076e5d6 | refs/heads/master | 2020-04-05T19:05:52.875834 | 2018-11-25T21:39:57 | 2018-11-25T21:39:57 | 157,118,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,032 | py | #!/usr/bin/env python3
# --*-- coding: utf-8 --*--
import socket
import threading
import os
import stat
import sys
import time
import grp
import pwd
import ssl
import codecs
try:
import ConfigParser
except ImportError:
import configparser as ConfigParser
try:
HOST = '127.0.0.1' # socket.gethostbyname(so... | [
"noreply@github.com"
] | saugatsthapit.noreply@github.com |
50aa3d3fde4f45e299e57f5470df22dd1506ecc9 | 4b59ace76840cbeb28f0fac19f128cd3959a7c3a | /frontend/run.py | d381fa5212fed8cb580617aea4b4eea3d3db4729 | [] | no_license | JoshuadeJong/ecommerce-microservice | 2a8f4d2f091c459dc9bcb47c01904f21c478cf91 | 246c6d0eb014df2946874cafcddebea1e0eaa97d | refs/heads/master | 2023-03-25T23:57:15.369285 | 2021-03-19T15:47:32 | 2021-03-19T15:47:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | from app.main import create_app
app = create_app()
app.run(host="0.0.0.0", port=5600, debug=True)
| [
"joshuakdejong@gmail.com"
] | joshuakdejong@gmail.com |
dcc0392f6613bccd534f30864e88e1035d08ff51 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_229/ch119_2020_04_01_13_58_16_858102.py | a55a95c429d1eaf3d9aa548c9c3726d2275bef4b | [] | 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 | 173 | py | import math
def calcula_euler(i,s,n,x):
i = 0
s = 0
for i in range(n+1):
s += (x**i)/math.factorial(i)
print(s)
return s
print(calcula_euler) | [
"you@example.com"
] | you@example.com |
d268b8cd4ef4affc04c41df7e087074e54334cf2 | 07519ddf6395a765f484464dab0e8ba0305486ae | /rango/migrations/0001_initial.py | 47130fea4d3da9a31111ce705601aea8599ef9d3 | [] | no_license | AdamClarkCode/tango_with_django_project | 57e95d5d798a97b274c27926e98fd935253a87c5 | 19a2ba5deb59437448e4ba840f6b46ab694708e4 | refs/heads/main | 2023-03-03T08:41:58.571591 | 2021-02-11T22:19:08 | 2021-02-11T22:19:08 | 329,870,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | # Generated by Django 2.2.17 on 2021-01-29 10:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"2468460C@student.gla.ac.uk"
] | 2468460C@student.gla.ac.uk |
14eb245a021e3d508f9db7fff54caa3161fff836 | 76fb402dec3e1f9cb6c67f1fae81d3b3864fc120 | /phoenix/modules/mkpasswd.py | 573d0169b099764a848ec85d0b3accfebb47ca80 | [
"Apache-2.0"
] | permissive | IsaPeter/PythonProjects | 3021dbbd15398254f647bc8f1ddc13fd540df22a | 62885fa6d4180e7b2c83fbb67541dc3fc3e29489 | refs/heads/master | 2023-04-21T13:53:09.114918 | 2021-05-14T09:09:24 | 2021-05-14T09:09:24 | 312,594,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,750 | py | #!/usr/bin/env python3
import crypt
import os,sys
# append base path to sys.path
runpath = os.path.dirname(os.path.realpath(__file__))
approot = os.path.abspath(os.path.join(runpath, os.pardir))
sys.path.append(os.path.join(runpath,'..'))
sys.path.append(approot)
import lib.commandparser as cp
# python3 -c 'import cry... | [
"venom@kali.local"
] | venom@kali.local |
00bae78e87a3f76100a2e8f156bf108f25544378 | aafa649d1faae4bc9ab703ea20d605c921f7e953 | /fib_sum_last.py | d8894c6706f1d91d6487bfd0e5d31ec0a5f1304c | [] | no_license | sivakumarmanoharan/Algorithms-WarmUp | 010424b57138b1c41dd0a516762510d9f245b5fd | ae2da1f35a100b74e04b70151430224a8db34851 | refs/heads/master | 2022-11-27T18:49:28.247010 | 2020-08-08T06:50:23 | 2020-08-08T06:50:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | a=[0,1]
n=int(input())
if n==0:
print(a[0])
elif n==1:
print(a[1])
else:
for i in range(2,n+1):
fib=a[i-1]+a[i-2]
a.append(fib)
add=sum(a)
print(add%10)
| [
"noreply@github.com"
] | sivakumarmanoharan.noreply@github.com |
d9f56c3577f1d257f62e56961bf26a6d25353d16 | ca31add88a0cc32e2a52f7369fd90c9a37121e44 | /Code.py | 147fd8c585b49d2df5099adcad2014a89c61bb28 | [
"MIT"
] | permissive | sumitsantape30/The-Random-Guess | 852359f398c32b50e69d3cf56ba664bea92b4558 | 39b2ada17bd23bf45eabba7eebd0734c3f9108fa | refs/heads/main | 2023-01-18T17:18:36.615272 | 2020-11-21T03:01:49 | 2020-11-21T03:01:49 | 314,531,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | import random
randNumber= random.randint(1,100)
userGuess= None
guesses= 0
while( userGuess != randNumber):
userGuess= int(input("Enter your guess"))
guesses += 1
if( userGuess == randNumber):
print("You guressed it right!")
else:
if(userGuess > randNumber):
print("You guess... | [
"noreply@github.com"
] | sumitsantape30.noreply@github.com |
aef02d6ee5b4300fff588f020b1734f514e9c784 | 1691d4ad8e91db36573238724034e9e82e60e484 | /encoder_decoder_model/enet_decoder.py | 789bf7b0f10e05e8d42ea832cac4cdbfedb8f95a | [] | no_license | lzb863/Enet | 7276c6f992b403c0712c922e418295b190662c7d | 69cc8c6fe31004284c80de0782f9fcf2709d7cd6 | refs/heads/master | 2022-01-11T13:18:05.423742 | 2019-07-09T02:44:36 | 2019-07-09T02:44:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,340 | py |
# -*- coding: utf-8 -*-
# @Time : 2018.09.06 14:48
# @Author : Aaron Ran
# @IDE: PyCharm Community Edition
"""
实现一个基于Enet-encoder的特征编码类
"""
from collections import OrderedDict
import tensorflow as tf
from encoder_decoder_model.ENet import Enet_model
class Enet_decoder(Enet_model):
"""
实现了一个基于ENet的特征解码类
... | [
"654053334@qq.com"
] | 654053334@qq.com |
8d258ed0b77093840a7c7eeaeadb01c70954d23e | ddce82b1d34fb613d0fa251d4aed93ce232703df | /wrappedAlgorithms/PISWAP/networkx/algorithms/flow/tests/test_mincost.py | ae0dac623c416aa4e11de81fb2b6c685678d3d5f | [] | no_license | waynebhayes/SANA | 64906c7a7761a07085e2112a0685fa9fbe7313e6 | 458cbc5e83d0541717184a5ff0930d7003c3e3ef | refs/heads/SANA2 | 2023-08-21T20:25:47.376666 | 2023-08-10T19:54:57 | 2023-08-10T19:54:57 | 86,848,250 | 20 | 99 | null | 2023-03-07T19:43:10 | 2017-03-31T18:21:01 | Game Maker Language | UTF-8 | Python | false | false | 10,348 | py | # -*- coding: utf-8 -*-
import networkx as nx
from nose.tools import assert_equal, assert_raises
class TestNetworkSimplex:
def test_simple_digraph(self):
G = nx.DiGraph()
G.add_node('a', demand = -5)
G.add_node('d', demand = 5)
G.add_edge('a', 'b', weight = 3, capacity = 4)
... | [
"palmere@uci.edu"
] | palmere@uci.edu |
44210d0cd422a15c1cab58501594a0d005acabfa | ac409a5f1ffc1362a937ec14604244425586cadf | /ngcccbase/p2ptrade/tests/test_comm.py | a966f9b5296d3469effa04c67be2f75622d6daaa | [
"MIT"
] | permissive | petertodd/ngcccbase | c7209bf913bab7a6bd4e340739013a3319628604 | 9e346eebaf4461589e5fdce098c8d0c5793c9461 | refs/heads/master | 2021-01-18T07:19:50.884524 | 2014-03-11T15:50:22 | 2014-03-11T15:50:22 | 17,777,682 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,139 | py | #!/usr/bin/env python
import SocketServer
import SimpleHTTPServer
import threading
import time
import unittest
from ngcccbase.p2ptrade.comm import HTTPComm, ThreadedComm, CommThread
class MockAgent(object):
def dispatch_message(self, m):
pass
class TestServer(threading.Thread):
def __init__(self, a... | [
"jaejoon@gmail.com"
] | jaejoon@gmail.com |
b50412b4ddb40ffff3c5e8ec5fa4a2555b606caa | 66223c313c447d048412ea582ad93dc2db34d64b | /rnn-lstm-model/train_pred.py | 7083da5a77b5e7eb5ed4b3695120db536aae7720 | [] | no_license | vishal-k9/Stance_Detection_Task | c571b3b4a3d4597449fb73a1cc610b4bb8a34979 | fb8fe76544bc1f4ad6417cc781fcc3953fbac6d8 | refs/heads/master | 2021-08-24T01:51:59.602088 | 2017-12-07T14:41:32 | 2017-12-07T14:41:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,478 | py | #!/usr/bin/python
from __future__ import print_function
import tensorflow as tf
from tensorflow.contrib.rnn import GRUCell
from tensorflow.python.ops.rnn import dynamic_rnn as rnn
from tensorflow.python.ops.rnn import bidirectional_dynamic_rnn as bi_rnn
from keras.datasets import imdb
from attention import attention
... | [
"vishal.ku86@gmail.com"
] | vishal.ku86@gmail.com |
3ba85f8874dcec36bc766b4fc1d150cb2916954c | 56210435afa0c80f8d3d7a56de2c430b49826b73 | /classify_fb.py | b4efc07e11d3d305c81209671f9be62ddd46c36f | [] | no_license | iamKunal/gucci_gang | f6417b9fda989b76b41556fe2d0f7126a15e4e01 | 2ad8b7771c84cf93c14407aaa19a63ea482da66a | refs/heads/master | 2021-03-19T17:42:10.292894 | 2018-03-22T20:04:11 | 2018-03-22T20:04:11 | 117,331,223 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,649 | py | from facepy import GraphAPI
import time
from datetime import datetime
from calendar import timegm
import requests
import json
from google.cloud import language
from google.cloud.language import enums
from google.cloud.language import types
import time
import sys
posts = []
images = []
videos = []
fb = {}
id_list = []
T... | [
"kunal.gupta@myself.com"
] | kunal.gupta@myself.com |
025f7c0a625c99f0fcba414638161fe8afd276dd | 86e85c922fa1db10ec40ad816f35211335639cfe | /absolute/script/__main__.py | 9e792fa28b039cbb6ebc541fda73c0d2d3656269 | [] | no_license | niconico25/import | c873c7da812d277b90d582ecd59100c4408614fe | 2ddd6881c346161aa72fbfbca3d0da6503b0d246 | refs/heads/master | 2020-04-13T06:57:22.231143 | 2018-12-26T09:20:38 | 2018-12-26T09:20:38 | 163,035,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | # ~/import/absolute/script/__main__.py
import sys
print('---')
print(sys.path[0])
print(__file__)
print(__package__)
print(__name__)
import module_a
import sub_package
| [
"shotaroh19850701@gmail.com"
] | shotaroh19850701@gmail.com |
c8cc54dc0e053b341498757a0bff85b8f3776b48 | 570c5e469188970b1192c03636ac01cc0d2c0a6a | /1327/A.py | 435e6f1233ce996748015e82beca8cae7a0bf2a8 | [] | no_license | koustav-dhar/Competitive-Programming | f08d79d7eeaaa07b7fa1845e1b127e0eba53e37c | e375281861e5a7e1a0faa01296aa5183964ac014 | refs/heads/master | 2022-07-05T11:05:01.951609 | 2020-05-13T21:29:35 | 2020-05-13T21:29:35 | 263,733,180 | 1 | 0 | null | 2020-05-13T21:24:53 | 2020-05-13T20:12:50 | C++ | UTF-8 | Python | false | false | 486 | py | # your code goes here
import math
for _ in range(int(input())):
n,m=map(int,input().split())
if n%2==0:
if m%2==0:
if m<=((int)(math.sqrt(n))):
print("YES")
else:
print("NO")
else:
print("NO")
else:
if m... | [
"noreply@github.com"
] | koustav-dhar.noreply@github.com |
217db26224589a242aa1990575abacb18a884ee4 | 4a3fa55358b9d70ffad6f2f7d152a2a6258adf41 | /kutil.py | 51fb8a6aa13b9ce7c45bed42ac61ab100b27f7e2 | [] | no_license | SooRyu7/git_test | 6f9c8cfe55dae6f52f8a6fac194940e2d7676809 | 3ba055ee0139eea8e3ccd4258710522b2008a086 | refs/heads/master | 2023-04-12T15:38:55.284581 | 2021-05-21T06:52:23 | 2021-05-21T06:52:23 | 369,440,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | import random
def nrandom(start, end, n , duplicated = False):
'''
start와 end 사이의 정수 난수를 n개 생성해 반환
인자
start:시작 정수
end:마지막 정수
n: 난수 개수
duplicated: 중복 허용 여부 , 기본은 중요하지 않음 true면 중복허용
'''
lst = [] #반환할 난수 리스트
if duplicated:
for _ in range(n):
lst.append(random.randint(s... | [
"80309470+SooRyu7@users.noreply.github.com"
] | 80309470+SooRyu7@users.noreply.github.com |
d6d90fa95dbb4368d84692d2aefe55f2d253c92d | 9c5a76d423a79a9b926199099dfe2b676364ee7e | /get_features_for_sheet.py | 94ef230bb7677a45bedae964394597b3f5486286 | [] | no_license | Gin93/excel_data_extraction_max_entropy | a9cff992ea552c02c161f4bed0f25f854cccd83f | 2dd68e7c5127d0644c2eed8353dacc4bb11a8f89 | refs/heads/master | 2021-09-01T18:40:57.769238 | 2017-12-20T03:30:11 | 2017-12-20T03:30:11 | 114,588,698 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,298 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 13 16:43:04 2017
@author: cisdi
"""
import xlrd
import string
import pandas as pd
import csv
import os
import random
class Sheet:
def __init__(self, file_path):
try:
self.sheet = xlrd.open_workbook(file_path, formatt... | [
"noreply@github.com"
] | Gin93.noreply@github.com |
20e666c46149cfd35b42bf3ec8f0e913d5cc848c | e10cec4cc5d45a69c4f2eaa3d85565553458bcbe | /emptyeffi/tracker_resolution_plots_28.8196160799.py | 37b5cf3a0b9dd0eee96c8d1600913a348b700cfa | [] | no_license | jnugent42/mcsframework | 7f3ba2c11b96175d014e53f61bea292a5e0e3b03 | 2c75f6e071229ab0585cf8d594fa26d7b5794388 | refs/heads/master | 2022-04-28T07:34:32.076223 | 2022-04-07T16:14:17 | 2022-04-07T16:14:17 | 91,683,266 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 76,003 | py | #!/usr/bin/env python
# This file is part of MAUS: http://micewww.pp.rl.ac.uk/projects/maus
#
# MAUS is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any l... | [
"john.nugent@glasgow.ac.uk"
] | john.nugent@glasgow.ac.uk |
b4f2d03ca0e8a1c1d98f717ae376a1a058ea197c | 0ce6774ce9ac8c05bd3a07e34244afb67cf1967b | /scripts/dict_chars_ponykapi/chars.py | c445366447715270f4056f86c835c7c7d9c22ec9 | [
"WTFPL"
] | permissive | Shadybloom/amber-in-the-dark | ecb38b6883f167569239410117f6c1fc4eea80b3 | 35925fd31ad749d37542372986e9a140b453d8aa | refs/heads/master | 2022-11-25T22:24:34.545442 | 2022-11-03T01:12:49 | 2022-11-03T01:12:49 | 96,470,745 | 0 | 2 | WTFPL | 2018-06-28T10:39:56 | 2017-07-06T20:48:02 | Python | UTF-8 | Python | false | false | 15,295 | py | # Карточки персонажей в стиле Fallout 2.
##----
# Герои
metadict_army['Персонажи'] = {
'Джина':1,
'Квинта':1,
}
metadict_army['Джина'] = {
# Джина-алугви
'Trait (Jinxed)':1,
'Trait (Small Frame)':1,
'Джина (параметры)':1,
'Джина (жизнь в Кладже)':1,
... | [
"celestia@safe-mail.net"
] | celestia@safe-mail.net |
5006a9e571a17c043f30217b05bb0a9f2eff2cd5 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/INTERVIEW-PREP-COMPLETE/Leetcode/189.py | 82da4095255e1cbfd69a405b3eb408b4b5321f61 | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 361 | py | class Solution:
def rotate(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: void Do not return anything, modify nums in-place instead.
"""
if not nums:
return
n = len(nums)
k = k % n
nums[:] = nums[-k:] + nums[:-k]
... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
610ee9aef21da8a8601ead05f788e0a1a93d62da | 57d2af4d831f396959950fb1251a1d6d443abdce | /pywxgrideditmixin.py | 5bacabd38e876ef41a118a9ce465d32fbf74e444 | [
"Apache-2.0"
] | permissive | MA0R/Swerlein-Algorithm | b9e8227bb9075a7cc84bb628fffb356f490a8c82 | 7c642ef137e772ac74b94cd1f23059ea5b132c12 | refs/heads/master | 2021-01-19T13:41:50.024494 | 2017-05-10T21:36:19 | 2017-05-10T21:36:19 | 88,101,478 | 1 | 1 | null | 2017-09-23T10:30:55 | 2017-04-12T22:24:43 | Python | UTF-8 | Python | false | false | 10,892 | py | import wx
import wx.grid
"""
Mixin for wx.grid to implement cut/copy/paste and undo/redo.
Handlers are in the method Key below. Other handlers (e.g., menu, toolbar) should call the functions in OnMixinKeypress.
https://github.com/wleepang/MMFitter/blob/master/pywxgrideditmixin.py
"""
class PyWXGridEditMixin():
... | [
"noreply@github.com"
] | MA0R.noreply@github.com |
4d6fdaef6df0a43f5897937e3ed223e6025aadcf | f58833787321241a23c2ca7a067000af46d55363 | /.local/bin/launch_instance | 7c7dbe8049852865f0124f34fc50f63e22df7a30 | [] | no_license | shwetaguj/assignment_emp | 2216b1ed0dc0ffb3e3b6d80459be04a20ea32805 | 476c838f1561f5a02c6605e085227ec3b94b342c | refs/heads/master | 2021-05-25T20:20:02.326178 | 2020-04-07T20:29:08 | 2020-04-07T20:29:08 | 253,904,314 | 0 | 1 | null | 2020-07-26T02:10:47 | 2020-04-07T20:27:24 | Python | UTF-8 | Python | false | false | 10,602 | #!/usr/bin/python
# Copyright (c) 2009 Chris Moyer http://coredumped.org/
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to u... | [
"shwetaguj1989@gmail.com"
] | shwetaguj1989@gmail.com | |
1ce7dea0fd7552ceedae5741ff1131aac9e99da4 | 6cb05a891514514ce94d80992c8eb2e80176c3b9 | /aiohue/lights.py | 37c5c26fc659fc21c3e49c2c39e86e0dd1816355 | [] | no_license | kampfschlaefer/aiohue | 0b96310146afb5062678398355887dbbfc1cfd09 | d6326466d3dc4d093c81ee3b4c66b5570c03785f | refs/heads/master | 2020-03-07T15:57:08.509052 | 2018-03-26T20:43:06 | 2018-03-26T20:43:06 | 127,568,759 | 0 | 0 | null | 2018-03-31T20:29:08 | 2018-03-31T20:29:08 | null | UTF-8 | Python | false | false | 1,773 | py | from .api import APIItems
class Lights(APIItems):
"""Represents Hue Lights.
https://developers.meethue.com/documentation/lights-api
"""
def __init__(self, raw, request):
super().__init__(raw, request, 'lights', Light)
class Light:
"""Represents a Hue light."""
def __init__(self, id... | [
"paulus@paulusschoutsen.nl"
] | paulus@paulusschoutsen.nl |
c59b42d597c1e95f261ae28f9ba59ed424761e4e | 7673794038fc0d12588c45ebb8922ab00871949b | /ichnaea/api/locate/tests/conftest.py | 6ff80a2b369e413c4e12b9bc3eb0aa7c04de418a | [
"Apache-2.0"
] | permissive | BBOXX/ichnaea | a7fb816f5eca6f07391a487ead59a4d4b12585f1 | 15362d5b4d2a45d28cdf4864a89c9d3fa62b8c28 | refs/heads/bboxx | 2021-09-13T19:16:29.303460 | 2018-05-03T10:52:34 | 2018-05-03T10:52:34 | 103,156,005 | 1 | 1 | Apache-2.0 | 2018-05-03T11:08:35 | 2017-09-11T15:50:23 | JavaScript | UTF-8 | Python | false | false | 1,493 | py | import pytest
from ichnaea.api.locate.tests.base import DummyModel
@pytest.fixture(scope='class')
def cls_source(request, data_queues, geoip_db, http_session,
raven_client, redis_client, stats_client):
source = request.cls.Source(
geoip_db=geoip_db,
raven_client=raven_client,
... | [
"hanno@hannosch.eu"
] | hanno@hannosch.eu |
3246b5ca210e7f3305d2f91f378ef2974217d3fb | 65fdf5839d7b017930f223819bbafccc742fe066 | /human_detection_z5221116/human_detectors.py | 5d178f4f5b79d73100591cbb261765983f6b1087 | [] | no_license | denzilsaldanha/comp9517 | f5a366da8a41eecbb1eb2aa11451fa9695276137 | bce350fb438d9f3154570155cd1c2aea61a9e784 | refs/heads/master | 2022-04-27T10:38:43.752791 | 2020-04-24T14:04:04 | 2020-04-24T14:04:04 | 254,309,655 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,201 | py | import numpy as np
import cv2
class Human_Detectors(object):
# Class to detect objects in a frame
def __init__(self):
self.sub = cv2.createBackgroundSubtractorMOG2()
def Detect(self, frame):
"""
Detects objects in the single video frame with the following steps:
... | [
"noreply@github.com"
] | denzilsaldanha.noreply@github.com |
e206ea87f9a2bf71479d06b81a9cc8424ea22e8c | 3c76e51f90e8875f823fda2795b9041465d3afd6 | /Douglas_Peucker.py | e56cdeafe16c7a33327cf8ccee3bb58dc95c14fb | [] | no_license | hansintheair/Douglas_Peucker_Geoprocessing | 087c6d37e5b88f8a1fef20c59ed16969b2805bae | 40e21d7a8ca8e60d3573850d80cd631e8586165c | refs/heads/master | 2020-05-01T12:15:46.288607 | 2019-03-28T00:11:31 | 2019-03-28T00:11:31 | 177,461,800 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,364 | py |
# --Douglas-Peucker Algorithm--
#
# Program by: Hannes Ziegler
# Date: 12/1/2013 (updated 3/24/2019)
#
# --Description--
# The Douglas-Puecker algorithm takes as input a set of
# x and y coordinates and reduces the number of vertices
# within the given set of points.
#
#----------------------------------------... | [
"hannesz1@gmail.com"
] | hannesz1@gmail.com |
8187122813a07a9a2b003bec6922431e0665d295 | cc687705b763653a325347315739536ff5fc348a | /day06/day06.py | 4d3d8798062d05b061adbc7957c2ecd6a4008c8a | [] | no_license | t-ah/adventofcode-2016 | 0220a2a5f847a756d6816c790aa13e343fc24cc8 | 3c860f23cc36a47b0d9b97f504524bc6d99be954 | refs/heads/master | 2021-04-26T23:34:59.445632 | 2016-12-25T08:15:02 | 2016-12-25T08:15:02 | 123,824,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | #!/usr/bin/env python
from collections import Counter
counters = []
for i in range(8):
counters.append(Counter())
with open("input.txt", "r") as f:
for line in f:
for i in range(8):
counters[i][line[i]] += 1
result, result2 = "", ""
for i in range(8):
result += counters[i].most_common... | [
"ta10@tu-clausthal.de"
] | ta10@tu-clausthal.de |
2acf11f1e923f7d443ab75e7ae81e857adcfdd51 | 6c35789131e3f934538f4a65970fd8668ca64bc7 | /app/seeds/users.py | 00492a70ed7ede2d693f9181537951fe47e57237 | [] | no_license | AmberJolieH/CollabHERative-React-Flask-Python-Web-App | 368552f1387d822b9ecd79af9b9e30b54319c9bd | 8ba5ab13f217dfe59ab38d2618b674c229ed1dc6 | refs/heads/main | 2023-04-06T13:27:58.121287 | 2021-04-22T01:15:28 | 2021-04-22T01:15:28 | 343,210,035 | 10 | 0 | null | 2021-04-19T21:03:52 | 2021-02-28T20:41:38 | Python | UTF-8 | Python | false | false | 3,364 | py | from werkzeug.security import generate_password_hash
from app.models import db, User
# Adds a demo user, you can add other users here if you want
def seed_users():
demo = User(username='Demo', email='demo@aa.io',
password='password', firstname="Demo", lastname="User",
techcategor... | [
"amberjolieh@gmail.com"
] | amberjolieh@gmail.com |
e7ef8060788cf4a52389f687dd1b722418b978b0 | 96d53a5a1264487e51a5271298115c2d810298b2 | /url_open_sssss.py | 0285e7d472c924fff21a300d3ef38938c81b6116 | [] | no_license | wangyeon-Lee/Yeon | 2bac1db96762b6e249d30e694b96aa9aa4d73956 | 4a83bed3d2eb6aa762a1d6b351f119b50d64b7b6 | refs/heads/master | 2020-09-23T00:26:17.112200 | 2019-12-23T09:12:41 | 2019-12-23T09:12:41 | 225,353,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | import requests
from bs4 import BeautifulSoup
url = "https://bp.eosgo.io/"
result = requests.get(url =url)
bs_obj = BeautifulSoup(result.content, "html.parser")
lf_items = bs_obj.findAll("div", {"class":"lf-item"})
print(lf_items)
hrefs = [div.find("a")['href'] for div in lf_items]
print(len(hrefs[0:5])... | [
"noreply@github.com"
] | wangyeon-Lee.noreply@github.com |
fa50e89a704e23243f033a882d261bf04cd5a1f2 | cbfc607f93a3e17762ef0bf861d83a1805d7f234 | /tambahan/config/docs.py | 79e611b7bd9df370a1fc8395f735039ee81040d7 | [
"MIT"
] | permissive | zeta17/tambahan | ce5c0ff1b04d471209372c6addc3f136791edac0 | d7b0378f78a889544830e350f3b06f93afea0b4f | refs/heads/master | 2021-01-10T01:46:17.710544 | 2017-11-18T06:38:02 | 2017-11-18T06:38:02 | 53,401,529 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | """
Configuration for docs
"""
# source_link = "https://github.com/[org_name]/tambahan"
# docs_base_url = "https://[org_name].github.io/tambahan"
# headline = "App that does everything"
# sub_heading = "Yes, you got that right the first time, everything"
def get_context(context):
context.brand_html = "Tambahan"
| [
"hendrik.zeta@gmail.com"
] | hendrik.zeta@gmail.com |
9c1824153db15e45e28d51dd4e53c8e05177ac26 | ebbc2ebe88e90c212e21819a966218fab48a2c5e | /simple_lr.py | 7bd3a1c9e727ad70a498e353245323a5c2bdf6f8 | [] | no_license | kushal-07/DS281220-ML | 75bc2b78466b592058a70e474ef002438c918d97 | 842dd86f0363ee2bb149ca7ce80294329f2d73cb | refs/heads/main | 2023-07-03T14:53:55.519038 | 2021-08-08T14:54:30 | 2021-08-08T14:54:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 23 20:04:55 2021
@author: RISHBANS
"""
import pandas as pd
dataset = pd.read_csv("Company_Profit.csv")
X = dataset.iloc[:, :-1].values
y = dataset.iloc[:, 1].values
from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = train_test_spli... | [
"rishibansal02@gmail.com"
] | rishibansal02@gmail.com |
bfd6412dc1be79d80a09398afbb60d97a7e669a7 | 73ea8e2cb158cb363acad15ae5d410760c6c0970 | /rc4_debug.py | 826c52a3a82ea954bb2464c0d70ac8f8886615c2 | [] | no_license | bytemare/wep_rc4_chop_chop | 5d6edd65302e40de8bd1d89ef839cbaec44f3ae1 | eaf4439305a77ad391415e30e8240f3a97504fba | refs/heads/master | 2021-05-11T00:14:52.822118 | 2019-01-14T23:43:59 | 2019-01-14T23:43:59 | 118,300,436 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,663 | py | import sys
from os import urandom
from sys import version_info
from bitstring import Bits, BitArray
fun_name = sys._getframe().f_code.co_name
if version_info[0] < 3:
raise Exception("Python 3 or a more recent version is required.")
class Frame:
def __init__(self, iv, crc, payload):
self.iv = iv
... | [
"daniel@bourdrez.fr"
] | daniel@bourdrez.fr |
f41057ef9b525c5494e975869cc5f9d1b52837ae | 4329df9aa5306d83cd74e4923cc2dfca1f06f2f0 | /src/mountaincar/train.py | 3b0d1b430464c57571f81b8a342e5cc0eed3abc4 | [] | no_license | erzhu419/Transfer-Learning-for-RL | 01d410a94f930eec68ee445c2a6c7da782b40f0c | de6649db6f6d13ec9463a1f7780deaf24bd8bc47 | refs/heads/master | 2022-03-14T16:48:45.051816 | 2019-11-26T18:45:12 | 2019-11-26T18:45:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,892 | py | """
DQN in PyTorch
"""
import os
import cv2
import torch
import torch.nn as nn
import numpy as np
import datetime
import random
from collections import namedtuple
from collections import deque
from typing import List, Tuple
import matplotlib.pyplot as plt
from tensorboardX import SummaryWriter
import gym
from gym imp... | [
"siddharthnayak98@gmail.com"
] | siddharthnayak98@gmail.com |
281b5ead6e1f177a9c3115e9da75be8f64bd2d08 | fa91c2e77648a84b15b1bc741dcfc2c243cc5c21 | /LostAndFound/forms.py | a7d363eacfc00011ec63e47e341e2eb011e41a97 | [] | no_license | kmu-fringles/zisae-project | 015867fc521f4b9e7af64634f3f13d9dac06ce36 | 9b3a3825683220b72c41935754f895bfc9345b8d | refs/heads/master | 2020-06-17T00:29:57.748391 | 2019-07-20T06:54:28 | 2019-07-20T06:54:28 | 195,743,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | from .models import LostAndFound, Comment
from django import forms
class CommentForm(forms.ModelForm):
#text = forms.TextInput(label = '댓글')
class Meta:
model = Comment
fields = ['comment_writer', 'comment_text'] | [
"gus7Wn@gmail.com"
] | gus7Wn@gmail.com |
0aef00a48547dbd3801bb30ce5a3d51f492ebac1 | 7c996d94d5f7cbd6a94bf103579cc50d811adc93 | /migrations/versions/cdf84c62b8b6_.py | 8e0322584d15e2568a7a5c1a8c009956efdef89f | [] | no_license | cfurukawa6/core | ca0a1d9b1d582bc7a642518f41c3ac071ce5cf71 | 8dafe2d14e0823cddb15aa11cf0a56967cc23126 | refs/heads/master | 2020-07-28T09:23:35.064693 | 2019-09-13T06:27:27 | 2019-09-13T06:27:27 | 173,833,913 | 0 | 0 | null | 2019-03-04T22:48:14 | 2019-03-04T22:48:14 | null | UTF-8 | Python | false | false | 1,434 | py | """empty message
Revision ID: cdf84c62b8b6
Revises:
Create Date: 2019-04-17 02:42:36.886679
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'cdf84c62b8b6'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"langbuana.yuka@hotmail.com"
] | langbuana.yuka@hotmail.com |
07e06ed4f9d0da01270e8ac320fa79d404150d1a | 57008b377d6c926123b22bc7c530576e794c64f0 | /htmap/_startup.py | 4326d074f8d9d0454d134bedabc1162665023009 | [
"Apache-2.0"
] | permissive | ChristinaLK/htmap | 75ec276a9e18d08ad61f5e93b45082fce9bdc003 | fdc4c0a09418b976c9e66f781a76f8f18f9aa1a0 | refs/heads/master | 2020-07-01T22:36:57.012816 | 2019-08-01T00:11:29 | 2019-08-01T00:11:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | import os
import logging
from logging import handlers
from pathlib import Path
from . import settings, names
logger = logging.getLogger('htmap')
LOGS_DIR_PATH = Path(settings['HTMAP_DIR']) / names.LOGS_DIR
def setup_internal_file_logger():
LOGS_DIR_PATH.mkdir(parents = True, exist_ok = True)
LOG_FILE = LOG... | [
"noreply@github.com"
] | ChristinaLK.noreply@github.com |
181479fad7eed6028469449cf9d77b1e5ce1468f | 8e689176bba5607dabaeef57ad312661220e5f14 | /Python/pyrenn/SavedNN/example_all_run.py | ffeb7f599990cb0d5df94e34757e29bcd81ff56b | [] | no_license | arnoplaetinck/Masterproef | bc53c10cf427fd917ee703226d26a2cfeda0c9eb | f0be6811d1318409c3257d10b402f331e3b3be59 | refs/heads/master | 2020-07-18T22:03:29.491467 | 2020-05-01T13:27:41 | 2020-05-01T13:27:41 | 206,317,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,203 | py | from __future__ import absolute_import, division, print_function, unicode_literals
from numpy import genfromtxt
import pyrenn as prn
import csv
import time
from statistics import mean
import psutil
import functools
import pandas as pd
import numpy as np
import tensorflow as tf
import os
from tensorflow import keras
co... | [
"arno.plaetinck@hotmail.com"
] | arno.plaetinck@hotmail.com |
0f486160c87953554de09581004fbb09a73078c1 | 141346be61f39c2b7a1645cdec278f23b7137b9f | /src/stand_alone.py | 2efd9e9d1dff4d985dca17a504b1293c2bf9ffd6 | [] | no_license | drimyus/facs_with_eeg_python | 443bbcd0922e5cc8ea92bf6ec17e404bf484a71a | c9b4bc7ebcca363a8ee73a3117b3469bb7252f6a | refs/heads/master | 2021-08-30T12:23:44.056485 | 2017-12-16T05:55:57 | 2017-12-16T05:55:57 | 113,594,180 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,348 | py | from sklearn.svm import SVC
from sklearn.externals import joblib
import numpy as np
import tkinter
import tkinter.filedialog
import dlib
import cv2
import sys
import os
import random
from PIL import Image, ExifTags
from src.face import Face
FACE_DATASET = "crop"
TRAIN_DATASET = "train"
TEST_DATASET = "test"
class ... | [
"dreamyouth@engineer.com"
] | dreamyouth@engineer.com |
2f2600b2bb687234a23788b3695b66ef8445a9fd | 1ce2cd99bee3c5abf9c51138684efb73762174a5 | /python/examples/example_grid_layout.py | 6d726be732359f6a16e34851ad6aa3d1f545c6b2 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | BrainCOGS/neuroglancer | 2c27d500c9cddec1472c7de760946067b791baa1 | b0db084a167e60009ed8ae1ec787557a4b1ae626 | refs/heads/master | 2023-08-30T10:13:37.495165 | 2021-05-18T15:26:15 | 2021-05-18T15:26:15 | 290,582,565 | 2 | 1 | Apache-2.0 | 2020-08-26T19:08:45 | 2020-08-26T19:08:44 | null | UTF-8 | Python | false | false | 943 | py | from __future__ import print_function
import webbrowser
import neuroglancer
viewer = neuroglancer.Viewer()
with viewer.txn() as s:
s.layers['image'] = neuroglancer.ImageLayer(
source='precomputed://gs://neuroglancer-public-data/flyem_fib-25/image',
)
s.layers['ground_truth'] = neuroglancer.Segme... | [
"jbms@google.com"
] | jbms@google.com |
ed50f20c4a664cdb4ac6f1c80a23dbc3833ed00e | 15d015714f73ce97ba2ffe84924b94fcd3af7890 | /Atividade-27.03.2020/mqtt2.py | c2665a7f1860a203d4d8cc193ab8b192087f1cb7 | [] | no_license | MGStigger/PI_V | 90ee2efc7b8476801bcb5c42849f1f5c4fc65840 | fd96d62501dc6abb8bc68bd197ab47b29bb627d6 | refs/heads/master | 2021-05-21T22:57:27.103338 | 2020-07-08T06:10:55 | 2020-07-08T06:10:55 | 252,844,586 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | # Ensures paho is in PYTHONPATH
import context
# Importa o publish do paho-mqtt
import paho.mqtt.publish as publish
# Publica
publish.single("mgstigger", "Olá Mundo!", hostname="mqtt.eclipse.org")
| [
"noreply@github.com"
] | MGStigger.noreply@github.com |
56e7149515588bdc3a1f36861b7a5690a7c1b104 | dd116fe1e94191749ab7a9b00be25bfd88641d82 | /cairis/cairis/ExceptionListCtrl.py | 70ab9eaa008416236f63a7f1c15b501471b4ec42 | [
"Apache-2.0"
] | permissive | RobinQuetin/CAIRIS-web | fbad99327707ea3b995bdfb4841a83695989e011 | 4a6822db654fecb05a09689c8ba59a4b1255c0fc | HEAD | 2018-12-28T10:53:00.595152 | 2015-06-20T16:53:39 | 2015-06-20T16:53:39 | 33,935,403 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,415 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may... | [
"shamal.faily@googlemail.com"
] | shamal.faily@googlemail.com |
b9fcca818f418d7a6017eb3122da668dc4416005 | f85f09e2b1971d60a9d5ca4063fc99a41702d5b9 | /summarypython/summarypython/urls.py | cc646bf193dd5e2c9dc1ac69435e35de7ea76c0e | [] | no_license | architsehgal019/Multimode-Summarized-Text-to-Speech-Conversion | 9f47dbea1caa8137c45afafaba3bc9fc5361e9e8 | 858b589cefe33db6daf677f8e259288e090aa56e | refs/heads/master | 2020-12-19T06:10:22.246185 | 2020-01-22T19:17:38 | 2020-01-22T19:17:38 | 235,640,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | """summarypython 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... | [
"archit_150@yahoo.co.in"
] | archit_150@yahoo.co.in |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.