blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
⌀
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
5377baedb9cea908ee013e6259b08d6b0666cc97
3d966a940bcf64de5fcaf11b899419ab7b544d37
/sel_by_id.py
c4fefa9514816519e9d9aca7dfa41cb2465053b6
[]
no_license
ghywaity/selenium3
88577b23f41689e54cefc6bbc42563e49c5c90a2
dce4dfcaf78fbcbde3030bfc5e215a47eec15a3d
refs/heads/master
2020-03-26T18:32:22.315600
2018-08-18T12:27:01
2018-08-18T12:27:01
145,218,133
0
0
null
null
null
null
UTF-8
Python
false
false
171
py
# coding=utf-8 from selenium import webdriver driver = webdriver.Firefox() driver.get("https://www.baidu.com/") driver.find_element_by_id('kw').send_keys(u"中国你好")
[ "605896609@qq.com" ]
605896609@qq.com
87b3c9e11b14cb7d689ba36d1587e35e28f58976
c97b9ae1bf06757ba61f90905e4d9b9dd6498700
/venv/Lib/site-packages/skimage/draw/draw_nd.py
03c268fb11faaef98beb8414071d9f7ed38a343a
[]
no_license
Rahulk1p/image-processor
f7ceee2e3f66d10b2889b937cdfd66a118df8b5d
385f172f7444bdbf361901108552a54979318a2d
refs/heads/main
2023-03-27T10:09:46.080935
2021-03-16T13:04:02
2021-03-16T13:04:02
348,115,443
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:c5e7f1c5ad5f275def9df43f330f4af4782e674274fb765bbb93af0c05902092 size 3841
[ "rksc.k1p@gmail.com" ]
rksc.k1p@gmail.com
ea8002c7df09e620bcf2f15740bfc4e9bd72a65b
9012fd7d5f8a5ec099c6ff52250d3780460e6f81
/hittalaget/teams/views.py
a432f0075d6bb346e39ab2f8640ef57bc3d59583
[]
no_license
joakimekman/hittalaget
dee45ab3f73259ca90abd3699da4468e39ed51e7
e85b251f04a1b3c0b722c79eed7706803e5c461a
refs/heads/master
2022-12-15T02:50:42.744713
2020-02-15T16:02:10
2020-02-15T16:02:10
160,588,463
0
0
null
null
null
null
UTF-8
Python
false
false
6,009
py
from django.contrib.auth.views import redirect_to_login from django.contrib import messages from django.http import HttpResponseRedirect, Http404, HttpResponse from django.shortcuts import render, redirect, get_object_or_404 from django.urls import reverse from django.views.generic import ( CreateView, DeleteVi...
[ "joakimekman91@gmail.com" ]
joakimekman91@gmail.com
2333844b5a3eb4be4b91edfde561bc0886a58b77
435b4e73d324977e574c93e48382975452c8cd42
/test.py
94fd985e0a9924e0cc0072ca3f0655e644b2ad75
[]
no_license
Arijit82/myTestRepo
4f3d73317de2d2e83f2101add6909799902b607d
ca0cee4368dd2e8b5b7868816287f015eeb4fb7a
refs/heads/master
2020-03-18T04:38:10.860279
2018-06-22T11:34:30
2018-06-22T11:34:30
134,297,818
0
1
null
null
null
null
UTF-8
Python
false
false
4,748
py
import requests from jira.client import JIRA from jira.resources import Issue from flask import Flask, request, session import os from flask import jsonify from flask_cors import CORS from pymongo import MongoClient from datetime import datetime from mongo import chk2 app = Flask(__name__) app.secret_key = os.urandom(...
[ "c-arijit.chandra@timesinternet.in" ]
c-arijit.chandra@timesinternet.in
c015abc83aad9d4d4eb62342b203ad222667c74b
24684138f7a74672e084511e2f0202680b318112
/lib/nmdc_metaassembly/nmdc_metaassemblyImpl.py
e0e0904a89147ec217adef5203a3d73a74881dd3
[ "MIT" ]
permissive
microbiomedata/nmdc_kbase_metaassembly
531abc003bace8ead6334966f90a8e925bd583ca
2cb091007e556933e90c7c342a3e800d931e15ca
refs/heads/master
2023-03-16T06:16:24.445768
2021-03-05T16:56:48
2021-03-05T16:56:48
341,439,883
0
2
MIT
2021-02-24T18:53:34
2021-02-23T05:31:18
Python
UTF-8
Python
false
false
2,579
py
# -*- coding: utf-8 -*- #BEGIN_HEADER import logging import os from installed_clients.KBaseReportClient import KBaseReport from nmdc_metaassembly.assemble import nmdc_mg_assembly #END_HEADER class nmdc_metaassembly: ''' Module Name: nmdc_metaassembly Module Description: A KBase module: nmdc_met...
[ "scanon@lbl.gov" ]
scanon@lbl.gov
2d0d254d2e50261d7ce3da281976d922d1abc99e
82a1da2174d132d6ed2046f3235ef12d64e47df4
/classes/ex2.py
7032b95459bee924816e5e258d99e238014e7d33
[]
no_license
cryptoads/classpractice
4c0b13a9eb41a72d9be672e4b3a0e68f82dead37
2bb437901f5e216a34dbbf62dfe82e5d8faecd27
refs/heads/master
2021-04-06T08:31:57.279785
2018-03-11T04:23:50
2018-03-11T04:23:50
124,678,741
0
0
null
null
null
null
UTF-8
Python
false
false
301
py
class Vehicle(object): def __init__(self, make, model, year): self.make = make self.model = model self.year = year def print_info(self): print self.make print self.model print self.year car = Vehicle('Nissan', 'Leaf', 2015) car.print_info()
[ "chrisjohnmichels@gmail.com" ]
chrisjohnmichels@gmail.com
76a4f3ed1ee8fcfc18ee01fb522ea34a61d27c5f
71e5febd44b20b4c71a335b35aaf85df4a4fee99
/generate.py
7cd01a26fc1aa60edf2bbab053ee70c0a903a2aa
[]
no_license
gromande/gartner-magic-quadrant
ee2ca6e29ea00cd130849be7486cdda739b37fe3
48474f513d27c4a2f50f3f2281199523f304bab1
refs/heads/master
2020-03-06T20:44:57.977210
2018-03-30T21:53:52
2018-03-30T21:53:52
127,061,224
0
0
null
null
null
null
UTF-8
Python
false
false
1,159
py
from urllib.request import urlopen from bs4 import BeautifulSoup import json def get_vendors(url): capability_page = urlopen(url) soup = BeautifulSoup(capability_page, 'html.parser') table_of_contents = soup.find('ul', {"class": "noindt"}) for item in table_of_contents.find_all('li'): item_text...
[ "gromande@hawk.iit.edu" ]
gromande@hawk.iit.edu
220d3da93147ba464b5fd1a2eeefdba19a37c65f
26552adb0d8889affd40e009d3c311e41a873e43
/Python_Solutions/9095.py
6b8aaf7f8f39b7b0b8e579984c319a8acee871ab
[]
no_license
Isaac-Lee/BOJ-Algorithm
3b9b64aba9ab3b48d15133cbf5ad122822e441d0
27f0339195c48f416e672390758e85305203b71a
refs/heads/main
2022-06-29T21:36:11.500158
2022-06-25T06:35:05
2022-06-25T06:35:05
203,349,860
4
0
null
null
null
null
UTF-8
Python
false
false
466
py
import sys def make123(n): if memo[n] > 0: return memo[n] if n == 1 or n == 0: memo[n] = 1 return memo[n] memo[n] += make123(n-1) if n-3 >= 0: memo[n] += make123(n-3) if n-2 >= 0: memo[n] += make123(n-2) return memo[n] if __name__ == "__main__": ...
[ "yy0221ss@gmail.com" ]
yy0221ss@gmail.com
b07717ae965c5aa2e55fdbcbf027e893ba95b680
46ae8264edb9098c9875d2a0a508bc071201ec8b
/res/scripts/client/gui/scaleform/daapi/view/battlegas_attack.py
c45a4342116a35a23080122c5c705cc4d96ee7d0
[]
no_license
Difrex/wotsdk
1fc6156e07e3a5302e6f78eafdea9bec4c897cfb
510a34c67b8f4c02168a9830d23f5b00068d155b
refs/heads/master
2021-01-01T19:12:03.592888
2016-10-08T12:06:04
2016-10-08T12:06:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,223
py
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/battle/gas_attack.py from gui.Scaleform.locale.FALLOUT import FALLOUT from gui.battle_control import g_sessionProvider from gui.shared.utils.plugins import IPlugin from gui import makeHtmlString from helpers import i18n class GasAttackPlugin(IPlugin): ...
[ "m4rtijn@gmail.com" ]
m4rtijn@gmail.com
2ccdf2b047d75015b2f32fc2ad1b2b21583d8209
0a6cddc6d05fd72e4ae605594f48ecba06d6ac48
/sctriangulate/colors.py
d2fc6a3d19f759689f33329b28bf8b6544be1d7d
[ "MIT" ]
permissive
alexcwsmith/scTriangulate
464156ced4d9a58407950e301d04e05b166d7ca4
ec014a4c575f4fd3270922ee9197493a6ec0846c
refs/heads/main
2023-08-15T22:47:51.851558
2021-10-18T22:01:26
2021-10-18T22:01:26
418,676,688
1
0
null
null
null
null
UTF-8
Python
false
false
10,475
py
from matplotlib import cm import pandas as pd import numpy as np from matplotlib.colors import LinearSegmentedColormap, to_hex, to_rgb import copy import matplotlib.pyplot as plt import matplotlib as mpl mpl.rcParams['pdf.fonttype'] = 42 mpl.rcParams['ps.fonttype'] = 42 mpl.rcParams['font.family'] = 'Arial' # test_di...
[ "frankli296@yahoo.com" ]
frankli296@yahoo.com
08b0e8fd963c6c43b06c690f5101523720463fa9
7d968fa66a974aef3bf2215b42d6469945e2093a
/mainscript.py
6163070719ac8fc4869ea22b635bf16090779ab2
[]
no_license
lakshmanaram/delta-sysad-task-2
9ba59feacd44d8782b0c6b76fd59299174d9f436
3b4d2f57e73f880a1efb0c69546516813373c925
refs/heads/master
2021-01-10T08:03:25.103369
2015-06-05T03:34:58
2015-06-05T03:34:58
36,909,516
0
1
null
null
null
null
UTF-8
Python
false
false
1,115
py
import sys filepath=sys.argv[1] f = open(filepath+'/script1.py','w') database_name="task2" table_name="time" column_name="time_then" f.write("from pymongo import MongoClient\nclient = MongoClient()\ndb = client."+database_name+"\n") #task2 is the database name f.write("table = db."+table_name+"\n") #time is the table n...
[ "lakshmanaram.n@gmail.com" ]
lakshmanaram.n@gmail.com
51dee616a3eaca46a906e8517cd7b1f6e8dc4d17
61de3b3c4acb24f78e65fa3de6992a2d370c47bf
/ADDevice.py
c1ef74d72b75477db4739d6332c134ba766f3c51
[]
no_license
joshslaton/RFIDpy
a3049eb5b40c97e38affaa6550e6e33a85a78ab0
fb256463e75d7bef8c2585411a46f3c4a90f4496
refs/heads/master
2020-06-18T04:08:03.843015
2019-07-10T16:52:27
2019-07-10T16:52:27
196,158,954
1
0
null
null
null
null
UTF-8
Python
false
false
3,040
py
import os import clr import sys import time import inspect os.system("cls") dir = "C:\\Users\\User\\Desktop\\RFIDpy\\RFIDSoftwareSDK\\dll" dlls = os.listdir("C:\\Users\\User\\Desktop\\RFIDpy\\RFIDSoftwareSDK\\dll") for dll in dlls: if("dll" in dll): clr.AddReference(dir+"\\"+dll) # pr...
[ "alecjoshua.slaton@lorma.edu" ]
alecjoshua.slaton@lorma.edu
4500e1ade3e6b531f0ba47f3ca1579f0729538fc
b731713e1d8083bc89a0ab12fbcb4e1482ce7c89
/run.py
06d1ba0500220f4df7868ce99a266086f96347ca
[]
no_license
perara/sysx-monitor
ee4272ae545c1f75d13397bbb8344a65c70cdd2c
0ed780f340088553a3850ba5378705d1ebe7e07c
refs/heads/master
2021-01-12T16:53:15.035070
2016-10-25T08:18:02
2016-10-25T08:18:02
71,462,736
0
0
null
null
null
null
UTF-8
Python
false
false
1,679
py
import os import json import subprocess import sys import time import socket # timeout in seconds timeout = 1 socket.setdefaulttimeout(timeout) from loaders import load_config try: from urllib.parse import urlparse, urlencode from urllib.request import urlopen, Request from urllib.error import HTTPError e...
[ "perara12@gmail.com" ]
perara12@gmail.com
5072b3970794f75d4fca3eefc693d845e22db03f
fd1ed6e7fdad1bbb2fb8b6df02aed796c336fe1e
/sepal_nbspredict.py
f7f7c32d9a54f64ffc58816c5231dc23d485ad8e
[]
no_license
gauravwt63/Iris-Data-analysis-and-prediction
b033d788f0c4956a5e6a712b4229fb65c999b894
a0101481887bea7c151cbf8dba9c8905bd6a8720
refs/heads/master
2023-06-08T20:05:33.495570
2021-06-22T18:43:37
2021-06-22T18:43:37
379,368,690
0
0
null
null
null
null
UTF-8
Python
false
false
1,256
py
import random import sklearn import numpy as np import matplotlib.pyplot as plt import random def convert_to_float(lst): column=0 while column<4:#2 lst[column]=float(lst[column]) column +=1 return lst def sepal_split_data(split,training_data=[],test_data=[]): for line in open("iris.txt"...
[ "gauravwt63@gmail.com" ]
gauravwt63@gmail.com
bf571be27351992acd02048bfb7db0a2418428e7
f2cff61beb4795c1b39b9d2a8f578a1acfa6e24e
/web/routes.py
2e54f00deb8c29fc69e58eb416e505ec075eb267
[]
no_license
ivanwong-berkeley/w209_dataviz
16603671299117d4ce56dc7939bf4e907dbb3980
2457fb826e3f578487023e2bb48e75fda19239e5
refs/heads/master
2023-03-20T20:19:20.158900
2021-02-11T18:39:39
2021-02-11T18:39:39
336,922,810
1
0
null
2021-03-18T00:37:14
2021-02-08T00:43:02
Jupyter Notebook
UTF-8
Python
false
false
6,276
py
from altair import Chart, X, Y, Axis, Data, DataFormat import pandas as pd import numpy as np from flask import render_template, url_for, flash, redirect, request, make_response, jsonify, abort from web import app from web.utils import utils import json import altair as alt @app.route("/") @app.route("/allcategory") ...
[ "ivanwong@berkeley.edu" ]
ivanwong@berkeley.edu
d9b63bda9224716ff670ca94c387f32ebcfa4a5c
e660268f64816bdf53ebbb4c7fba2339de8e0c11
/plotRoute.py
8db3132b17c19ef3ece02f792ebc57914a066546
[]
no_license
guaguakai/wildlife-trade
c1d4ddd3c14095c2112ff3541fdca103a54a6cb2
df8a61ca2d7d31951369218f56526a1396cf30c5
refs/heads/main
2023-03-26T00:24:37.354513
2021-03-23T16:04:13
2021-03-23T16:04:13
335,851,991
0
0
null
null
null
null
UTF-8
Python
false
false
1,398
py
import pandas as pd import numpy as np import pickle import tqdm import os from os import path from mpl_toolkits.basemap import Basemap import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation from sklearn import linear_model from sklearn.metrics import mean_squared_error, mean_absolute_error, r...
[ "kaiwang@g.harvard.edu" ]
kaiwang@g.harvard.edu
db54551b3aac3b008dc93f22d0b31052c20e14f7
492e966c3cefedaf4f9973cf0ee6bb0615eead01
/daaf/ADB_Action_Scipt.py
b2bb7eaaddaabc403b663ff77c949fbcd6e2768c
[]
no_license
sxwollo/atvAuto
e5679cdd5dc7074d9e2975d6fe594f7dec7149e9
0bd0ca89aef249bec72aea3e65d314232aa27e1a
refs/heads/master
2020-12-10T16:42:34.673803
2019-06-04T21:42:11
2019-06-04T21:42:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,021
py
import subprocess import time class ActionScript: """This is an ADB shell action script framework""" def __init__(self): self.deviceID = "none" @staticmethod def __execute_cmd(adb): """this will send the command to the shell""" try: out = subprocess.check_output(a...
[ "darren.victoriano@gmail.com" ]
darren.victoriano@gmail.com
cb1c30d4f49143a002710b7239b06ef0ab1bc6d4
2c7db8257d9fb47d71065f3bde3c857f339318c7
/091_gl_particle_animation.py
96f28edd82104b29a3975148f2e731b4c50242ef
[]
no_license
jakebolewski/PyOpenCL-Tutorial
417175b12e28b34a3d7de5a25c01325f8163747a
a910d01feee7ff2a354ac04425be44a330a8d27c
refs/heads/master
2021-01-21T07:39:52.901918
2013-10-16T13:24:08
2013-10-16T13:24:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,184
py
# Visualization of particles with gravity import pyopencl as cl # OpenCL - GPU computing interface mf = cl.mem_flags from pyopencl.tools import get_gl_sharing_context_properties from OpenGL.GL import * # OpenGL - GPU rendering interface from OpenGL.GLU import * # OpenGL tools (mipmaps, NURBS, perspective projection, s...
[ "nimajnebs@gmail.com" ]
nimajnebs@gmail.com
3b76907b5c2b47f1b8eaca416b4f95f1e6a7c74d
cdaa13ca7971ba3fa4ef279d181407db1d104677
/674. Longest Continuous Increasing Subsequence.py
d18404c01a98478a7be46eaf1b1b6fd87b269046
[]
no_license
jingweiwu26/Practice_code
e319726c960aea4caf6da16eb47a4ba6ab944207
3bab0224256c206fc459e53384fd3abf4a711fe2
refs/heads/master
2022-01-31T15:13:10.059963
2022-01-27T18:46:37
2022-01-27T18:46:37
81,012,813
0
0
null
null
null
null
UTF-8
Python
false
false
590
py
# -*- coding: utf-8 -*- """ Created on Tue Feb 20 23:11:09 2018 @author: Wu Jingwei """ class Solution(object): def findLengthOfLCIS(self, nums): """ :type nums: List[int] :rtype: int """ if not nums: return 0 size = len(nums) con...
[ "noreply@github.com" ]
noreply@github.com
ca6c8b671ebcdb85b6cbd67e7b3dc8038712bb70
6ff1591d02cd6846c61b6689e9c92ec5c6940e63
/python_crash_course/django_official_tutorial/mysite/urls.py
eabcd9c7eb0e26312228365e4780e379aacb5ce8
[ "Apache-2.0" ]
permissive
FuryBrand/study_notes
c0a6171ff43d25d2c001d9b9b86b6c9d7adbe028
5be75774c0dfcf361720acb70bd8d1511f648733
refs/heads/master
2022-12-07T06:42:49.404223
2020-08-28T03:39:34
2020-08-28T03:39:34
132,152,092
0
0
null
null
null
null
UTF-8
Python
false
false
813
py
"""mysite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
[ "bindthemall@outlook.jp" ]
bindthemall@outlook.jp
c0604ecc3e5fec3aa2883092810bbfee31e16a8e
f50368f3165c182a0adc914dec56f0cc03d9fb5a
/visual_mpc/envs/sawyer_robot/vanilla_sawyer_env.py
dc1c25c0a1aabdcacfee00d56d4d3d2dbb6b5243
[ "MIT" ]
permissive
anestisdotpy/visual_foresight
16ea71f938458a35892c1f557903ed885810dda3
957df706b4c7a11b7a0c9ba2de15853df62cd4ed
refs/heads/master
2020-06-22T05:59:10.578361
2019-07-18T20:23:51
2019-07-18T20:23:51
197,651,312
0
0
null
2019-07-18T20:17:26
2019-07-18T20:17:26
null
UTF-8
Python
false
false
487
py
from .base_sawyer_env import BaseSawyerEnv import copy class VanillaSawyerEnv(BaseSawyerEnv): def __init__(self, env_params, _=None): self._hyper = copy.deepcopy(env_params) BaseSawyerEnv.__init__(self, env_params) self._adim, self._sdim = self._base_adim, self._base_sdim def _next_qp...
[ "sdasari@berkeley.edu" ]
sdasari@berkeley.edu
828a8ba97f1d9fbaddeb6a95c03d6331147ab776
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2494/60586/313709.py
dece5e2fbe54f2c6b73a7876421950dab76b7928
[]
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
102
py
x=input() if x=="[1,3,2,3,1]": print(2) elif x=="[2,4,3,5,1]": print(3) else: print(x)
[ "1069583789@qq.com" ]
1069583789@qq.com
96bf6c453b7bee5a96ed45e0b55bfe804bced19a
82ec03680e74f9bae0246274aa2117f2c33006c5
/Learn the hard way (First 100 pages)/ex12Part2.py
6b9a3eca055b4fde53eb4cd2f26d70dcbbaeb31c
[]
no_license
BugzTheBunny/PythonStudying
e7156679eb08acce7c778661373c643df78f6ac5
745d0e08c2f43906ec8fc12fcb59340f57d65d2b
refs/heads/master
2020-05-29T13:39:58.670692
2019-08-06T08:55:05
2019-08-06T08:55:05
189,170,024
0
0
null
null
null
null
UTF-8
Python
false
false
525
py
from sys import argv #Part 2 of the exercise, making a smaller file #The first argument will be the file name, that is "ex12Part2.py" #meaning that variable a is the name of the script. a,b,c = argv print(f"Calling this script {a}") print(f"Second argument{b}") print(f"Third argument{c}") #argv : to use wh...
[ "noreply@github.com" ]
noreply@github.com
a583b094e10e271c7a87b12272c61dc1263274db
350ade9361645f87d96589a0c90c76d8a951832b
/search.py
103e3e43619fb4d0f0232b3c8f8036cdd866439b
[]
no_license
dongzeyuan/Practise
becf7c7ca15928213aa22ae15bd8b3f1f9b7dc8b
ecef4466d30c5c9e88e766b4f3df6db24959b9d3
refs/heads/master
2021-09-21T02:06:24.629708
2018-08-19T08:50:02
2018-08-19T08:50:02
119,028,934
0
0
null
null
null
null
UTF-8
Python
false
false
3,776
py
import wx class ExamplePanel(wx.Panel): def __init__(self, parent): wx.Panel.__init__(self, parent) # 创建一些sizer mainSizer = wx.BoxSizer(wx.VERTICAL) grid = wx.GridBagSizer(vgap=5, hgap=5) # 虚拟网格sizer,此处指定了行和列之间的间隙 hSizer = wx.BoxSizer(wx.HORIZONTAL) self.quote = ...
[ "dongfujing88@gmail.com" ]
dongfujing88@gmail.com
47aa7a1143dc899b2cb361cfd3a2c6ae4a5ca4db
0ae8d4aa8171d46e3dab71adaa26127c01360b87
/зарплата.py
e71ae2fa37007842dd5dd794928936ab2e769104
[]
no_license
dasherinuk/classwork
f004f7587157171cdb1c65b1eb13a721feb6c00b
8b2efc055409576c59da878d293d8df6fd9ffb8e
refs/heads/master
2023-06-04T16:08:53.299460
2021-06-19T09:18:20
2021-06-19T09:18:20
297,706,987
0
0
null
null
null
null
UTF-8
Python
false
false
115
py
array=[] for i in range(3): pay=int(input("Enter the pay")) array.append(pay) print(max(array)-min(array))
[ "dasherpegusus@gmail.com" ]
dasherpegusus@gmail.com
ba05b3ff6665f5a49ffd9ef1588e549ced68f7f3
d20b9463284a013ff09a53ceec1269f4763f4b8a
/python/EstruturaSequencial/ex01-hello.py
c7137be4f5f4acda9bbfd97f999367b03e46115b
[]
no_license
iptoninho/learnings
0745d2d4a2ac8abd5b1cbe82336b38682e47d909
d676a279a7b2d41c1c5874656ff5b0f9087f13cc
refs/heads/master
2020-12-31T05:57:01.603052
2015-06-24T16:52:43
2015-06-24T16:52:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
18
py
print "Alo mundo"
[ "augustocs.ti@hotmail.com" ]
augustocs.ti@hotmail.com
c98a819a88b0d2d03261337e2aeaf74cf0e57d0b
91fa322253afb01720acda36103abef9f487382c
/take_photo.py
5bc0108dac4cc2bf98db1f7df9dcda77d2803b35
[]
no_license
CherifSy/plant_monitor_rpi
0cfebf7fae08add0d2a0a25e544ec251d38a3d45
9e4600adb6ee4295ee807bc49bb9915bdd9579cc
refs/heads/master
2021-04-27T13:12:18.774785
2018-02-22T01:07:07
2018-02-22T01:07:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
694
py
from datetime import datetime import time import json import requests from configparser import ConfigParser import picamera import os # Read config file config = ConfigParser() config.read('raspberrypi.cfg') mac = config.get('MiFlora', 'mac') url = config.get('Flask', 'url') # Define an image filename with the devic...
[ "salekd@gmail.com" ]
salekd@gmail.com
9ec5e950344c99edf148ff71438bb35e99b3b29f
65329299fca8dcf2e204132624d9b0f8f8f39af7
/napalm_yang/models/openconfig/network_instances/network_instance/policy_forwarding/policies/policy/rules/rule/state/__init__.py
b7f28188826e26155aff4389cbaa827bfc94ebf9
[ "Apache-2.0" ]
permissive
darylturner/napalm-yang
bf30420e22d8926efdc0705165ed0441545cdacf
b14946b884ad2019b896ee151285900c89653f44
refs/heads/master
2021-05-14T12:17:37.424659
2017-11-17T07:32:49
2017-11-17T07:32:49
116,404,171
0
0
null
2018-01-05T16:21:37
2018-01-05T16:21:36
null
UTF-8
Python
false
false
22,120
py
from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from decimal import Decimal from bitarray import bitar...
[ "dbarrosop@dravetech.com" ]
dbarrosop@dravetech.com
db221693696bd678140b5b4dffd264e3e5f29f9b
e3fe6ea7a67f19f35d3edc4e82a900f988a710d1
/ML/regression/optimizer.py
b643b44b5a2f13b5ddebd8f647bb964b5519cff8
[]
no_license
fooSynaptic/NLP_utils
8258b857458d2021b4ead31680b06edaed031fcd
9a02d3caf9f97b1fc777ffeefba87be7a44fe262
refs/heads/master
2022-08-29T03:45:01.977332
2022-07-28T15:09:12
2022-07-28T15:09:12
163,344,219
7
1
null
null
null
null
UTF-8
Python
false
false
4,274
py
# encoding=utf-8 # /usr/bin/python3 import numpy as np """vanilla linear regression with gradient descent""" class linReg(): def __init__(self, num_inputs): self.w = np.random.rand(num_inputs, ) self.b = np.random.rand(1, ) def squared_loss(self, y_hat, y): squared_err = (y_hat - y.r...
[ "hujiaxin@ajmide.com" ]
hujiaxin@ajmide.com
c91098df134dfbb8d069f78c81f47e6095de850a
dca204087704a0652f5678499c2d317515205f27
/RestaurantShare/RestaurantShare/settings.py
48782f5edd9975f15fe6be0f6e9f7a4534df06c9
[]
no_license
rohhj622/djangoProject
8e4bf6cdb9362f55243c3d828acc6943f52df8f7
522086ae0424a0b5306e855495a9fa7a6d8456f5
refs/heads/master
2022-12-05T17:50:39.311192
2020-08-27T08:32:56
2020-08-27T08:32:56
288,628,351
0
0
null
null
null
null
UTF-8
Python
false
false
3,132
py
""" Django settings for RestaurantShare project. Generated by 'django-admin startproject' using Django 3.1. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from p...
[ "rohhj622@gmail.com" ]
rohhj622@gmail.com
97b3d7c56ffefff25e52c5b220c9bff06e6a9046
6f732a5871b21f82437a4569797bd5d93a3db862
/model/predict_mothed.py
0198289480f3ffe3e634111fdbc80416d8a5bc92
[]
no_license
felix-w15/DG_baseline
83d67e077322e3a866ba6c9e691ad04ba51678a8
3bb03997b16727bb17b3737f03a06c42f8a8b5f9
refs/heads/master
2021-09-21T15:27:22.384985
2018-08-23T03:19:58
2018-08-23T03:19:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,345
py
import os import pandas as pd import numpy as np from sklearn.svm import SVC from sklearn import naive_bayes from sklearn import tree from sklearn import neighbors from sklearn.neural_network import MLPClassifier import lightgbm as lgb def lgb_predict(train_x,train_y,test_x,test_y=None): train_x = train...
[ "fox@LAPTOP-GAP01VM5.localdomain" ]
fox@LAPTOP-GAP01VM5.localdomain
970d1f55ec7af00a76cc77d234fbbdb727238328
43ae032297b492fbdf2df478588d2367f59d0b6b
/4 - Classes-inheritance-oops/8-classes-inheritance-multiple-classes.py
14e655efe6e7abee7b0671b4f7bac92126fa490d
[]
no_license
thippeswamydm/python
59fa4dbb2899894de5481cb1dd4716040733c378
db03b49eb531e75b9f738cf77399a9813d16166b
refs/heads/master
2020-07-05T06:57:18.575099
2019-10-23T04:30:27
2019-10-23T04:30:27
202,562,414
1
0
null
null
null
null
UTF-8
Python
false
false
788
py
# Describes multiple inheritance of class from multiple classes # Declaration of first parent class Parent: # Will not be accessible in the child class __test = None def __init__(self, val): self.val = val def printValFoo(self): print(self.val) # Will not be accessible in the child ...
[ "ganeshsurfs@gmail.com" ]
ganeshsurfs@gmail.com
a0a205c2265e68817a3ba037f48f234ecbd05269
e8944df93cf629a5d7709a66cfaee0521ffa0132
/my_test.py
936db815b4fd224b536534b8330e75e9fae27130
[]
no_license
jackform/meiliyuyin
e7e689e2b5a6622f7af4e11b1dbacaf16495765f
dce535e41be71b9428fe9199545df86793cccf25
refs/heads/master
2021-08-11T09:27:39.783887
2017-11-13T13:46:38
2017-11-13T13:46:38
110,552,913
1
0
null
2017-11-13T13:39:47
2017-11-13T13:39:46
null
UTF-8
Python
false
false
7,747
py
import os from glob import glob from six.moves import xrange import numpy as np import scipy.misc import tensorflow as tf from ops import * from model import pix2pix def load_data(image_path, flip=True, is_test=False): img_A, img_B = load_image(image_path) img_A, img_B = preprocess_A_and_B(img_A, img_B, flip...
[ "noreply@github.com" ]
noreply@github.com
810a59c8745f1142c33f1360bf7d197f058d35c5
9a8efb1c1e1834fbf45f639095d662561886738b
/server.py
4782800ab62d193a83dbc2fb4fcb0526e4081c11
[ "BSD-2-Clause" ]
permissive
hinzwifi/cryptohttp
3c35b08d9c42a508c729803d441289efe935ffe1
68c92bba4d772c423bf8bcbda44856d856de0d57
refs/heads/main
2023-07-26T08:16:13.566213
2021-09-05T03:21:26
2021-09-05T03:21:26
403,201,857
0
0
BSD-2-Clause
2021-09-05T02:59:48
2021-09-05T02:59:48
null
UTF-8
Python
false
false
1,748
py
import cryptowatch as cw import threading import time import json class Server: def __init__(self, refresh_rate): self.refresh_rate = refresh_rate with open("coins.json", "r") as f: data = f.read() self.__coins = list(json.loads(data).keys()) self.__coin_names = json.lo...
[ "jakedolan443@protonmail.com" ]
jakedolan443@protonmail.com
cbfee81eaf17c54e61d687aca0e0d7f778ef9ae9
4d0e5e47c6b9644d3b46cc9daead18f8a5378460
/basic_grammar/进程线程/死锁.py
2d98c1d887c0a476add41479ef8aee74f241e1d2
[]
no_license
zhanghao-esrichina/bigdata-project
023fe0890c4291698c4a9139628d7c588343c616
252d085a78012932237a391d5f1cc36f662e7306
refs/heads/main
2023-01-13T01:51:23.610988
2020-11-14T16:09:56
2020-11-14T16:09:56
312,830,681
0
0
null
null
null
null
UTF-8
Python
false
false
1,278
py
''' 死锁 开发过程中使用线程,在线程间共享多个资源的时候,如果两个线程分别占有一部分资源并且同时等待对方的资源,就会造成死锁。 解决: 1.重构代码 2.acquiree加timeout参数解决 ''' import threading import time lockA = threading.Lock() lockB = threading.Lock() class MyThread(threading.Thread): def __init__(self,name): super().__init__() self.name = name def run(self...
[ "767802022@qq.com" ]
767802022@qq.com
a0d2d5cb3cb28d27807be257ca950735329ef822
ff40c52a8147547a978db7956a3e09f8fa02b048
/code/pycharm project/studying/Thread/task_master.py
67e688efeb5a31bbf86d0738fed29a63476a96ab
[ "MIT" ]
permissive
redxyb/python
4350dd44cca1accd7bb71c5f74f7a9431b93bfba
2be230f82b52defc241dbd0ff13755c8c270f374
refs/heads/master
2022-11-21T19:33:13.177569
2020-07-30T10:30:47
2020-07-30T10:30:47
283,739,648
1
0
null
null
null
null
UTF-8
Python
false
false
1,707
py
#可在两台电脑上测试:两台电脑必须连接在同一网络 import random, time, queue from multiprocessing.managers import BaseManager # Queue for send tasks task_queue = queue.Queue() # Queue for accept results result_queue = queue.Queue() # Create a QueueManager herited from BaseManager class QueueManager(BaseManager): pass def gettask(): ...
[ "1085652834@qq.com" ]
1085652834@qq.com
2c99faba11f17dbfc4b8d722d579f3c1eff348e8
a0bae29e00e1c3e12282ef941225d8d4b76ed573
/py/desitarget/sandbox/__init__.py
654f475a5cbf71243e3b064057e5b52f8ffbc232
[ "BSD-3-Clause" ]
permissive
ShaunMCole/desitarget
ea9f73f0c9330abd1a56dd33cd7dd49a683b5d6c
e1bdbbe67ba239e7176d9c0942d58c4bd517bb51
refs/heads/master
2020-07-04T02:26:24.617659
2019-08-13T13:06:51
2019-08-13T13:06:51
202,122,080
0
0
BSD-3-Clause
2019-08-13T10:38:55
2019-08-13T10:38:55
null
UTF-8
Python
false
false
75
py
""" desitarget.sandbox ================== A box in which to put sand. """
[ "baweaver@lbl.gov" ]
baweaver@lbl.gov
8a9bb8495e53836929e9fd749a53a604f9cec9a4
43fac2df4893f5b5448dd64f3c9e59ddebca7efe
/andromap/polytools.py
d8d3e5933a73f9d6a0e4bb11d12400f27bf2b6e7
[ "BSD-3-Clause" ]
permissive
jonathansick/andromap
8a159eb7a85ab5ea7602cdff1755ba411ef38d97
b8905a39e0a45c7d803e45ce9a78c64ecac00bee
refs/heads/master
2021-01-18T23:01:36.996791
2017-01-27T05:32:06
2017-01-27T05:32:06
14,810,726
0
0
null
null
null
null
UTF-8
Python
false
false
849
py
#!/usr/bin/env python # encoding: utf-8 """ Tools for working with polygons through shapely 2013-12-11 - Created by Jonathan Sick """ from shapely.geometry import Polygon, MultiPolygon from shapely.ops import cascaded_union import numpy as np def close_vertices(polygon): """Make the last vertex the same as the ...
[ "jonathansick@mac.com" ]
jonathansick@mac.com
3a2edbe823a9eacb1fb0a386ff55ac1a2d103a78
55647a80c8b412af9df0ba3f50595cc2f29c25e6
/res/scripts/common/Lib/unittest/test/test_result.py
84c64afbe56d6189144f44facf68bad105d3b19e
[]
no_license
cnsuhao/WOT-0.9.17-CT
0035eb6070fb4fab8d8ee9f8bbc676c10d511cfb
d1f932d8cabaf8aa21708622e87f83c8d24d6451
refs/heads/master
2021-06-08T18:11:07.039293
2016-11-19T19:12:37
2016-11-19T19:12:37
null
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
15,163
py
# 2016.11.19 20:01:20 Střední Evropa (běžný čas) # Embedded file name: scripts/common/Lib/unittest/test/test_result.py import sys import textwrap from StringIO import StringIO from test import test_support import traceback import unittest class Test_TestResult(unittest.TestCase): def test_init(self): resu...
[ "info@webium.sk" ]
info@webium.sk
510444215dd8086e154f1a4829ab228d427497ac
1d0d8fbed8be8a4b6000d983437b0826bf03790e
/Salário com Bônus.py
960cccb6c1fcfddbafaaf9e97db9792418c2da17
[]
no_license
luizguilhermedb/UriOnlineJudge-Python
c4ba467e733396fc389a29480063521611531f4e
be1da6724357c145c17ab74bc8302bfb5d52cf65
refs/heads/master
2022-07-30T09:37:20.988197
2020-05-26T15:36:21
2020-05-26T15:36:21
267,087,954
1
0
null
null
null
null
UTF-8
Python
false
false
175
py
nome = str(input()) salario = float(input()) total_vendas = float(input()) total_receber = salario + (total_vendas * 0.15) print("TOTAL = R$ {:0.2f}".format(total_receber))
[ "gui_705@hotmail.com" ]
gui_705@hotmail.com
75eb376bbd1d203139ff9c7b4348b93ff7694de0
35762c0f2dc337f4fa785cb1df16e59ddf516ba5
/5단원/5_3.py
659bd81630b5bf13d94c665be2205ca697343892
[]
no_license
gaebalJJang/Soomin
cd447034cc3b435f86d048d89f3a18fc72c22c06
2d84fbecafbef7494550f502e3dac9690a7d5cb6
refs/heads/main
2023-06-20T00:53:21.676194
2021-07-24T13:58:29
2021-07-24T13:58:29
364,672,394
0
0
null
null
null
null
UTF-8
Python
false
false
741
py
import sys sys.stdin=open("input.txt", "r") #변수 선언 a=input() stack=[] res='' for x in a: if x.isdecimal(): res+=x else: if x=='(': stack.append(x) elif x=='*' or x=='/': while stack and (stack[-1]=='*' or stack[-1]=='/'): ...
[ "noreply@github.com" ]
noreply@github.com
afab5f937ef1eea261ffcd7a44ee546bca54bcba
ec18d00b285c8a4ab6344b562af3e40e3a32d79e
/Session02/Homework/2.2 Draw.py
d0fa9aa8b406806f7fcf8654c45d01bf60044e6b
[]
no_license
sonhaidang1995/dangsonhai-fundamental-c4e20
6d757fdc8cd3be596fefefc8565c3c62338ac234
01c677f92a53537c451b23c9580051a729f09b3a
refs/heads/master
2020-03-23T21:10:21.484426
2018-08-03T15:01:52
2018-08-03T15:01:52
142,086,890
0
0
null
null
null
null
UTF-8
Python
false
false
250
py
from turtle import * speed(-1) # for i in range(3,7) n = 2 for i in range(4): n +=1 numb = n%2 if numb == 1: color("blue") else: color("red") for i in range (n): forward(100) left(360/n) mainloop()
[ "sonhaidang1995@gmail.com" ]
sonhaidang1995@gmail.com
38dfc93b04f206f3f336437eac3331e161786d7b
52d17735803855fa51c152f2300e00099ddbee6b
/examples/ikrawevent_cp/main.py
4de1f169a5b4a022344de445c3ab4688cf8143bb
[ "MIT" ]
permissive
gdsports/IntelliKeys_uhls
f58f150c40277c8fc3c5a7e544acd8f1dcea2913
e972d0be8dadb59731984fb38ff9dfe41a88307d
refs/heads/master
2020-06-21T23:27:18.858159
2019-08-07T10:44:10
2019-08-07T10:44:10
197,578,244
6
0
null
null
null
null
UTF-8
Python
false
false
5,727
py
# CircuitPython IntelliKeys Example using binary protocol # # see the Arduino ikrawevent example for details # On Trinket M0 and other non-Express boards, add adafruit_bus_device to # lib directory. This is to get the uart object. # Tested on Trinket M0 running # Adafruit CircuitPython 4.1.0-rc.1 on 2019-07-19; Adaf...
[ "gdsports625@gmail.com" ]
gdsports625@gmail.com
1181b639354080f4efa652e95729190cdfb5fc52
0ead11cb6ff33e71903b49de3b8a0b0a273c4ece
/python/smqtk/representation/descriptor_element/_io.py
3ea08361516ddbde7d31bbd476d304d15b742f3b
[]
no_license
Erotemic/SMQTK
b1ad8838516c88ce464ce9069c22a5b79e6097e7
0153a7bab694b84620e4a6ca9127d8cc8de52952
refs/heads/master
2021-04-27T09:09:48.244303
2018-02-06T20:43:11
2018-02-06T20:43:11
122,508,206
0
0
null
2018-02-22T16:59:35
2018-02-22T16:59:35
null
UTF-8
Python
false
false
12,044
py
import logging import multiprocessing import multiprocessing.queues import Queue import sys import threading import time import numpy from smqtk.utils import SmqtkObject __author__ = 'paul.tunison@kitware.com' __all__ = [ 'elements_to_matrix', ] def elements_to_matrix(descr_elements, mat=None, procs=None, b...
[ "paul.tunison@kitware.com" ]
paul.tunison@kitware.com
867c08cc83ab44defe97609b943744d8d3d5b603
d8cd86776aa0e4fe1ef4f62ffc7096ca2cd9f72c
/alexnet.py
ea8bb640ba027b42165cc57b09929afb2c1b5657
[]
no_license
dengzx7/Captcha_Recognition
e8b04a57fe9efbc4edd2d9acdfa3ee2d0f6faabe
af49f0becfe48c0c8adf674e2334191075874ca2
refs/heads/master
2020-06-24T04:36:20.264265
2019-09-23T14:52:37
2019-09-23T14:52:37
198,851,127
2
0
null
null
null
null
UTF-8
Python
false
false
6,899
py
# alexnet.py ''' AlexNet为8层深度网络,其中5层卷积层和3层全连接层,不计LRN层和池化层 ''' import tensorflow as tf def conv(x, filter_height, filter_width, out_channels, stride_y, stride_x, name, padding='SAME'): ''' 定义一个卷积层 Args: x:输入图片集合 维度为[batch, in_height, in_width, in_channels] weights:共享权重[filter_height, filter_width, in_channels...
[ "1306952239@qq.com" ]
1306952239@qq.com
e7dd1bc183623ae66e9ec0fdd18e56f6c1c086ae
43fb48d8ccd3f8b2a0e1b71a8bbb0c6ee5744ea3
/.env/bin/pybabel
5e0505add58baee1abd76b3ce020571e56841cc5
[]
no_license
pedrobragap/datapipeline_twitter
36ef0d34717d27490a6804d8634cda6ee1aef799
25b46810784a837ff1727fe8075b675dbdcd469f
refs/heads/main
2023-08-16T01:52:10.131394
2021-09-29T13:23:25
2021-09-29T13:23:25
411,680,627
0
0
null
null
null
null
UTF-8
Python
false
false
248
#!/home/pedrox/datapipeline/.env/bin/python3 # -*- coding: utf-8 -*- import re import sys from babel.messages.frontend import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "pedrobraga85@gmail.com" ]
pedrobraga85@gmail.com
4aa53fe7f25305999f24e9b2dbc440b4d7823eb6
7089677b4d89ddabfc8626fd1d113e5437dfcd6e
/cf-Dashboard-MicroService/main.py
e7f918d0b972fbd1f8bfba6de876f7bd5f5e1afd
[ "Apache-2.0" ]
permissive
eugenebell/cf-SpringCloud-IoT
8a1f6865f37506c583ff01445597655147b8a0e7
245cc3c37e3cbfbb69782b24c6b83a8b77acc0d9
refs/heads/master
2021-01-21T04:27:48.257466
2016-04-10T20:57:31
2016-04-10T20:57:31
42,811,868
1
1
Apache-2.0
2019-05-29T10:46:31
2015-09-20T12:18:59
JavaScript
UTF-8
Python
false
false
261
py
import os import SimpleHTTPServer import SocketServer PORT = int(os.getenv('VCAP_APP_PORT', '8000')) Handler = SimpleHTTPServer.SimpleHTTPRequestHandler httpd = SocketServer.TCPServer(("", PORT), Handler) print "serving at port", PORT httpd.serve_forever()
[ "eugene_bell@yahoo.com" ]
eugene_bell@yahoo.com
3a5c2d05027ad0b4d276f391d8f18fc7563905d0
ba0731b2dbc4c1529eaaa79811ec15754c19b4cd
/extractors/refextract/extract/routes.py
da9b4cb042c0fb5305c062073e04e91f29db71c1
[ "MIT" ]
permissive
arXiv/arxiv-references
35f87084cf91947c572faf1a86f119b308fada66
a755aeaa864ff807ff16ae2c3960f9fee54d8dd8
refs/heads/master
2022-12-21T02:34:57.166298
2018-05-04T20:30:48
2018-05-04T20:30:48
94,906,433
8
6
MIT
2022-12-08T02:06:20
2017-06-20T15:26:25
Python
UTF-8
Python
false
false
2,709
py
"""HTTP routes for refextract API.""" import os from refextract import extract_references_from_file from flask.json import jsonify from flask import Blueprint, request, current_app from werkzeug.utils import secure_filename from werkzeug.datastructures import FileStorage import logging HTTP_200_OK = 200 HTTP_400_BAD_...
[ "brp53@cornell.edu" ]
brp53@cornell.edu
b020a784c22606793e17979f0014927a8ba9d5d7
0046667f824bc219fa369ee715c8a223cb729a74
/hmm.py
418583b938fc5a775459560d3fc5c2a280cca8e9
[]
no_license
justttry/statisticallearning
54933d7ee1ecad032ca3c0750812da8f07bf0dba
fef4d32ace845713b3701b1884056f6de3ce198d
refs/heads/master
2021-01-17T04:54:59.989171
2017-02-27T08:30:38
2017-02-27T08:30:38
83,036,154
0
0
null
null
null
null
UTF-8
Python
false
false
31,633
py
#encoding:UTF-8 import unittest from numpy import * #---------------------------------------------------------------------- def calcForwardP(a, t, O, A, B): """ 计算前向概率 Parameter: t:t时刻 O:观测变量矩阵 a:t时的前向概率向量 A:状态转移概率矩阵 B:观测概率分布矩阵 Return: a:t+1时的前向概率向量 """ return multiply(...
[ "kerzhao@163.com" ]
kerzhao@163.com
a1eb66dbe95cb27bee4d6db88aae787c660163b8
5b49b2f8934e21445757a36174d924bb713ad810
/elvers/rules/rcorrector/rcorrector-wrapper.py
d38953bd8abd25a4ea0521807acf6cc1283d78a0
[ "BSD-3-Clause" ]
permissive
maligang/elvers
bf982442d08411a7081f186c7b76ac09035b0466
b2dab8092351f6db13c437c89004b897fb8a40d7
refs/heads/master
2022-12-11T12:45:06.905102
2020-08-05T17:09:50
2020-08-05T17:09:50
290,427,388
0
0
NOASSERTION
2020-08-26T07:30:10
2020-08-26T07:30:09
null
UTF-8
Python
false
false
2,509
py
__author__ = "N .Tessa Pierce" __copyright__ = "Copyright 2019, N. Tessa Pierce" __email__ = "ntpierce@gmail.com" __license__ = "MIT" from os import path from snakemake.shell import shell extra = snakemake.params.get("extra", "") log = snakemake.log_fmt_shell(stdout=True, stderr=True) outdir = path.dirname(snakemake....
[ "ntpierce@gmail.com" ]
ntpierce@gmail.com
9e2d0ba458a2b6093e2c9298336169c3a97e8549
0c72223596ffa82eb03639e3549511ea62f65965
/CFM_main/regrid.py
c7f387d4f1aedaaf1b2990c2fb3f2d445234486c
[ "MIT" ]
permissive
UWGlaciology/CommunityFirnModel
61a0fa8b25b4025ec5e9a1a4e2f4201a11feaeba
d7dedbb6ce72203a237402824052147d1b113f5b
refs/heads/main
2023-08-09T18:05:05.635304
2023-06-26T15:46:51
2023-06-26T15:46:51
14,030,315
31
14
MIT
2023-06-20T17:18:57
2013-10-31T22:52:52
Python
UTF-8
Python
false
false
31,900
py
#!/usr/bin/env python ''' Script to change the grid to have different resolutions at different depths. ''' from constants import * import numpy as np def regrid(self): ''' Called in both firn_density_spin and firn_density_nospin There are 3 subgrids in the regrid module. Grid 1 is the high resolution g...
[ "maximusjstevens@gmail.com" ]
maximusjstevens@gmail.com
8bc507ff471282ba240faeeda0093cb85ff70ea3
041788c21f5969be6403020096dd35ebe4e95c3f
/main3stringint.py
3aa09071f7af9de9336c79decb8377c48386ccbb
[]
no_license
ASDMoreira/compilers-1
1189a8ef7bf60877c47db67fbef9aa2d4541474c
14100780bc306b2e956337936b66c2ed06075e20
refs/heads/main
2023-07-18T05:29:48.910507
2021-08-31T20:46:17
2021-08-31T20:46:17
399,192,207
0
0
null
2021-08-23T17:29:27
2021-08-23T17:29:27
null
UTF-8
Python
false
false
545
py
num_string = "12345" def string_to_int(num_string): dictionary = {'0' : 0, '1' : 1, '2' : 2, '3' : 3, '4' : 4, '5' : 5, '6' : 6, '7' : 7, '8' : 8, '9' : 9} #MOSTRANDO ANTES print(f"The valor in String: {num_string}") print(type(num_string)) values= len(num_string) cont = ...
[ "soslyne.faculdade@gmail.com" ]
soslyne.faculdade@gmail.com
f52a03aa942c6bc0de5a67c43ce5fa2b7b392f0f
6df339e3071c9cb25ac8e290a5a53e7e026b04e2
/vehicle/views.py
9d9520678006b66069965010cc00282b8bf7b830
[]
no_license
NatsuLaxus/devathon
c3548678d81e695ec39b47cb334fb239e974c455
61da0eca7641a6a7e6f1d1b3d82651beaaa58a36
refs/heads/master
2020-07-26T02:31:57.362055
2019-09-14T22:04:17
2019-09-14T22:04:17
208,505,528
0
0
null
null
null
null
UTF-8
Python
false
false
1,277
py
from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth.decorators import login_required,user_passes_test from django.contrib.auth import logout from django.shortcuts import render, redirect from django.contrib.auth.models import User from django import forms from django.contrib import messa...
[ "chiranjeevsinha.98@gmail.com" ]
chiranjeevsinha.98@gmail.com
589f5c78a1165d1890d5104f1ad737f319b73539
fe704a54f4f0aa1e6445ef0781608b3e4ab12aa0
/portfolio_management/agents/mvp_agent.py
66130c75f144bf558f75d44c8e8d5f97c273f7a2
[]
no_license
rajindermavi/portfolio_management
8fac8a3fa869737ecc93e28c506ddb2f244b2224
36a715cb34708a876ceec56f9ff4d6ca22b5e65f
refs/heads/main
2023-07-17T06:43:33.216908
2021-09-05T00:22:16
2021-09-05T00:22:16
371,802,338
1
0
null
2021-06-30T05:42:59
2021-05-28T19:38:21
Jupyter Notebook
UTF-8
Python
false
false
1,095
py
import numpy as np import tensorflow as tf from scipy.optimize import LinearConstraint from scipy.optimize import minimize class MVP_Agent(): name = "MVP_Agent" def __init__(self): self.n_stocks = None self.Simga = None def act(self,*args): obs = args[0] self.n_stocks =...
[ "rsmavi.hb@gmail.com" ]
rsmavi.hb@gmail.com
4c2c4a76819563487bd992a526a83f7551c67371
8aa437871538c4ad978a59e9d1f1031afebee649
/incident_management/migrations/0002_delete_reportcomment.py
e53b92e28a1afc656767f6c80b2d0d107383611f
[]
no_license
HighTech-Grace-Solutions/infront-service-desk
a27cf39f0ae9fc2f0e7b2f967d27dd72b2580652
4fd14d9dce198bed88602e13eb0acc2105265c9d
refs/heads/master
2023-01-28T04:59:58.039750
2020-12-16T07:52:34
2020-12-16T07:52:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
363
py
# Generated by Django 3.0.10 on 2020-10-08 00:56 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('django_comments', '0003_add_submit_date_index'), ('incident_management', '0001_initial'), ] operations = [ migrations.DeleteModel( ...
[ "50654608+mdrhmn@users.noreply.github.com" ]
50654608+mdrhmn@users.noreply.github.com
45f8fa5d050824972699fea827aa627396c0c097
5709ef38d82f13bb62b255e02cc240eb78587ba5
/faker/providers/bg_BG/person.py
8177a6097446fe02ea5c0412d8d9160bb35bb2e6
[ "MIT" ]
permissive
furas/faker
292ec1097af80a07e192713a245da190e6f719c8
92534607ce98c8ef4504e9668b7ce8769a1ca504
refs/heads/master
2020-12-03T09:15:01.460680
2016-09-29T00:22:53
2016-09-29T00:22:53
25,991,704
1
1
null
null
null
null
UTF-8
Python
false
false
31,643
py
# coding=utf-8 from __future__ import unicode_literals from ..person import Provider as PersonProvider class Provider(PersonProvider): first_names_female = ( 'Авгия', 'Авигея', 'Авторка', 'Аглая', 'Аглоида', 'Агнешка', 'Адамина', 'Адра', 'Адрианиа', 'Аела', 'Айрен', 'Аксентия', 'Алания', 'Албина',...
[ "bretjb@gmail.com" ]
bretjb@gmail.com
f8a44179825515bb81eda655f3b2c08ece179a68
dc5fd106270d1e81f9eefcc542695c4bb1f8c691
/customers/migrations/0012_auto_20160411_0325.py
59321b1860250a1aa128dbec83b884d9fe4d30e9
[]
no_license
iblogc/backend
3bd134701cc2a6dbcf4438026693814524f07cc2
e7a5f85eaa57765cf91a62f022ea64b61ce56ffd
refs/heads/master
2021-01-21T08:57:36.300994
2016-09-21T05:34:35
2016-09-21T05:34:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
512
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-04-11 03:25 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('customers', '0011_auto_20160411_0258'), ] operations = [ migrations.AlterFie...
[ "14841787@qq.com" ]
14841787@qq.com
f88b64f23eedc568bf43bb36da64d9d0b3140c44
7d12194b3697503ff2c9f41cce2ac2c133ba9608
/AvailabilityMonitor/WebAccess/webaccesser.py
db8a61e90c0421beccb3c8dd2aa22ba52342d868
[ "Apache-2.0" ]
permissive
jinhong666/Python
1b03b58568a5429c9c2804c527e1e16d6a9566cb
b945759a1acf55cc8546f94618d46040455de422
refs/heads/master
2020-04-10T21:25:31.162054
2016-09-14T09:17:58
2016-09-14T09:17:58
61,168,287
0
0
null
null
null
null
UTF-8
Python
false
false
2,483
py
#!/usr/bin/python # -*- coding:utf-8 -*- #author: ddl #desc: request url get data #--------------------- #2016-06-20 created #--------------------- import http.client,re class WebAccesser: @property def Protocol(self): return self._protocol @property def DonmainName(self): return self...
[ "jinhong618@126.com" ]
jinhong618@126.com
ca14cfcc4f0020bf14072b28b13b5efd0c0a1140
2daa3894e6d6929fd04145100d8a3be5eedbe21c
/tests/real-life/test_sof_example.py
67de4d5643861c429a1c60920db8424086e6352e
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Henri-Lo/pyaf
a1f73a0cc807873bd7b79648fe51de9cfd6c126a
08c968425d85dcace974d90db7f07c845a0fe914
refs/heads/master
2021-07-01T12:27:31.600232
2017-09-21T11:19:04
2017-09-21T11:19:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,452
py
import pandas as pd import numpy as np import pyaf.ForecastEngine as autof import datetime #get_ipython().magic('matplotlib inline') trainfile = "data/sof_example.csv"; df = pd.read_csv(trainfile, sep=r',', engine='python', skiprows=0); df['Date'] = df['Date'].apply(lambda x : datetime.datetime.strptime(x, "%m/%d/%Y"...
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
069c19c89890e9eb3c17c82b0afe99fb04dc8b9c
9b1aeb2a871bac56b21cea76017b70c7b264a2b0
/smallScripts/merge_dragen_metrics.py
83511189caa9d09c2dbf83868cb81f1d82314604
[]
no_license
gudeqing/biodev
bdd8aae514c3502a116ad25b388961acd7c86e48
b9e7c221f6d2c1ecdeefe13cf5aa481a5e5a64f7
refs/heads/master
2023-03-14T06:12:28.971104
2022-11-16T06:40:18
2022-11-16T06:40:18
118,697,443
3
0
null
null
null
null
UTF-8
Python
false
false
1,682
py
import csv import glob import sys import os def coverage(files, out): """ 合并metrics :param files: *.target_bed_coverage_metrics :param out: :return: """ files = glob.glob(files) files = sorted(files) print(files) gens = [csv.reader(open(x)) for x in files] names = [os.path....
[ "822466659@qq.com" ]
822466659@qq.com
0540f3bb95f151504c0503e6e8179fec0de7207e
f98f4aaeca3ac841905e0cd8547bbf41944fe690
/编程语言/Python/Python编程从入门到实践/第一部分_基础知识/第10章_文件和异常/10_6.py
3835fd1a20ce17bffe0d169f134703a891d57347
[]
no_license
zhb339/book-learning
64f433b1ee1f66f3120828352df3b533be4cf9de
5273fc8d11b2d602484dbe95e55f1e931858382f
refs/heads/master
2020-03-29T10:48:22.771146
2018-11-07T13:46:53
2018-11-07T13:46:53
149,823,496
0
0
null
null
null
null
UTF-8
Python
false
false
221
py
while True: try: num1 = int(input("Enter first num: ")) num2 = int(input("Enter second num: ")) total = num1 + num2 print("The sum of two numbers is " + str(total) + ".") except: print("Please enter number!")
[ "551788157@qq.com" ]
551788157@qq.com
7675663be4a8be769ee8a202eb9ed46412d4ae4f
3b9ced0fbde266c978f517103bfd5fcf6f262af8
/multihetsep_switcherrors.py
6d072ffadaab4acea67e3a956c064948b7520039
[]
no_license
stschiff/msmc-tools
d299dd9a0b6b197609bf3b6e81990c4fee1dc939
6b59e8ecbd07029dd873b09f040e3797ba73790d
refs/heads/master
2023-08-23T15:05:45.611423
2023-08-14T10:09:06
2023-08-14T10:09:06
24,698,641
38
26
null
2023-08-14T10:09:07
2014-10-01T23:00:12
Python
UTF-8
Python
false
false
1,574
py
#!/usr/bin/env python3 import argparse import random def flip_phase(alleles, ind): new_alleles = "" nr_ind = len(alleles) // 2 for i in range(nr_ind): if i == ind: new_alleles += alleles[i * 2 + 1] + alleles[i * 2] else: new_alleles += alleles[i * 2] + alleles[i * 2...
[ "schiffels_schiffels@mac.com" ]
schiffels_schiffels@mac.com
18548373f3cc7307d1c2b0d3061eb5d725e48aa4
de033dee673e0b8b716a5dff8ac95d1457aa9cd2
/input/fold_strati.py
f6f7c3c02af551730371de406b73d2ab9712a11d
[]
no_license
lisosia/kaggle-bengali-ai
88356b74883e58a6bff76dc08b8091a06e6c0924
0ba8c2cac17d7dc9682fb692779147dada605efa
refs/heads/master
2022-04-09T09:43:11.996041
2020-03-16T15:27:13
2020-03-16T15:27:13
237,602,698
0
0
null
null
null
null
UTF-8
Python
false
false
734
py
import numpy as np import pandas as pd #get data nfold = 5 seed = 12 train_df = pd.read_csv('../input/bengaliai-cv19/train.csv') train_df['id'] = train_df['image_id'].apply(lambda x: int(x.split('_')[1])) X, y = train_df[['id', 'grapheme_root', 'vowel_diacritic', 'consonant_diacritic']]\ .values[:,0], train_df.valu...
[ "" ]
40812754b202649cd513b69cbcdac79dd6036767
0add7953d3e3ce2df9e8265102be39b758579753
/contrib/Research/nlp/bert/BERT_tf_Soapeggpain/script/e2e_func_node/tools/result_check_bak.py
f468291cb2eddc21464ca9fbe43a01df577c4b53
[ "Apache-2.0" ]
permissive
Huawei-Ascend/modelzoo
ae161c0b4e581f8b62c77251e9204d958c4cf6c4
df51ed9c1d6dbde1deef63f2a037a369f8554406
refs/heads/master
2023-04-08T08:17:40.058206
2020-12-07T08:04:57
2020-12-07T08:04:57
319,219,518
1
1
Apache-2.0
2023-03-24T22:22:00
2020-12-07T06:01:32
Python
UTF-8
Python
false
false
1,193
py
import os import sys def check_performance(steps,loop,path): #print("##########################FPS_RESULT############################") item_list=[] file_FPS = open(path+"/FPS.log") List_FPS = [] sum = 0 for line in file_FPS: number = line.split("\n") FPS = float(number[0]) ...
[ "cheng@DESKTOP-SS5FRRQ.localdomain" ]
cheng@DESKTOP-SS5FRRQ.localdomain
5ae7a3674a0d929a1ad2e4d1be49296ed0307728
4593f57f9d6a842d2b80043a0bb2305fed3abc68
/AIbot/AIbot/settings.py
867e4d5e2a4d092663475c07f3d755aaecc16a0e
[]
no_license
Rajeshkumark26/Hackathon_Personal_assistant_websockets
b3a0a46b88630693ff42a31f1c60bf88b5009b6e
27785b088f6763ed9e4b5f795236d0db5a995a49
refs/heads/main
2023-02-03T13:46:03.882498
2020-12-18T13:29:54
2020-12-18T13:29:54
322,598,574
0
0
null
null
null
null
UTF-8
Python
false
false
3,306
py
""" Django settings for AIbot project. Generated by 'django-admin startproject' using Django 2.1.7. 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/ """ im...
[ "noreply@github.com" ]
noreply@github.com
180506b07122808d5b103214051277ee7fc9a25d
6328af2b1d6dc2fadbd090a00a33b5c6ac1f477a
/encrypt.py
8b19e34a715c611d6109d5df6aa43e173ec3eeff
[]
no_license
Kjablonska/RSA-public-key-cipher
cd284d34cda7b089e784210a39500512e1d5968c
302dd264c040232499a38a8e824518ad3e24da0d
refs/heads/main
2023-04-03T15:29:43.524417
2021-04-07T11:04:42
2021-04-07T11:04:42
355,507,136
0
0
null
null
null
null
UTF-8
Python
false
false
1,264
py
# Encryption alogorithm. def main(): # Reading public RSA key. try: file = open("publicKey.txt", 'r') except FileNotFoundError: print("No public key found.") n = int(file.readline()) e = int(file.readline()) file.close() # Reading message to be encrypted. try: ...
[ "k.jablonska8@gmail.com" ]
k.jablonska8@gmail.com
308de2036009edba6dba63dedd1356cccd589d9f
aa92bb40877230e957ea20abafda5d8317d22b9d
/env/bin/pip2.7
da8658c67ab43cd5c298592fee66ac42475956d6
[]
no_license
smootc/CS467
0f45cc8b0fec2e0c78ca48b1771ae1708f8b39c0
0d937b22eee7871b335c6dbc9d50160437234ec8
refs/heads/master
2023-05-27T22:56:03.472875
2019-05-29T20:05:03
2019-05-29T20:05:03
185,257,187
0
0
null
2023-05-22T22:10:37
2019-05-06T19:16:47
JavaScript
UTF-8
Python
false
false
233
7
#!/nfs/stak/users/smootc/CS467/env/bin/python # -*- coding: utf-8 -*- import re import sys from pip import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "smootc@flip1.engr.oregonstate.edu" ]
smootc@flip1.engr.oregonstate.edu
97e9b0e66b484e65879b43c49f20eca282287608
92df5808fcd2b4e57b9264c93263d7d53113ec15
/web_of_science_crawler/web_of_science_crawler/middlewares.py
36a52e28d70a51815ebd094dcb42e6b3fe818240
[]
no_license
NearlyDeadline/Scholar
463db845b81ed27829a1ae11c3fd0d1e950a80ae
ed235d99e670981dbd9fce7de185299761a3fa7e
refs/heads/master
2023-08-17T15:48:11.055750
2021-08-03T07:23:08
2021-08-03T07:23:08
385,864,420
0
1
null
null
null
null
UTF-8
Python
false
false
3,629
py
# Define here the models for your spider middleware # # See documentation in: # https://docs.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals # useful for handling different item types with a single interface class WebOfScienceCrawlerSpiderMiddleware: # Not all methods need to be de...
[ "1289790957@qq.com" ]
1289790957@qq.com
2ff842ecba067909c19237797f2c680c41e5ad3e
59e66a3c461278b5794a3266e2c4af92dd8cae37
/tests/inheritance/inherit_base_virtual_methods_PYB11.py
df068db540e9f8856ba58bc69fe863c6a5c9d092
[ "BSD-3-Clause" ]
permissive
LLNL/PYB11Generator
4b5bb3840d50d5c75d6305bb564ca33fd67e2db3
e22a661a73492d0d6e2ad109c6ff5ed9cf050ae3
refs/heads/master
2023-09-01T03:56:57.723677
2023-05-22T17:52:47
2023-05-22T17:52:47
171,928,508
12
1
BSD-3-Clause
2023-05-22T17:52:49
2019-02-21T19:05:11
Python
UTF-8
Python
false
false
890
py
from PYB11Generator import * PYB11preamble = """ #include <cstdio> class A { public: A() { printf("A::A()\\n"); } virtual ~A() { printf("A::~A()\\n"); } virtual void Afunc() { printf("A::Afunc()\\n"); } }; class B: public A { public: B() { printf("B::B()\\...
[ "mikeowen@llnl.gov" ]
mikeowen@llnl.gov
840487683e53e89f7e1e5b6e6844ed6350ce3372
e9dc9105d974e0f1a97fc58aac8c456e5035c641
/Les6/pe6_6.py
0cf8990ecae4b6a5f70f86d57c4620f2ad0b1530
[]
no_license
bramvanulden/programming
c840628744ca7d429de3855cb8938b1e98b98ed3
86f330152041edf06d5d7cae9c617d93b7c607c5
refs/heads/master
2020-03-28T16:04:32.369632
2018-10-05T12:10:39
2018-10-05T12:10:39
148,656,825
0
0
null
null
null
null
UTF-8
Python
false
false
182
py
letters = ["a", "b", "c"] def wijzig(letterlijst): a = letterlijst print(letterlijst) a[0] = "d" a[1] = "e" a[2] = "f" print(letterlijst) wijzig(letters)
[ "42969037+bramvanulden@users.noreply.github.com" ]
42969037+bramvanulden@users.noreply.github.com
90a53f24b1d0aceb1a4c6211b6690af3802d3aa6
fec50dfa254b4ba6a1aec0fbd5f2fb0d5bdd1b37
/kafka-stream-processing/scripts/online_eval_logging.py
30bfa617e0251e4b01d027c5e15d29da9d7533c0
[ "Apache-2.0" ]
permissive
rohanrb302/End-to-End-Movie-Recommendation--Service
9ede9b3a988801a72f58cd1d230ce49ab29375ed
eabbf843e599cbfa4ae17f9e7c7eb0e73fd852d4
refs/heads/main
2023-03-30T19:18:22.802233
2021-04-01T22:32:10
2021-04-01T22:32:10
353,840,239
0
0
null
null
null
null
UTF-8
Python
false
false
2,394
py
import json from ratings_event_dump import * import time import os import functools import schedule eps =0.005 def cal_false_discovery(true_pos,false_pos): return(false_pos/(false_pos+true_pos+eps)) def cal_precision(true_pos,false_pos): return(true_pos/(false_pos+true_pos+eps)) def query_model_ids(table,...
[ "rohanrb123@gmail.com" ]
rohanrb123@gmail.com
ca361fdd087d4abb765d7dea603166945b1485a5
ad49b937ee174ca7c9df65dd5fc1ad78ad797c90
/Classification models/Support Vector.py
17ee7ca4d81c2594565ea58d99f5ed662f2feb44
[]
no_license
NitishVSawant/FCI-codes
22ab137818a02d81114d0923874103a301228db2
5c28df658b8230d2423ae8b64216c6c31b188381
refs/heads/master
2020-06-09T18:48:32.217483
2019-06-24T11:52:55
2019-06-24T11:52:55
193,487,397
0
0
null
null
null
null
UTF-8
Python
false
false
7,603
py
# Support Vector Machine (SVM) # Importing the libraries import numpy as np import pandas as pd # Warehouse selection print("Consider the format warehouse name: ") print("\tKazhakuttam-KAZ,\tChingavanam-CHI") ware=input("Enter the name of warehouse: ").upper() # Importing the dataset if(ware=="KAZ"): ...
[ "noreply@github.com" ]
noreply@github.com
42714f7b0a946fa2a600ef4cc6d1d6e1ee1c6b42
bad489aef94ee3bfcf6e5424cd83de5641b4515e
/applications/genomeseq/python-util/split.py
cebd2486967f3455fb023012e253d51b425d3ee7
[]
no_license
ya0guang/sgx-tasks
e40f45d3a393091990caae6a7eede09a01f6dc2f
9edf4501de0c5a554f995b678a7f9dab8e830af7
refs/heads/master
2023-03-25T00:51:35.592470
2021-03-08T23:48:18
2021-03-08T23:48:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,010
py
#!/usr/bin/python import os import sys import math from glob import glob # chunk size in MB #CHUNKSIZE = 100 LINEPERMEGA = 20 * 1000 OVERLAP = 100 BPPERLINE = 50 # TESTING #CHUNKSIZE = 10 #LINEPERMEGA = 1 #OVERLAP = 20 #BPPERLINE = 10 def splitDida(refgfname, nSplit, out_dir, overlap=OVERLAP): nlines = 0 n...
[ "chathurawidanage@gmail.com" ]
chathurawidanage@gmail.com
16c6c7c6ad54874b911c3e041eefa9e98c29407e
d52d2596042339ebe7b02b270b91880611bee176
/fourier.py
34c0074d04990201bc3cd470cdc58fc12bc3b9c7
[]
no_license
t-mondal/Track-the-North
5a5b2b5cd0641122b6bb78b8183ff9966c5c162c
4af6ca9b88ecbe3ff8ef0d5afa31bf85cb759b2b
refs/heads/master
2021-06-27T03:20:53.797506
2017-09-17T13:05:50
2017-09-17T13:05:50
103,824,132
0
0
null
null
null
null
UTF-8
Python
false
false
1,138
py
# import libraries import numpy as np import matplotlib.pyplot as plt from scipy.optimize import curve_fit from time import sleep import pandas as pd with open('dataframe.txt', 'r') as f: data = pd.read_csv(f) print data data = data.values print data t = data[:,1] print t x = data[:,4] # fourier function for fourie...
[ "tuneermondal@v1020-wn-184-147.campus-dynamic.uwaterloo.ca" ]
tuneermondal@v1020-wn-184-147.campus-dynamic.uwaterloo.ca
f96268353cc4222ee83ae4024573e9f6a0e2305a
c348a7a373ef46aa300a4c9633320cce3a23ecaa
/mysite/wsgi.py
32dc6f61e499a61dbb385b1e301611c344faed20
[]
no_license
TakumiKanda/Palette
fa1b23c089f3d7a326c0205ad374ffece823ef95
a6b6030b627879ee19e101ef84603e6fc0b1c97e
refs/heads/master
2022-12-14T19:48:19.624824
2019-04-09T02:47:19
2019-04-09T02:47:19
137,717,362
0
1
null
2022-11-22T02:47:27
2018-06-18T06:31:40
Python
UTF-8
Python
false
false
424
py
""" WSGI config for mysite 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/2.0/howto/deployment/wsgi/ """ import os from dj_static import Cling from django.core.wsgi import get_wsgi_application os.envir...
[ "a5816027@aoyama.jp" ]
a5816027@aoyama.jp
c00bd779f8073ff1e5fb65fada5a833a6deefac7
f64c5a83f071fa4b3d6f42ca79e1f0ac14dbed4e
/fmProcessors/localization_mapping/pose_2d_estimator/simulation/pose_2d_estimator.py
32b3943eda0fbeb5778419b8c41d0fe38521ebe5
[ "BSD-3-Clause" ]
permissive
niels-k-dahl/FroboMind
b74da23c575470dbcc886091e2cd0d25512a3ec8
2318b4ba9956293edc2eecb7d2ef84fdb778af6e
refs/heads/master
2021-01-15T22:09:47.841359
2013-04-27T14:14:24
2013-04-27T14:15:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,532
py
#!/usr/bin/env python #***************************************************************************** # Pose 2D Estimator Library # Copyright (c) 2013, Kjeld Jensen <kjeld@frobomind.org> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided t...
[ "kj@kjen.dk" ]
kj@kjen.dk
d3cdb4a9a66bb967788cd33d43f1f2a635dd7516
25adb411dcb05bab9e97f5d98891041e9937264c
/src/data-acquisition.py
45fbd075815bf1616e6ebe79112b2c3c86d18cd7
[]
no_license
YuLing91/Kamaji
a9c5f3179c794bda81e3b2d8a233463a1bf48e69
9c57a82e6c4cbe6cb8353b3de29bb8470a0782f4
refs/heads/master
2023-03-18T18:43:05.302511
2020-05-13T12:41:50
2020-05-13T12:41:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,490
py
import pyforex import logging logger = loggin.getlogger(__name__) import click import os import requests import requests_cache import datetime import pandas as pd pd.set_option('expand_frame_repr', False) pd.set_option('max_columns', 8) from datetime import timedelta from pandas.io.common import urlencode import pa...
[ "jedygabriel@gmail.com" ]
jedygabriel@gmail.com
2beb8e21a0723043fb3bf99c43435fcea367c31d
1be37064cf303b79cf83ab1d5d120a8db6dbeaa4
/fastparquet/thrift_structures.py
280b8583627af5b1b4c31b246d18bc52192c32fd
[ "Apache-2.0" ]
permissive
mrocklin/fastparquet
02e0252609b8825b2ad89c0b21b3a6e20bc34f94
b0171ba3a7894f4860c1ce761ad47f451fc4cbc8
refs/heads/master
2020-12-24T08:54:09.977491
2016-11-08T17:14:38
2016-11-08T17:14:38
73,311,617
2
0
null
2016-11-09T18:46:52
2016-11-09T18:46:51
null
UTF-8
Python
false
false
207
py
import os import thriftpy THRIFT_FILE = os.path.join(os.path.dirname(__file__), "parquet.thrift") parquet_thrift = thriftpy.load(THRIFT_FILE, module_name="parquet_thrift") # pylint: disable=invalid-name
[ "martin.durant@utoronto.ca" ]
martin.durant@utoronto.ca
d9c3d6c7e44b3c914da3b5071ce29e7158635c05
212f9aef95a53f4021e9fc073460fd8bed5f3159
/apis.py
2faab73565e7bae3ddf0df5417541799adf28bbe
[]
no_license
etschmidt/python
781cff88030dd2a145e433149d81c0162b2a20a3
2b10161bb7be47fb2dcf1a9d6c24b031556e1a59
refs/heads/master
2020-03-24T19:31:27.692946
2018-08-06T13:32:54
2018-08-06T13:32:54
142,931,621
0
0
null
null
null
null
UTF-8
Python
false
false
268
py
import requests # Make a get request to get the latest position of the international space station from the opennotify api. response = requests.get("http://api.open-notify.org/iss-now.json") # Print the status code of the response. print(response.status_code)
[ "ethan.t.schmidt@gmail.com" ]
ethan.t.schmidt@gmail.com
ba00b59eb278f337bddfd76eedbc46b9a8436781
9c2c0384f93e263792376270655719efa48c1a30
/model/BaseNet/builder.py
7da7e0e01d24baa5cf70eac0078e057f8972ffb1
[]
no_license
skallenberg/MasterThesis
96fc5b622da4df83537c63a9f2cbf37c0d0f1c2e
f5fbed0ea442151bb4024bcedf29ca8453381a16
refs/heads/master
2023-04-09T00:58:04.921212
2021-04-13T09:33:43
2021-04-13T09:33:43
286,235,250
0
0
null
2021-04-11T16:06:27
2020-08-09T12:43:59
Python
UTF-8
Python
false
false
781
py
from .blocks import * from .net import BaseNet from utils.config import Config def _basenet(name, block_type, layers, **kwargs): config = Config().get_instance() if config["Setup"]["Data"] == "cifar100": num_classes = 100 else: num_classes = 10 model = BaseNet( name=name, bloc...
[ "s.kallenberg@outlook.com" ]
s.kallenberg@outlook.com
37f56dc70146625c8fb2099465378282e30f62cf
833673c75823cff7d0424d4d56ed98bb21968704
/get_coding_regions.py
fdd57e7673fccf76eca6037ab1d2f7cd27486eab
[]
no_license
orlaocs/dna_analysis
7bb8af08e91c8c812a3bcdf85e5e00d6d2b3ae38
302e1f533238a3371b5d304d1f8b929cbd6f7fdf
refs/heads/master
2020-03-26T09:25:03.288488
2018-08-20T20:30:36
2018-08-20T20:30:36
144,748,524
0
0
null
null
null
null
UTF-8
Python
false
false
11,314
py
# To Get the Open Reading Frames (ORFs) From a DNA Sequence in a FASTA File: import sys import re ## (1) To Find All the Start Codons in the Sequence: def find_all_start_codons(sequence): all_start_codons = [] #The find() function returns the index for the lowest index of the substring, if found. next_sta...
[ "noreply@github.com" ]
noreply@github.com
3b5578ebf36b5c8a298cfc1216db7a3e9a6c4497
76d9bf90f046979866f88811a1a182e6c1ae9bc9
/allennlp_semparse/common/sql/text2sql_utils.py
eeabed9539f122af9a279b998b62ff39ef3d953e
[ "Apache-2.0" ]
permissive
Tmr/allennlp-semparse
aba92040db36fe85d968c8fbffe21a24a0057a96
751c25f5f59c4d7973f03dc05210f9f94752f1b5
refs/heads/master
2023-04-28T15:08:11.653793
2022-04-07T18:01:33
2022-04-07T18:01:33
230,105,752
0
0
Apache-2.0
2019-12-25T13:18:39
2019-12-25T13:18:38
null
UTF-8
Python
false
false
10,377
py
""" Utility functions for reading the standardised text2sql datasets presented in `"Improving Text to SQL Evaluation Methodology" <https://arxiv.org/abs/1806.09029>`_ """ from typing import List, Dict, NamedTuple, Iterable, Tuple, Set from collections import defaultdict from allennlp.common import JsonDict class Sql...
[ "mattg@allenai.org" ]
mattg@allenai.org
777565ece354784036ae859858af15eccdf79f7a
f62b5b7a869357deaa8420b549a420b345d2d087
/bot_training.py
9963a107b141e16e4134e7c4a84065de250f9134
[]
no_license
andreLSTA/dodge_fireball_game
a979af1e6ebab77b69560d4b60058a34e8884cbb
2e62b88aab8f82d6d493a467227309426f90e737
refs/heads/master
2023-02-03T11:57:32.242982
2020-12-24T00:59:38
2020-12-24T00:59:38
324,034,078
0
0
null
null
null
null
UTF-8
Python
false
false
7,025
py
import pygame import os import time import math import numpy as np import pickle from models.fireball import Fireball from models.player import Player from models.neural_network import NeuralNetwork from models.screen_size import WIDTH, HEIGHT WIN = pygame.display.set_mode((WIDTH,HEIGHT)) pygame.display.set_caption("D...
[ "andre_lsta@hotmail.com" ]
andre_lsta@hotmail.com
9df8cd4c4b50822f2c19a9f904f1c92d3cf26dbc
fc92b8381b09a47a8bc067513bf501a4ef370e2b
/p4.py
ba06f38461d337d950d73c69b872ce3187d93238
[]
no_license
ajrichter/Pyfi
e41d26741bfdcadff616ec105c8889ee63015199
81beb429eda584ab71d7d2b96d32906c3c17d6e1
refs/heads/master
2021-06-16T15:01:54.336401
2017-05-31T22:09:06
2017-05-31T22:09:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
851
py
import datetime as dt import matplotlib.pyplot as plt from matplotlib import style from matplotlib.finance import candlestick_ohlc import matplotlib.dates as mdates import pandas as pd import pandas_datareader.data as web style.use('ggplot') df = pd.read_csv('tesla.csv', parse_dates=True, index_col=0) # resampling to ...
[ "ajrichter@knox.edu" ]
ajrichter@knox.edu
e8ad9be1b169e23f0bd57231960dc4414f5b5e57
b6dce5aa0ea975271bfcc2c61273c5e218deb048
/customer/models.py
6e5ceae16450a91c616bc83aa827c4735ac8e8e3
[]
no_license
kundan22197/Car-Rental-System
92e43b056c196e0bdd65e8e7551853fa5e3b5a53
b0c12a85c4070570e712912fc54927407f581b41
refs/heads/master
2023-02-23T09:02:57.751586
2021-01-26T20:35:16
2021-01-26T20:35:16
327,807,034
0
0
null
null
null
null
UTF-8
Python
false
false
9,322
py
# This is an auto-generated Django model module. # You'll have to do the following manually to clean this up: # * Rearrange models' order # * Make sure each model has one field with primary_key=True # * Make sure each ForeignKey and OneToOneField has `on_delete` set to the desired behavior # * Remove `managed =...
[ "kundanpatel@kundans-mbp.myfiosgateway.com" ]
kundanpatel@kundans-mbp.myfiosgateway.com
2aa796a29e29a9f9044490115dbf34145fe09de3
1a69bb2ba80e3ea9c467ad33848ca2f5eafbbfaa
/Main.py
d50ba569c1347f25b67f8d7744c7c4d9f95f0c56
[]
no_license
CptSmoon/Python-Generic-CSP-Solver
b15aa485d3695d75a84bc500bc5bfc41af04b310
8b78bf035d5885b7700cb1d7712bcdd2dd05f60b
refs/heads/master
2020-04-13T15:14:52.277774
2018-12-27T11:48:09
2018-12-27T11:48:09
163,285,465
2
0
null
null
null
null
UTF-8
Python
false
false
3,992
py
import numpy as np import inspect import copy import sys import os from Functions import * from Constraint import Constraint from Intializations import * input_type="" output_type="" verbose="" print("Choose input type : ") print(" 1 : from console") print(" 2 : from text file") input_type=input() while(input_type!...
[ "bd96kais@gmail.com" ]
bd96kais@gmail.com
af072faeff40bafde26159b682a48c3d181abfdd
f23b0c920c58761506822c845c498451badea9a9
/nb_Navigation.py
445926b1804b36fba288c977f1fc1519fb555a64
[]
no_license
Byambaa0325/Unity-Navigation-DQN
41a9bda240f0846336ef8e95e9140d99988a7697
c26fb44cf7e8724b81f4294e06b2166418526a59
refs/heads/master
2023-01-08T06:58:16.845138
2020-05-25T16:39:43
2020-05-25T16:39:43
260,643,623
0
0
null
2020-11-13T18:46:53
2020-05-02T08:19:30
Jupyter Notebook
UTF-8
Python
false
false
3,765
py
################################################# ### THIS FILE WAS AUTOGENERATED! DO NOT EDIT! ### ################################################# # file to edit: dev_nb/Navigation.ipynb from unityagents import UnityEnvironment import numpy as np # please do not modify the line below env = UnityEnvironment(file_na...
[ "byambaa0325@gmail.com" ]
byambaa0325@gmail.com
dbfd1a5cba5a388c6965b6fc311d0fec2d6517b1
9ce5f4db150a32af36a99d8b33c8541bf341f42f
/7/task_7_2.py
d3c9bac947b0ee577f2b4f5f426f3ecab434837b
[]
no_license
ksss007/Tasks
33f22febe2cdb80705afa7e9c7c82ff2277e4123
fcf775b1e451ede853a4edfbe273bb011460972d
refs/heads/master
2022-11-15T20:07:53.241779
2020-06-22T17:23:56
2020-06-22T17:23:56
259,437,476
0
0
null
null
null
null
UTF-8
Python
false
false
1,110
py
# -*- coding: utf-8 -*- ''' Задание 7.2 Создать скрипт, который будет обрабатывать конфигурационный файл config_sw1.txt: - имя файла передается как аргумент скрипту Скрипт должен возвращать на стандартный поток вывода команды из переданного конфигурационного файла, исключая строки, которые начинаются с '!'. Между ст...
[ "sergey.v.kravchuk@gmail.com" ]
sergey.v.kravchuk@gmail.com
3452d68d096f153f96a46ea2471980b035f68800
b6975931835de3960a1002386a36924939640560
/[OPEN--]LEET0072_EDIT_DISTANCE.py
801e6b3cb38b6e121c7decb794bb098ae0df062b
[]
no_license
catalystfrank/LeetCode10Py
47332a0e02282ff7ac0c6d94c0106642e8a0f796
8f507e1833a2380b3a13b6fb5aa5aee351a216f9
refs/heads/master
2021-01-19T10:25:43.761056
2017-03-16T16:06:16
2017-03-16T16:06:16
82,180,338
1
1
null
2017-02-16T12:53:33
2017-02-16T12:53:33
null
UTF-8
Python
false
false
290
py
#coding=utf-8 """ Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.) You have the following 3 operations permitted on a word: a) Insert a character b) Delete a character c) Replace a character """
[ "frank.wang04@gmail.com" ]
frank.wang04@gmail.com
8bf61691a6699b6305144fd6ba54e051f958db34
ba4161e56bf4650fd9c676fb257c06610071ea05
/Tesr.py
4aaf0cc506803bfdd4443878f3816d863917edab
[]
no_license
IhorZam/Information-Retrieval
4a8682b6d5a22a7ed1612a9e5dd2eeee53676122
c6fda145d0318d6bbbc20e37e54ef33780501e48
refs/heads/master
2021-05-11T01:45:51.922108
2018-03-11T19:20:31
2018-03-11T19:20:31
118,338,514
0
0
null
null
null
null
UTF-8
Python
false
false
955
py
def decoder(line): zsuv_length = 0 result_line = "" aux_byte = "1" i = 0 line = line[1:] while i < len(line): if line[i] == '0' and zsuv_length == 0: result_line += aux_byte + " " i += 1 elif line[i] == '1': zsuv_length += 1 i += 1 ...
[ "ihorzam25@gmail.com" ]
ihorzam25@gmail.com
8a809d0d0ffedb0a224620d12bc9ab3749e4ff9e
5f7c40860e584cb86e140d0819397a75f93e28ea
/motorcycles.py
3f2b9124a2a2adecfbcef98ba88d8e0607f78df7
[]
no_license
bailijiang/Python_exercise
cb149db1bc770fc684bf461ebae1b6dd53bf10a5
744a2a3b44036495ae28ec87fea98c04d008b099
refs/heads/master
2021-09-02T03:30:21.512752
2017-12-29T23:39:05
2017-12-29T23:39:05
114,254,360
0
0
null
null
null
null
UTF-8
Python
false
false
439
py
__author__ = 'Bryan' motorcycles = ['honda', 'yamaha', 'suzuki'] print(motorcycles) motorcycles[0] = 'ducati' print(motorcycles) motorcycles.append('ducati') print(motorcycles) motorcycles.insert(1, 'BRZ') print(motorcycles) del motorcycles[0] print(motorcycles) poped_motocycles = motorcycles.pop() print(poped_mo...
[ "bailijiang@hotmail.com" ]
bailijiang@hotmail.com
ebc975d95092729e66440a6a6aa270071ade124d
025b98f03e92ed2bcf80b9cf8dc0092b8627cfbb
/solarlib/solar.py
6b7632456bb48f65fb84ed2c796540bfb3f819fd
[ "MIT" ]
permissive
pooyad359/solarlib
ac91d7436263dd195a4144d122afc5852c82378e
ad473ad9d47c2f62efd37a645cd428de9bfa2595
refs/heads/master
2021-10-27T09:55:35.760624
2021-10-12T14:37:44
2021-10-12T14:37:44
152,699,288
5
0
MIT
2021-02-21T08:35:36
2018-10-12T05:39:21
Jupyter Notebook
UTF-8
Python
false
false
7,638
py
import datetime import pytz from math import degrees, radians, atan2, asin, acos, sin, cos, tan from solarlib.calendar import julian_century from solarlib.utils import get_minutes def geom_mean_long(time): ''' Sun mean longitude (degrees) ''' julian_cent = julian_century(time) angle = 280.46646 + ...
[ "pooya.darvehei@gmail.com" ]
pooya.darvehei@gmail.com
660d07bde49e51d20f8d3401e32430d4edd6b1ee
0f36de8254443fd6bf0ae5fe0c1dc1a3bda619d2
/devel/.private/differential_robot_185104iaib/lib/python2.7/dist-packages/differential_robot_185104iaib/msg/_counter_message.py
34df98f8e6c0f454f8f33569e3add0f1ab2278c6
[]
no_license
alekal1/ros
88c5d2a1b013e36b4acecfc5f131ce0113088bc6
e17174b023f60aab8982195a6427e569b01ab9d0
refs/heads/master
2023-01-24T03:39:57.639016
2020-11-21T20:01:26
2020-11-21T20:01:26
296,635,679
0
0
null
null
null
null
UTF-8
Python
false
false
4,007
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from differential_robot_185104iaib/counter_message.msg. Do not edit.""" import codecs import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct class counter_message(genpy.Message): _md5sum = "9acad0...
[ "sasha.aleksandov@gmail.com" ]
sasha.aleksandov@gmail.com
b58502e7b96a3a77642a4d45b35c37e39de00b14
061dba1cafc00894fc73c56082d7778950cc1620
/gameview.py
620b677b32e21dcc72dc57c32059d206544f51cd
[]
no_license
arthur-alves/kivy_tests
ad0a6a4591077783d8b43e3ef68d71cb9d2a4742
76505d6474eb1d7fcad82e19ac2f9f4ca48b6b1a
refs/heads/master
2016-09-06T15:03:33.308407
2015-09-14T15:21:29
2015-09-14T15:21:29
40,491,165
0
0
null
null
null
null
UTF-8
Python
false
false
802
py
from kivy.uix.screenmanager import ScreenManager, Screen from kivy.app import App from kivy.lang import Builder from kivy.uix.widget import Widget from kivy.uix.image import Image from kivy.properties import ObjectProperty MAINAPP = '' class MainScreen(Screen): img_l = ObjectProperty( Image(source='bg.png...
[ "arthur.4lves@gmail.com" ]
arthur.4lves@gmail.com
73795a36d090290eb9fc8a3101c7edb663c280d5
0657d6121f3eaf0329a55d3982ed416e643ee02c
/codebase/analysis/fit_funcs/exp_decay.py
ddd6e7b73b7b0207d0eccf805083f103c605acc8
[]
no_license
qcrew-lab/qcore
8c4d33070b6d31af0088a9cf4d6adf8f4769271d
b1f8e742df003f1d4ed7962353f8646740592f7d
refs/heads/main
2023-07-03T01:07:25.867494
2021-08-05T06:11:41
2021-08-05T06:11:41
356,110,165
1
2
null
2021-05-03T08:46:30
2021-04-09T02:32:20
Jupyter Notebook
UTF-8
Python
false
false
320
py
import numpy as np def func(xs, A=1, tau=1, ofs=0): return A * np.exp(-xs / tau)+ofs def guess(xs, ys): yofs = ys[-1] ys = ys - yofs tau = (xs[-1] - xs[0]) / 5 return dict( A=ys[0], tau=(tau, 0, 100*tau), ofs=yofs, ) TEST_RANGE = 0, 100 TEST_PARAMS = dict(A=-5, tau=10)
[ "general.qcrew@gmail.com" ]
general.qcrew@gmail.com
982e40e13f2258d4b305fe4c473e9382ac555ee6
ba9c4ce5422d8d9337c92e07eb2a89b80d0b5359
/binary-decimal.py
88d16b5585c7940d154a205bad54a935da3e4ea3
[]
no_license
Nateliason/Karan-Project-Solutions
9ddf667668278a9cd6bc08734c8858b5ec576b77
db73f639d80ef2bdefbdc42546d4e43ac40636db
refs/heads/master
2021-01-23T14:50:37.413661
2014-01-01T17:13:02
2014-01-01T17:13:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
369
py
''' sample input: 6 sample output: 110 ''' def to_binary(num): print bin(num) def to_decimal(bin): print int(bin,2) def bin_or_num(pref,num): if pref == "decimal": to_binary(num) elif pref == "binary": to_decimal(str(num)) else: return bin_or_num(raw_input("Do you have a decimal or a binary? (decimal/bi...
[ "nateliason@gmail.com" ]
nateliason@gmail.com
fe5700984481c97ee479bdc3980dd0df676e42cf
9658ec133fd777d349487d7f06df74e4c99f5613
/src/microplot/explorer/examples/demo_mono_bitmap.py
1606e08cf9d539ddfa43668d0769153d2c67744e
[ "MIT" ]
permissive
Palmbear/microplot
6a6d0fc0be7318d95974c8541b2db2cf4390b6e8
9cb07c1f1a231b81f4517417c8a3a0fff6aeb3b1
refs/heads/master
2023-07-01T22:59:50.577556
2021-03-19T15:42:14
2021-03-19T15:42:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
307
py
import math from plotter import Plotter from plots import LinePlot def run(): sines = list(math.sin(math.radians(x)) for x in range(0, 361, 5)) plot = LinePlot([sines],'MicroPlot line') plotter = Plotter() plot.plot(plotter) plotter.write_mono_bitmap('demo-mono.bmp')
[ "romilly.cocking@gmail.com" ]
romilly.cocking@gmail.com
be4958352ebe1cd5a7ed7e0e5a5a17eb690f7a54
9e26e9b8e1e0f7bbf116fdf5c92b4e3006d385ef
/user/views.py
a70640e853d683e97575775ec1e3f0e5b67f3000
[]
no_license
talhajubair100/e-commerce
fd77877b877a91a447e9b17ab58a4d59cc1456df
e7620b0971489ce558a97dd8d9988562663fe560
refs/heads/main
2023-02-15T08:57:29.308811
2021-01-06T18:25:35
2021-01-06T18:25:35
317,015,514
0
0
null
null
null
null
UTF-8
Python
false
false
6,539
py
from django.contrib.auth.forms import PasswordChangeForm from .forms import UserUpdateForm, ProfileUpdateForm from django.shortcuts import redirect, render from django.http.response import HttpResponse, HttpResponseRedirect from product.models import Category, Comment from django.contrib.auth import authenticate, logi...
[ "talhajubair100.bd@gmail.com" ]
talhajubair100.bd@gmail.com
fa882c3cca9a31dfa9f0468d57cc0eba36f3d1b4
a9f4434d3b410886ffc10aa5aede3634692152b6
/0218/ex_if4.py
7c7e8186913a879087edcca4ecb26393f4434e91
[]
no_license
parka01/python_ex
d3690dcd8753864c335bf7782553719a072bd01d
a5811487516eb9ef86d5ae93e9060cac267b87ce
refs/heads/main
2023-03-13T08:35:03.837790
2021-02-26T03:40:41
2021-02-26T03:40:41
339,892,972
0
1
null
null
null
null
UTF-8
Python
false
false
219
py
age=int(input('나이를 입력하세요: ')) if age>=65: print('지하철 경로 우대 승차권 발급') else: print('일반 승차권 발급') print('자동 발매기를 이용해주셔서 감사합니다.')
[ "68191916+parka01@users.noreply.github.com" ]
68191916+parka01@users.noreply.github.com
e763f92c41f17a6f2fdbc603b1a4ce8c2d338382
9a5438bdb8e84d0167ddea5458a7f729fdd54121
/metadata/tests/test_models/test_meta/test_attribute.py
5d8ef2b6856c0df33ffb8ea2141cb61013e7a8aa
[]
no_license
Grusinator/MetaDataApi
740fd2be4cb97b670f827a071a0ac8c50f79f8ff
081f881c735466ed1dbbd68646b821299c5168f8
refs/heads/master
2023-07-25T23:58:22.179717
2020-03-15T09:36:05
2020-03-15T09:36:05
149,087,967
5
1
null
2023-07-25T15:39:12
2018-09-17T07:45:09
CSS
UTF-8
Python
false
false
1,856
py
import unittest from datetime import datetime import django from django.test import TransactionTestCase class TestAttribute(TransactionTestCase): @classmethod def setUpClass(cls): super(TestAttribute, cls).setUpClass() django.setup() @unittest.skip def test_datatype_to_data_object(s...
[ "grusinator@gmail.com" ]
grusinator@gmail.com