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
dcb9a6e6e54a787190f0ee161dd639219e160d13
f07c35480efb81cbf0e1ff661a8aad129d46be90
/docs/playground/logger-study.py
52b552e06dccbf874f770c69bf6128d0ecf39405
[]
no_license
nukopy/tdd-python
24101fe44ff5346e63939f3dfba002148c6155da
ccb2c099c1d395ae80814bf17594c30b575986ef
refs/heads/master
2023-03-30T03:30:25.441859
2020-11-16T14:09:14
2020-11-16T14:09:14
313,196,094
0
0
null
null
null
null
UTF-8
Python
false
false
1,044
py
import logging import sys LOG_LEVEL = [ logging.CRITICAL, logging.ERROR, logging.WARNING, logging.INFO, logging.DEBUG ] logger = logging.getLogger(__name__) logFormat = '%(asctime)s - [%(levelname)s] %(message)s' logFormatter = logging.Formatter(fmt=logFormat, datefmt='%Y-%m-%d %H:%M:%S') logHandl...
[ "pytwbf201830@gmail.com" ]
pytwbf201830@gmail.com
fbe55791d15215622a1f8f1a8ce0305bfaba045d
0141b06134218607d630201ea08b0aede6874ae6
/BenZin.py
3a78fba441a6fa08dc3408256732bb4465d1e399
[]
no_license
redparavoz/Benzin
6636cd509cea726438775cdea1408ef01ec298a2
b6dfce8a2f7944f27d1fd5208679bcd7421944f6
refs/heads/master
2020-04-24T10:36:08.030551
2019-02-21T16:11:08
2019-02-21T16:11:08
171,898,848
0
0
null
null
null
null
UTF-8
Python
false
false
349
py
print("Gasoline calculation") print() print("Please enter the mileage of day") prais_for_liter = eval(input("prais for liters:")) gas_mileage = eval(input("gas mileage:")) mileage = eval(input("mileage:")) total = prais_for_liter * gas_mileage * mileage /100 #IDLE do calculation print() print ("The total value of you...
[ "shanghaioftrain@gmail.com" ]
shanghaioftrain@gmail.com
6cec19ea67ce83d79465dc4e68499aa4989e1d7e
60817b73c85d7d6575df7f93f38e58d5e7c9e6c1
/Projects/OpenCV stuff/PI_videoProcessing.py
f06e8f667446667915f107003815b9053e6df8f5
[]
no_license
TahsinTariq/Python
8291619153629e93bb34c83e8c4a8ef748e0733a
d49463ec5b5a760b9beaba07c549274137a4437f
refs/heads/master
2023-02-19T18:31:14.302161
2021-01-15T14:22:13
2021-01-15T14:22:13
277,165,598
0
0
null
null
null
null
UTF-8
Python
false
false
3,460
py
import cv2 import datetime import keyboard import numpy as np from PIL import Image, ImageFilter def remap(value, source_s, source_e, start, end): return start + ((value - source_s) / (source_e-source_s)) * (end-start) def change_brightness(img: Image, level: float) -> Image: def brightness(c: int) -> float: ...
[ "62146852+TahsinTariq@users.noreply.github.com" ]
62146852+TahsinTariq@users.noreply.github.com
191ab11df68fe5aca3f104e9f08b266fe15323b5
993faab87abf05dfc1041741408d6a8309093dfb
/spare/get_user_ids.py
eda1e82c04f0a074f2c3874f91715c51f43e2eda
[]
no_license
WeiNiu/lsfolk
6170b0f5d41fc927832214f64656a5a67c7349f2
3aeccada2afeae4ffd60b50cd4a0ad1edbfc7636
refs/heads/master
2021-01-01T05:08:01.209848
2016-05-20T16:39:54
2016-05-20T16:39:54
59,310,769
0
0
null
null
null
null
UTF-8
Python
false
false
242
py
#get user ids for timeline crawling. these users are mostly listed import cjson infile='./user_tag_dict_sift' outfile='./uids' outfile=open(outfile,'w') for line in open(infile,'r'): line=line.split('\t')[0] outfile.write(line+'\n')
[ "weiniu.2010@gmail.com" ]
weiniu.2010@gmail.com
95c41f85d5add0ea7446a21d96a4c474baa2c709
35d86ffff9bb3128994597a8db37761a914c5c76
/blog/admin.py
1af3e0a876693618088777b9d28f518a8a1681ba
[]
no_license
lililolilil/freshtuna
e2d8ad900b61820e13a23aac3140428c75715f83
42bc1a1ab957e080512e914e332e567fa5407fec
refs/heads/master
2021-03-30T18:09:46.070952
2017-11-28T09:43:50
2017-11-28T09:43:50
109,951,918
0
0
null
null
null
null
UTF-8
Python
false
false
304
py
from django_summernote.admin import SummernoteModelAdmin from django.contrib import admin # Register your models here. from .models import Post,Board class PostAdmin(SummernoteModelAdmin): pass class BoardAdmin(admin.ModelAdmin): pass admin.site.register(Post, PostAdmin) admin.site.register(Board)
[ "ysy622@gmail.com" ]
ysy622@gmail.com
632b44110f8d17e5a87f2169f16492724791a409
2c4ba5a56b7a3d3e1c286b678eb8068f51c23046
/week2/3-Simple-Algorithms/solutions/first_n_perfect.py
388005a98408f01742f75b53102ab5c4f146e5ab
[]
no_license
OgnyanPenkov/Programming0-1
3b69757bd803814585d77479fc987a0ee92d0390
8078f316ea2b81216c21cf78e7cf1afc17f54846
refs/heads/master
2021-01-21T15:12:20.814368
2015-10-07T18:16:39
2015-10-07T18:16:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
925
py
# Проблемът на тази задача е, че не знаем горната граница на интервала # Например, не знае първите 4 перфектни числа в какъв интервал са # За това подхождаме по следния начин - while True: # За всяко число +1 гледаме дали е перфектно # Aко намерим перфектно, намаляваме търснеата бройка с 1 # Когато търсената бройка ста...
[ "radorado@hackbulgaria.com" ]
radorado@hackbulgaria.com
3e2c9d3dbb36feccb77cca2d9d45f4d537ab5e06
53ef08fbc24d14a589987856a9f38310c3b6cb53
/tuto2/list.py
cc9b3869da43fe28f60184774f6e9bded940bab9
[]
no_license
hujaepa/learnpython
cb5658f3be1e9e798abab3320ea5cc0196c8f7e8
d99ad301b43056961c8c68f4127f5c120a0635f9
refs/heads/master
2023-03-08T11:19:39.206361
2023-02-23T15:26:12
2023-02-23T15:26:12
291,716,459
0
0
null
null
null
null
UTF-8
Python
false
false
133
py
nums=[] for i in range(0,5): nums.append(float(input())) print("\n") for i in range(0,len(nums)): print(float(nums[i]))
[ "hujaepa@gmail.com" ]
hujaepa@gmail.com
7ab67cfb963577bb2e385b638880f91198b94afb
4932a6936b310a0bc96b743ae6cc7ef098230023
/game_code/board.py
748c685c7bb104630e98f9a3623e99d0841898ad
[]
no_license
hangZH03/2018_s4_projet13
f919ac8828d298a644063d4031f45ec146ec6680
b14042fb2cd981fc09cfc26f2278b0532d9c1bbb
refs/heads/master
2020-03-21T15:17:13.202427
2018-06-26T07:57:25
2018-06-26T07:57:25
138,703,866
0
0
null
2018-06-26T07:53:34
2018-06-26T07:53:33
null
UTF-8
Python
false
false
6,526
py
import kivy #kivy.require('1.10.0') # replace with your current kivy version ! from kivy.app import App from kivy.uix.floatlayout import FloatLayout from kivy.core.window import Window from kivy.uix.label import Label from kivy.uix.textinput import TextInput from kivy.uix.button import Button from kivy.config import C...
[ "federicodadam@gmail.com" ]
federicodadam@gmail.com
73071a791ccda5eb785fb185e1a45b450c234c30
e4993e36ed94f09ecb75448415a67e4e3e10f604
/pe37.py
ab2aaf628118e63710121ba07155edcc74022fda
[]
no_license
thetringuyen/Project-Euler
427a95ba8dcdb13e46400399b3747f4a480d7e75
582ee80509d6bb5e7b55859ee604c8ee207c7d13
refs/heads/master
2021-01-20T06:47:05.862585
2017-08-28T22:16:53
2017-08-28T22:16:53
101,518,130
0
0
null
null
null
null
UTF-8
Python
false
false
1,225
py
# -*- coding: utf-8 -*- """ Created on Fri Aug 25 00:46:04 2017 @author: tring """ import time from algorithm import bcdToDec, isPrime def truncateBCD(n, left=0): if left: m = n count = 0 o = 0 while m > 0: m >>= 4 count += 1 o...
[ "tringuyen062888@gmail.com" ]
tringuyen062888@gmail.com
a28787c46c59440cf67a33d5ba6336ef9c7d554d
ba97a8b1591b56ceba7509cb5cdca290d76bc1e5
/np_pd_plot/GP-YHO-Price.py
aae6bb9b1c3064bd5615c8871c6ec9ffadb79a18
[]
no_license
MelancholyMing/TF_learning
2141ca5ad5a7b842b8e9d277b644a2a9ddb516e5
2e8bc829509660d09af150c2ce4a3709caa1c6ee
refs/heads/main
2023-03-31T23:12:31.052624
2021-04-05T08:49:57
2021-04-05T08:49:57
346,798,117
0
0
null
null
null
null
UTF-8
Python
false
false
2,067
py
import datetime import numpy as np import matplotlib.dates as mdates import pandas_datareader.data as webdata import pandas as pd import mplfinance as mpf import matplotlib.pyplot as plt import matplotlib import yfinance as yf yf.pdr_override() # 因为雅虎在中国受限制的原因,需要引入另一个模块,“yfinance” startdate = datetime.datetime(2014,...
[ "melancholyming@gmail.com" ]
melancholyming@gmail.com
d043c4509434c2e0b8646fbbf09880f78fb06a2f
177e94d7ca888840cbbb15ae8b4ea121650e160d
/py/studiIO.py
1dc061571acf5d468cfd27b4b80cb80a1a941aa2
[]
no_license
chrislyne/studioIO
deef06c15a10e0aa309ac256a57ce5cd2aac1d20
e2a0070baa68ec22bb93aa82740a11b1f38cd843
refs/heads/master
2021-04-09T13:07:55.096054
2018-03-19T09:24:39
2018-03-19T09:24:39
125,595,445
0
0
null
null
null
null
UTF-8
Python
false
false
14,708
py
import maya.cmds as cmds import maya.mel as mel import os, sys, time from stat import S_ISREG, ST_MTIME, ST_MODE from pymel.all import * import json ## global Variables ## def globalVars(): global ioWorkspace ioWorkspace = cmds.workspace( q=True, fullName=True ) global userInitals userInita...
[ "chris@funnylyne.com" ]
chris@funnylyne.com
04b6c88d1353b5bcedc3f41edb10107f55960060
1dacbf90eeb384455ab84a8cf63d16e2c9680a90
/lib/python2.7/site-packages/networkx/drawing/layout.py
d6ade95e25422e759c0531fc265903f50288c684
[ "Python-2.0", "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-unknown" ]
permissive
wangyum/Anaconda
ac7229b21815dd92b0bd1c8b7ec4e85c013b8994
2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6
refs/heads/master
2022-10-21T15:14:23.464126
2022-10-05T12:10:31
2022-10-05T12:10:31
76,526,728
11
10
Apache-2.0
2022-10-05T12:10:32
2016-12-15T05:26:12
Python
UTF-8
Python
false
false
18,158
py
""" ****** Layout ****** Node positioning algorithms for graph drawing. The default scales and centering for these layouts are typically squares with side [0, 1] or [0, scale]. The two circular layout routines (circular_layout and shell_layout) have size [-1, 1] or [-scale, scale]. """ # Authors: Aric Hagberg <aric.h...
[ "wgyumg@mgail.com" ]
wgyumg@mgail.com
68e0375869bbc90362e1d53c3d314bf4701edec0
e59102eb4a36f15a5419d3d9d8b9ff720a55cc4d
/loop.py
7a6fb4cbb2f6ec2f77305c59672826af9f22127b
[]
no_license
hlainghpone2003/SFU-Python
5b9e58cf9119b08b0c6c2de68f346d563a801f3b
78245eb34ac74916e8dcbdb8ecf62c35b1d454e8
refs/heads/master
2020-12-14T07:09:59.579171
2020-03-14T05:37:25
2020-03-14T05:37:25
234,677,265
0
0
null
null
null
null
UTF-8
Python
false
false
6,348
py
#loops -while Loops -for Loops Condition is true, while loop execute a set of statements x = 1 while x < 7: print(x) x += 1 >>> x = 1 >>> while x < 7: ... print(x) ... x += 1 ... 1 2 3 4 5 6 while loop variable ready. x=1 while x < 7: print(x) if x == 5: break x += 1 >>> x = 1 >>> while x < 7: ... ...
[ "hlainghpone647373@gmail.com" ]
hlainghpone647373@gmail.com
3c7b7d751b74a8e1f1d3ff0e89e1fd461156c634
191d8f39835c41c0a2f64f0eb3b2fcce5b041524
/sentiment/server.py
3fa20a74030fb006e1c8517dc7ba604677a3e184
[]
no_license
demetkochan/turkce_dogal_dil_isleme
f1622fb077dcedeaf121c4157db7b112836fbbb3
260251cb84406b4d1318ace25b41a887006a29d4
refs/heads/master
2023-08-24T18:56:52.580299
2021-10-07T14:39:48
2021-10-07T14:39:48
350,285,699
0
1
null
null
null
null
UTF-8
Python
false
false
444
py
import joblib from flask import Flask, request, jsonify app = Flask(__name__) load_vec = joblib.load("tfidf_vector.sav") lr_model = joblib.load("logistic_reg_model.sav") @app.route('/sentiment', methods =['GET','POST']) def get_prediction(): text = request.json.get('text') vec = load_vec.transform([text]) ...
[ "61080306+demetkochan@users.noreply.github.com" ]
61080306+demetkochan@users.noreply.github.com
96843b3c5eaf599ead4446cd199852a00eb5c4b4
4a212e0d591d1054a528740f6d38148a29763455
/matbao_module/model/external/external_so.py
7d54fc07d61b380b917832e74f67ac536609826f
[]
no_license
partho222/Project-Odoo
a0f36b6446bf3d70d2440b8e6270307b095d43d4
2289d934c5bea5e34c0bd3c0094d8bfc22f18bd1
refs/heads/master
2020-06-09T21:46:57.755679
2017-11-10T17:43:36
2017-11-10T17:43:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
28,351
py
# -*- coding: utf-8 -*- ############################################################################## # # Copyright 2009-2017 Trobz (<http://trobz.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by ...
[ "vuhaiqn90@gmail.com" ]
vuhaiqn90@gmail.com
88d99335caba6138f42cc051359827df973d17f0
c0d489046bc114672139873916a118a203c6f850
/Medium/841. Keys and Rooms.py
d29c5a1f36bda29cc39c3dba1352b248a122aa9b
[]
no_license
shifty049/LeetCode_Practice
165ada14a8fd436e9068bd94d6b82b1ed312013c
ca8be179282be86450c9959fb239466d152a55e5
refs/heads/master
2022-05-25T16:23:05.736852
2022-03-29T13:48:21
2022-03-29T13:48:21
249,737,622
0
0
null
null
null
null
UTF-8
Python
false
false
563
py
class Solution: def canVisitAllRooms(self, rooms: List[List[int]]) -> bool: self.l=list(range(len(rooms))) def dfs(ix): if ix not in self.l or not self.l: return self.l.remove(ix) for index in rooms[ix]: dfs(index) ...
[ "shifty.hsu@kkday.com" ]
shifty.hsu@kkday.com
297ddf4f98da9f2344dafc3de92c8adb03571fac
60978890ef7a7c57addc8b47bb03d8ffd329275e
/openfda-3/openfda3.py
629fb7cf62bde16814348fc6c1e2c42df7d5e4dd
[]
no_license
smonterol/openfda
4e9d8d138e7050b08e9b6ace549cc5cebc5c9b13
9621a5692a8e58607c15ebf50937d94b70213d17
refs/heads/master
2021-04-12T11:17:04.247947
2018-05-15T21:53:04
2018-05-15T21:53:04
126,513,334
0
1
null
null
null
null
UTF-8
Python
false
false
1,781
py
import socketserver import http.client import json import http.server PORT = 8123 MAX_OPEN_REQUEST = 10 lista_m =[] headers = {'User-Agent': 'http-client'} conn = http.client.HTTPSConnection("api.fda.gov") # establecemos conexion con el servidor conn.request("GET", "/drug/label.json?limit=10", None,headers) r1 ...
[ "saaritamontero@gmail.com" ]
saaritamontero@gmail.com
7393ed5275df359c4798e683f9f52f70ea73ee36
5fd4707876cac0a4ca3b14af9a936301c45b5599
/02_数据结构/fp_15_一个谜题.py
12cd3f9686732f4027c53318216d150dbc7debc7
[]
no_license
xuelang201201/FluentPython
5b0d89bfc6ee1238ad77db9955ec7e8417b418b8
7cbedf7c780c2a9e0edac60484f2ad4c385e1dbd
refs/heads/master
2022-04-26T21:49:16.923214
2020-04-27T01:27:50
2020-04-27T01:27:50
258,290,957
0
0
null
null
null
null
UTF-8
Python
false
false
671
py
# 一个关于+=的谜题 t = (1, 2, [30, 40]) t[2] += [50, 60] # 到底会发生下面4中情况中的哪一种? # a. t变成 (1, 2, [30, 40, 50, 60])。 # b. 因为 tuple 不支持对它的元素赋值,所以会抛出 TypeError 异常。 # c. 以上两个都不是。 # d. a 和 b 都是对的。 # 在终端中运行:没人料到的结果:t[2] 被改动了,但是也有异常抛出 # t # TypeError Traceback (most recent call last) # <ipython-input-2-d87...
[ "xuelang201201@gmail.com" ]
xuelang201201@gmail.com
798ce75de15fbc56d8bea88ecdd01e4dee3df43c
3cdd99a2ee30fd95a9df4e28f919f79121ce07cb
/1-hello-world/block-letters/snowman.py
636dfe91fcbd0b4678b5425fdaf55704d3e3c6c8
[ "MIT" ]
permissive
breyenguyen/learn-python
656e6f9b7d62e32fda8b00a3c19f15f709a42cff
e83a7b740ad9f5da45b29d0f5dd5c5ff77f095af
refs/heads/main
2023-06-17T00:58:59.268435
2021-07-05T18:56:03
2021-07-05T18:56:03
376,068,929
1
0
MIT
2021-06-11T15:31:53
2021-06-11T15:31:53
null
UTF-8
Python
false
false
793
py
# Twitter: @anne_melody # Fun Fact: I drink a looot of water. print(" * * ") print(" * ") print("* * * ") print(" * * * ") print(" HHHHHHH * ") print(" * HHHHHHH ")...
[ "sonnynomnom@gmail.com" ]
sonnynomnom@gmail.com
77f425730879c3dd471a8760928c966a586b2455
79e4ebb7665dd3a753578cf408b83450986f1bd4
/mil-classification/test.py
8e7f7f1b67ad6941e74c3fb4e7d57bfacb36f273
[]
no_license
oole/patch-based-mil-classification
f099f81e00a93f0909f8b28a98c8aa86b594052b
c10dd5b691dc32e2cfcef265e6322edc84c84e08
refs/heads/master
2020-05-22T08:27:31.137579
2019-05-17T14:40:59
2019-05-21T22:36:23
186,278,726
5
0
null
null
null
null
UTF-8
Python
false
false
2,432
py
import tensorflow as tf import data_tf import dataset import netutil import validate def test_existing_net(slide_datapath, net_loadpath, model_name, dropout_ratio, batch_size, do_augment=False, shuffle_buffer_size=2000): slide_list, slide_dimensions, num_patches, slide_label = data_tf.collect_data( slide_...
[ "ole.ostergaard@knime.com" ]
ole.ostergaard@knime.com
f8af0d6b87d03897d8a81222090ba5350d7aab7d
6f2bc0bf89a25c14ef5f9025e12184b2a125aeb2
/language-models/pcfg/problem2.py
31a422c147437bc4b5a42a68d8585980bf04b1ae
[]
no_license
akashc1/projects
1e443d8af31083a8fe809891acc7fd43ea111974
9fc30b010c04b1b09d08ac54b8881fb259f765f1
refs/heads/master
2022-12-14T10:35:44.714295
2020-10-05T00:11:02
2020-10-05T00:11:02
161,357,512
0
1
null
2022-12-08T07:03:47
2018-12-11T15:51:33
Jupyter Notebook
UTF-8
Python
false
false
2,524
py
""" Akash Chaurasia akashc@jhu.edu """ import sys, random ############################################################################## # Classes and Functions # # Rule class class Rule: def __init__(self, _name): self.name = _name self.children = [] # list of rule names self.probs = [] ...
[ "akashc@jhu.edu" ]
akashc@jhu.edu
568bc42695dfdf14190d884be35c1c4afa43689f
d1ac66f9a935fd5515a16a1cc8d4dae0104ea0fe
/src/check_structures.py
3c3fea7183213683e377187b6fdf992c82b42c34
[ "MIT" ]
permissive
chemspacelab/meltingpoint
8b1b1f5a7e6f45fee82c2e8d55db2df29c6ae0bc
e3d8eb61fcb5fa5c9c2a1a03852216e4e625a9c9
refs/heads/master
2020-08-30T06:08:17.739191
2020-04-17T11:18:32
2020-04-17T11:18:32
218,285,755
5
0
null
null
null
null
UTF-8
Python
false
false
1,068
py
import qml from chemhelp import cheminfo import numpy as np from rdkit import Chem import sys args = sys.argv[1:] filename = args[0] molobjs = cheminfo.read_sdffile(filename) for i, molobj in enumerate(molobjs): molobj = next(molobjs) # stat = cheminfo.molobj_optimize(molobj) # print(stat) dis...
[ "jimmy@charnley.dk" ]
jimmy@charnley.dk
dae39314521542665f7fe4ce4c6605824fa4d40c
728e57a80995d7be98d46295b780d0b433c9e62a
/src/rewriter/rewriter.gyp
1566c15345faf46401995133dcfc423cc15a2523
[ "Apache-2.0", "MIT", "BSD-3-Clause", "GPL-1.0-or-later" ]
permissive
SNQ-2001/Mozc-for-iOS
7936bfd9ff024faacfd2d96af3ec15a2000378a1
45b0856ed8a22d5fa6b4471548389cbde4abcf10
refs/heads/master
2023-03-17T22:19:15.843107
2014-10-04T05:48:29
2014-10-04T05:48:42
574,371,060
0
0
Apache-2.0
2022-12-05T06:48:07
2022-12-05T06:48:06
null
UTF-8
Python
false
false
4,492
gyp
# Copyright 2010-2014, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and ...
[ "kishikawakatsumi@mac.com" ]
kishikawakatsumi@mac.com
bdea5739deb6de4ea45ee5a8b9375074d1bd4a56
c1e31f49a59beb6089328d09040f6f48d2e12cde
/lib/python2.7/exportfits.py
8ac16bd8a03a5dfb2e656ce6285ff75d901e1e57
[ "Python-2.0" ]
permissive
kernsuite-debian/casalite
3d81761e0d8ae497f97ea242e98d4357618a7591
b620981f14f4ba5b77f347f649cd2c16d498db04
refs/heads/master
2021-06-22T16:22:51.765703
2021-02-25T13:28:05
2021-02-25T13:28:05
80,822,139
0
1
null
null
null
null
UTF-8
Python
false
false
1,655
py
# # This file was generated using xslt from its XML file # # Copyright 2009, Associated Universities Inc., Washington DC # import sys import os from casac import * import string from taskinit import casalog from taskinit import xmlpath #from taskmanager import tm import task_exportfits def exportfits(imagename='', fit...
[ "gijs@pythonic.nl" ]
gijs@pythonic.nl
c0c94415fd844895e83463ca7918a7302f5555c7
e5b08a9511b52e92739d8993ed3e847afd6b60c4
/ex432.py
bb0a7b5ddda6025f535fab6740fb287388452276
[]
no_license
WZnRa/Learn_python_the_hard_way
eb0921de1108400c3ab21bf809bad58c4ffccaf6
4fc788026f43fb8233ce2daaaaba87a84375bef4
refs/heads/master
2021-01-12T17:49:40.454736
2016-10-01T21:27:06
2016-10-01T21:28:00
69,397,903
0
0
null
null
null
null
UTF-8
Python
false
false
3,852
py
from sys import exit from random import randint class Scene(object): def enter(self): print "This scene is not yet configured. Subclass it and implement enter()" exit(1) class Engine(object): def __init__(self,scene_map): self.scene_map = scene_map def pl...
[ "oswaldzinc@gmail.com" ]
oswaldzinc@gmail.com
ad1e29a3f160527184a0ec0c15b92c3ce341e4df
2f7adb453e4c1908f78074cd5d937c312d88f47f
/src/model_measurements/norms.py
bc9eb5466fa47fffe82b7b640c04f98ccf529087
[]
no_license
ramasesh/scaling_prediction
0ba48462628ffffde96295861d74d50b8db08737
b55b26d1df45134fb00d646c95ca7a386ec1642b
refs/heads/master
2022-07-28T14:24:12.867677
2020-05-04T17:27:36
2020-05-04T17:27:36
261,251,379
0
0
null
null
null
null
UTF-8
Python
false
false
1,132
py
import torch import torch.nn as nn import numpy as np def L1_norm(mat1, **kwargs): return mat1.norm(p=1).item() def Linfty_norm(mat1, **kwargs): return mat1.norm(p=float('inf')).item() def approx_spectral_norm(mat1, **kwargs): if len(mat1.size()) == 4: reshaped_mat = mat1.view(-1,mat1.size()[-1]).numpy() ...
[ "ramasesh@google.com" ]
ramasesh@google.com
d42a1e562cf1f73545cbfd2c3e91e4f9cfb46ce2
38b7fd91a9ba24ff4dbfc4a9da08e2a87b18f61e
/bbs.py
03426219baf58df0d6c968441d9dd261775f5034
[]
no_license
sabannna/JSJCbbs
b10e41d8499cf2122991c839d86d7a7e47bebe6b
3ff72aa8bfc378d58ee7398d08658e25fd03b5d5
refs/heads/master
2021-01-20T15:18:04.088104
2017-06-10T16:32:29
2017-06-10T16:32:29
90,744,881
0
1
null
2017-06-10T14:46:34
2017-05-09T12:47:19
Python
UTF-8
Python
false
false
3,452
py
#!/usr/bin/env python # # Copyright 2009 Facebook # # 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 a...
[ "robotman314159264@gmail.com" ]
robotman314159264@gmail.com
03751bac302d1bfbd2bf027224f83efe634a666c
9b01f7d430f7ee87217618cfa4567f42635e8923
/22-06-2017/cloudformation/nginx-demo-1/ansible/.env/lib/python2.7/site-packages/ansible/executor/task_executor.py
21a29052d1f8809f341b51f3230f658a4224f5cd
[]
no_license
awsusergroupsantiago/demos
ccb045545d2a407a39d865cf19800d2b6d284b8f
e7f0dc8d9a4e8f2547c33a5a294fd76bf3ac9c9c
refs/heads/master
2022-04-30T23:43:30.646556
2020-08-08T01:35:40
2020-08-08T01:35:40
95,129,959
2
0
null
2022-03-29T21:54:09
2017-06-22T15:29:25
Python
UTF-8
Python
false
false
36,398
py
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) an...
[ "eduardo.miranda.becerra3@gmail.com" ]
eduardo.miranda.becerra3@gmail.com
c80dd6639035ba2d7d73068bb4ded101d2099bf1
255705ffe6209508e3d688446e1e7a5b05d4a674
/blog/models.py
7eb38ed01906b04d5d8f0668c6d6bcdc37e15f99
[]
no_license
umangja/MusicPlaylistEvaluator
2bb38408d045fa92c2ad970e57bbb410dc05a1bd
093bb317ff23d617a53c4b335f52c19c29194fa9
refs/heads/master
2023-03-23T05:10:32.141015
2021-03-20T08:25:55
2021-03-20T08:25:55
305,163,728
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
from django.db import models from django.db import models from django.utils import timezone from django.contrib.auth.models import User class Post(models.Model): title = models.CharField(max_length=100) content = models.TextField() date_posted = models.DateTimeField(default=timezone.now) author = mode...
[ "umang.jain.cse17@itbhu.ac.in" ]
umang.jain.cse17@itbhu.ac.in
8823c193b4b4c2f3a5ba194e6a5210ebc7d2c598
8eca52ec1d0950b322d9d6e0ab33fb20d6b7e467
/python/exampleApp/image_convert.py
e2ada265626f5e1c61a7ded8a150e794d20309f4
[ "BSD-3-Clause" ]
permissive
Temmytayo/PicoLabel
280ab26838c989adb08a86f2a7a7e0cf761a7b90
0a9c31cb760b6f05d45694cf9afe08aaea5c6ca7
refs/heads/master
2020-03-21T03:34:15.581344
2018-04-18T08:08:28
2018-04-18T08:08:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,420
py
# # Copyright (c) 2018, MpicoSys Solutions B.V. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of cond...
[ "michal.kamelski@mpicosys.com" ]
michal.kamelski@mpicosys.com
1ad659ce96d7c0a21a0ac724b443df76f30c3dfb
3e11bb1261770de0d7e4d9469e08f60b32dc4007
/intercept.py
dfc404d24fe625051714e12a93cf7aeb37d05735
[]
no_license
ValentinMor/Taller2
f8ccd27e36953e45c98498bac5b5e98cf3d2d1c1
b23197d1998be1449b822afb765d1a4a817eb818
refs/heads/master
2023-01-24T00:18:45.380965
2020-12-07T02:29:08
2020-12-07T02:29:08
299,771,548
0
0
null
null
null
null
UTF-8
Python
false
false
844
py
def modify_destiny(packet): if packet['ARP']['src.proto_ipv4'] == '172.31.0.164': packet['ARP']['dst.proto_ipv4'] = '172.31.1.164' return packet def modify_opcode(packet): if packet['ARP']['src.proto_ipv4'] == '172.31.0.164': packet['ARP']['opcode'] = '4' return packet ...
[ "noreply@github.com" ]
noreply@github.com
62b8907735fd3b6d06a37ae9b1f26172eb1cbfb7
922e77ac07392028c2d0ebdd2d40766638ad5008
/detectron2/data/detection_utils.py
e6692e138ffced257458edebfa9ffc6569fff969
[ "Apache-2.0" ]
permissive
lucascooper/detectron2
9acc0a59a5c45b9dc204e60463ad34a9b1f4db5f
75ebc5340fa31f9ee0f41e9d6b761db249237043
refs/heads/master
2022-11-08T00:22:10.768847
2020-06-26T19:06:29
2020-06-26T19:08:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
20,489
py
# -*- coding: utf-8 -*- # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ Common data processing utilities that are used in a typical object detection data pipeline. """ import logging import numpy as np import pycocotools.mask as mask_util import torch from fvcore.common.file_io import PathMa...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
2541688a227dd7f36a30363ef64fb6b120d422c2
d549e2bc09edcc37436890b7e68c878c73b6a65e
/layout.py
f1c597f6327bcf505f0a9cf8a53f19c1a11369ed
[]
no_license
mohammadT77/AI-HW1
819d21f630a8a9aa8081395fb0077fe9892c365f
abb09ab145af3663162597195116ef84fe007f82
refs/heads/master
2021-08-27T18:20:57.002678
2021-08-12T18:43:00
2021-08-12T18:43:00
154,628,060
0
0
null
null
null
null
UTF-8
Python
false
false
5,731
py
# layout.py # --------- # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to http://ai.berkeley.edu. # # A...
[ "t.mohammadamin@gmail.com" ]
t.mohammadamin@gmail.com
503f040e1b7d17b9cd5c53bf0fed7be668d0da1d
4dce975b640fc38c98ad35c150216daf7dfea5c2
/readers.py
4dd80f58089a115bbc292128194c949c5499249a
[]
no_license
raymondr/amr-pipeline-tools
82280932ac771eab9985813de81a6a4eaed9dfac
083dffec58338d03dc97c6faf24fab9d23844129
refs/heads/master
2021-01-19T21:25:39.129985
2015-10-01T15:28:19
2015-10-01T15:28:19
34,635,749
0
0
null
null
null
null
UTF-8
Python
false
false
4,866
py
def read_fasta(file='../master_AMRdb.fa', shorten=False, max_length_shorten=True): with open(file) as f: lines = f.readlines() name = None map = {} name_map = {} seq = '' for line in lines: line = line.rstrip('\n') if line.startswith('>'): if name: ...
[ "rob.raymond@hp.com" ]
rob.raymond@hp.com
33bdb4582038a91bae8497cd7eeaf9fcc0401775
ac62dabce97670b447f56f2905e4065fd8eb6538
/examples/13-vrm/plot_vrm_inv.py
8a24d087baccb5e97043edd57d0266264818204e
[ "MIT" ]
permissive
Nanyaohui/simpeg
bb269cd60e175daefd08738a9e613de99ac99aaa
4af6cfafa861a5161e951c3b0961bceb2125a0fb
refs/heads/master
2020-06-27T15:30:41.130942
2019-07-31T21:07:23
2019-07-31T21:07:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,479
py
""" Method of Equivalent Sources for Removing VRM Responses ======================================================= Here, we use an equivalent source inversion to remove the VRM response from TEM data collected by a small coincident loop system. The data being inverted are the same as in the forward modeling example. ...
[ "devinccowan@gmail.com" ]
devinccowan@gmail.com
99645ee08971d3f93bc3d83aa991170c7622c2de
a424de85e049620131b06cec8cce1af46dd40dc7
/onnxruntime/python/tools/quantization/operators/activation.py
6454c46f0b3f7fb11f0db84be7bf968de681ffdc
[ "MIT" ]
permissive
nietras/onnxruntime
2e14d9337b16b6cf0db6ff183f43b729954e1ed2
6b148e15e143a2143abf6687ef71dd8578c3e912
refs/heads/master
2022-09-22T17:23:58.996968
2022-08-30T23:47:36
2022-08-30T23:47:36
191,154,184
0
0
MIT
2020-02-03T11:37:58
2019-06-10T11:20:14
C++
UTF-8
Python
false
false
4,351
py
import onnx from onnx import onnx_pb as onnx_proto from ..quant_utils import TENSOR_NAME_QUANT_SUFFIX, QuantizedValue, QuantizedValueType, attribute_to_kwarg, ms_domain from .base_operator import QuantOperatorBase from .qdq_base_operator import QDQOperatorBase class QLinearActivation(QuantOperatorBase): def __in...
[ "noreply@github.com" ]
noreply@github.com
6a952868a261b868e9c58848f75d1dac94c5fa94
2befe3929950fd5d6257ed6b1f1fd5751995f22f
/solutions/check_subtree.py
a2779ef79e6a22b1089bde9d419b810b2467168b
[]
no_license
redpanda-ai/ctci
a493abda7d95639ab785199ac77dfdcf529a1dd6
a621b25b55c749a678577fad4658b0b9171f889f
refs/heads/master
2021-07-09T18:26:17.193734
2020-09-26T04:02:20
2020-09-26T04:02:20
200,296,580
2
1
null
2023-09-14T00:36:51
2019-08-02T20:52:51
Python
UTF-8
Python
false
false
821
py
class Node: def __init__(self, data, left=None, right=None): self.data = data self.left = left self.right = right def get_preorder_string(root): if not root: return 'X' return str(root.data) + get_preorder_string(root.left) + get_preorder_string(root.right) a = Node(5) b...
[ "joeandrewkey@gmail.com" ]
joeandrewkey@gmail.com
6da2cc3c97cbe5ad9f93d58d1dbc60ac82050b43
1aac363a13a1a129089c34e80a0450d4b86dc245
/mysite/settings.py
f9a3b2ca58e919db76200a0c55e672bfe43bf073
[]
no_license
shivamj2200/Assignmen1
02283a4bfdfce347a34c26e59de4713105273de0
b65c30d9038001abc11c8eda94bae1d0e6084a6e
refs/heads/main
2023-07-12T03:24:05.618374
2021-08-18T22:58:00
2021-08-18T22:58:00
397,107,514
0
0
null
null
null
null
UTF-8
Python
false
false
3,294
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 3.2.6. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathlib ...
[ "shivamjaiswal2200@gmail.com" ]
shivamjaiswal2200@gmail.com
51ac1470bca4296d1afb8b9e0855567bd64156a7
4a2bd79126727795671f50d4f0cc0cbd27cf23b8
/recipes/filters/filters.py
ef4295f7f9e0c02e121750f65922b5c796866a82
[]
no_license
afga97/recipes-restframework
5d980e91cba78e15c7b61bbde3c5e6cc3a731f7b
baf05a5167dad387dde14504a7be47ac38a334e7
refs/heads/master
2022-05-28T16:59:07.879056
2019-06-19T18:06:39
2019-06-19T18:06:39
205,434,310
0
0
null
2022-05-25T02:30:35
2019-08-30T18:11:52
Python
UTF-8
Python
false
false
249
py
from django_filters import rest_framework as filters from recipes.models import Recipe class RecipeFilter(filters.FilterSet): class Meta: model = Recipe fields = { 'name': ['exact', 'icontains', 'contains'] }
[ "afga199714@gmail.com" ]
afga199714@gmail.com
86203cbdc8524bc438ae6337aa0c9192f9d21c19
bfc25f1ad7bfe061b57cfab82aba9d0af1453491
/data/external/repositories_2to3/152687/plankton-classification-master/code/maxout/train.py
1a1c2151cd0734ec1b1463ad74ed84d26eb51fef
[ "MIT" ]
permissive
Keesiu/meta-kaggle
77d134620ebce530d183467202cf45639d9c6ff2
87de739aba2399fd31072ee81b391f9b7a63f540
refs/heads/master
2020-03-28T00:23:10.584151
2018-12-20T19:09:50
2018-12-20T19:09:50
147,406,338
0
1
null
null
null
null
UTF-8
Python
false
false
9,293
py
import os import numpy as np from data import load_images from realtime_augment import RealtimeAugment from pylearn2.datasets import preprocessing from pylearn2.training_algorithms import sgd, learning_rule from pylearn2.termination_criteria import EpochCounter from pylearn2.datasets.dense_design_matrix import...
[ "keesiu.wong@gmail.com" ]
keesiu.wong@gmail.com
3d84c644fe978b95baa8547331d8fa07d21c8340
e10aac10ba37fe2645873eb524a4d0bb75361e9a
/kts123/assignment3/cs231n/rnn_layers.py
38352bc24dd903230f466e004de8fbda316ce5d0
[]
no_license
visionest/cs231n
631e28821610f51300fc900d81d4d262f83298e0
5bebdffa804ef2e9270577d92ce7f01757818cfa
refs/heads/master
2020-09-28T02:11:20.550631
2018-07-12T15:10:40
2018-07-12T15:10:40
67,966,459
0
1
null
null
null
null
UTF-8
Python
false
false
24,390
py
#-*- coding: utf-8 -*- import numpy as np import itertools """ This file defines layer types that are commonly used for recurrent neural networks. """ def f_broadcast (x, shape): e = np.tile(x, shape) s = shape + np.shape(x) return e.reshape(s) def df_broadcast (dout, x, add_shape): for _ in xrang...
[ "kts12345@github.com" ]
kts12345@github.com
2c47955f631a9d3fa714d69e4428008c8a4aee4d
eed45b6f4a2c991c00a89537166a16ec9f7dbd78
/youstagram/views.py
ab41c25338c416a2d3bf58049d7de171f2845a76
[ "MIT" ]
permissive
Jeewhan/YouStagram
f9632a97cfefa08f625ab810fd439ce51f30886b
3d19ce96869bb586f680ebb600593bcc9decf369
refs/heads/master
2021-06-10T11:55:00.094323
2017-02-22T06:24:23
2017-02-22T06:24:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
248
py
from django.shortcuts import render from photos.models import Photo def index(request): photo_list = Photo.objects.all().order_by('-created_at') ctx = { 'photo_list': photo_list } return render(request, 'index.html', ctx)
[ "distinct19@gmail.com" ]
distinct19@gmail.com
5f3368b4e2f8fb1c3c9239fc1e759b36f7118723
d98cd7354fc5f411f0202eb09012976166956358
/legacy_codes/TDT2CSV_20200612_2.py
f4550df9afa768f214c96d39f06f82e756d25897
[]
no_license
jgshin354/EEG-DGMIF-jgshin
074aed8fd468b3bcfa0272c88e9ce4202b2ae0f2
e00c6facbb9e6db2dfd88c862d3364e7126ba292
refs/heads/master
2023-07-04T22:57:48.878971
2021-08-26T23:55:47
2021-08-26T23:55:47
270,519,682
0
0
null
null
null
null
UTF-8
Python
false
false
15,703
py
# -*- coding: utf-8 -*- """ Created on Wed May 13 17:19:39 2020 @author: JGSHIN refer the TDT python package https://www.tdt.com/support/python-sdk/ """ #%% import os #import glob import numpy as np from scipy.interpolate import interp1d import scipy.ndimage import matplotlib.pyplot as plt import tdt #from tdt import...
[ "jgshin354@gmail.com" ]
jgshin354@gmail.com
80509a4100a0b7a0b6de57078ebe5ef55cc51a85
0591d8751367dd08778b92eb552e9750447ae4c4
/WeChat/settings.py
ab25fddc628dd4c9e3e552e0f63288ab3285941f
[]
no_license
fwzhuangCg/Wechat
45fad4cfbc3f7accd29b0f13d0f080420c5ebe8e
603931df8c17e14076aba5a2d7c3e6641e9ba202
refs/heads/master
2021-05-27T20:25:36.101769
2014-05-18T00:09:02
2014-05-18T00:09:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,351
py
# Django settings for WeChat project. DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 'NAME': '', ...
[ "986450042@qq.com" ]
986450042@qq.com
f84d1b36850cdefd80ce3e75dc92ecde492c2f90
a1a17ee29c5ad8530220a4832517ca41f980f27c
/GoogleAuthenticatorBackEnd/wsgi.py
a7e416ef654c23439353412e1c8a40065056690d
[]
no_license
Rayooo/GoogleAuthenticatorBackEnd
fab8b697eb8de1768f2278e53360572862c1f54b
28f6497ef4c53c816870238b5cb66ca5256440b5
refs/heads/master
2020-12-24T06:33:39.574429
2016-11-19T05:17:18
2016-11-19T05:17:18
73,472,146
0
1
null
null
null
null
UTF-8
Python
false
false
429
py
""" WSGI config for GoogleAuthenticatorBackEnd 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.9/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setde...
[ "chenxiaolei.ray@gmail.com" ]
chenxiaolei.ray@gmail.com
1847dcb566c43191c94f34f3bfdac74ca74d1457
795323be211f9d53dc58e4404f4f702fd65efe1c
/src/kyoto_reader/pas.py
737a3ddffce0e8d0e471e6b8b38229627d1dcba5
[ "MIT" ]
permissive
Tzawa/kyoto-reader
55c565a145432b837b8877c3fa4df7db05bba218
02b95ffeb92ffebaf43ce7ed710a71aec2e46105
refs/heads/master
2023-01-29T00:55:18.679974
2020-12-15T15:39:47
2020-12-15T15:39:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,223
py
import logging from typing import List, Dict from collections import defaultdict from abc import abstractmethod from .base_phrase import BasePhrase logger = logging.getLogger(__name__) logger.setLevel(logging.WARNING) # 述語を表すクラス Predicate = BasePhrase class BaseArgument: """全ての項の基底クラス""" def __init__(self...
[ "ueda-n127@hotmail.co.jp" ]
ueda-n127@hotmail.co.jp
0cc9f793bbbacb2d71d1f077caac1470878e96ee
badb121a8c72debc539e7b9caf17b5c4cd875897
/setup.py
d788bb0448c2f1d68b5d93911c2598c8b73aeadc
[ "MIT" ]
permissive
shlpu/DeepNeuro
8721e1f83b30031a422e6cf112c31879edfa0feb
6b239942589d1b05e2384019c442508f5d02beb3
refs/heads/master
2020-03-16T07:12:25.128910
2018-04-10T22:32:29
2018-04-10T22:32:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,506
py
"""DeepNeuro: A deep learning python package for neuroimaging data. Created by the Quantitative Tumor Imaging Lab at the Martinos Center (Harvard-MIT Program in Health, Sciences, and Technology / Massachussets General Hospital). """ DOCLINES = __doc__.split("\n") import sys from setuptools import setup, find_pack...
[ "andrew_beers@alumni.brown.edu" ]
andrew_beers@alumni.brown.edu
7c05796925367ac4e5290c0e31564df93a3d4115
f31441d1eebe6eac19988eb52fd2fbbd52aee222
/vara/main.py
0ef988a40f09a4d84d0f6cebbdecb879469b34fa
[]
no_license
plusTammi/snake
771a547b2a91868fe94001c98fa99a5e3830042b
24c6d44901dbc7175ea689398f60216dd7ea04c2
refs/heads/master
2021-01-22T23:58:15.313472
2014-12-05T17:23:56
2014-12-05T17:23:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,089
py
import numpy as np import queue import matplotlib.pylab as plt import matplotlib.animation as animation import copy from time import sleep ##0## #3#1# ##2## def unique_columns2(data): dt = np.dtype((np.void, data.dtype.itemsize * data.shape[0])) dataf = np.asfortranarray(data).view(dt) u,uind = np.unique...
[ "juhani_55@hotmail.com" ]
juhani_55@hotmail.com
75b3a9895a158f61870ce7f6948ee8c615166ebf
ad1fc1783487a70b3b10e9d3927cd864d15a6056
/pytablewriter/style/__init__.py
01aa4c10be5158f44fcc371276ce1231fe78cce7
[ "MIT" ]
permissive
Diwahars/pytablewriter
ea1d53669d7f0507c35332cb296fc9c0015473d0
6275405d75cb091c9e225e278b0d1230736fb9e8
refs/heads/master
2020-04-16T09:41:39.070414
2019-01-09T13:38:03
2019-01-09T13:38:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
321
py
# encoding: utf-8 from __future__ import absolute_import from ._font import FontSize, FontWeight from ._style import Align, Style, ThousandSeparator from ._styler import ( HtmlStyler, LatexStyler, NullStyler, TextStyler, MarkdownStyler, ReStructuredTextStyler, ) from dataproperty import Format...
[ "tsuyoshi.hombashi@gmail.com" ]
tsuyoshi.hombashi@gmail.com
5a79ad8406826ef375b6dd914e43c79d60c3fe09
279a70e69314776d880c3f7824e2cfd74935f4ed
/Group1/Team1/demo_enhancements/ws.py
bad238552a5c13b320d3c3f510374ee478715001
[]
no_license
mpant/asdrp2019
f80a9adbdf0666a899e1dcd8ba4cee0a65266e94
01b25022a6dc2b33339af3a5ce9fe1b1e5de80e0
refs/heads/master
2020-06-29T03:29:27.453110
2019-08-20T23:42:07
2019-08-20T23:42:07
200,427,042
0
0
null
null
null
null
UTF-8
Python
false
false
11,515
py
#!/usr/bin/env python3 import logging import os import re from ev3dev2.motor import MoveJoystick, list_motors, LargeMotor, MoveTank, SpeedPercent, OUTPUT_C, OUTPUT_B from http.server import BaseHTTPRequestHandler, HTTPServer from ev3dev2.sound import Sound log = logging.getLogger(__name__) # ===========...
[ "meenalpant@gmail.com" ]
meenalpant@gmail.com
54b5f9999727867f92c0a86ef38bb2f8502bf5aa
56fc8fe58ec8d576ec857f19a8adc43b49e19125
/DjangoDrf/DjangoDrf/urls.py
c75f1d5a486221814c1b64622ac12621ad0426fc
[]
no_license
Qpigzhu/Drf
53ae3dfd7d2715ea49bbfca02ada1a9239cb25a2
e4faa165a81abe8e641b992b6f86cc46cb01ac16
refs/heads/master
2022-12-13T16:30:33.868771
2018-12-12T02:34:11
2018-12-12T02:34:11
161,421,986
0
0
null
2022-12-08T01:20:24
2018-12-12T02:32:20
JavaScript
UTF-8
Python
false
false
2,253
py
"""DjangoDrf URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
[ "331103418@qq.com" ]
331103418@qq.com
06be3888ac318f4916ff7e4dad1b5319228142e5
3353af945c0975b352b2e423790b8063fb36bba8
/Spotkanie2/zadanie4.py
429a6eb1babbfb072d130a2570a15d1aba8b4a81
[]
no_license
KubaMatejuk/Python_course
7d4c68cc56a2663f14c2228dec749f3f0bcf2276
5f01ed90ca4acb55495fd14f9753543f2bed7c5f
refs/heads/master
2020-04-09T03:39:37.396870
2018-12-11T09:49:06
2018-12-11T09:49:06
159,991,514
0
0
null
null
null
null
UTF-8
Python
false
false
333
py
def suma_dzielnikow(n): suma=[] for i in range(1,n): if n%i==0: suma.append(i) return suma def czy_pierwsza(n): if len(suma_dzielnikow(n))==1: return True return False dane = [2,3,4,5,6,7,8,9,10,11] # for liczba in dane: # print("{0}: {1}".format(liczba,czy_pierwsz...
[ "jmatejuk@gmail.com" ]
jmatejuk@gmail.com
79740fbb37e6a70bcc0a96e542685e711047089e
82ef40d327b951aea7337d7490bf47ed26b69bdc
/day019/race.py
3cff2620631fe7f06d1a1b89f7bb69655e683e89
[]
no_license
sdearth/pythoncourse
5b9ef4b66f0f298d9ff70a5d04a940c3e8ac080e
82be08539edfeca4fb4317bafdac854d1166c56e
refs/heads/main
2023-03-30T13:07:31.264659
2021-04-12T16:27:46
2021-04-12T16:27:46
334,978,206
0
0
null
null
null
null
UTF-8
Python
false
false
968
py
from turtle import Turtle, Screen, color import random is_race_on = False screen = Screen() screen.setup(width=500, height=400) colors = ("red", "orange", "yellow", "blue", "green") turtles = [] for index in range(0, 5): turtles.append(Turtle(shape="turtle", visible=False)) turtles[index].color(colors[index...
[ "stevedearth@us.ibm.com" ]
stevedearth@us.ibm.com
62fd56ed06eb0f0be7d167242876b87462661f8e
6027132e5b7277340fd60687a3e553a67bb38111
/list_ingredients/ingredients/urls.py
9e712cc4e4ad2765aff2c107e71aaaf1ebaea3e6
[]
no_license
jchung05/Thizzle
ab3ec7908ac3b00791475ed87660711f74d92235
818bed1134fb75fb4ef0dfbbaf4fae94bdab3853
refs/heads/master
2022-06-02T09:45:30.984225
2019-07-09T01:07:39
2019-07-09T01:07:39
195,903,872
0
0
null
2022-04-22T22:03:16
2019-07-09T00:28:11
Python
UTF-8
Python
false
false
199
py
from rest_framework import routers from .api import IngredientViewSet router = routers.DefaultRouter() router.register('api/ingredients', IngredientViewSet, 'ingredients') urlpatterns = router.urls
[ "joeychung960@gmail.com" ]
joeychung960@gmail.com
4fdd0d8c6ae5710146751a450372bd9c6f5b06d7
1934761958bbb6082beebe887af36d7579d73fd5
/sandbox/test_concatenation.py
e25fa9c7ed94080b29d6fbe34cc88e58924e3439
[ "MIT" ]
permissive
sjoerdapp/tacoma
92d16e0beb93a3fc0dd0a745bccc35e050fa5dbe
3c63d51e2b9b021f95a6945716f50b557dd41d52
refs/heads/master
2020-04-10T14:01:22.713198
2018-12-07T17:10:09
2018-12-07T17:10:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,403
py
import tacoma as tc print("===== edge_lists => edge_lists =====") L = tc.edge_lists() L.N = 4 L.t = [0.0,1.0,2.0] L.tmax = 3.0 L.edges = [ [ (0,1) ], [ (1,2), (0,2) ], [ (0,1) ], ] L2 = tc.e...
[ "benjaminfrankmaier@gmail.com" ]
benjaminfrankmaier@gmail.com
b93d98b8f40cbb5c1319e137fdf50a065a25f97b
b03cd27d329160c8ba501763ba1483eb906ceca7
/Feature Selection/extratrees_clasif.py
65a08208238a9d392f5c9d52192073482baf1820
[]
no_license
ShubhamSGupta/Predictive-Machine-learning
106717872b62b31a430e4865f6668cf37050138f
b5acf67dbbcd69ef3a057f69fdc9da386cfe38ae
refs/heads/master
2020-04-14T16:09:07.155389
2019-01-04T04:44:29
2019-01-04T04:44:29
163,944,462
0
0
null
null
null
null
UTF-8
Python
false
false
671
py
# Feature Importance with Extra Trees Classifier from pandas import read_csv from sklearn.ensemble import ExtraTreesClassifier # load data filename = 'data/breastCancer.data.csv' names = ['Id', ' Clump Thickness', 'cell size', 'cell shape', 'Marginal Adhesion', 'Single Epithelial Cell Size ', 'Bare_Nucle...
[ "noreply@github.com" ]
noreply@github.com
af5a21aa4b4f4efd56f913cf38ae2495c8b1b738
8fca0112fa22d929649422fee76a7e926ec7b512
/Classes/FileBuilder.py
fe0119022721016c2e03e79e1e2aac354b14dcc1
[]
no_license
pedroribeiro89/PDBParser
c75955d8e244944d12d427a08258f99b3c12d4ee
8d49038c76afc5a9c4682e61a1d9f92399514962
refs/heads/master
2021-01-10T05:30:35.884046
2016-03-17T02:55:47
2016-03-17T02:55:47
54,083,313
1
1
null
null
null
null
UTF-8
Python
false
false
11,883
py
import Codification import pdb class FileBuilder: """ Class for writing the tests and training files. """ crossValidation = None folder = None greaterSequence = None vectorForm = None codification = None maskSize = None normalization = None hash = {} HASH_INDEX = 1.0 final_test1 = [] final_test2 = ...
[ "pedroribeiro89@gmail.com" ]
pedroribeiro89@gmail.com
48eb2f2cf9b22566694a5b5a23af5047272d9505
d342aeb8f819f48fd59f2b722f429e52f7b78b35
/harness.py
0a3330b6f3568a3f9c21b8318407eb83b4fc41d2
[]
no_license
clemesha-ooi/ctx-broker-scalability-harness
d3e8591f686a5b9517536e9f22e2f71312bc1fe6
3be6ff20308f0eb4e8d676aefb211b49f8c479f5
refs/heads/master
2021-01-21T22:29:09.591410
2010-01-21T21:24:23
2010-01-21T21:24:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,323
py
import sys sys.path.append("nimbus/ctx-agent/ctx/lib/") import os import shutil import logging from threading import Thread from actions import DefaultRetrieveAction, InstantiationResult, AmazonInstantiation, DefaultOK from conf import getconfig, getCommonConf, getAmazonConf, DEFAULTCONFIG from ctx_logging import addF...
[ "clemesha@ucsd.edu" ]
clemesha@ucsd.edu
5769b7cce33ddbc4d52419f96ef57d8f849661bf
6d6f962f07c2df079745860a9d84649961c2a33c
/aicoco/settings.py
5fc15e470ea3b3fd90cf6c2385d1d03b9f5712a0
[]
no_license
sharkdaddyAI/fintastic-django
50c24615d6dc0966c1f934c57ab0863df80a92f6
b9a6e3af9e38c72378e0273be939058f726033be
refs/heads/master
2022-12-11T21:26:06.649178
2018-07-10T01:18:05
2018-07-10T01:18:05
139,480,669
0
0
null
2022-07-06T19:49:24
2018-07-02T18:38:43
HTML
UTF-8
Python
false
false
3,676
py
""" Django settings for aicoco project. Generated by 'django-admin startproject' using Django 2.0.5. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os # ...
[ "richard.lo@gudy.com.tw" ]
richard.lo@gudy.com.tw
0934cce5eadeec8b9f2b2e23442a5ac9dbe02f65
f7892b7e85bc94384db1d4a3a10925abdb69a70c
/03_MergeStage1-2/copy_weights.py
7c06092ef13728403125589ad3173d0931b540e7
[]
no_license
hberntsen/resisting-adversarials
6c86115a10bd181815e9ab5dc84ce30d97adf1a4
bdbb688610bc0703ad137a6da55972aaaf28dd02
refs/heads/master
2020-12-25T20:20:51.249648
2017-04-10T09:23:35
2017-04-10T09:23:35
56,307,108
1
1
null
null
null
null
UTF-8
Python
false
false
986
py
import caffe caffe.set_mode_cpu() net1 = caffe.Net('../02_TrainStage1/deploy.prototxt', '../02_TrainStage1/stage1_iter_40000.caffemodel', caffe.TEST) net2 = caffe.Net('../02_TrainStage2/deploy.prototxt', '../02_TrainStage2/stage2_iter_500000.caffemodel', caffe.TEST) merged = caffe.Net('../00_PrototxtDeploy/generated/s...
[ "harm.berntsen@nedap.com" ]
harm.berntsen@nedap.com
9498f18225176e960b4bbdd519b3546a250f82d6
59fe3d3a257148e2e6c7fa467ead6f73851e62ca
/assigment1.py
fdfc6b160d6ebbc92c0d07ef5a0ee819d8fb71f6
[]
no_license
pdidit/Python-project-part-2
87c6ee50d1275f3fb66cd6003d1e11f71d4382ab
20654b44758a63cc08cecd0161de19485a42ccff
refs/heads/main
2023-01-11T14:43:38.318818
2020-11-15T00:28:13
2020-11-15T00:28:13
312,823,555
0
0
null
2020-11-14T20:40:50
2020-11-14T13:34:07
Python
UTF-8
Python
false
false
17,032
py
""" Applied Scripting Assignment 1 part 1 @author: A00288402 """ #Import square function to be used in stst calculation from math import sqrt files = ["life_projects.csv", "income_for_project.csv"] income_data = [] life_expectancy = [] output =[] country = [] year2000 = [] year2001 = [] year2002 = [] year2003 = [] y...
[ "padraic.meehan@gmail.com" ]
padraic.meehan@gmail.com
49824e260fe54b64388cf2987d5e3733cdaf6e20
4703d5bef8ab009a599854c4719cc766f151e830
/scraping/wikihow_links_scraper.py
fc248477d15e65321a1423681cae9b4faae8f71e
[]
no_license
bahattintozyilmaz/thesis-codes
bb9863b6389acd69f7dcd2ed32227f28e2189021
1e1370f770bbaa9b5c1ebdcad01a2a58a8a9193f
refs/heads/master
2021-09-24T09:48:15.606671
2018-10-07T16:17:02
2018-10-07T16:17:02
105,190,650
0
0
null
null
null
null
UTF-8
Python
false
false
779
py
import scrapy import re article_count_to_load = 5000 num_loads = 100 # 500k articles base_url = "http://www.wikihow.com/index.php?title=Special:PopularPages&limit={}&offset={}" class WikihowLinksSpider(scrapy.Spider): name = 'wikihow_links' start_urls = [base_url.format(article_count_to_load, i*article_count_to_lo...
[ "baha@udemy.com" ]
baha@udemy.com
3334b107f1bedf2d90e254275f0884be99bd4f77
3792c36607b418a3e2c2abe0277823715c5ba4e9
/Vulnerability-Intelligence/Vulnerability-Intelligence-LLM/data_collection/data_collection.py
18784706e120967dc4b607c726a1c264683d8ec1
[ "MIT" ]
permissive
Ap6pack/PythonProjects
48e7fd6e83c4369de90c90a27d58cf2ea8f9d3f1
991f50682293f8a4b467f3610cbb5e9788e9e74a
refs/heads/master
2023-08-22T09:53:12.343682
2023-08-16T00:41:09
2023-08-16T00:41:09
89,826,544
1
0
null
2023-05-23T23:31:07
2017-04-30T03:16:20
Python
UTF-8
Python
false
false
1,230
py
# data_collection.py import requests import json # GitHub API endpoint for search github_api_search_url = "https://api.github.com/search/repositories" # Your GitHub personal access token access_token = "YOUR_ACCESS_TOKEN" # Keywords related to CVEs and vulnerabilities search_keywords = "CVE vulnerabilities" # Defi...
[ "noreply@github.com" ]
noreply@github.com
0f9324881116da5ccc6d95e209e3b1eca52c64cb
d0bdf444c71b724ecfd59b5bc6850962c56494cb
/labs/07-resampling_and_the_bootstrap/tests/q0_2.py
cb757a625b8c22fcb31df3b7f2d4ca35b9ab74d6
[]
no_license
ucsd-ets/dsc10-su20-public
10e3d0ff452b337f222baee330fe60d1465b0071
38787e6cc3e6210b4cc8a46350e5120845971c9f
refs/heads/master
2022-12-13T23:28:20.512649
2020-09-03T19:28:06
2020-09-03T19:28:06
275,905,339
0
1
null
null
null
null
UTF-8
Python
false
false
356
py
test = { 'hidden': False, 'name': '0.2', 'points': 1, 'suites': [ { 'cases': [ { 'code': r""" >>> p_50 == 76 True """, 'hidden': False, 'locked': False } ], 'scored': True, 'setup': '', 'teardown': '', ...
[ "eldridgejm@gmail.com" ]
eldridgejm@gmail.com
7fb928e0e715d0c2628cd1e8ced2a9c619141001
e24e498fe8f29267dc5efc8849a5126178eb096c
/program/Python/pythonPractice/NetProgram/tcp/client/login.py
37e74809036146b36884befc48e089086284d86f
[]
no_license
DSSSSSSS/PythonPractice
d167dd3d57e95b7ced55f9166f43e450d7a5a945
0b5513d0dc026da37663ce950eacd3f93810b0e1
refs/heads/master
2020-04-02T23:09:24.009959
2018-12-13T15:27:00
2018-12-13T15:27:00
154,857,362
0
0
null
null
null
null
UTF-8
Python
false
false
709
py
import socket import time sk = socket.socket() print(__name__) class user(): def __init__(self, username, passwd): self.username = username self.passwd = passwd def __str__(self): return str(self.username)+" "+str(self.passwd) class login(): def __init__(self, user: user): ...
[ "392263014@qq.com" ]
392263014@qq.com
5294c57910e749afa0feb0dc04adc4fd5fdc14aa
a7685d315e6616cc2b6d43587bb19ead4324fb2a
/cci_salesman/wizard/extract_participations.py
11c7dc952971d632537da32cf14d109bdf728a5d
[]
no_license
philmervdm/modules_cci_odoo8
472ea68de409e876722413afdd873d6a7827744e
603144219a86e805f7603cfafc0fb05a78166eef
refs/heads/master
2021-01-09T20:02:58.326569
2017-05-06T15:45:03
2017-05-06T15:45:03
60,332,279
2
2
null
null
null
null
UTF-8
Python
false
false
2,601
py
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved # $Id$ # # This program is free software: you can redistribute it and/or modify #...
[ "philmer@ccilvn.be" ]
philmer@ccilvn.be
46a50c9ccf7545ed680cba272c9f71b7a18630c9
f4a05feb29e5d5fb59e231fc782c2ec68d4ae815
/omnipack/os/__init__.py
910c32d97bee57affc129b80f2f42b460251ad46
[ "Apache-2.0" ]
permissive
FrankLeeeee/OmniPack
137bcdb3d90017911526e3190d7ac9ec786fd329
b63c13bcafb47ee954bc2535f7a941a93b7d56a0
refs/heads/master
2022-11-10T14:54:08.290280
2020-06-25T09:04:30
2020-06-25T09:04:30
270,271,011
0
0
Apache-2.0
2020-06-25T09:04:32
2020-06-07T10:30:10
Python
UTF-8
Python
false
false
340
py
from .network import kill_port, get_host, get_hostname, is_port_available from .process import kill_multiprocess, kill_process from .sys_info import get_cpu_state, get_memory_state __all__ = ['kill_port', 'get_host', 'get_hostname', 'is_port_available', 'kill_multiprocess', 'kill_process', 'get_cpu_state', ...
[ "somerlee.9@gmail.com" ]
somerlee.9@gmail.com
07382111d4dd14b487f8ddc2f8632c66c9034b55
60d2c390736f5dce1cd0c9d4249a0ab95bdae802
/worker/vtmis/vtmis/vtmis.py
6c886d68c3dbbe2f79a09e4295661bcb96a4eb5f
[ "Apache-2.0" ]
permissive
tsmolka/stoq-plugins-public
d996b0be051ce0bac453af7380e7cbfecc03ff93
a8d3351fe55fc72891c395d6767188746bf381cf
refs/heads/master
2020-12-28T22:22:15.077514
2016-07-13T17:57:43
2016-07-13T17:57:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,148
py
# Copyright 2014-2015 PUNCH Cyber Analytics Group # # 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 applica...
[ "marcus@randomhack.org" ]
marcus@randomhack.org
07151db73c571183b2efe81f155b7ee8f4d0d5aa
9b8e2992a38f591032997b5ced290fe1acc3ad94
/untitled1.py
5168631138eec406cbc548e97cca8ab1abb1401a
[]
no_license
girishdhegde/aps-2020
c694443c10d0d572c8022dad5a6ce735462aaa51
fb43d8817ba16ff78f93a8257409d77dbc82ced8
refs/heads/master
2021-08-08T04:49:18.876187
2021-01-02T04:46:20
2021-01-02T04:46:20
236,218,152
0
0
null
null
null
null
UTF-8
Python
false
false
2,329
py
import cv2 import numpy as np def dense(): global cap,currentframe if denseflag==1: x=currentframe x1=x-100 y1=x+100 count=x1 cap.set(1,x1) ret, frame1 = cap.read() prvs = cv2.cvtColor(frame1,cv2.COLOR_BGR2GRAY) while(count<y1): ...
[ "girsihdhegde12499@gmail.com" ]
girsihdhegde12499@gmail.com
09019d8b5d352b49798f4e46e97ddbb64cd10ef1
0bfd56ce6b51f78bb3fb41eb2448c03e882cc0aa
/Exercice 1/NA_U01_difference_quotient.py
a308bc50f362bce4f36f27a8f40597144af04688
[]
no_license
julesbouvet/Numerical_Acoustic
7dc623812cae8479957e02f81936637575709ef2
ad1d61934b34883999552b15a0917e00951287a4
refs/heads/master
2023-04-19T05:19:59.405796
2021-05-05T15:03:24
2021-05-05T15:03:24
358,221,175
0
0
null
null
null
null
UTF-8
Python
false
false
688
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import cmath rho0 = 1.2 c0 = 343 global k k = 0.9 #wavenumber def p_hat(x_coord): return 0.5*cmath.exp(-1j*k*x_coord) x = 1 #exact solution v_hat_exact = p_hat(x)/(rho0*c0) print("v_hat_exact =", v_hat_exact) omega = k*c0 #angular frequency dx = 0.1 #=0.5 #for...
[ "j.bouvet99@gmail.com" ]
j.bouvet99@gmail.com
f5d15bf969201c9d3a1f2b08dadb69c99f6b95e2
a9fada0eb1fceeb2a79069cf0f391dabf3fcf1f8
/e-com/env/src/ecommerce/products/migrations/0008_auto_20181029_1806.py
d09de932e61e4370c8bfd73cbccb9b179ba9692c
[]
no_license
suryavamsi1563/ecommerce-sec3
b3c41b50ffe11e4df832e966801557c7e6a60616
b0240f642c6fba3253927d0bf4a7ddf1482c208c
refs/heads/master
2022-12-20T16:49:39.051358
2018-10-30T05:44:24
2018-10-30T05:44:24
155,324,040
0
1
null
2022-12-12T15:33:10
2018-10-30T04:23:57
null
UTF-8
Python
false
false
442
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2018-10-29 12:36 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('products', '0007_product_slug'), ] operations = [ migrations.AlterField( ...
[ "suryavamsi1563@gmail.com" ]
suryavamsi1563@gmail.com
0030ce04605d77eac6b6fc2fab48a8631828d449
b30b6807112e2d96a23de70a96ca786e64e25b4d
/icnn/datasets/voc2010_crop/rename_copy.py
dec7192ca46e27cbff44427e388974006ad45a58
[ "MIT" ]
permissive
a2un/ICNN-with-VQGA
968d8a493e7cd6704455862b61c9859ff2101b12
99bca2128c0cc14409321e7700b13ea3aae340a3
refs/heads/main
2023-04-10T00:09:04.571048
2021-04-20T03:47:58
2021-04-20T03:47:58
348,711,462
0
0
null
null
null
null
UTF-8
Python
false
false
1,687
py
from os import walk, path, rename from shutil import copy from string import digits source = './preprocessed_source' final_path = './all_crop' new_fnames = {} for cur_path,_,files in walk('./'): for fname in files: if path.splitext(fname)[1] == '.txt' and path.splitext(fname)[0].split('_')[1] == 'info': ...
[ "ARL122@pitt.edu" ]
ARL122@pitt.edu
911268cc7033fdb9e4f5dfa358b0e1e352f93e23
ae39044997354b7270c6f35957bdd5efdcfbd2ee
/21.类.py/carse.py
c25056e3efde01e2d06ef62660cd80b401ed2c88
[]
no_license
text007/learngit
a2a7d8c872f17103a388f77370dcd07d6eb477c9
6f3429ecab51f738a99b2ec6637cd21603f48ec4
refs/heads/master
2020-06-18T13:18:34.563100
2019-10-08T13:08:09
2019-10-08T13:08:09
156,345,863
0
0
null
null
null
null
UTF-8
Python
false
false
1,057
py
'''一个类''' # 导入另外一个类 from cars import Car class Battery(): # 定义一个类 def __init__(self, battery_size = 70): # 定义一个方法,传入一个形参,如果没有传入参数值,则默认值 self.battery_size = battery_size # 初始化 def describe_battery(self): # 定义一个方法 print(str(self.battery_size)) # 打印 def get_range(self): # 定义一个方...
[ "jzheng@qumitech.local" ]
jzheng@qumitech.local
49646c93616da8b568014ae39f3445577e65988c
6ffde6c22c923e773f791925fa7df6341ccc1402
/src/Generators/tablegen/oldtable.py
557a4b55c7d40af2960c7698e5ecce599d806902
[]
no_license
scadding/MyUniverse
e2163b57aefbdc5f2dd2533cf836db26fc19d95c
d2b196bae19592784bfe4315baf76a6954261391
refs/heads/master
2021-01-15T09:20:21.411904
2018-07-03T08:05:31
2018-07-03T08:05:31
35,813,452
0
1
null
null
null
null
UTF-8
Python
false
false
19,360
py
#!/usr/bin/env python import os, sys from stat import * import re import random import imp import csv from optparse import OptionParser import tableFunctions from pyparsing import * rand = random def walktree(top, callback, load=False): for f in os.listdir(top): pathname = os.path.join(top, f) mo...
[ "doug.scadding@gmail.com" ]
doug.scadding@gmail.com
bbcb4965da77c91bc7efc7820c8f2740d2446ed7
4464410d3c2ac084290ad8c408d29e12a491319f
/config/settings/local.py
d50bba91f0850cd53fd92a48b44819dd48015a54
[]
no_license
tutybukuny/django-microservice-template
18ff1bdd1772af0c06d2de9cb24df440478b38f1
81ee29a3f8292404daa08af8259231496d369350
refs/heads/master
2023-01-27T13:23:56.465221
2020-12-09T13:20:39
2020-12-09T13:20:39
319,953,057
0
0
null
null
null
null
UTF-8
Python
false
false
2,068
py
from .base import * import os SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY', '3@6wj-yed8gs+1^cr@$53xiox1=m*!!smls%i-zo2f-ob8r*v6') ALLOWED_HOSTS = ["*"] DEBUG = True DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': os.environ.get('DATABASE_NAME', 'locsharin...
[ "thienthn@ftech.ai" ]
thienthn@ftech.ai
7e571532ca7089ca97b7a036e4c4046c11d525fa
be4d7664c57d0ad6008862baf0a0c2219635be55
/db/__init__.py
1d08640fa420b00c2134b5bf6927b8b0fcea4797
[]
no_license
ohmy207/geass-server
dc31ef825c10c236a50b2ab9e2857ad4c79480ed
b1c28d75c0b0916446ef1636fdb807329f019991
refs/heads/master
2021-05-30T13:02:06.267994
2016-01-28T11:44:42
2016-01-28T11:44:42
49,850,001
0
0
null
null
null
null
UTF-8
Python
false
false
39
py
from base import BaseModel, MixinModel
[ "ohmy207@gmail.com" ]
ohmy207@gmail.com
079bdae213af556e03917b4de7d3cf57e3bc6bcf
471ceab86303fea56a36e3737c93b010fd3c54b2
/rubbery-raccoons/wired/users/views.py
5b2cada37972790aad67a54d004a49a426ab637e
[ "MIT", "Python-2.0" ]
permissive
whywhyy/summer-code-jam-2020
056b6907ef9918a660c68364d823b5468919ae1a
9d46c6a9e6ccfae1b9ab5db1b6bf2a6b0abe4c10
refs/heads/master
2022-12-02T17:24:49.819994
2020-08-14T08:56:59
2020-08-14T08:56:59
284,628,157
2
0
MIT
2020-08-12T14:02:25
2020-08-03T07:04:16
JavaScript
UTF-8
Python
false
false
820
py
from django.contrib import messages from django.contrib.auth import logout from django.contrib.auth.forms import UserCreationForm from django.shortcuts import redirect, render def register(request): if request.method == "POST": form = UserCreationForm(request.POST) if form.is_valid(): ...
[ "umer.f.shaikh@gmail.com" ]
umer.f.shaikh@gmail.com
25bf611821a6db91cf772a8c47d1940afc9c09ba
bb54fca36822db794a86dc0d617ffe7f58c23c93
/INS_CCD_plate_setup_2018.v1.py
a635c7e0ab327bc813b74713cb17925ca0ec3d58
[]
no_license
derektoms/opentrons
c82ee95645b03a9288cc4fa0ea71a02291d3495a
6635f13034713c2dedc4f629422cb78dfedcbce9
refs/heads/master
2021-04-04T08:18:07.765977
2018-09-14T23:14:50
2018-09-14T23:14:50
124,447,150
1
1
null
null
null
null
UTF-8
Python
false
false
9,249
py
# 2018-02-06 # import required bits from opentrons import robot, containers, instruments from itertools import chain #robot.head_speed(z=1000) ## container set up # set tip racks p10rack = containers.load( 'tiprack-10ul', 'A1', 'p10-rack-01' ) p1000rack = containers.load( 'tiprack-1000ul', 'B1'...
[ "noreply@github.com" ]
noreply@github.com
bf04775b2617e61bc1cabbb9c2ce54f06f56ab7d
f4cd2f97b46b4ebacbc45b9c09c3e8cd184e5ce2
/tests/test_fortiosapi_virsh.py
62f401c9fe4c296414da4c33f12ff034eccaf046
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
pentekl/fortiosapi
c145ab988fc408c49b057edd249a31aed7769355
53ac684a84d8e3ecee1f14d5ef2e570d7d0621da
refs/heads/master
2021-07-03T12:15:08.376823
2017-09-19T12:49:50
2017-09-19T12:49:50
104,744,479
0
0
null
2017-09-25T12:01:46
2017-09-25T12:01:46
null
UTF-8
Python
false
false
6,110
py
#!/usr/bin/env python import unittest # Copyright 2015 Fortinet, Inc. # # All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 #...
[ "thomnico@googlemail.com" ]
thomnico@googlemail.com
ddbcd172764d43f1fee2b2d39dd0c3ea9b0e413f
e816f4e2f7209f4bf05b992a9ddeaa846db13eff
/Bank_subscribtion/DataTransformation_Prediction/DataTransformationPrediction.py
5bd75a476170eeee71b655605698061baeca77df
[]
no_license
followabhi1/Bank-subscription
9377212686183859f585a533007b07c0d7d1f6dc
707ae2fa19302ed021ec27ccf29a915298f86f60
refs/heads/main
2023-06-16T20:48:37.799410
2021-07-16T06:09:06
2021-07-16T06:09:06
384,609,377
0
0
null
null
null
null
UTF-8
Python
false
false
2,789
py
from datetime import datetime from os import listdir import pandas from application_logging.logger import App_Logger class dataTransformPredict: """ This class shall be used for transforming the Good Raw Training Data before loading it in Database!!. Written By: A...
[ "noreply@github.com" ]
noreply@github.com
2a16fc8d5f3b349b947c63dcfdc52b54c0b7bb1d
e6fa4cef5eb396fa751bfc7dc1357b7dd2517e7e
/prism/blockchain.py
4a52991bdf8f81ed4dc90a0296c419d3cece4880
[]
no_license
lucsof114/EE374_Project
021d3e0a7927350050a8bc8868f348db010d94b9
563beb09a8b07a196cfb2012f401c8f6bfd774f1
refs/heads/master
2022-10-21T09:05:20.673205
2020-06-12T18:56:11
2020-06-12T18:56:11
266,463,704
0
0
null
null
null
null
UTF-8
Python
false
false
8,681
py
import numpy as np from args import load_params from blocks import * from scipy.stats import poisson import copy import time np.random.seed(0) class Prism: def __init__(self) : ###################### GET PARAMS ############################ self.params = load_params() #Load paramaters sel...
[ "lsoffer@stanford.edu" ]
lsoffer@stanford.edu
be057e5c9309412cf15dda2523c1e7c57db48d96
ea123e130d8b0c0f68589e54f2aeff8745706052
/main_test.py
3f0417d997060fbdc09fb7be59b4d8e85998fa9a
[]
no_license
mohaoran93/Thesis_Network
53f5c0b50cfac825787163d4d6006612d443c1d4
03cd95b4df37552df74e8710d4ec2578dcf45052
refs/heads/master
2021-08-19T06:20:34.154098
2017-11-24T23:14:19
2017-11-24T23:14:19
110,448,382
0
0
null
null
null
null
UTF-8
Python
false
false
881
py
from src.mytools import tools from src.visualization import Visualization from src.algorithm1 import algorithm1 tool = tools() algo1 = algorithm1(size=500) nodes_cirle = algo1.execute(node=10,k=3,distance_threshold=1000) print("the size of community is {0} and the circle center is {1}, the finally radius is {2} km" ...
[ "m.haoran@innopolis.ru" ]
m.haoran@innopolis.ru
736bc3c29e07ddbfaf19a515a9c9752a2c06d670
25c78910cf1d8be73a5d7bc01af85fa72c7ed51e
/Basic ProblemSolving/asciiconvert(first letter).py
a86f350b03ea64bd2445732efcba0ffc3b5f9799
[]
no_license
Rajeevv8/pythonprograms
225cfe4eaf5d87ed33fea7486d4e3b29c1891c91
990c83f9dee277ecddd810dcfa0d483ed15a2fde
refs/heads/main
2023-08-22T18:14:08.329268
2021-10-18T12:38:26
2021-10-18T12:38:26
417,513,945
0
0
null
null
null
null
UTF-8
Python
false
false
123
py
a=input("Enter a string") b=ord(a[0]) b-=32 c=chr(b) print(c,end="") for i in range(1,len(a)): print(a[i],end="")
[ "rajeevrakhz@gmail.com" ]
rajeevrakhz@gmail.com
4ed203fe5bd61e1e611d29326dfa8157d106a3bd
292726345fae67a78771477e164441a716e0c22b
/setup.py
90234c02a27b4334d60238f950aa900379015c21
[]
no_license
anirban89/mypackage
d9bf8c7b0d2cc9dbd4ac4b5493cd650bf390f8a7
7b38e6db6c9e60cf2edb2b34ebe649ec3b7f0737
refs/heads/master
2021-01-13T02:26:17.878874
2014-10-02T00:29:34
2014-10-02T00:29:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
132
py
from setuptools import setup setup( name = 'mypackage', version = 0.1, packages = ['mypackage'], install_requires = ['numpy'] )
[ "anirbancnha@gmail.com" ]
anirbancnha@gmail.com
ef2f9dc7540b0fca17ddacdc84709c6010d62849
42ba821a1fc8576523590fa1ea23991be8ae5819
/basicsessionauth_project/testapp/migrations/0001_initial.py
3d92061135b3d474f6525dcccc20705a67c92f94
[]
no_license
krishna225-k/RestApi
580235c26e0ce77ed1a90a0a65163f09fe035d79
45ca28eb9df64eec823dfc9c84dec8298c7be101
refs/heads/main
2022-12-24T02:01:24.427252
2020-10-05T14:40:30
2020-10-05T14:40:30
301,412,940
0
0
null
null
null
null
UTF-8
Python
false
false
667
py
# Generated by Django 3.0 on 2020-10-04 11:28 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Employee', fields=[ ('id', mo...
[ "noreply@github.com" ]
noreply@github.com
d15d67d65624be46de1b72401f49d991cdb8c86e
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-projectman/huaweicloudsdkprojectman/v4/model/batch_delete_iterations_v4_request.py
49a9950000cd6af7e35e6cdf50daf4cd5933de11
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
4,126
py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class BatchDeleteIterationsV4Request: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key ...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
921bee8828f3b827b27876b6a92cdabb33c9ac9d
59852c8e37979e0faeecbae7131804b7943678c1
/all_windows/Modify.py
c1a43002430ca61d214d96ecf9cdde26e561bb1c
[ "MIT" ]
permissive
Hustw/QQ
f34291d88eea52f58e7832bcaeb3ca840f18b59f
5b76ffcc3dde4d82402d59b3e1fbc4aa3b4f29bd
refs/heads/master
2023-01-19T17:06:18.126745
2020-11-22T08:07:42
2020-11-22T08:07:42
314,983,646
5
1
null
null
null
null
UTF-8
Python
false
false
4,534
py
from all_windows.Register import RgstForm from settingconfig import * from base64 import b64encode,b64decode from PyQt5.QtGui import QPixmap from PyQt5.QtWidgets import * from PyQt5.QtCore import * from PyQt5.QtGui import * import json from image_handle import setlabel_imgstr class ModifyWindows(RgstForm): """ ...
[ "1552603816@qq.com" ]
1552603816@qq.com
df499c3fc33df8527f735d285e4e5e5aec104970
778c2fa067b13fab1e12216456227e5423fae907
/numpy_exercises.py
11a3b2d42f92abb829f711d8595d828c4f79a606
[]
no_license
SLawsonWoods/numpy-pandas-visualization-exercises
967ab086342ed89cab5957236ca1bf1403909fed
74b3a574bf439d6d6d6249c75061dbe64a84f3ba
refs/heads/main
2023-06-26T23:55:50.887885
2021-08-02T20:52:31
2021-08-02T20:52:31
386,360,446
0
0
null
null
null
null
UTF-8
Python
false
false
6,306
py
import numpy as np a = np.array([4, 10, 12, 23, -2, -1, 0, 0, 0, -6, 3, -7]) ## 1. How many negative numbers are there? # Display the list of numbers in the array that are negative a[a < 0] print(a[a<0]) # Get a count of those numbers len(a[a < 0]) print(len(a[a < 0])) ## 2. How many positive number are there? # Dis...
[ "Sarah.lawsonwoods@gmail.com" ]
Sarah.lawsonwoods@gmail.com
859ac352b2ac65ee743f0dc30e8713a203fc8adb
80c41d8010f0cfd1d8217fd74b64ee72aa055374
/venv/Scripts/pip3-script.py
efec2b650af7a9f85c635e1f965c30f7c91d4b13
[]
no_license
divyankvemulapalli/Linear-Regression
e3361253bce2d728520781c9b4ecb3b86037fea0
40e1026a5be7c57ca683d88d138581166cf605d0
refs/heads/master
2020-05-20T17:30:31.669538
2019-05-08T22:43:29
2019-05-08T22:43:29
185,687,981
0
0
null
null
null
null
UTF-8
Python
false
false
420
py
#!C:\Users\divya\PycharmProjects\Linear_Regression\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3' __requires__ = 'pip==9.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', s...
[ "divyankvemulapalli@gmail.com" ]
divyankvemulapalli@gmail.com
f705ee4bc444b70f5af055fe8b3972fe83329f2c
8a6c18088c50bc782df58e176663114d91ffc47c
/src/teams/migrations/0048_auto_20180814_1950.py
c59f9f8cb4135dcc034d5f69b80569efbd596119
[ "BSD-3-Clause" ]
permissive
flummer/bornhack-website
14cc55f34b85740d32567d6a3934e865f2549381
c40f225f0993a6edd25dc608de1f6467f7d8e5a1
refs/heads/master
2020-04-29T13:23:44.167064
2019-05-12T15:30:01
2019-05-12T15:30:01
176,167,685
0
0
BSD-3-Clause
2019-03-17T22:19:27
2019-03-17T22:19:27
null
UTF-8
Python
false
false
359
py
# Generated by Django 2.1 on 2018-08-14 17:50 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('teams', '0047_taskcomment'), ] operations = [ migrations.RenameField( model_name='taskcomment', old_name='content', ...
[ "valberg@orn.li" ]
valberg@orn.li
121b4e29b433361308247277ab910318c41bbba7
bcb504fa2614c871ebec4053bb4f177c27f93770
/venv/Scripts/pip-script.py
e2a69369e0820bdca150b63f2625f885de36a389
[]
no_license
clifforeilly/neuralz
0a123fa8f3b2e7abac47f2fe34f8cb0ffd4399b6
01ab9bfe8c46ee2effc1aee45028f8f54dfa5687
refs/heads/master
2020-04-07T03:11:00.955823
2018-12-01T22:02:21
2018-12-01T22:02:21
158,005,920
0
0
null
null
null
null
UTF-8
Python
false
false
411
py
#!C:\Users\cliff\PycharmProjects\neuralz\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0...
[ "cliff@thargoid.com" ]
cliff@thargoid.com
6e18ba7e9362dfa8b1b076d04424b14472dc4f6d
70e850c589c7c45abf6f24f02a1a3f68935a5cd8
/backups/10_06/nexxis_ws/build/reachmoveit/catkin_generated/pkg.develspace.context.pc.py
880ab259238e68ef9786cb2d468d5277111b165d
[]
no_license
hjalmarDr/thesis
cb521cef7ff28dbd4836c76885b3e95b797b6573
712cb94c825ed1971c927e831e20bb34f61fb8e7
refs/heads/main
2023-05-27T00:51:36.547883
2021-06-10T09:51:46
2021-06-10T09:51:46
375,059,439
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "reachmoveit" PROJECT_SPACE_DIR = "/ho...
[ "dressel.hjalmar@gmail.com" ]
dressel.hjalmar@gmail.com
37aad6a8d126f7a2f34d49e6e6fd4bddd5f08cb1
7f529df5381361874d51c8cb7d8678e088dbe71d
/aea/protocols/default/__init__.py
52e51b51e36ef3b50d6e1ccddf33b0782f9c9c80
[ "Apache-2.0" ]
permissive
cyenyxe/agents-aea
914546708ce3e2e913ce1bb48bc8928289738c9a
c2aec9127028ae13def3f69fbc80d35400de1565
refs/heads/master
2021-01-07T05:36:27.879856
2020-02-07T19:28:01
2020-02-07T19:28:01
241,594,907
0
0
Apache-2.0
2020-03-05T14:53:54
2020-02-19T10:35:49
null
UTF-8
Python
false
false
872
py
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # 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...
[ "david.minarsch@googlemail.com" ]
david.minarsch@googlemail.com
b1c69bbbaeca4170b29a1ede6a30bdb7b525ab58
70dcb812b075a0644f753cefcbb4ed63db767ed0
/accounts/urls.py
9e8eab784f8e0ae287747bda2ca1b389c6509bdb
[]
no_license
seif-elden/Rap-scene
33210bd2b17717afa9c6c2e0bdd72e999cac1856
7bf27f8144cd9819c78402869f8b9844d99e55fd
refs/heads/master
2023-03-22T15:58:17.041672
2021-03-21T12:52:07
2021-03-21T12:52:07
349,403,746
0
0
null
null
null
null
UTF-8
Python
false
false
681
py
from django.urls import path from . import views from django.contrib.auth import views as auth_views app_name = 'accounts' urlpatterns = [ path('login/',auth_views.LoginView.as_view(template_name='login.html' , redirect_authenticated_user=True ),name='login'), path('logout/',auth_views.LogoutView.as_view(),na...
[ "sofa6099@gmail.com" ]
sofa6099@gmail.com
ec94377719b50a2106be9fe11e44d4f86e2f9f87
b071bedf74a7e9cdde9040947433447e77de98fc
/portfolio/migrations/0005_auto_20210227_0012.py
b3589f32c14eb49c80298b642410c1fc0c7e6005
[]
no_license
Yomnaali22/Django3_project
0e9b28024c67c9916d62cd4462861dfd37795425
33e6c45417a3277a311df956bbf692a93d9433ca
refs/heads/master
2023-03-25T01:10:21.708135
2021-03-17T16:26:38
2021-03-17T16:26:38
338,165,041
0
0
null
null
null
null
UTF-8
Python
false
false
734
py
# Generated by Django 3.1.4 on 2021-02-26 22:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('portfolio', '0004_login_email'), ] operations = [ migrations.AlterField( model_name='login', name='Email', ...
[ "Yomnaali1718@gmail.com" ]
Yomnaali1718@gmail.com
bf4567c64b38cbdcb6fa210ed8adcc83fad90aec
67edbcad292faeb8fb3a58ae533ea8554fa9cf51
/Project_Alibaba_workload/Alibaba_cluster_predict_Total/prediction_model.py
a9928f7f6bb8faf9e3e1889bea6f62b990761777
[ "MIT" ]
permissive
sssssch/jupyter-examples
45a5239084cd23624829bfe0cb2acf625a8accda
cf9e26e22dcfa263bcd26323527911cdbcc2cd61
refs/heads/master
2022-11-23T16:29:57.589373
2020-07-29T11:38:11
2020-07-29T11:38:11
282,651,466
1
0
MIT
2020-07-26T13:04:49
2020-07-26T13:04:48
null
UTF-8
Python
false
false
4,596
py
# -*- coding: utf-8 -*- """ Prediction_Model.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1ZKh-6nmMuaNlALvWDJQGT8GvUnSJ-nHK """ from math import sqrt import tensorflow as tf import pandas as pd from tensorflow.keras import Sequential from tens...
[ "s18807016698@outlook.com" ]
s18807016698@outlook.com
d69adaf2795b391816995226d8a59a9e90b0e6b3
e09e7b5cc5ac2cebb626f4c50f50ab594d970db5
/Drills/Drill-11/boy.py
7e54ee0125e8a40b2cc03ef2779d4d1d9ec3c15c
[]
no_license
kimrugi/KRG-2d-game-programming
477bdd1964263ef636bd926c33529b3f53465e58
85502b25adec8cf780677bcbfced840ecf071a59
refs/heads/master
2020-03-28T15:43:13.841327
2018-11-27T10:19:09
2018-11-27T10:19:09
148,619,680
0
0
null
null
null
null
UTF-8
Python
false
false
4,794
py
from pico2d import * from ball import Ball import game_world # Boy Event RIGHT_DOWN, LEFT_DOWN, RIGHT_UP, LEFT_UP, SLEEP_TIMER, SPACE = range(6) key_event_table = { (SDL_KEYDOWN, SDLK_RIGHT): RIGHT_DOWN, (SDL_KEYDOWN, SDLK_LEFT): LEFT_DOWN, (SDL_KEYUP, SDLK_RIGHT): RIGHT_UP, (SDL_KEYUP, SDLK_LEFT): L...
[ "" ]
2942d7c0f2b3c666a752e5a7745dafa478211a58
f8cacd7c1beb4deccc3e31f366b36a2e33f32db5
/index.py
3079a526ce0d93758aa0cec70b6f486d276a27b5
[]
no_license
mgallagher1890/bacc
9b418c5c0a82c54945edb2944f10b07d10d15f02
1e9312384d3cb798702c2a8be9ee615c24d750b9
refs/heads/master
2021-10-20T19:32:58.908005
2019-03-01T14:14:57
2019-03-01T14:14:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,806
py
import csv from heapq import * import sys import datetime import time #precision coefficient ε*h(x) epsilon = 75 parse_time = lambda time: datetime.datetime.strptime(time, "%Y-%m-%d-%H:%M:%S") priorities = {'low':['low','medium','high'], 'medium':['medium','high'], 'high':['high']} get_options = lambda priority: pri...
[ "mgallagher@conversantmedia.com" ]
mgallagher@conversantmedia.com
a33d39855656be44f218695a886bf8d9209f9c44
1ed76d76d7296ff1f390701949bc768ef19bb61a
/lib/wifiAPI.py
1f176ba1f720e527ac40a03d5eedf7adeaac7c4e
[]
no_license
knapikm/Smart-flowerpot
5e2e71714f96aef24cf1d80e1462a6576d19f6b5
1226bb453ec4a694b500e0f0a6f3f77735a021a4
refs/heads/master
2022-01-12T10:54:12.024542
2019-04-30T00:42:37
2019-04-30T00:42:37
152,134,635
0
0
null
null
null
null
UTF-8
Python
false
false
2,398
py
from utime import sleep from machine import idle from mqtt import MQTTClient from network import WLAN import json import measurements client = None wlan = None WIFI_AP = {'name': 'RPiAP-DP', 'pass': 'raspberry-pi.DP18-19'} #WIFI_AP = {'name': 'INFOTECH', 'pass': 'MU1nFotech28'} def _prepare_payload_for_publish(): ...
[ "knapikmichal94@gmail.com" ]
knapikmichal94@gmail.com
a4284e713c308c5f123c62a4ca0f71a3f0a07cda
210fb567de568a5871f230fc5933b3bb621235ca
/rest_framework_jwt/utils.py
3eda1a46c51b415d0458ef47836252599f3cf049
[ "MIT" ]
permissive
joshuatonga/notepik
25a5b1b4ae7bd286a17cacdec234a08d26f8bc4c
8f251fe9a689a9be8248d4da6260fe7c8742e3c0
refs/heads/master
2022-08-13T05:07:23.781341
2016-02-29T21:40:15
2016-02-29T21:40:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,978
py
# MODIFIED: kq import jwt import warnings from calendar import timegm from datetime import datetime from rest_framework_jwt.compat import get_username, get_username_field from rest_framework_jwt.settings import api_settings def jwt_payload_handler(user): # username_field = get_username_field() # username = ...
[ "hellojoshuatonga@gmail.com" ]
hellojoshuatonga@gmail.com