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
e6598a812d349f8f87994cd30681974bef4771b0
6b3dc07cc118dc68b942d593041e198c8e4b82f5
/conftest.py
c95a8cd2e7c5c28ff5f77808433b913fd1577fb7
[]
no_license
BarysTsibets/Stepik_Selenium_Python_tasks
e1603010aae93a5dc7c698a22126d8660f14218e
b0b96cc37c2276ee68623e0bfbe866261ae9bcd5
refs/heads/master
2022-12-23T12:31:49.171178
2020-10-01T00:10:46
2020-10-01T00:10:46
295,846,742
0
0
null
null
null
null
UTF-8
Python
false
false
991
py
import pytest from selenium import webdriver PATH1 = r'C:\Users\BorisPC\PycharmProjects\untitled\HelloWorld\Automation\driver\chromedriver.exe' PATH2 = r'C:\Users\BorisPC\PycharmProjects\untitled\HelloWorld\Automation\driver\geckodriver.exe' def pytest_addoption(parser): parser.addoption('--browser_name', action=...
[ "molekyla_08@mail.ru" ]
molekyla_08@mail.ru
5e4a0ac99813e835e0faa58dd39e06c62ee81d61
5208a988cfe97dcc515cb26e4f39e2da2763e6b6
/HouseSpider/items.py
e0a721e96efa04573898f743f04675998808be40
[]
no_license
xuyun0906/HouseSpider
f316582de448acd91faf0fa00be9d761f5569e06
e3fa9f57b1716fa841a44629d4b9372d4b5bae79
refs/heads/master
2020-04-10T08:22:04.239227
2018-12-09T15:06:58
2018-12-09T15:06:58
160,904,248
0
1
null
null
null
null
UTF-8
Python
false
false
1,842
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html import scrapy from scrapy import Item, Field class XiaoquItem(scrapy.Item): id = scrapy.Field() # 小区ID url = scrapy.Field() # 小区链接 name = scrapy.Field()...
[ "yunxu_master@126.com" ]
yunxu_master@126.com
c5517dd7c08f39a902510e7f3cd4029fc8a11a87
900e3a70c3264d43a8a478143ec0443b7afc9083
/helpers.py
d497e49a30802ccb27deb6bfe120b39e0b050c7d
[]
no_license
James171/nfl_team_comparison_app
285fa5b48f36fda67ecf469cb0ca092e458568c3
1428cca60faefca64e111d2e072e6d3c2924a5cc
refs/heads/master
2021-02-19T01:49:11.382554
2020-05-06T19:23:59
2020-05-06T19:23:59
245,265,062
2
0
null
null
null
null
UTF-8
Python
false
false
1,325
py
import os import requests import urllib.parse from flask import redirect, render_template, request, session from functools import wraps # Hide API Key from viewers api_key = os.environ['API_KEY'] # Lookup function to to get hierarchy api information and team ID def lookup(symbol): # Contact API try: ...
[ "26070680+James171@users.noreply.github.com" ]
26070680+James171@users.noreply.github.com
e017a965c13c03a73293617f8454c31ae8b81cac
8ffe631d5493bb03c50e9acaf82edd864bde5abc
/bin/trial
9f2c35a964d485cd1ccce351972aaecdb992960b
[]
no_license
aditya172926/scrapy-scrap
58f7f7de77aa2ebddd31d21b213a1ab58a7b6bd4
f4b29b329412e326c7b698a086eb75df860ca5cc
refs/heads/master
2022-11-09T20:20:57.543829
2020-06-28T05:57:02
2020-06-28T05:57:02
275,516,556
0
0
null
null
null
null
UTF-8
Python
false
false
252
#!/Users/harshshetye/Desktop/scrapy_scrap/bin/python # -*- coding: utf-8 -*- import re import sys from twisted.scripts.trial import run if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(run())
[ "aditya26sg@gmail.com" ]
aditya26sg@gmail.com
e51ace0d5c0e2ac2999081b7aaabcb7594237299
81bdddb98eaa89c2a2256d2f40be6d5f92d3f9cd
/edr/edsmserver.py
0694116964ab4dda5bc18f9ccdf17bd5feb2cf55
[ "Apache-2.0" ]
permissive
Majorjjamo5/edr
e91af77512dc415ccca8496757edecb5f9cae692
0b05c04954bded5952d4b28886f97f599cd30792
refs/heads/master
2020-03-29T00:06:46.277576
2018-09-17T00:58:07
2018-09-17T00:58:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,769
py
import json import urllib import edrconfig import edrlog import requests import urllib EDRLOG = edrlog.EDRLog() class EDSMServer(object): def __init__(self): config = edrconfig.EDRConfig() self.EDSM_API_KEY = config.edsm_api_key() self.EDSM_SERVER = config.edsm_server() def system...
[ "33626494+lekeno@users.noreply.github.com" ]
33626494+lekeno@users.noreply.github.com
658779025acf197840a145bf6b531d133d94f75b
f0d864a4a26ab5a95462df0f1016039f1ba69895
/tests/test_equal_air_temperature.py
3d9827fc4209359847c1cad74f7fc40ba93fcd1c
[ "MIT" ]
permissive
ThomasSchuetz/ThermalBuildingModel
7cd6f4007fc0e67ab7007392b8c71bc5aaa32546
f1a9417451374ac5632980df62f859a51e91851a
refs/heads/master
2022-12-19T13:24:02.118303
2020-09-25T07:43:01
2020-09-25T07:43:01
297,264,852
0
1
null
null
null
null
UTF-8
Python
false
false
1,881
py
# -*- coding: utf-8 -*- import numpy as np import pytest from thermal_building_model.eqAirTemp import equal_air_temp class TestEqualAirTemperature: def test_equal_air_temperature_case_08(self): t_outside_raw = np.loadtxt("inputs/case08_t_amb.csv", delimiter=",") t_outside = np.array([t_outside_raw[...
[ "thomas.schuetz@eon.com" ]
thomas.schuetz@eon.com
6bedde275f4ca48faeadfd4bab076e488b4228ea
cdb05cd3d2e90320bdb8469d7a0a3731457afbf6
/base/products.py
40365ad96ff37abac239c249d1e2016976a4d115
[]
no_license
lastdefiance20/Campirit_Website_Example
c80a9d06e15b2c855a512c869d4c1ed30a6f835c
ba4d80057d77a7b6484eb5c7e88caf3553035d5c
refs/heads/master
2023-07-15T12:07:40.483139
2021-08-31T23:50:44
2021-08-31T23:50:44
387,822,800
3
0
null
null
null
null
UTF-8
Python
false
false
2,575
py
products = [ { '_id': '1', 'name': 'Airpods Wireless Bluetooth Headphones', 'image': '/images/airpods.jpg', 'description': 'Bluetooth technology lets you connect it with compatible devices wirelessly High-quality AAC audio offers immersive listening experience Built-in microphone allows you to t...
[ "lastdefiance20@gmail.com" ]
lastdefiance20@gmail.com
54109eabfcfbc9695ac0860bc473d43ead1adcb8
0266f371319c28227a948fb105440ef74a3c583d
/tests/test_util_methods.py
8f2614102db8a1e8235c6930336ef83eab1e57bc
[ "MIT", "Python-2.0" ]
permissive
qbicsoftware/mtb-converter-cli
2ff264576c07a0c383b59f817d076ebe3d76d884
8a2a33f511fcc1b9791aad4a5ff6a44a16f1d72a
refs/heads/master
2021-09-15T09:08:08.005762
2018-05-14T19:28:58
2018-05-14T19:28:58
115,716,098
0
0
null
null
null
null
UTF-8
Python
false
false
974
py
""" Tests for util methods """ import os import unittest from nose.tools import raises from mtbconverter import utils INVALID_BARCODE = "QLAUCH123AE" VALID_BARCODE = "QAHJH006A4" INVALID_PATH = "my/file/QLAUCH123AE_file.fastq.gz" VALID_PATH = "my/file/QAHJH006A4_file.fastq.gz" PATH_WITH_MULT_BARCODES = "my/file/QAHJH0...
[ "sven.fillinger@qbic.uni-tuebingen.de" ]
sven.fillinger@qbic.uni-tuebingen.de
352561a6b78afefc483b5c4fb0eb6fdc50bbde25
dab17ec8e693ed85e5e88c8da2c8557b100fe479
/bak/plot_matrix.py
af51422e4752ccf9822d290479e797d8b81a0bdf
[]
no_license
chenm2015/homework-alarm
de83b384dce4e9321b101138a055156ca13d2660
9524833aa07f253980cf004b9b4d58973d2c9fc0
refs/heads/master
2020-12-14T14:08:34.713901
2016-05-04T06:21:31
2016-05-04T06:21:31
20,043,395
1
0
null
null
null
null
UTF-8
Python
false
false
1,919
py
import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import matplotlib.dates as mpldates import subprocess import ast from matplotlib.dates import HourLocator, DayLocator from matplotlib.patches import Ellipse, Rectangle from matplotlib import cm from matplotlib import ticker fro...
[ "cenmong@gmail.com" ]
cenmong@gmail.com
e18cf06b5b2dc63197823de50c35c4e582ab59e9
772be6c5f04273b8e53485128e625d89fa13cb18
/algorithms/warmup/Diagonal-difference.py
1db5412cd07a5a314f7e4b36645f32ab834dfafc
[]
no_license
anandvimal/hackerrank
4f714c44756b65886ff56c3c42ed8bc03477f436
148221da61f03859035009d307e2955ecf760fe2
refs/heads/master
2021-01-20T20:08:04.392126
2016-06-19T22:58:24
2016-06-19T22:58:24
59,915,520
0
0
null
null
null
null
UTF-8
Python
false
false
371
py
import sys n = int(raw_input().strip()) a = [] for a_i in xrange(n): a_temp = map(int,raw_input().strip().split(' ')) a.append(a_temp) x=0 sum1 = 0 sum2 = 0 for i in a: d1 = i[x] d2 = i[len(i)-1-x] #print d1 #print d2 #print " " sum1 = d1 + sum1 sum2 = d2 + sum2 x+=1 #print...
[ "colirsweb@gmail.com" ]
colirsweb@gmail.com
b484e91c0ba83b8e1b68afae32e927f0094f3207
cb025bce485f2900c588dc6853b58aaba2db8e85
/venv/bin/pip2.7
6bec2a6dd4dfc14afa4c65d9de1459e799c1d0cc
[]
no_license
jovannovkovic/athon
04fc0fd0729133e504e30a03e721e8c415a4b803
2059160a58dfebdf891097dd5b3bc4bb50daf5bc
refs/heads/master
2020-06-06T04:21:23.494297
2015-04-06T10:05:42
2015-04-06T10:05:42
30,805,852
0
0
null
null
null
null
UTF-8
Python
false
false
233
7
#!/home/popara/Desktop/backend/venv/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())
[ "popara@gmail.com" ]
popara@gmail.com
ee6f7db289489973bebf80ffdf3c8346f71732cc
6d5c5fbbefb6b6dfc398adfc054f09cb95fbdcaf
/rh_pathfinding/src/rh_pathfinding/utils/minheap.py
e8cbf2a4ee3c61c7adc7c8c6290a9deff3e0d774
[ "MIT" ]
permissive
Wuxinxiaoshifu/rh_ros
46a8d75d10317aef04c57785653a6b00ddcb2b63
e13077060bdfcc231adee9731ebfddadcd8d6b4a
refs/heads/master
2022-04-11T15:12:38.539565
2020-04-09T19:51:46
2020-04-09T19:51:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,479
py
import heapq class MinHeap: """ What you'd expect. There is probably a better one, but this is simple and meets our needs. """ def __init__(self): self._heapList = [] self._inc = 0 def isEmpty(self): return len(self._heapList) == 0 def __len__(self): return ...
[ "stephenpheiffer1@gmail.com" ]
stephenpheiffer1@gmail.com
1382cc4d3aa5afb92ec947c4c5b49adc271ec8ad
6d05c14eaf6e638d5bf0faf69c74a7f80eefcc82
/gaussian_gradient/gaussian_gradient.pyde
e638d302c89da26699bfd0df2c48f8aa1e3acec4
[]
no_license
npabon/Processing
9e21cbfa2eca1afc75fb78761731b1bee1be0571
a7a6e2eb341aef14bf262405d221c7ad24666c8b
refs/heads/master
2020-03-07T22:52:07.923780
2018-07-11T13:00:33
2018-07-11T13:00:33
127,765,952
1
0
null
null
null
null
UTF-8
Python
false
false
1,009
pyde
from gaussian_support import init, run from palettes import nature_palettes_6_color import random as rand add_library('svg') n=10 points = [] current = [] def setup(): size(800,500) background(255,255,255) noStroke() #blendMode(MULTIPLY) noLoop() def draw(): global points, c...
[ "npabon15@gmail.com" ]
npabon15@gmail.com
532430bc032a5da32c5501e5d1e2fe6e3cfaf911
d8e7ed4d1e89aec85f1cd0006f8caca5ddc183c4
/page_object/index/search_page.py
1d3d0a4f5a283b1f46871918217c656078dfa3d3
[]
no_license
reach950/hangzhoubanshi-uitest-iOS
3bf7585e0b42a734ec8eb1db29b5a0ea82527809
ce25cff3da3fb6f7e3c4a96f6e92f8b62b139c3c
refs/heads/master
2021-06-19T15:27:42.801633
2019-11-14T08:17:05
2019-11-14T08:17:05
187,554,944
0
0
null
2021-06-01T23:45:36
2019-05-20T02:30:54
Python
UTF-8
Python
false
false
2,716
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """搜索页""" __author__ = 'kejie' import time from appium.webdriver.common.mobileby import MobileBy from page_object.base_page import BasePage class SearchPage(BasePage): # 搜索输入框 search_field_loc = (MobileBy.CLASS_NAME, 'XCUIElementTypeSearchField') # 搜索按钮 ...
[ "reach950@gmail.com" ]
reach950@gmail.com
0f776e18f96167e136351a53c789777a2a35a629
cbc5e26bb47ae69e80a3649c90275becf25ce404
/xlsxwriter/test/comparison/test_chart_layout04.py
f377a5806721d2af1d65752bac33bb918a5d84f3
[ "BSD-2-Clause-Views", "BSD-3-Clause", "MIT" ]
permissive
mst-solar-car/kicad-bom-generator
c3549409c3139f787ad28391372b5cb03791694a
2aae905056d06f3d25343a8d784049c141d05640
refs/heads/master
2021-09-07T14:00:40.759486
2018-02-23T23:21:13
2018-02-23T23:21:13
107,868,801
3
0
null
null
null
null
UTF-8
Python
false
false
1,764
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2017, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
[ "mwrb7d@mst.edu" ]
mwrb7d@mst.edu
d021d36f984ab643b089ddca6cf72adba3e0c21e
e3565e1ce607f60745f2a045aae8026661a6b99b
/resources/Onyx-1.0.511/py/onyx/grid/griddy.py
b7fdb67930c51b30bfc7c426ac2a4ed49d48c2c2
[ "Apache-2.0" ]
permissive
eternity668/speechAD
4c08d953b2ed06b3357b1c39d8709dd088a2471c
f270a1be86372b7044615e4fd82032029e123bc1
refs/heads/master
2021-01-12T22:10:33.358500
2014-02-03T16:03:28
2014-02-03T16:03:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,152
py
########################################################################### # # File: griddy.py (directory: ./py/onyx/grid) # Date: 4-Feb-2009 # Author: Hugh Secker-Walker # Description: A function for use in testing by gridgo.py # # This file is part of Onyx http://onyxtools.sourceforge.net # ...
[ "nassos@n12mavra.cs.ntua.gr" ]
nassos@n12mavra.cs.ntua.gr
9eb02a16cb5679b043e158e4f36ae3ea11a51e80
162f0a636cab320ead784b33597e583e38ac432f
/1744.py
f339b7b48defbece73a4dddc7bee0dbea7c0d161
[]
no_license
goodsosbva/BOJ_Greedy
fc2450df90f64790f6cc01c168ba7f19ec83e504
98d21af254cacf41632a4b40ca9ef643b29bb104
refs/heads/main
2023-03-31T17:26:33.863396
2021-04-06T07:50:57
2021-04-06T07:50:57
347,081,712
1
0
null
null
null
null
UTF-8
Python
false
false
1,641
py
n = int(input()) sequence = [] negative = [] positive = [] res = 0 for i in range(n): i = int(input()) sequence.append(i) for k in sequence: if k < 0: negative.append(k) elif k > 0: positive.append(k) else: negative.append(k) negative.sort() positive.sor...
[ "noreply@github.com" ]
goodsosbva.noreply@github.com
48cf0f54c8738ea16878d6beb0a2fd2a8d7aa385
c50e5af8f72de6ef560ee6c0bbfa756087824c96
/刷题/Leetcode/84. 柱状图中最大的矩形/p84_Largest_Rectangle_in_Histogram_暴力.py
7430809260718f7c390d48a5c4dc9f9b4dcaa792
[]
no_license
binghe2402/learnPython
5a1beef9d446d8316aaa65f6cc9d8aee59ab4d1c
2b9e21fe4a8eea0f8826c57287d59f9d8f3c87ce
refs/heads/master
2022-05-27T03:32:12.750854
2022-03-19T08:00:19
2022-03-19T08:00:19
252,106,387
0
0
null
null
null
null
UTF-8
Python
false
false
1,012
py
from typing import List class Solution: # # 遍历不同边界(宽度),根据最小高度 # def largestRectangleArea(self, heights: List[int]) -> int: # area = 0 # for i in range(len(heights)): # for j in range(i, len(heights)): # area = max(area, (j-i+1)*min(heights[i:j+1])) # return ...
[ "binghe2402@hotmail.com" ]
binghe2402@hotmail.com
b7be68b02706b304621a9f728282913df839691a
bd0792ec5d61dfc325839d4dd112e6f71f015a46
/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/config.gypi
54fab577d66e035f9cd35cc8b00fab0c27acd9fc
[ "Apache-2.0", "MIT" ]
permissive
GeoffreyLong/scheduler
d9666760cf6b77f687f6e1a026ceff825743dd53
5d30e41c72e5b705c7576088f03f6c9c360ab387
refs/heads/master
2020-05-05T08:03:38.102170
2014-09-14T12:28:57
2014-09-14T12:28:57
21,985,621
0
0
null
2014-09-14T12:28:57
2014-07-18T15:50:51
JavaScript
UTF-8
Python
false
false
3,019
gypi
# Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], "default_configuration": "Release", "defines": [], "include_dirs": [], "libraries": [] }, "variables": { "clang": 0, "gcc_version": 47, "host_arch": "x64", "node_install_npm": ...
[ "Geoffrey.Long@mail.mcgill.ca" ]
Geoffrey.Long@mail.mcgill.ca
0f7628c5c4ce70e0322d89e5ace91c558952f845
bdb75d503f097c4b10fd0744705b873919e001b0
/Question8partB.py
79380aae7b2ab6ca0653471180eb0e64a6a76235
[]
no_license
joshuamaxion/plc-test2
8f4f6c3878462bbc936cbb872efa725c41fb0916
3d9c00f5675d926d666d8db330a5629be9068c5a
refs/heads/main
2023-04-10T02:36:22.413122
2021-04-22T20:46:15
2021-04-22T20:46:15
359,655,267
0
0
null
null
null
null
UTF-8
Python
false
false
210
py
# Online Python - IDE, Editor, Compiler, Interpret int set A{ x=2; y=5; z=9; set C(); } int set B{ x=1; z= 16; } int set C{ y = 20; z = 4; set B(); } x = 0; y = 3; z = 12; print %(x,y,z)
[ "noreply@github.com" ]
joshuamaxion.noreply@github.com
91a113c4ada5b426c5ec2a79294fad93cc6a42ec
3003d18727cd4c122d7c8de62a90acba4ec0b168
/main.py
966f44c686f3c1f14f5752beec8cbdf7a6cbb2b6
[]
no_license
kelvin5hart/blind-auction
eabd8c7dbf66fe20556e04069f704629d5165b61
2e6216d5ec79bfe5059d7bfc6e331507c9163193
refs/heads/master
2023-03-07T22:58:50.141445
2021-02-13T10:12:05
2021-02-13T10:12:05
338,546,232
0
0
null
null
null
null
UTF-8
Python
false
false
558
py
from replit import clear import art print(art.logo) entries = {} continueBid = "yes" while continueBid == "yes": name = input("What is you name? \n") bid = int(input("What's your bid? \n$")) optionNext = input("Are there other bidders? Type 'yes' or 'no' \n").lower() entries[name] = bid clear() print(entr...
[ "atemiehartkelvin@rocketmail.com" ]
atemiehartkelvin@rocketmail.com
366ea396e642b9019bb557961a0b903fbe4531e5
3ae01569e10db9e4b3036a6e877ef24a3f056179
/website/openeuler_release_refresher/obs/util.py
1b8b9459e04a65dd9c973feeb9ee6743a3f3af57
[ "Apache-2.0", "MIT" ]
permissive
openeuler-mirror/infrastructure
f3bc92bdc8af9285a549045a6180593f7d9e16fe
d1020ab3fe7535f75da9e8b24e6221f103422ac0
refs/heads/master
2023-09-01T18:08:00.704355
2023-08-26T18:00:04
2023-08-26T18:00:04
246,005,363
0
2
Apache-2.0
2023-05-23T05:51:28
2020-03-09T10:25:26
Python
UTF-8
Python
false
false
12,786
py
#!/usr/bin/python # -*- coding:utf-8 -*- # Copyright 2019 Huawei Technologies Co.,Ltd. # 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 r...
[ "hu.husheng@huawei.com" ]
hu.husheng@huawei.com
78cd82f5ea823208cc3cca8afffd365191738c29
0e667b514d3b129c1ba4d53d5a70eb66b507f50f
/Shop/models.py
c2b18b4ce4beee2c2bb37a3383e47957109dbd19
[]
no_license
frank9th/AkomShop-DjangoEcommerce
ec5c736afbb0019676d56198a191c077f2c731fd
4847899f53cd5f2fda4eec93f8ad98d758e602a1
refs/heads/main
2023-02-26T03:59:20.089902
2021-01-08T12:52:57
2021-01-08T12:52:57
322,301,528
0
0
null
null
null
null
UTF-8
Python
false
false
2,616
py
from django.db import models from django.contrib.auth.models import User # Create your models here. class Customer(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE, null=True, blank=True) name = models.CharField(max_length=200, null=True) email = models.CharField(max_length=200, ...
[ "ap.teamservices@gmail.com" ]
ap.teamservices@gmail.com
c6fef081bd46b0cb2875a2870bf64ad4631575c4
baffcef29e33658138c43ef358d7399ab3ea2c0d
/WORKFLOWS/Tools/NEC/NAL/nal-model/rest/test/unit/test_dcs.py
cb088e130c920d2697ba7584fef6500526bdc175
[ "Apache-2.0", "JSON" ]
permissive
openmsa/NO
aa7d4ff000875bfcff0baee24555ec16becdb64e
24df42ee3927415b552b5e5d7326eecd04ebca61
refs/heads/master
2020-03-09T23:21:09.657439
2019-03-29T06:29:07
2019-03-29T06:29:07
129,056,267
0
1
null
null
null
null
UTF-8
Python
false
false
7,271
py
import json import mysql.connector import os import sys import unittest import urllib.request import urllib.parse sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/../../../') from rest.api import router from rest.conf import config class TestSelectAPI(unittest.TestCase): # Do a test of Select. ...
[ "ofa@ubiqube.com" ]
ofa@ubiqube.com
0f40b2b6ad662f88bf819ec5071e79cabccb3e9e
280a3f5d22aeaf609264eb1d4006d7fced75a212
/hdcrm/migrations/0015_sku_currency.py
d4dcbb64f5dae9846ad35462a5b0f5cec5528514
[]
no_license
lianhuness/django1
9e51f322ef5ca484e69e1a6f2d44caa70629145c
53dfd38e940f9571be8174fba0ed43fc1d98ab9e
refs/heads/master
2021-07-22T04:31:18.985141
2017-10-29T15:46:55
2017-10-29T15:46:55
108,743,007
0
0
null
null
null
null
UTF-8
Python
false
false
501
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-10-10 15:54 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hdcrm', '0014_sku_name'), ] operations = [ migrations.AddField( ...
[ "lianhuness@gmail.com" ]
lianhuness@gmail.com
7162ab9918f49d29d858a7e54c83899411bb2c2a
d4dc405c159b575568044766f756caf7e5ca4c38
/app/bin/dltk/core/deployment/params.py
d86e5b4ad2951da0c96d9eefb0e8a1b702ea1127
[ "ISC", "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
tatsunobuMurata/deep-learning-toolkit
283824ae01f13ee929d91f3a049848a9a3dd7646
84f9c978d9859a96f6ba566737a5c7102738d13c
refs/heads/master
2023-02-21T19:44:41.919214
2021-01-07T11:53:56
2021-01-07T11:53:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
367
py
__all__ = [ "get_default_param", ] def get_default_param(name, environment, algorithm=None, runtime=None): environment_param = environment.get_param(name) if environment_param is not None: return environment_param if algorithm: return algorithm.get_param(name) if runtime: ...
[ "hovu96" ]
hovu96
8edbd040378fdcfdb0fb7e75b5cfad27cb05c423
4a1438c2e99d3452827351433e75119b62f28c26
/holi/wsgi.py
316480cbeab3f9f708d3934404d82851300ebe70
[]
no_license
taowang6000/holi_Django
407747baa0d9a06cd51cff6e65a78fbfe368bc0a
48c237b59a3ce7e90ea96bfacfa39975e7eae9cd
refs/heads/master
2021-08-19T02:34:29.415738
2017-11-24T13:56:43
2017-11-24T13:56:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
""" WSGI config for holi project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTING...
[ "tao@TAOs-MacBook-Pro.local" ]
tao@TAOs-MacBook-Pro.local
f8e9765b859dd527defd2ce06933a55ecb70e041
35fdd5b42b47a1dbe6a25f6fc1865f4e48b842a5
/evalml/tests/component_tests/test_catboost_classifier.py
1ef6fd41a8656a2914d90172ce42a92330d0a24e
[ "BSD-3-Clause" ]
permissive
skvorekn/evalml
41e5426f9f7d5ad625c21b74336009894c79c7de
2cbfa344ec3fdc0fb0f4a0f1093811135b9b97d8
refs/heads/main
2023-03-27T01:42:07.691406
2021-03-19T18:53:43
2021-03-19T18:53:43
349,555,689
0
0
BSD-3-Clause
2021-03-21T14:57:01
2021-03-19T21:08:12
null
UTF-8
Python
false
false
837
py
import pandas as pd from pytest import importorskip from evalml.pipelines.components import CatBoostClassifier from evalml.utils import SEED_BOUNDS importorskip('catboost', reason='Skipping test because catboost not installed') def test_catboost_classifier_random_seed_bounds_seed(X_y_binary): """ensure catboost...
[ "noreply@github.com" ]
skvorekn.noreply@github.com
e7bb019278a9a0e6f5cca4f0270baf54e8ada1b2
8a19822ceaf8096a5a8e59a30919662b95bcb5e4
/AzureCluster/eventhubssastoken.py
b87c3582bdb56f9091ce3544f4bf82a032f7fcf9
[]
no_license
junkaixue/service-fabric-java-quickstart
053f60623a424f10e401107690079a5a973d97f8
858adc98339d8ecbacc83d9a9e1eae602006fd31
refs/heads/master
2022-04-09T15:39:11.359255
2020-03-25T23:44:44
2020-03-25T23:44:44
361,007,546
0
1
null
null
null
null
UTF-8
Python
false
false
1,073
py
#!/usr/bin/env python import sys import time import urllib from urllib.parse import urlparse import hmac import hashlib import base64 def get_auth_token(sb_name, eh_name, sas_name, sas_value): print(sb_name) print(eh_name) print(sas_name) print(sas_value) uri = urllib.parse.quote_plus("https://{...
[ "sudhanvahuruli@gmail.com" ]
sudhanvahuruli@gmail.com
1e48d5e5be10c8f681d187b11d997a55db54f7a6
c221de88d7efcc08b0fe654eded554ec50c9340a
/cv/颜色映射.py
1c8e41f55781c0cdf01be145d58a96873fbebf5a
[]
no_license
daviddych/dnn_application
51be77520af2f54344fdebc26e5e11cf2d6a6e58
df2ae0860a4f470ec6bf4943802fe905a3bebec3
refs/heads/master
2020-04-27T13:36:46.100612
2019-05-17T09:05:37
2019-05-17T09:05:37
174,376,139
0
0
null
null
null
null
UTF-8
Python
false
false
572
py
#!/usr/bin/env python #coding:utf-8 import cv2 import numpy as np # (r,g,b) --> (r, b * 1.5, g * 1.3) def assert_pixel(x): if x > 255: x = 255 elif x <0: x = 0 return x if __name__ == '__main__': img = cv2.imread('data/cat.jpg', 1) rows, cols, chs = img.shape dst = np.zero...
[ "287382545@qq.com" ]
287382545@qq.com
9dafe0bbc395eab1c1bc9a764c84764d4c75733f
9e4724734b1de620030ba80f84e36d08172648f5
/test_main.py
81e8bc9568dd35cc6223d9e1415723b5eb0c5160
[]
no_license
Steve-107/pyqt_GUI
c351f889bee2f1df17acfd91023c3af47b34848f
b03f453a9bfb9b9e1c35799799508a78dd6f3392
refs/heads/master
2023-05-21T13:57:52.997119
2021-06-11T16:45:43
2021-06-11T16:45:43
375,743,219
0
0
null
null
null
null
UTF-8
Python
false
false
6,657
py
import sys from MainFrame import Ui_Form from PyQt5 import QtWidgets, QtCore from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * from PyQt5.QtGui import QMouseEvent, QCursor , QMovie from sheetstyle import * class MyMainFrame(QtWidgets.QWidget, Ui_Form): max_flag = False mic_st...
[ "yourwsb@163.com" ]
yourwsb@163.com
b0b3a3821927cc4c14af702c3ae0565c27730f69
23dde32f52f7672c61500d344de0923382e81b17
/script.service.jogwheel/addon.py
20f26ccde9e436587f13e08589d0c5275a5f33fb
[]
no_license
spielzeugland/kodi-control-panel
5226148dcaca881812a49ed92f5732c347902654
755c74f43617a5670a8942274201018908092e37
refs/heads/master
2021-01-21T15:07:28.373026
2018-11-17T21:13:06
2018-11-17T22:20:18
57,076,527
0
0
null
null
null
null
UTF-8
Python
false
false
1,094
py
import xbmc import lib.generic.worker as worker import lib.generic.configuredLogging as configuredLogging import lib.generic.kodi as kodi import lib.configuredMenu as configuredMenu from lib.display import Display from lib.inputs import Inputs if __name__ == "__main__": inputs = None try: configured...
[ "spielzeugland@users.noreply.github.com" ]
spielzeugland@users.noreply.github.com
bebcffe5ecafc72fe596f81506b37bdc8eedc5cf
1dd4c6833ebf731879ad222e57577cfc27db8ea0
/queue.py
3a6a99af4f82d1e87a24239b44b79b0ff8c266c4
[]
no_license
peeblesbrandon/data_strucs_and_algos_in_python_exercises
b3a46e99bee2d6c6c2ba09f409b4e1f44c193300
77d70cd1bf13f9e7a7e64bfce00a5fd90d87e1b7
refs/heads/master
2023-01-24T01:17:46.607104
2020-11-22T17:10:55
2020-11-22T17:10:55
275,945,581
0
0
null
null
null
null
UTF-8
Python
false
false
2,647
py
from colorama import Fore, Back, Style class Empty(Exception): pass class ArrayQueue: DEFAULT_CAPACITY = 10 def __init__(self): self._data = [None] * ArrayQueue.DEFAULT_CAPACITY # use Class.global_var to access self._size = 0 # elements in queue self._front = 0 # front eleme...
[ "peeblesbrandon@gmail.com" ]
peeblesbrandon@gmail.com
be4cffb85075a9800f3d78a74574e03d9aa3acb0
25223ca66ccd039bd3a67ceeaa0247dd33008ff5
/homework/hw-test.py
d96b16fa8eb723ffc711481c5f3b0bddef34fa56
[]
no_license
joqhuang/si
ad160cbf021fe062a87ae935a6e0373ffc8932ad
cbb57ca1da9bbba41663a688c704f038b33d9624
refs/heads/master
2021-05-06T11:04:05.904818
2018-01-23T18:44:52
2018-01-23T18:44:52
114,205,555
0
0
null
null
null
null
UTF-8
Python
false
false
650
py
exam_one = int(input("Input exam grade one: ")) exam_two = int(input("Input exam grade two: ")) exam_three = int(input("Input exam grade three: ")) grades = [exam_one, exam_two, exam_three] sum = 0 for grade in grades: sum += grade avg = sum // len(grades) if avg >= 90: letter_grade = "A" elif avg >= 80: ...
[ "questionableinsanity@gmail.com" ]
questionableinsanity@gmail.com
e7cbec8407c61c7b724171aa967674dbf244853b
89bae02f23e787416fda894a128c9abfb4986515
/metalearning/allennlp/tests/modules/matrix_attention/cosine_matrix_attention_test.py
cff481ba8ea3a77de780b912867c54cef1eb849c
[ "Apache-2.0" ]
permissive
asheverdin/multilingual-interference
f2e64cebfffc749b080fa64860659922224e6e65
7bc1b5918142e3c84bea83c5a7f39e3f245172e9
refs/heads/main
2023-05-12T13:07:19.997696
2021-05-28T22:16:26
2021-05-28T22:16:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,518
py
import torch from numpy.testing import assert_almost_equal import numpy from allennlp.common import Params from allennlp.common.testing.test_case import AllenNlpTestCase from allennlp.modules.matrix_attention import CosineMatrixAttention from allennlp.modules.matrix_attention.matrix_attention import MatrixAtten...
[ "lcur0308@test3.irc.sara.nl.irc.sara.nl" ]
lcur0308@test3.irc.sara.nl.irc.sara.nl
9be0e397a6794662e1b56e0a657678f25f26b112
16556dbc3a50f627e2441038168a40c2474d8f4d
/Session_3_Solved_question/List_Solution/change_list_nth_to_(n+1)th.py
b40c2c50e7f5990679ae24fc9f35e548fb3e7cd4
[]
no_license
Kratos-28/258349_Daily_Commit
73669fc69e8fb36fca8146a8e054077d183e79d8
9c3192d99f6342f5fd07c5a455318b08c8bfda97
refs/heads/master
2023-04-18T07:31:43.215780
2021-04-23T08:52:27
2021-04-23T08:52:27
359,241,594
0
0
null
null
null
null
UTF-8
Python
false
false
269
py
from itertools import zip_longest,chain,tee def change_list(lst): lst2=tee(iter(lst),2) return list(chain.from_iterable(zip_longest(lst[1::2],lst[::2]))) n=[11,22,33,44,55,66,77,88] print("before changing the list: ",n) print("Change list to: ",change_list(n))
[ "surajarya517@gmail.com" ]
surajarya517@gmail.com
d236f4d719fe15f5144cc8972bf498f6257cdaaa
55d8abdf2008630172e27d22bedd1a9775bc4d36
/code/algospot_boggle.py
777d62689aaac95b9b3f090c11a3a19ce839e1c6
[]
no_license
keeka2/algorithm_study
b184fb5fea84ea6c9ca65ee6dde99500b377894b
df1183cf6f8cd240e894ae2d968c94804b612abe
refs/heads/main
2023-04-01T15:12:58.316841
2021-04-04T13:58:08
2021-04-04T13:58:08
344,655,968
0
0
null
null
null
null
UTF-8
Python
false
false
1,477
py
# https://algospot.com/judge/problem/read/FENCE import sys def solution(board, word_dict, find_word): dx = [0, 1, 0, -1, 1, 1, -1, -1] dy = [1, 0, -1, 0, 1, -1, 1, -1] start_word = find_word[0] if start_word in word_dict: stack = word_dict[start_word][:] idx_stack = [1 for _ in range(l...
[ "noreply@github.com" ]
keeka2.noreply@github.com
6efe0840dad330e8780acea33e1d0f9f97bbd1cf
503b38aaec3c632b78285f7ca016f13a2c14fcd4
/products/forms.py
301a034e15ac6296e8317166313e6f1221a93d84
[]
no_license
Glitch-dev1/Test
f876ddaafccf2f02748001f8a53e43f031649f23
a46d375a40cae70b4d10c36bbf9fe16b8a118901
refs/heads/master
2023-07-02T19:05:47.461216
2021-08-08T16:17:07
2021-08-08T16:17:07
392,296,916
0
0
null
null
null
null
UTF-8
Python
false
false
402
py
from django import forms from .models import Product class ProductForm(forms.ModelForm): description = forms.CharField(widget=forms.Textarea(attrs = { "rows": "10", "cols": "35", } ) ) class Meta: model = Product fields = [ 'nam...
[ "83586216+Glitch-dev1@users.noreply.github.com" ]
83586216+Glitch-dev1@users.noreply.github.com
16cdd7293c435d61297667e7acc054a367ccb5c2
9fff62d7d6f23bb42a5b489a0ee25ecb6c63c07e
/runExp.py
59ffa3140c8d81c0cfa7c011d42567368bf10145
[]
no_license
fancyqlx/graphJ
d488647a2759f72faf7151c5c2930c1eab56fc28
979fe309c52e9ab0282d54395ae019692958838c
refs/heads/master
2020-03-10T07:18:42.418827
2018-06-09T09:09:23
2018-06-09T09:09:23
129,260,299
1
1
null
null
null
null
UTF-8
Python
false
false
1,157
py
import os def generateGraph(): os.system("rm -r graphData/*") os.system("python GenerateGraph.py") def generateRandomGraph(): os.system("rm -r graphData/random*") os.system("python GenerateGraph.py") def compileJavaSource(): os.system("javac -d target/classes/ -cp target/classes/ -s src/main/java...
[ "fancyqlx@163.com" ]
fancyqlx@163.com
2d18223999ed02bcf8f908978267d515d97287d0
59b4d0f5fbfa7795241583e7684486368a825080
/cs1440-felt-grayson-assn0/lsn/1-TextProcessing/ex0.py
bbac0607d42338291fcfb751a41f65807e513848
[]
no_license
grayfelt/CS1440
a405ca6e5b7408dd28c05f67b74431e209943d1b
ecc466352468081a902829bc9110a90f4b8adb10
refs/heads/master
2022-12-20T17:34:50.539105
2020-10-03T18:00:38
2020-10-03T18:00:38
295,624,932
0
0
null
null
null
null
UTF-8
Python
false
false
1,140
py
def findWords(sentence): wordsToReturn = [] # TODO: Return the words in `sentence` that are five characters or less # for word in sentence... word = '' for w in sentence: sum = 0 for c in w: sum += 1 if sum <= 5: wordsToReturn.append(w) ...
[ "noreply@github.com" ]
grayfelt.noreply@github.com
81678e4f401442962478ab90127c24b61b21e897
c074ce302e0a2a09ebe8b0a94e342380afbaa911
/beakjoon_PS/no2579_2.py
7c00e40144c179d3cbf2eca5fbd8ec8eb8d546f6
[]
no_license
elrion018/CS_study
eeea7a48e9e9b116ddf561ebf10633670d305722
3d5478620c4d23343ae0518d27920b3211f686fd
refs/heads/master
2021-06-10T13:35:20.258335
2021-04-25T10:12:17
2021-04-25T10:12:17
169,424,097
1
0
null
null
null
null
UTF-8
Python
false
false
555
py
import sys N = int(sys.stdin.readline()) stair = [] for _ in range(N): stair.append(int(sys.stdin.readline())) dp = [[0, 0] for _ in range(N)] if N > 2: dp[0][0] = stair[0] dp[1][0] = stair[1] dp[1][1] = stair[0] + stair[1] dp[2][0] = stair[0] + stair[2] dp[2][1] = stair[1] + stair[2] f...
[ "elrion018@gmail.com" ]
elrion018@gmail.com
6c967bd79071b400c2a1d94b4ebb7d4f1bb9b7a6
b92c9c1c5c7e8cf1d63f20a88515af0a4417e55a
/data_structures/linked-list/linked_list.py
f4decfa6bc3581a340c41034aae22f1765d78d1d
[ "MIT" ]
permissive
glasscharlie/data-structures-and-algorithms
8506cd23ec1e1f257ae8066247d0f695b72bc384
4546a0606334c6e3156b567d8cc82d39fb183c58
refs/heads/master
2021-06-24T22:50:46.707322
2020-02-14T12:33:07
2020-02-14T12:33:07
225,463,373
0
0
MIT
2021-04-20T21:14:37
2019-12-02T20:33:21
Python
UTF-8
Python
false
false
3,603
py
class Node: def __init__(self, value=None): self.value = value self.next = None class LinkedList: def __init__(self): self.head = None def insert(self, value): new_node = Node(value) new_node.next = self.head self.head = new_node return value def i...
[ "charlie-glass@live.com" ]
charlie-glass@live.com
d33d0228e5fc83abc26914e524837108513efb50
5611e60f5a9fb2b37db7d305f7c126e645bbd78c
/defOS/defOS/urls.py
7a4b95f3fb5eb89bc17ea891e7c841ca5e059881
[]
no_license
defossystem/DefOS
d58ea7f4b0f2d65ea7338f232e292f22f3d31274
51929ccb5dc34a1bd6d5e0b1114728ab94c03b8f
refs/heads/master
2021-01-19T12:37:22.529121
2017-02-17T18:50:58
2017-02-17T18:50:58
82,327,737
0
0
null
null
null
null
UTF-8
Python
false
false
822
py
"""defOS URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based...
[ "matheus.pessoa16@gmail.com" ]
matheus.pessoa16@gmail.com
fbd49bfeec9947ef6f83b1e9787a0081f6be9f05
57775b4c245723078fd43abc35320cb16f0d4cb6
/Data structure/linked-list/delete-node-given-position.py
cc4164b336e8f1ad6093479327c26ce5514d4106
[]
no_license
farhapartex/code-ninja
1757a7292ac4cdcf1386fe31235d315a4895f072
168fdc915a4e3d3e4d6f051c798dee6ee64ea290
refs/heads/master
2020-07-31T16:10:43.329468
2020-06-18T07:00:34
2020-06-18T07:00:34
210,668,245
0
0
null
null
null
null
UTF-8
Python
false
false
2,394
py
""" Given a ‘key’, delete the first occurrence of this key in linked list. To delete a node from linked list, we need to do following steps. 1) Find previous node of the node to be deleted. 2) Change the next of previous node. 3) Free memory for the node to be deleted. """ class Node: def __init__(self, data): ...
[ "farhapartex@gmail.com" ]
farhapartex@gmail.com
edfcd0b67010b318be752683aea47602efef2e0e
9b57429efa72dbfa2ead9ae8d98a148475264aef
/dataservice/zmq/UPcomputer_part/data_process_0mqsubsys/codetestfile.py
5b92ab166e2e97779e29006953d6456126db19c8
[]
no_license
Scottars/nis_website
7d78b1ab8647ebf17bc2b020660a56ac6f6a039f
2025e428dd65dba06c95738233978604ee011570
refs/heads/master
2022-03-07T19:04:15.565128
2021-01-19T16:03:50
2021-01-19T16:03:50
218,421,853
0
0
null
2022-03-02T06:49:57
2019-10-30T01:58:29
JavaScript
UTF-8
Python
false
false
155
py
import struct b = b'exp' + struct.pack('!f', 12) print(b) print(b[0:3]) if b[0:3] == b'exp': exp_id = struct.unpack('!f', b[3:7])[0] print(exp_id)
[ "ScottarSEEE@hust.edu.cn" ]
ScottarSEEE@hust.edu.cn
f14500003a9a3d376ce6ea46eaa9209c444e174e
71303c14f31fbc8e674b53b6eb734838cfb392e0
/Loop.py
bcbb6e1b77afd139ccdf31a6e41f20e642766149
[ "MIT" ]
permissive
luiz-fischer/Python
b776285d155ace065b99bbbd97e5128619d83d4a
03e85c3456bdee675a246a9d78dde17e351ce2f4
refs/heads/master
2023-01-02T12:21:49.636616
2020-11-03T00:47:06
2020-11-03T00:47:06
309,091,841
1
0
null
null
null
null
UTF-8
Python
false
false
1,302
py
#WHILE i = 1 while i < 6: print(i) i += 1 #The Break Statement i = 1 while i < 6: print(i) if i == 3: break i += 1 #The Continue Statement i = 0 while i < 6: i += 1 if i == 3: continue print(i) #The Else Statement i = 1 while i < 6: print(i) i += 1 else: print("i is no longer less than...
[ "luiz.fischer@alunos.sc.senac.br" ]
luiz.fischer@alunos.sc.senac.br
82ecfd01834d11e1c0de1b980af3a9cafb7d5d79
d0fec74acfbfdee1b662736731c1cc988e2ba2ee
/problem_44/p044.py
45a4578f96261bb8aeac04304edbc1ab5ebc2014
[]
no_license
msztylko/project-Euler
fdd0cfefbe88b63f6dbd2d08f1cd59270b9e1735
b3f5ce828ccc6662c100dd27fa295fc8afa22f6e
refs/heads/master
2021-11-23T02:50:19.333259
2021-10-31T17:52:28
2021-10-31T17:52:28
195,980,596
1
0
null
null
null
null
UTF-8
Python
false
false
1,851
py
import itertools, sys if sys.version_info.major == 2: range = xrange def compute(): pentanum = PentagonalNumberHelper() min_d = None # None means not found yet, positive number means found a candidate # For each upper pentagonal number index, going upward for i in itertools.count(2): pen...
[ "marcin.sztylko@gmail.com" ]
marcin.sztylko@gmail.com
2615d1f8724a3ba4639ef2ce0ddd8f607108b8bc
6adbc70bd71c26e1c837509d8d09fffb6f23e418
/sieve_of_e.py
3e596ebb8f1dafbf3f272186fe5356a11e7c43ad
[]
no_license
random-weights/prime_numbers
a8892e0aab8fa52ddc46636732fc85d8ad600562
dcdccf69d17f33c1b8c6fcfcf66b0f48cbddadd8
refs/heads/master
2020-06-17T20:47:47.551462
2019-07-22T21:36:26
2019-07-22T21:36:26
196,049,221
0
0
null
2019-07-10T16:08:23
2019-07-09T16:54:19
Python
UTF-8
Python
false
false
2,563
py
""" sieve of e....list out all numbers from 2 to n. cross off numbers by making multiple passes over the array. dont store numbers, instead store only the boolean isPrime which by default is set to True for all numbers. since the array starts with integer 2, number at any index is i+2 where i is the index """ impo...
[ "ram.thubati@gmail.com" ]
ram.thubati@gmail.com
b3727709256989d10a71597d181a6473bd4cf24f
2a227fe131600485707a53791ae2e056063196b8
/sshttproxy.py
bb0b54da36a6960a5be6e78998160a246ae30964
[]
no_license
BharatAntil/sshttproxy
f14d0f4f439119ea6c4ea7f26904bc7279e4ef3e
4d13996e49520f8938a26025e3ee60294bb754c1
refs/heads/master
2022-12-20T19:44:03.429456
2011-03-08T12:47:35
2011-03-08T12:47:35
300,006,260
0
0
null
2020-09-30T17:54:32
2020-09-30T17:54:31
null
UTF-8
Python
false
false
3,285
py
#!/usr/bin/python import argparse import re import traceback from collections import defaultdict import eventlet from eventlet.green import select paramiko = eventlet.import_patched('paramiko') ssh_client_locks = defaultdict(eventlet.semaphore.BoundedSemaphore) ssh_clients = {} def get_ssh_client(hostname): """Create...
[ "dave@orman.(none)" ]
dave@orman.(none)
dbe98b3d3b69f2864a7216c5b3197f0d31cb863a
52cb5e2190c7e7c1c3317653c76f5e110358503b
/main/models.py
caa208ba7ed95183debe7a430eda55b293fcae19
[]
no_license
nixiaohui/webT
228ea5199481f1becc7fb79f4a78e8c1748003f5
eff7c7d4db8cdd1b5038f47a66080f9387a113e2
refs/heads/master
2023-02-05T15:18:04.460832
2019-06-27T04:36:04
2019-06-27T04:36:04
194,019,916
0
0
null
2023-02-02T06:32:28
2019-06-27T03:59:23
Python
UTF-8
Python
false
false
4,333
py
from datetime import datetime from app import db class Article(db.Model): __tablename__ = 'articles' id = db.Column(db.Integer, primary_key=True, autoincrement=True) title = db.Column(db.String(100), nullable=False) content = db.Column(db.Text, nullable=False) def __repr__(self): return ...
[ "6089870@qq.com" ]
6089870@qq.com
ca0bf818f5d797fe169d26f5876caf9e6873172e
197b10d75ba44b22fca29f8d69c2922b72cb8ca5
/ship/api.py
ae8690dc1a4da94d2c96e6f66ac78b8994a82a42
[]
no_license
webbyfox/py_master
c713c87cf4fd7d2697765211cdaefd7b49f96adc
e4b3ef5ea618b8f91c363d7f51d0e7b7064762a9
refs/heads/master
2021-01-11T14:45:15.060075
2017-01-27T13:24:58
2017-01-27T13:24:58
80,209,118
0
0
null
null
null
null
UTF-8
Python
false
false
2,519
py
# -*- coding: utf-8 -*- from rest_framework import viewsets, mixins, status from rest_framework.pagination import LimitOffsetPagination from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from assessment.auth import TokenAuthSupportQueryString from .injection_setup impor...
[ "mr.mansuri@gmail.com" ]
mr.mansuri@gmail.com
e7c22075cb792d7fe56f635557a0684186338535
40face04db4d2ce5fe785262d67ff6fa3c1a455c
/canteen_frontend_2.py
0bb86a61bc1a5b5df9904282d33f7679041a7f71
[ "MIT" ]
permissive
ishaanalmeida/College-Canteen-Management-System
1ae505cb9ff8d83733ceb7417325b3560c9c6aa5
149ca593b893c01635491d381fd067a76c887516
refs/heads/main
2023-03-18T07:55:10.597356
2021-03-04T20:18:26
2021-03-04T20:18:26
344,597,772
0
0
null
null
null
null
UTF-8
Python
false
false
8,643
py
#frontend from tkinter import * import tkinter.messagebox from tkinter import ttk import canteen_backend_2 color1="SkyBlue1" color2="ghost white" options=["NONE", "CHINESE DOSA","RAWA MASALA DOSA","CHOPSUEY DOSA","SADA DOSA", "VEG FRANKIE","PANEER FRANKIE","CHEESE FRANKIE","SCHEZWAN FRAN...
[ "noreply@github.com" ]
ishaanalmeida.noreply@github.com
0a9b0d33a479f994ccc21835586abd03aef43929
dfac8913a8f9a7ee9615cd3e86be87cc8f268095
/net-tools/coroutineDemo/Gevent_Group.py
01d1d9b107b5950d2f2976a49546bcc1ffa2be8d
[]
no_license
speence/python-tools
f894e4971bce3d274a01dd43f2f8f33a311783b9
287aebfd68723c22ed2bae154b30c4fa8a4f56c1
refs/heads/master
2021-05-12T07:46:50.637131
2015-02-03T01:29:09
2015-02-03T01:29:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
820
py
import gevent from gevent import getcurrent from gevent.pool import Group # example 1 def talk(msg): for i in xrange(3): print(msg) def Demo1(): g1 = gevent.spawn(talk, 'bar') g2 = gevent.spawn(talk, 'foo') g3 = gevent.spawn(talk, 'fizz') group = Group() group.add(g1) group.add(g2...
[ "liudepei1129@gmail.com" ]
liudepei1129@gmail.com
effb09cc5701e16d280b1dbbea9921aead19d8fb
a37afb5108edeb0798a4e8439fd811e404627976
/boston_housing/visuals.py
b3a708e69cd285a27d8cb7ca10c1c1e73d1874e5
[]
no_license
Trezcool/udacity-ml
19141859d848d49d88e0729291704bea7484e467
0abf1fd3a793283a1452569dd6027ecefc98d028
refs/heads/master
2023-04-27T07:59:57.745635
2019-05-08T01:05:42
2019-05-08T01:05:42
184,679,519
0
0
null
2023-04-23T17:01:50
2019-05-03T00:51:57
HTML
UTF-8
Python
false
false
4,882
py
########################################### # Suppress matplotlib user warnings # Necessary for newer version of matplotlib import warnings warnings.filterwarnings("ignore", category=UserWarning, module="matplotlib") # # Display inline matplotlib plots with IPython from IPython import get_ipython get_ipython().run_li...
[ "kambembotresor@gmail.com" ]
kambembotresor@gmail.com
d2462ea0d850cd6935ccb6c60eff3fbb00faf7d7
07917881310fc81d85a2cbdf27c9b3c4fa03c694
/python1812/python_1/17_测试_收发邮件_二维码/代码/04_验证码生成器.py
4d493eee3597ce7e1c156d58c53c29845e19966c
[]
no_license
zaoyuaner/Learning-materials
9bc9a127d1c6478fb6cebbb6371b1fd85427c574
1f468a6f63158758f7cbfe7b5df17f51e3205f04
refs/heads/master
2020-05-18T11:38:45.771271
2019-05-20T09:07:44
2019-05-20T09:07:44
184,384,050
2
3
null
null
null
null
UTF-8
Python
false
false
2,363
py
import datetime import hashlib from PIL import ImageFont,ImageDraw,Image from random import randint class VerifyCode: def __init__(self,width=100,height=40,size=4): """ :param width: 验证码的宽度 :param height: 验证码的高度 :param size: 验证码的长度 """ self.width = width if width > 0 else 100 self.height = height if h...
[ "13510647877@163.com" ]
13510647877@163.com
aa4c1d64ab5007478c6035cf4a0c3268d542695f
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_tow.py
bbb4161da8d142413231367d45dc13fd41964c06
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
369
py
#calss header class _TOW(): def __init__(self,): self.name = "TOW" self.definitions = [u"to pull someone's vehicle using a rope or chain tied to your vehicle: ", u'being pulled along: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'nouns' def run(sel...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
55fbfc547d984965fbab0a24f74781b31bdce204
2a2b36a603e1fefeaca902381b6377a44bb503af
/api/tpRequest.py
eb5f48ce67b85aa56bddc10b21c8075af4586aab
[]
no_license
nenad/TPpy
1c3f848df48f4cef4a6dcd3fb01efa401d0457a3
8b261cdea8e1d418288397d8e62ad2b9a7246385
refs/heads/master
2021-05-30T23:26:26.344356
2016-04-15T13:14:57
2016-04-15T13:14:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,813
py
import json from configuration import config from requests.auth import HTTPBasicAuth import requests class TPRequest: def __init__(self): self.query = "" self.entity_id = "" self.username = config.get('username') self.password = config.get('password') self.basicUrl = "" ...
[ "n.stojanovik@voxteneo.com.mk" ]
n.stojanovik@voxteneo.com.mk
4d913b9bc6e6760166c0ea0aa4e1fc5244a33c68
b05ae9148e58f421ddc0125318cf65bfbda85264
/cms/migrations/0008_auto_20190715_1435.py
fe46766d491d6d581aa4c6dfff1755de460341ec
[]
no_license
icalunyu/lovisatya
f5f072ab29f88d6e7c7708a2f3d9714acd33c8e3
6e3ef4128809416711cd941a18b4cab069058e17
refs/heads/master
2020-06-20T06:39:19.124968
2019-07-15T15:48:33
2019-07-15T15:48:33
197,027,942
0
0
null
null
null
null
UTF-8
Python
false
false
672
py
# Generated by Django 2.2.3 on 2019-07-15 14:35 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cms', '0007_auto_20190714_1504'), ] operations = [ migrations.AddField( model_name='rsvp', name='phone', ...
[ "dipinjemangger@El-Capitan.local" ]
dipinjemangger@El-Capitan.local
606baf852b5d77f9f1bc1b3011ce75d1d4f1b514
8ec1858ea1aab27f67c3948464882507de46818b
/day1/2.py
f01d20b16452fe0c24da495c6af8112bf82126bb
[]
no_license
nhuzaa/advent_of_code_y2020
534adb822c8cf031513b85a6fd3ea910280f60f9
3c4349afc48fbcc85f8be20e5bb7d0f560aca9bd
refs/heads/master
2023-01-24T10:09:39.906885
2020-12-12T09:52:26
2020-12-12T09:52:26
317,801,054
0
0
null
null
null
null
UTF-8
Python
false
false
1,239
py
'''condition sum 2020 then get the product of it ''' def main(): SUMTO = 2020 # num_list = [1,2,3,4,5,6,7,8,9,10,11] f = open("input2", "r") data = f.read() num_list= [int(x) for x in data.splitlines()] print(num_list) #filter out the list less_than_yr = [x for x in num_list if x <= ...
[ "nhuzaa@gmail.com" ]
nhuzaa@gmail.com
71fe34c375dc7c5a2bbdddab6e00a7ceee37f963
bb6bacdb86362989fa0a72cfcf8120c8de9828b8
/clustering/gaussian_clustering.py
75d692ee804289916aed3a31370b29c237879071
[]
no_license
platoneko/unique-ai-freshman-mission
c6624fde7135f0b834f0483f330024c849f8d330
661a0cc2a682429cce42c9f7a180ac4459109c53
refs/heads/master
2020-03-31T02:07:02.041486
2019-04-21T07:57:19
2019-04-21T07:57:19
151,807,120
0
0
null
null
null
null
UTF-8
Python
false
false
2,803
py
# -*- coding: utf-8 -*- import numpy as np import random from math import * def get_gaussian_prob(x, mean, sigma, n): return exp(-0.5 * np.mat(x - mean) * sigma.I * np.mat(x - mean).T) / ((2 * pi)**(n/2) * np.linalg.det(sigma)**0.5) def gaussian_clusters(x, k): m, n = x.shape mean_array = x[random.sa...
[ "platonekosama@gmail.com" ]
platonekosama@gmail.com
3178fff39f09febceb828ec936b3cf022ba96a20
d374c0359a80ffc2fbc66fc405a882fe5534ea6f
/list01/ex10.py
c528e2dd6136606985a2c1b8b5a7d50e4b038a53
[ "MIT" ]
permissive
flavio-brusamolin/py-scripts
e941e7d55b54e7478f0d8df7fdb425d887821dda
d80b9efc7fc1b59a5cf110180efc03cdc839cd23
refs/heads/master
2022-10-07T17:41:07.339899
2020-06-06T06:04:42
2020-06-06T06:04:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
distance = float(input('Enter trip distance in Km: ')) print(f'Value: {distance * 0.5 if distance <= 200 else distance * 0.45}')
[ "flaviobrusamolin@gec.inatel.br" ]
flaviobrusamolin@gec.inatel.br
24fa38cb1a5db921dd96c5f040aa58a9b77b65e4
7950e35b32e252690a82faf5aefc06e433e9bd34
/cleverhans/serial.py
9fc379d763ec15b0686422d9d09b7d66f61d0654
[]
no_license
machanic/cleverhans_adversarial_example_gen
b717da4b803cec2b67d0fc730392b137d20682d5
d5300f8a1228b4c9fe26568a956f06c36df03627
refs/heads/master
2022-11-21T19:10:01.258478
2020-07-21T15:45:03
2020-07-21T15:45:03
173,035,907
5
0
null
null
null
null
UTF-8
Python
false
false
8,230
py
"""Serialization functionality. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import warnings import joblib import tensorflow as tf from cleverhans.model import Model from cleverhans.utils import ordered_union from cleverhans.utils import safe_zip ...
[ "sharpstill@163.com" ]
sharpstill@163.com
cb0b7de7110594cc60db9f4425dd32d4cf0f3dc2
50cd2203e4a19e4191c7710d955feb2159391a41
/lib/json_exporter.py
98345320bf4cf0d47b2c729d57b701d311980453
[ "MIT" ]
permissive
phareeser/workouts
9555ce0dde9e3c7af4f1afa4cb3f3bff5b7dc8a8
36be728402e5829b5f32000ff7d315b96d9f00a2
refs/heads/master
2023-02-26T05:35:38.553384
2021-02-06T08:58:38
2021-02-06T08:58:38
250,558,148
0
0
MIT
2021-02-05T17:16:16
2020-03-27T14:37:43
Python
UTF-8
Python
false
false
1,443
py
# coding=utf-8 from lib.workout_exporter import WorkoutExporter from lib.workout import Workout, Sport, SportsType, WorkoutsDatabase import logging import json logger = logging.getLogger(__name__) class JsonExporter(WorkoutExporter): """ Exports workouts from a database to a json file """ def __ini...
[ "github@reeses.eu" ]
github@reeses.eu
925de84479dcf1d87e11ce81b0c8dc7b15d21acd
8a495b823576b5c0bb39decd44575de20b1dc43d
/hydrus/client/db/ClientDBFilesStorage.py
79d2c246ceddf3d6d68933dbb19b89d0713923d8
[ "WTFPL" ]
permissive
Treadder/hydrus
f8c11e9798316cc5457497e9bff56236727862e0
ca2f5f161214aa6df3900809f9ca18339c3e1f9a
refs/heads/master
2023-09-06T08:46:05.694446
2021-11-17T21:22:27
2021-11-17T21:22:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
33,781
py
import collections import sqlite3 import typing from hydrus.core import HydrusConstants as HC from hydrus.core import HydrusData from hydrus.core import HydrusDB from hydrus.client import ClientConstants as CC from hydrus.client import ClientSearch from hydrus.client.db import ClientDBMaster from hydrus.client.db imp...
[ "hydrus.admin@gmail.com" ]
hydrus.admin@gmail.com
c2c07f41578eba965c4833092c81a399fa745b4d
edec4b9eaf88d910a95df2bbca77c9eac44a7a97
/58 Next Day.py
9835624b858c2672b52a507fb8bb09b59a7dc4e9
[ "MIT" ]
permissive
L0ganhowlett/Python_workbook-Ben_Stephenson
1babdf1a5517f773b008a78dea35e9ea302204c6
ab711257bd2da9b34c6001a8e09d20bfc0114a3f
refs/heads/main
2023-03-18T19:54:30.725213
2021-03-13T09:48:04
2021-03-13T09:48:04
347,330,506
0
0
null
null
null
null
UTF-8
Python
false
false
926
py
#58: Next Day a=input("Enter the date:") b=[1,3,5,7,8,10,12] c=[4,6,9,11] d=a.split('-') year=int(d[0]) month=int(d[1]) date=int(d[2]) if year%400==0: x=True elif year%100==0: x=False elif year%4==0: x=True else: x=False if 1<=month<=12 and 1<=date<=31: if month in b: date+...
[ "noreply@github.com" ]
L0ganhowlett.noreply@github.com
cd5736c1eebcc8037098247e603314f43137a4bc
43bb3856e40d9ca3d7378b951b6dec9788675313
/scripts/main.py
20481d0e998ad616fb0b87a11be87482edef6f2b
[]
no_license
abhib85/Assignment
3aa57c6cb4581a60ef85d204944429b8741d3356
a62f7a8812a7d26147c572911305c9398e493aad
refs/heads/master
2023-03-19T08:49:12.624847
2021-03-04T06:06:50
2021-03-04T06:06:50
344,368,717
0
0
null
null
null
null
UTF-8
Python
false
false
2,629
py
#importing modules import pandas as pd from configparser import ConfigParser import os import glob import logging import pandas as pd import os.path logging.basicConfig(filename='C:/Users/abhi/PycharmProjects/pythonProject_11feb21/logs/logt',level=logging.DEBUG,filemode='a',format='%(asctime)s:%(levelname)s:%(message...
[ "abhib85@yahoo.co.in" ]
abhib85@yahoo.co.in
5665e09c10141bbaec53e616bd41f19c27445136
102e7f138f6abd4eefaedb69f48a82b60f7cf193
/day21/demon4.py
06cad2637aa03bf27ac71587366ff9e38856cb39
[]
no_license
Ivan-yyq/livePython-2018
33fd455d976d08188f751574e8ee377c52aabac3
be18999839a28a322ce58434348b25b62647c65e
refs/heads/master
2020-03-16T21:36:45.648373
2018-07-27T02:58:33
2018-07-27T02:58:33
129,837,410
0
0
null
null
null
null
UTF-8
Python
false
false
917
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/5/19 21:27 # @Author : lingxiangxiang # @File : demon3.py import time import multiprocessing from multiprocessing import Value, Array, Manager def add1(value, number): print("start add1 number= {0}".format(number.value)) for i in range(1, 5...
[ "15625087150@163.com" ]
15625087150@163.com
e15fca6405f366c3103d7c00f519962d002b58d4
53244518737c86a8567c1efbd2e4b2d7cfd13d8a
/garment_shop/asgi.py
e6eb4a04abc24a3940c4414f898990d0a0e43354
[]
no_license
artzvrzn/garment_shop
073489cc31d0f6aee7a73a17eedeee553275cd47
aa8c448b7a59d722e65915d61220a4ba1eec8a97
refs/heads/main
2023-03-11T08:56:07.686169
2021-02-22T18:43:45
2021-02-22T18:43:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
""" ASGI config for garment_shop project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_...
[ "art.zvrzn@gmail.com" ]
art.zvrzn@gmail.com
9d189e75fd3269e07584170d02020eb5de7afdea
b333ead2d9b2fd64733d32974e53ee9bbeceadb2
/apps/oranizations/__init__.py
1c36daee004a8ec3cd60f99efaab40a73093c315
[]
no_license
Nideayu/bwonline
4774518d2105e093195407f2f5e2617f4b053db7
aecfc99aad6d122540ab7d1cf9b94ffcfd0b7172
refs/heads/master
2023-02-24T02:53:12.720462
2021-01-20T10:07:26
2021-01-20T10:07:26
326,538,239
1
0
null
null
null
null
UTF-8
Python
false
false
59
py
default_app_config = 'oranizations.apps.OranizationsConfig'
[ "1242469403@qq.com" ]
1242469403@qq.com
701d80bc1243f7dba692f2859ab68a0de98476a8
546d3804d05bdd999fbe499d2aad6b5ad2a1dcf0
/타이타닉 데이터 분석 및 시각화.py
837da2e28df41c5d46592e5f4f24fb1b203ec4fc
[]
no_license
RockhoRockho/Titanic-anlaysis_visualization
40237c0bef5b87e8b816ba82baf1006ceb61b262
c9a198df9d156fe5af507eb1764b78b162cf3a30
refs/heads/main
2023-07-23T08:34:32.294521
2021-09-03T13:27:20
2021-09-03T13:27:20
402,753,040
0
0
null
null
null
null
UTF-8
Python
false
false
3,732
py
#!/usr/bin/env python # coding: utf-8 # # 타이타닉 데이터 분석 및 시각화 # ---- # In[1]: import numpy as np import pandas as pd import seaborn as sns # In[2]: sns.set_style('whitegrid') # In[3]: titanic = sns.load_dataset('titanic') # In[4]: titanic.head() # In[5]: titanic.describe() # In[6]: titanic.dropna(...
[ "noreply@github.com" ]
RockhoRockho.noreply@github.com
87e2891c541d13b67c9a58b0d0a406bc9f2443c4
8c91511845bd3574e02f999b75e263b152698b99
/python/reviProva/Python-master/17_ValorNaFaixa.py
1d76c9b772be8727355c521fe531d86461ca7382
[ "MIT" ]
permissive
jardelhokage/python
9626f6e79a1779f2bef936752cd0c187e5390d0f
f2a3a9cb5a51c032e6fa36dcb4af24f8bd390f46
refs/heads/master
2020-08-11T04:20:46.612128
2019-10-11T17:18:21
2019-10-11T17:18:21
214,490,145
0
0
null
null
null
null
UTF-8
Python
false
false
190
py
#Valor na faixa numero = int(input('Digite um número: ')) if numero in range(1, 10): print("O valor está na faixa permitida!") else: print("O valor informado está fora da faixa!")
[ "jardel.ct@hotmail.com" ]
jardel.ct@hotmail.com
9ebf83d033ab7245eb43f26c2e25b455511aebc6
94462ad305ce7811a46ed7e14db774a8dd303442
/problems/76_minimum_window_substring.py
ace30ee4e650ee5d52dd435370d8442f2f43bdee
[ "MIT" ]
permissive
lucasheriques/leetcode-solutions
dfa7529b36a5bfffe1e05bf2b4d09cec59da8ce5
cd36b5df46a75a0cb17569faf9cf56186864f68a
refs/heads/master
2020-07-04T20:14:52.034387
2019-09-21T01:44:05
2019-09-21T01:44:05
202,401,532
0
0
null
null
null
null
UTF-8
Python
false
false
947
py
from collections import Counter class Solution: def minWindow(self, s: str, t: str) -> str: if len(s) < len(t) or not s or not t: return "" table = Counter(t) counter = len(table) begin = end = 0 response = (0, len(s)) while end < len(s): ...
[ "lucasheriques@gmail.com" ]
lucasheriques@gmail.com
a569570bf007e78a5309d1fdf90329df076ce608
63fb6123aff12e7cfeec5f91e6fb7da371558a39
/version2/game/player.py
b747394a507f7951e8487bb52a4b59c25d09bcb5
[]
no_license
Pratere/Asteriods
f4db94dfba794ee2f591db48ff8d24f0cfb94aaf
2935966b8029332aadc9c33964665502e2b45646
refs/heads/master
2020-07-12T02:01:50.559947
2019-08-27T11:35:35
2019-08-27T11:35:35
204,690,114
0
0
null
null
null
null
UTF-8
Python
false
false
1,407
py
import pyglet import math from pyglet.window import key from . import physicalobject, resources class Player(physicalobject.PhysicalObject): def __init__(self, *args, **kwargs): super().__init__(img=resources.player_image, *args, **kwargs) self.thrust = 300.0 self.rotate_speed = 200.0 ...
[ "eliprater@dhcp-10-241-162-60.cp.wireless.private.cam.ac.uk" ]
eliprater@dhcp-10-241-162-60.cp.wireless.private.cam.ac.uk
5abf6fa46ed937255a0421db8f04f7d3d0691eaa
8a85d3dc46c0e397f0b111e4ce785d1b533d8949
/patient/models.py
d57ef70cc4a668c2ce5292033001df94957488f8
[]
no_license
Sidhanta184/project
547da6744e9ede8493418ef4ec65bae9522f65f5
5659fc7b47d7ce7bdfdbc7e39ee7868c07006102
refs/heads/master
2020-12-08T09:32:03.545967
2020-01-10T02:33:20
2020-01-10T02:33:20
232,947,298
0
0
null
null
null
null
UTF-8
Python
false
false
1,817
py
from django.db import models from django.utils import timezone from doctor.models import Doctor from medical.models import Medicine,Medical from lab.models import Lab,Test # Create your models here. gender = (('male','Male'),('female','Female'),('other','Other')) class Patient(models.Model): id=models.BigAutoField(...
[ "noreply@github.com" ]
Sidhanta184.noreply@github.com
1345cc0e0a984974cc45d265fb5e248b561053c2
b503e79ccfca67c8114f5bd7a215f5ae993a0ba4
/airflow/providers/amazon/aws/sensors/glue.py
21a82da9ee9d040fd45ccda5044d467bf7c6b4c3
[ "Apache-2.0", "BSD-3-Clause", "Python-2.0", "MIT" ]
permissive
github/incubator-airflow
df1d9780f862ea1df8261ea6015dd50a4583f983
73f70e00b9fd294057f8ca6b714a85622f6d5dd5
refs/heads/gh-2.0.2
2023-07-29T18:08:43.140580
2022-09-14T18:23:42
2022-09-14T18:23:42
80,634,006
24
27
Apache-2.0
2023-04-18T04:24:36
2017-02-01T15:34:55
Python
UTF-8
Python
false
false
2,398
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 not...
[ "noreply@github.com" ]
github.noreply@github.com
c7ee17d7cc63737119b7d48ee0b522964c5d1ade
17559a4c13ee3d6991b7448315e8f0ea0cd0a74d
/add_patient.py
1cfa0d3aba60b8e2d1ea16e329eb0af4804ef47f
[]
no_license
BhutdaNilesh/HospitalManagamentSystemGUI-PyQt5
4a4ba50b3a1b13d1958f1f78c54b4925450b2151
8005c6e5e727f099e99657fa9b4c776a27a3f825
refs/heads/main
2023-08-05T10:30:29.940269
2021-09-16T08:54:14
2021-09-16T08:54:14
406,760,368
0
1
null
null
null
null
UTF-8
Python
false
false
9,039
py
import sys,os from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtCore import * from PIL import Image import sqlite3 DefaultImg = "xyz.png" con = sqlite3.connect("Hospital_database.db") cur = con.cursor() now = QDateTime.currentDateTime() dt = now.toString(Qt.ISODate) last = cur.execute("SELECT * FR...
[ "bhutdanilesh2517@gmail.com" ]
bhutdanilesh2517@gmail.com
f2e9286044675907e079b6077b71208aafa5528d
a9b8f84c55aa64d4721de11e34e6fc300453be1b
/public/packages/pymongo/v28/pymongo/common.py
7c53646dd809b43309aad38e4e69fa55b96ca912
[]
no_license
xuning992/tfty
f17273db407bb5ca87f583b114a42eb8e83d67fc
20785621b933d2d6bdc293e953710faef4268bf6
refs/heads/master
2022-12-13T22:39:14.696326
2017-11-19T15:23:11
2017-11-19T15:23:11
111,306,251
0
0
null
2022-07-05T21:08:37
2017-11-19T15:11:40
Python
UTF-8
Python
false
false
27,865
py
# Copyright 2011-2014 MongoDB, Inc. # # 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 in writi...
[ "xuning992@163.com" ]
xuning992@163.com
61e722729eb792ee9f5ba92ae25d075658ce71ff
f7947f8a53601f13e26905e837d96e02cc9fc88a
/converted/export_char_indices.py.py
1468aaf6f723b2dd1a3e01dd9c9283711e3a1a21
[]
no_license
Steve0929/TaylorFlow
c059db617ce0fdde8bc18606ad60bd4eb4364b40
914bdc0e22cf3763444a0650c3ab64066c104f8d
refs/heads/master
2020-03-22T18:22:20.144280
2018-07-27T23:10:08
2018-07-27T23:10:08
140,455,695
0
0
null
null
null
null
UTF-8
Python
false
false
1,439
py
import keras import numpy as np import random import sys import json text = open('C:\\Users\\chimi\\Desktop\\tay.txt').read().lower() print('Text Corpus length:', len(text)) maxlen = 25 # We sample a new sequence every `step` characters step = 3 # This holds our extracted sequences sentences = [] # This h...
[ "noreply@github.com" ]
Steve0929.noreply@github.com
28c3ffb6bbd7754e4df12ec0219e684700edecc8
fca7013508d883e1f1c0b030aca2fdd69c39f7ce
/Dynamic Programming 2/Partition.py
d4fe7918b4b1f34e4fc49b06eb0c803a4909fea5
[]
no_license
AnshuGit2/AnshuGit2-Algorithmic-Design-and-Techniques
4c686e7d8093e0cc6ae1503b51993572a066efb7
484a6db184f290cc9652b0cbd7bce0bcada59f1a
refs/heads/main
2023-08-17T12:57:57.666744
2021-01-18T00:16:22
2021-01-18T00:16:22
329,479,666
0
0
null
null
null
null
UTF-8
Python
false
false
851
py
# Python 3 import numpy def partitions(W, n, items): """ Finds if number of partitions having capacity W is >=3 (int, int, list) -> (int) """ count = 0 value = numpy.zeros((W+1, n+1)) for i in range(1, W+1): for j in range(1, n+1): value[i][j] = value[i][j-1] if it...
[ "noreply@github.com" ]
AnshuGit2.noreply@github.com
61d00c0a43a81a997af12a5df819936ceddd4160
fce8394300cd83e29fcf4362caf259e6f7a4813e
/src/mod_plot.py
69faa320b25b4ae102502c51d87410d76951fd7c
[ "MIT" ]
permissive
maxbeauchamp/2020a_SSH_mapping_NATL60
1982d7be625aca82d876f2d1240e6ac415c19640
04ce00567496c72f8988b78e3f5ac1575b66c42c
refs/heads/master
2022-12-16T17:50:44.838016
2020-09-04T09:47:05
2020-09-04T09:47:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,416
py
import xarray as xr import numpy import logging import matplotlib.pylab as plt from matplotlib.ticker import ScalarFormatter def plot_psd_score(ds_psd): try: nb_experiment = len(ds_psd.experiment) except: nb_experiment = 1 fig, ax0 = plt.subplots(1, nb_experiment, sharey=True...
[ "adeajayi.kunle@gmail.com" ]
adeajayi.kunle@gmail.com
36f1d5f72557f2f12255cef6d2f407bc9c8305f7
19f2286819c18c84ef5ba16a7e7a5dcf51a4f338
/Day 23 Complete Binary tree.py
bbc0231a439eb4ff9ceb9a815a10a065508dd072
[]
no_license
abhishek2chikun/200daysofdsa
7cbb78d98d89847f404966afa655455280252961
932a7f20de5d0ddcd1b22c3bb3d2a093ba437854
refs/heads/master
2023-01-04T16:04:14.005028
2020-10-28T05:02:34
2020-10-28T05:02:34
291,129,160
4
0
null
null
null
null
UTF-8
Python
false
false
1,016
py
class Node: def __init__(self,data,left=None,right=None): self.data=data self.left=left self.right=right def is_Complete(root,n,index): if root is None: return True if index>=n: return False return is_Complete(root.left,n,2*index+1) and is_Complete(ro...
[ "noreply@github.com" ]
abhishek2chikun.noreply@github.com
45e451b6f6e00f0071841994037f11b34c3d3553
9b0d8477e49f3c201805d3fb68bf9589a4402462
/modules/db.py
d33491ddc28bc8e0b64ad1ee256fc00e67bce090
[]
no_license
Hwangtaewon/utility
e2333090ea243d0da5cc2edd07ba89218df1555c
cb41375050d1ff13077f0ed6dd451d9c74f8f8f1
refs/heads/master
2020-12-30T09:04:07.194461
2020-01-30T05:31:04
2020-01-30T05:31:04
238,942,065
0
0
null
null
null
null
UTF-8
Python
false
false
4,018
py
from .requester import Requester import json import base64 class DB(object): def __init__(self, dbdomain="http://127.0.0.1:8000"): self.dbdomain = dbdomain self.requester = Requester() def get_subdomains_of_company(self, company): # parameter error handling ...
[ "" ]
33fe40510a1cc856b3402f89f10238ce8935ca07
1449894eff0a437e15da2ac79f4c567e63ea5de5
/src/EIS_Optical.py
2b43f629f4142e01098a59140e9790e73dc80e53
[]
no_license
St659/Electrophotonics
1b0c32c29dcdaf5087b2d59e6c4a1a9edcbc59ff
7386d89ce2b53fe64564db5a88e9888dd506d572
refs/heads/master
2020-03-22T18:24:13.818695
2018-07-26T23:00:28
2018-07-26T23:00:28
140,457,700
0
0
null
null
null
null
UTF-8
Python
false
false
1,616
py
from src.EIS_Reader import EISPlotter, EISReader import os import matplotlib.pyplot as plt import numpy as np eis_directory = '../Data/EIS_Optical/EIS' photonics_directory = '../Data/EIS_Optical/Photonics' photonics_files = os.listdir(photonics_directory) print(photonics_files) wavelength = np.linspace(498.6174,110...
[ "st659@nas10-240-93-32.york.ac.uk" ]
st659@nas10-240-93-32.york.ac.uk
a7356e39311eceaa408bd348ffa485b4aebebfa2
965f71c01a0bf9e541252f79ea7918d4f0963567
/learnvenv/bin/django-admin
bf57aa7fdfc8766ace3f0bc5d442e5e16f685ef2
[]
no_license
empathlabs/my-first-blog
b5a1fdc804116873184527e95522b70c72864a6d
bf69ce796cadb94f300c911f252910b0b7e7d800
refs/heads/master
2020-04-05T23:23:02.424842
2015-09-02T13:36:44
2015-09-02T13:36:44
41,733,124
0
0
null
null
null
null
UTF-8
Python
false
false
305
#!/Users/luis.morais/djangolearning/learnvenv/bin/python3 # -*- 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())
[ "luis.morais@g109916mac.thisisglobal.com" ]
luis.morais@g109916mac.thisisglobal.com
f06a8d2d8170fb9c37ed397039a12bcac68a1fb9
5d9b34ff537ca195abe2c4ad2e06f644d026d14e
/engine/items/guns/assault_rifle_energy.py
219835c0c92a1eb19f7ab51998ce8ddeec1b36b0
[ "MIT" ]
permissive
Jawmo/Hope
ab61bdef4977ef4aa4a3a40b2995f380b7418d19
1d142a712c064c2fb9dc63b38d8c8e65fb089386
refs/heads/master
2023-04-07T08:56:32.097156
2021-04-17T16:32:12
2021-04-17T16:32:12
224,865,988
0
0
null
null
null
null
UTF-8
Python
false
false
894
py
from engine.global_config import * from engine.lex import Lex from engine.items.guns.assault_rifle import Assault_Rifle from engine.join_tables.join_table_items import * from engine.suits.suit_templates import alpha_suit_table class Assault_Rifle_Energy(Assault_Rifle): def __init__(self, **kwargs): super()._...
[ "d.jankowski3@gmail.com" ]
d.jankowski3@gmail.com
7358cda3629e79200fe58e47c0f254cdd0af3523
1d7ae7f6e7a0df98d92f9ec5f277752d14924a94
/fake-very-small-test/wrong_case/pytorch_bike_dqn_test-small-with-former-a-trick.py
5916cee0a242517a8af7ef2d2c50f65db11824f0
[]
no_license
lindsaymorgan/Mobike-Bike-Sharing-System-Dispatch-Optimization-Using-Reinforcement-Learning
1e6b1aa3c64d2ff2e31b5d9dcc4abdc11e10679c
6c8a329fae5c2ac8db45a3d8c55b308aae8ad804
refs/heads/master
2023-05-02T07:39:49.089459
2021-05-23T02:26:14
2021-05-23T02:26:14
279,467,461
2
0
null
null
null
null
UTF-8
Python
false
false
15,003
py
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch import optim import matplotlib.pyplot as plt import pandas as pd import random import time # hyper parameters EPSILON = 0.85 GAMMA = 0.99 LR = 0.001 MEMORY_CAPACITY = 3000 Q_NETWORK_ITERATION = 2000 BATCH_S...
[ "lindsaymarymorgan@gmail.com" ]
lindsaymarymorgan@gmail.com
811812104ba7a303d2a76c887b61da25afa1797c
b83f5c023e4a96d47a1d05049969f036c7fc3ed6
/server.py
b12aef4992969c7c1fba2c9afbcc8c333b902c91
[]
no_license
ncss/projects-2016-2
bb51c1e533e82c02535577bdb8740294a2056d11
15208ba6b9e1b3c5fe71d403a3afc373330431a0
refs/heads/master
2021-01-24T14:47:25.905307
2016-01-11T04:03:16
2016-01-11T04:13:11
47,598,505
3
0
null
null
null
null
UTF-8
Python
false
false
1,535
py
from tornado.ncss import Server, ncssbook_log from activities import ActivityInputHandler, activity_dict from engine.template import render from profile import ProfileHandler def landing_handler(response): response.write(render("landing.html", {'a': 'B'})) def home_handler(response): response.write(render("f...
[ "tomkitson8@gmail.com" ]
tomkitson8@gmail.com
8940ba8031a5ac9ba2c91447e1fe6306a34b339d
0d03f5bbca543abab5831affc9c776bc536c97f2
/fibonacci.py
d61db7b4c1c15874a6a9abc643fe04c2a72ddbe8
[]
no_license
kawausomando/python-tutorial
a77e7488b020cafef5f0f2cc7e5359c7ce78cf6d
cccd02fe8ec270a4db7627fd4b2d5ba6037c57d8
refs/heads/master
2020-09-01T05:40:48.381131
2019-12-11T03:55:36
2019-12-11T03:55:36
218,891,127
0
0
null
null
null
null
UTF-8
Python
false
false
123
py
# フィボナッチ級数 # このように多重代入が可能 a, b = 0, 1 while b < 10: print(b) a, b = b, a+b
[ "happy.trail0912+github@gmail.com" ]
happy.trail0912+github@gmail.com
dceb4693f1c5ce71fce4dde114fe80301261ae5e
28f918f2c78fb09e178dcab2ec238423cb84640f
/benefits/rs_analysis_mk2.py
aff41b82b1cb93b37048ca018bf25d0f241a58cc
[]
no_license
toddb8632/geoprocessing
6d75adce5e8a0dcead7a7dd8f9a6f5d4b36c5229
6fb2c9204e5782fcf04f247a3ba6f67fe447771c
refs/heads/master
2023-03-16T21:21:11.861754
2017-11-30T16:35:00
2017-11-30T16:35:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
26,368
py
#------------------------------------------------------------------------------- # Name: WH benefits related # Purpose: # # Author: Yichuan Shi (yichuan.shi@unep-wcmc.org) # # Created: 2014/01/21 # Modified: 2014/01/29: corrected area calculation # 2014/02/03: added forest extent # Cop...
[ "yichuan.shi@outlook.com" ]
yichuan.shi@outlook.com
72c9faf376136a45f845898f3b31c3992bebed11
e27fa9e15c6ba1bac3ba1161a3e068e89ff05a62
/qa_app/utils.py
85a8bfae8da275b6bc7a03edf615999e2573f9a4
[ "Apache-2.0" ]
permissive
mogaika/qa_app_flask
50ea2f6a6fab88dd4ef1d8c85ef0bdf6cf70771f
5d7e7105786d6f7d0f44ee17bfc753aaa5e7b32b
refs/heads/master
2020-06-22T18:38:23.668183
2016-11-08T17:40:53
2016-11-08T17:40:53
74,581,430
0
0
null
2016-11-23T13:54:30
2016-11-23T13:54:30
null
UTF-8
Python
false
false
3,445
py
# Copyright 2016 Mirantis, Inc. # # 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 ...
[ "leks.molecul@gmail.com" ]
leks.molecul@gmail.com
4946710f7142d36c5c8771b62155055faa7fdda0
66d323be215fb83fbe3258aac7589a8987b8a2ae
/curves.py
1d223dfc966eb16facd712a62cef23f055f908aa
[]
no_license
strmwalker/sigmoid-knapsack-solver
c3d3fb38ccf03c01e0deb551494cb5708ba401e6
45878000297eded3c305fca934e788b37cd6719c
refs/heads/master
2020-12-18T14:55:35.197410
2018-05-30T17:56:41
2018-05-30T17:56:41
235,427,764
0
0
null
null
null
null
UTF-8
Python
false
false
10,945
py
__all__ = ["Sigmoid", "MixedCurve", "Knapsack"] from functools import partial from numpy import array, exp, ndarray, linspace from pandas import Series, DataFrame from scipy.optimize import minimize def basic(x, cap=1, ec50=0.5, steep=0, price=1, multiplier=1): """ S-shaped curve similar to sigmoid function...
[ "yurathestorm@gmail.com" ]
yurathestorm@gmail.com
98bd390e05f2cf8fcea011d56550a3ea5f828af6
5b602529b1a366116cc8c9f439c4b1dcfbc22603
/home/migrations/0003_homedata.py
e45a9ba11ea94ce2085216ec1e5b3b6a862ee538
[]
no_license
kunmi02/blue
db9b0a8239a3cbdbdcab25b4a60d2c0ca248701c
a38da7adc4d65aea42acddb8bcb0bd244f8795a0
refs/heads/master
2020-06-20T21:03:06.372316
2019-07-16T18:25:15
2019-07-16T18:25:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,042
py
# Generated by Django 2.2.2 on 2019-06-24 15:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home', '0002_create_homepage'), ] operations = [ migrations.CreateModel( name='HomeData', fields=[ (...
[ "godfredakpan@gmail.com" ]
godfredakpan@gmail.com
8fc31e37a4a15496375b67b89a219906c69328eb
9e287012bf88e56782b36b83803ac6550f077486
/algorithims/414.py
951ad6124dc9696a3cd9572f26bf8d8d670a8fdd
[]
no_license
kmin-jeong/solvong_Algorithms
b3255655dd96f70f3ed468644e7feb501c64e535
5622ef00e4417eb572009ee7d122946192016850
refs/heads/master
2023-08-29T12:21:56.659216
2020-09-21T14:28:29
2020-09-21T14:28:29
291,240,403
0
0
null
null
null
null
UTF-8
Python
false
false
271
py
class Solution: def thirdMax(self, nums): nums = list(set(nums)) nums = list(sorted(nums, reverse=True)) if len(nums) < 3: answer = nums[0] else: answer = nums[2] return answer
[ "desk535353@gmail.com" ]
desk535353@gmail.com
127f00a61aebf0d77e3d5c34e7f7cf9ee4fa1ff2
6a87a432fbdf26c9f7f249b9e93edb89edcec853
/ThreeManMorris.py
0c1bed418207fe60e741d0060b91904719c34043
[]
no_license
mariazverina/ThreeManMorrisDojo
88e1811157f9f65248549f22505ff30a5c3e50b7
b1305c2228aba00feb0d8a2a6f2cde5f2963391e
refs/heads/master
2021-01-16T18:18:22.500902
2013-10-22T08:58:37
2013-10-22T08:58:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,239
py
''' Created on 21 Oct 2013 @author: mariaz ''' import unittest from collections import namedtuple class Game(object): BOARD_SIZE = 3 WHITE_PLAYER = 1 BLACK_PLAYER = 2 def __init__(self): self._currentPlayer = Game.WHITE_PLAYER self._board = {} def current_player(self): ...
[ "maria.zverina@corp.badoo.com" ]
maria.zverina@corp.badoo.com
e762503fb00302d5490dbea646d3b4e384512c36
7067f57fd82b025d595f9bbcbe027753aac55cfb
/polls/migrations/0001_initial.py
0b505bc0450ec2fd7b5655030493d8f94e61aee2
[]
no_license
xjli865/Django-PollsApp
78dd79dea7c862baab6f537e9bb51825ba49e024
57095b5f0b8b6804cbe97ea32dbe936d0689069c
refs/heads/master
2021-01-20T19:18:32.585509
2016-06-23T19:30:00
2016-06-23T19:30:00
61,830,529
0
0
null
null
null
null
UTF-8
Python
false
false
1,229
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-06-08 19:54 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Creat...
[ "xjli865@gmail.com" ]
xjli865@gmail.com
950e75b21d13b28624261269aba44aa62cdb8544
2283d7ae2d8c6d2a13b5dbf9e13a395600fb7951
/baseline/util.py
dbb0d914da17af1e362a702b0ec79937c53ac10d
[]
no_license
nishanth01/summary_final
eebb3df6de939a2af955cb904b489d3d5e6a10e1
b8d9413db87de1a0ce46085f1beae94cb976fa57
refs/heads/master
2020-03-25T23:25:00.052768
2018-08-11T09:47:53
2018-08-11T09:47:53
144,273,733
12
8
null
null
null
null
UTF-8
Python
false
false
1,420
py
import tensorflow as tf import time import os def load_ckpt(saver, session, hps, ckpt_dir="train"): while True: try: latest_filename = "checkpoint"# if ckpt_dir=="eval" else hps.model_name ckpt_dir = os.path.join(hps.log_root,ckpt_dir) ckpt_state = tf.train.get_checkpoi...
[ "nisnair@cisco.comgit config --global user.name nisnair" ]
nisnair@cisco.comgit config --global user.name nisnair
1dbae09a882980f310395543b799670a7ed4e9c9
8217d63b4f8875598cc8e01c9cdf4c92e35e4e62
/tools/pypmmn/pypmmn/pypmmn.py
4d38dc5e8ba1cdc93e9037397c8102e80acbeff2
[]
no_license
bubbafix/munin-contrib
d5bdfa156cbebbec73a3851349859bf7caa137eb
b9ec8fbb040808bf4930bea6b065ce5564fbd77d
refs/heads/master
2021-01-16T19:58:11.309579
2013-05-22T09:02:23
2013-05-22T09:02:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,683
py
#!/usr/bin/python """ A very simple munin-node written in pure python (no external libraries required) """ from datetime import datetime from logging.handlers import RotatingFileHandler from optparse import OptionParser from os import listdir, access, X_OK, getpid from os.path import join, isdir, abspath, dirname, exis...
[ "michel@albert.lu" ]
michel@albert.lu
816ccf13d545d21c6a8991fbbd5db56841a3fd65
4eab1bd9e1b00155872e44963a5df0532cb5341f
/menus/menuTwo.py
ebbc521d4e91603c346648b2c0ccb7a4a9256571
[]
no_license
soheilpaper/python-gui
9b067467ca41d27092e5817d0a49162b10c37de6
4e6bcad319829dd2c0fdc328520a55a7932060c7
refs/heads/master
2020-12-31T04:29:16.798703
2016-04-08T08:41:59
2016-04-08T08:41:59
55,763,643
0
1
null
null
null
null
UTF-8
Python
false
false
1,595
py
import wx ######################################################################## class MyForm(wx.Frame): """""" #---------------------------------------------------------------------- def __init__(self): """Constructor""" wx.Frame.__init__(self, None, title="wx.Menu Tutorial") ...
[ "soheil_paper@yahoo.com" ]
soheil_paper@yahoo.com
8ea5abe49cbb899830e548978eaad6cef1c2e987
c69e4107617e09db383554481ebd3eb7a3247bea
/script_colorcolor.py
2a3c52c340fc25e36ade9b9c5df034eeed5d5860
[]
no_license
niliafsari/KSP-SN
09e4e03da92500598557a953c1429187e3d8f854
9b18a2f405060611b61bb3d49283c50cdfe904ee
refs/heads/master
2020-06-26T21:53:31.372225
2018-11-26T16:29:31
2018-11-26T16:29:31
97,030,917
0
0
null
null
null
null
UTF-8
Python
false
false
562
py
import numpy as np import matplotlib.pyplot as plt import U # values for constants B = lambda nu, T, muOnKT: nu**3 * 1./(np.exp(U.Hplanck/U.Kb*nu/T-muOnKT) - 1) nu_B = U.Clight/(4378*U.Angstrom) nu_V = U.Clight/(5466*U.Angstrom) nu_I = U.Clight/(8565*U.Angstrom) BminusV = lambda T,muOnKT: -2.5*np.log10(B(nu_B,T,muOnKT...
[ "nlr.afsari@gmail.com" ]
nlr.afsari@gmail.com
0ca4e078ad5be9eb653daec33bd937412976bb6f
b3f092ea07ed57f3749241148a2049a0fb1fc0c6
/sc_utils/sc_utils.py
e736b50267f6740e2a830f2c057f56b769aa85ff
[ "MIT" ]
permissive
flribeiro/sc_utils
89c19b66eec63c65a831513efc122a30ef1ecd2e
1484f4890557ea2bbb7865403ce5f637f7c84577
refs/heads/master
2023-01-09T02:50:14.018808
2019-09-14T15:59:58
2019-09-14T15:59:58
187,886,062
0
0
NOASSERTION
2022-12-26T20:47:38
2019-05-21T17:41:36
Python
UTF-8
Python
false
false
7,169
py
import os import re import string import argparse import sys import uuid from random import randint def validar_cpf(ns): cpf = ns.cpf """ Retorna o CPF válido sanitizado ou False. # CPFs corretos >>> validar_cpf('123.456.789-09') '12345678909' >>> validar_cpf('98765432100') '98765432100' >>...
[ "fabricio.ribeiro@luizalabs.com" ]
fabricio.ribeiro@luizalabs.com