blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
e1d0648825695584d3ea518db961a9178ea0c66a
593389a737092f0b84b49a8f49fd8ce7c94d655a
/wechat_virus/virus-weixinbot-master/daily_news.py
78394cf432a68e3d1aaa6541376a2596a36d4c1c
[]
no_license
xinchenxy/ncov2019-
a02ffd155f12aa8e74f557d52b721df8db5c206b
6553119375d716c41cd89f44c2023ed7de2cf4fd
refs/heads/master
2021-01-06T15:33:34.925849
2020-02-18T14:32:57
2020-02-18T14:32:57
241,380,717
2
0
null
null
null
null
UTF-8
Python
false
false
3,414
py
daily_news.py
import requests import sxtwl import datetime from datetime import date import lxml from lxml import etree # 日历中文索引 ymc = [u"十一", u"十二", u"正", u"二", u"三", u"四", u"五", u"六", u"七", u"八", u"九", u"十"] rmc = [u"初一", u"初二", u"初三", u"初四", u"初五", u"初六", u"初七", u"初八", u"初九", u"初十", \ u"十一", u"十二", u"十三", u"十四", u"十五", u"十...
2c39660da8fe839c4634cd73ce069acc7b1b29b4
01a9d9f92efc93b588997912e3e6b9c242752660
/decorator/decorator.py
9fae55040ce2a82bee49a34d1e78d53b0c07762c
[]
no_license
erohkohl/python-playground
1d0cf0b8cc309a088b28b3932fbc8b7dd4f531a1
e58887df0b7c079020abf9d9e5090901ebcfaad5
refs/heads/master
2021-01-15T14:19:27.135345
2017-08-09T09:34:50
2017-08-09T09:34:50
99,687,044
0
0
null
null
null
null
UTF-8
Python
false
false
473
py
decorator.py
import time # Decorator def measure_time_of_func(func): def wrapper_func(n): start_time = time.time() fib_seq = func(n) end_time = time.time() return (fib_seq, end_time - start_time) return wrapper_func # Returns a list with first n numbers of fibonacci sequence. @measure_ti...
c87e6f8780bf8d9097f200c7f2f0faf55beb480c
5db8769bf9972d041e8b2059abed5282ede098a0
/assignment.py
5ace71c057bcbc09c8b26faecf29f1448c94e77b
[]
no_license
sliverz6/Python_Blockchain_Project
8c0b6e8c9d95fb276358383bb4f691e1ceda8b9e
4e3184b778a2dadf78f7f39af0401a5953c288d3
refs/heads/main
2023-05-05T17:38:54.954913
2021-05-24T13:14:54
2021-05-24T13:14:54
357,375,709
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
assignment.py
# 1 def transform_data(fn): print(fn(10)) # 2 transform_data(lambda data: data / 5) # 3 def transform_data2(fn, *args): for arg in args: print(fn(arg)) transform_data2(lambda data: data / 5, 10, 15, 22, 30) # 4 def transform_data2(fn, *args): for arg in args: print('Resu...
f4f08015b7638f4d6ea793350d5d19a3485978cd
17b61c53855c55dff2c03a3f2776c3ff4819f0c6
/src/sub/plot.py
66156838ff31a68815f9d0a10a6e52a66b3c0b5e
[ "MIT" ]
permissive
thanhph111/prosthetic-foot-design
401007c2d00e9b0d4744d93ca2bc472a220cce72
9c303c54949feb09126e4d67ba2f6de0d88f22a2
refs/heads/master
2023-05-23T22:03:49.240353
2021-06-11T13:33:25
2021-06-11T13:33:25
286,967,209
3
0
MIT
2021-06-11T13:33:26
2020-08-12T09:04:37
Python
UTF-8
Python
false
false
4,737
py
plot.py
"""Plot the output data. """ # Standard library import os import json import math import matplotlib as maplot import matplotlib.pyplot as pyplot from datetime import datetime # User library from sub.inputprocess import CONSTANTS as CONS # **json.loads(json_data) def get_data(): """Read output file to get data."...
d2a153fffccd4b681eebce823e641e195197cde7
be96bc4264c39b5a641a7eeb9b40fa1108d03761
/src/python/tool/autorigger_v01_obsolete/utility/namingconvention.py
5f1d57751952670b2838f1b4ea7dab365ee34b61
[]
no_license
EmreTekinalp/Public
39f13023846aa9ba7a2e61686aaa07f0042e13ff
a3c08d75e1ec396e0545b1ccb57ba8abdd2fb441
refs/heads/master
2021-01-20T20:18:28.636400
2017-08-10T07:18:04
2017-08-10T07:18:04
58,516,793
0
1
null
null
null
null
UTF-8
Python
false
false
750
py
namingconvention.py
""" Created on 02.09.2013 @author: Paul Schweizer @email: paulschweizer@gmx.net @brief: Holds all the namingconventions for pandora's box """ import os import json class NamingConvention(): """Imports naming conventions from the respective .json file and puts them into class variables. """ def __init...
aff1d702e591efcfc0fc93150a3fbec532408137
3c0e6c13c602fff04932dfba6b5ab78ff88c88cb
/lamp_control/api.py
0feee56f3e8793d0c4fd794f53df134059e2479a
[]
no_license
stevenpi/Link.Python.Django.LampControl
122ff8b967da43faf69914dbdbcf05e7d796d608
8874636d44a6dfae35aaadbd3a5b6e9ab2bebde8
refs/heads/master
2021-09-04T14:40:21.410088
2018-01-19T15:05:57
2018-01-19T15:05:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
415
py
api.py
from rest_framework import serializers, viewsets, routers from lamp_control.models import Lamp class LampSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Lamp fields = '__all__' class LampViewSet(viewsets.ModelViewSet): serializer_class = LampSerializer queryset ...
c6502ea2b32ad90c76b6dfaf3ee3218d029eba15
9b350d0da8f96d69ed9f6abbbbb28622833e8cbf
/app/nlp_utility.py
7445ba05cdab5fa2562dca6fd2cb68c70201a035
[]
no_license
vijaypandiyan/ChatBot
c5a94a3f4c66b8f3737cc0d0469c4905c9bfe177
e47567d19411996261441b1f1bcfcc7a84632b6c
refs/heads/master
2021-01-23T04:49:30.050251
2017-01-30T05:17:52
2017-01-30T05:17:52
80,396,175
0
0
null
null
null
null
UTF-8
Python
false
false
658
py
nlp_utility.py
class NlpUtility(): """ Utility methods to get particular parts of speech from a token set """ def get_nouns(self, tokens): nouns = [] for word, pos in tokens: if pos == "NN": nouns.push(word) def get_verbs(self, tokens): verbs = [] for word, pos in tokens: if pos == "VB": nouns.push(word) ...
675fbdfd519d00ab10bf613e8abb7338e484fe65
8d692f2e8b8b31aa98641b64b2b7cf32021e2e4d
/v0.1/log.py
92ae1c4d8d0137ed6da7208b1d262ad79da7cfec
[]
no_license
kangprog/BoB_othello
729d9835c06bcc66a05e38609afac12755aae6b4
4bfe5e2ec45d92f47f424fa53f9a6737a6a3bcb8
refs/heads/master
2022-02-19T19:14:43.210991
2019-02-01T17:42:36
2019-02-01T17:42:36
168,501,843
0
0
null
null
null
null
UTF-8
Python
false
false
267
py
log.py
import logging formatter = logging.Formatter("%(asctime)s [%(levelname)s] : %(message)s") log = logging.getLogger("othello") log.setLevel(logging.DEBUG) stream_hander = logging.StreamHandler() stream_hander.setFormatter(formatter) log.addHandler(stream_hander)
d7b45e76f150107cd62be160e8938f17dad90623
3f7d396d503ee43a63c463c6ebc1e6a75f77f1d3
/DoubleBigData/doubleBigData.py
396c6f12cf17215b7acfc945822f7362a87f05de
[]
no_license
YaroslavGrushko/Spark
72a9db691b755e069865583a3807b3385f988283
56ae9c0e3f61e69241f686a9370e2308b741b1fd
refs/heads/master
2020-04-13T03:54:28.935909
2019-01-02T06:17:21
2019-01-02T06:17:21
162,945,426
0
0
null
null
null
null
UTF-8
Python
false
false
287
py
doubleBigData.py
import pandas as pd from sqlalchemy import create_engine # file = 'testfile.csv' # print(pd.read_csv(file, nrows=5)) with open('testfile_short1.csv', 'r') as original: data = original.read() for i in range(2): with open('testfile_short3.csv', 'a') as modified: modified.write(data)
61454a3d6b5b17bff871ededc6ddfe8384043884
cdfbf466a03c1176ad5a9c8c2aaaa42551d6750d
/pythongame/game_data/items/item_healing_wand.py
fefc789b19b5a889914f97bdc2c32a1accef57cc
[]
no_license
JonathanMurray/python-2d-game
62540cac42291da23176f3ac0e88c8809131f84d
cac61c93545e32dc517d021448715a77fe97f531
refs/heads/master
2021-12-14T07:46:31.287997
2021-12-11T18:03:18
2021-12-11T18:03:18
145,474,245
63
18
null
2021-03-15T21:52:18
2018-08-20T21:53:03
Python
UTF-8
Python
false
false
1,845
py
item_healing_wand.py
from pythongame.core.buff_effects import get_buff_effect, register_buff_effect, StatModifyingBuffEffect from pythongame.core.common import ItemType, Sprite, BuffType, Millis, HeroStat from pythongame.core.game_data import UiIconSprite, register_buff_text from pythongame.core.game_state import Event, PlayerDamagedEnemy,...
9ceee3353de15feb5179d58f8f38a67994286f12
81cc9ce28e4e9b359b4d8011bb1af3a56fb8678c
/main.py
c4fc42aae51ad0ccb00bcd4d44aed3e88541b453
[]
no_license
paulvstheworld/pyttorrent
6805608c381c05cf719f7b1a70ce00ed89be2dfc
37f97facacbd703b5ff04fd5884aa669260c27aa
refs/heads/master
2021-01-01T17:17:30.422113
2013-12-03T18:25:53
2013-12-03T18:25:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,544
py
main.py
#!/usr/bin/env python import os import argparse from twisted.internet import reactor from client import BitTorrentClient from torrentfile import TorrentFile from tracker import Tracker def get_args(): parser = argparse.ArgumentParser(description='Download a small single file via BitTorrent protocol') parser...
563f19b2cec784878406514a8c8aef021fdc25de
b3ef819b256a2d7b365ff3a95e09990348c93fec
/GUI.py
c684ee04c004502eab569022e1574552840d3579
[]
no_license
AndryWag/EXMO_APP
de036281cae97a8a949982b805d0f585f0a04edc
1feba11f6e9b1b1ffcacfb4694e94e2bce195f85
refs/heads/main
2023-02-12T04:15:02.915675
2021-01-05T07:54:15
2021-01-05T07:54:15
326,915,386
0
0
null
null
null
null
UTF-8
Python
false
false
1,738
py
GUI.py
import EXMO_API from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.lang import Builder #kv codes Builder.load_string(''' <DataTable>: id: main_win RecycleView: viewclass: 'CustomLabel' id: table_floor RecycleGridLayout: id: table_floor_layout ...
9a42520ab6b403da891e66cec0824efcdcc58fe8
946dde922501992ea3f183e4ccf2c228df014109
/pinyin.py
9dadb3f06d814d347d21ef309df5e936aefc62e7
[]
no_license
meishijie/ruby-geci
3734d3184d8b98ec4e2eb1dce63b57a0efd78880
482a7312c32fd93766f26bc890b5b1fb4754d3d7
refs/heads/master
2021-05-01T11:04:05.279821
2018-03-02T11:04:35
2018-03-02T11:04:35
121,112,721
2
3
null
null
null
null
UTF-8
Python
false
false
873
py
pinyin.py
#!/usr/bin/python # -*- coding: UTF-8 -*- from pypinyin import pinyin, lazy_pinyin, Style # print (pinyin(u'蹒跚',style=Style.FINALS)) import sqlite3 # 兼容python2.7 # import sys # reload(sys) # sys.setdefaultencoding('utf-8') # def search(temp): # search_temp = temp.decode('UTF-8') search_pinyin = pinyin(temp,style=...
584804a14783714598f9573c0399d841734ef09f
014f1cdf50cdcc23c2bf57babd421aeb34133d16
/V16_RutherfordStreuung/plot.py
a990ac878087b9f07ce694e59516f46a8df5cfa3
[]
no_license
JaLuka98/FP_WS19-20
e6c9845505f61f106835c457103e14b1c47a1991
d882f72053070d900622ccce03bf4a20c782b54a
refs/heads/master
2020-07-10T07:11:34.627654
2020-02-21T14:43:13
2020-02-21T14:43:13
204,177,731
0
0
null
null
null
null
UTF-8
Python
false
false
7,950
py
plot.py
import numpy as np import scipy.optimize import uncertainties as unc import uncertainties.unumpy as unp from scipy import optimize import matplotlib.pyplot as plt from uncertainties import ufloat from scipy import stats from uncertainties import correlated_values from matrix2latex import matrix2latex def linfit(x, a, ...
51d7e57940df1bf7b829c62df5d9f8b96591d3b1
ffcea793528526bdf60b6e530df6005107773317
/python/650.2-keys-keyboard.py
c1082233e11f42a3b99d5799d6f0f26f627d7018
[]
no_license
songzy12/LeetCode
885c982df1895845788b25a554ddd6c1f5d33e1d
e5dd213411b5c82b07171c3adf4556dcf9c44207
refs/heads/master
2022-03-12T17:14:09.681939
2022-03-12T16:47:22
2022-03-12T16:47:22
38,769,336
4
0
null
null
null
null
UTF-8
Python
false
false
902
py
650.2-keys-keyboard.py
class Solution(object): def minSteps(self, n): """ :type n: int :rtype: int """ if n == 1: # no need to copy return 0 dp = {} def get_dp(cur, last, n): if n == 0: return 0 if n < 0: ...
b7624b78ec4b198e594875c0a68f73e3266a0626
249fbda4d1dfb46834c0da106a82f17bedfccabc
/tutorials/som/kura_data/fitting_kura.py
0683829c4a5b84084d1a0d442ae1001ebfa35590
[]
no_license
furukawa-laboratory/somf
f699de7bc599c8b872a6cabf837e82687735e27b
70da7b40631da50aea233526d89c82a69233ca63
refs/heads/master
2020-03-29T15:52:38.923339
2020-03-19T06:01:30
2020-03-19T06:01:30
150,084,898
13
3
null
2021-01-01T08:03:00
2018-09-24T10:14:04
Python
UTF-8
Python
false
false
897
py
fitting_kura.py
import numpy as np import sys sys.path.append('../../') from libs.models.som import SOM from libs.visualization.som.animation_learning_process_3d import anime_learning_process_3d from libs.datasets.artificial.kura import create_data if __name__ == '__main__': nb_epoch = 50 resolution = 20 SIGMA_MAX = 2.2 ...
f72c9bbff1d8a3677fc5aee0f445e77ec83b0877
da47e42519b6d5eb37bdb634fd618672706e79da
/localizacion_metromed/tys_account_invoice_line/model/num2cad.py
74cf944efaf9cd07cc91fd066ae2028e63ec1bac
[]
no_license
Tysamncaweb/produccion2
02bbbccefc4f4cd0d0948b1b0552d931f804fb9b
b95909d0689fc787185290565f0873040a6027cf
refs/heads/master
2022-04-26T13:51:22.316294
2020-04-29T19:58:35
2020-04-29T19:58:35
260,013,639
1
0
null
null
null
null
UTF-8
Python
false
false
5,953
py
num2cad.py
# -*- coding: utf-8 -*- """ Módulo numerals para convertir un número en una cadena literal del número. Autor: Chema Cortés - Agosto 1995 (Convertido de clipper a python en Septiembre 2001) Modificaciones: Infoprimo - Marcelo Zunino (marcelo@infoprimo.com) A sugerencia de su autor original, este c...
d21fb2abf769365b7fa9e607a880fa91d5600ae1
50c7d9c073a7facab566fe130700b8b210f838e5
/songClient.py
07ec2119b325afce9d7c36943fd640bfacce2dfd
[]
no_license
vaginessa/Sync-Your-Phone
7abe69b43c603ef347475467db94a8d502707158
93d6b4883b36650b6a203864b116f7119116215b
refs/heads/master
2021-06-20T05:38:17.264278
2017-08-02T00:54:28
2017-08-02T00:54:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,160
py
songClient.py
#!/usr/bin/env /usr/bin/python import socket import time import os from os import listdir from os.path import isfile, join import json import subprocess,struct # populated by all the files present in the shared folder to be sent. fileNameLoc = [] def getMachineIPAddress(): ...
7742ecadbbac9803bb91c36a31c807081658e0ee
72bb4c1da2ba01297805498a82929720014e2065
/TSP_opt/__init__.py
155096ac68deb26c904dbf02b652dfd3e1eb3278
[]
no_license
Fradge26/TSP
b0e91d5d36245d1cf8116eb1569c2dd616934cdf
f00a7cc6480430323d98bc1de6a3b49fff19f69e
refs/heads/master
2020-04-12T15:53:27.540541
2019-03-13T23:55:50
2019-03-13T23:55:50
162,595,408
0
0
null
2019-03-13T23:55:51
2018-12-20T15:10:09
Python
UTF-8
Python
false
false
232
py
__init__.py
from TSP_opt.K_opt import run_kopt from TSP_opt.Three_opt import run_3opt from TSP_opt.Two_opt import run_2opt from TSP_opt.helper_functions import get_score, initial_path_from_nearest, plot_path, save_path_plot, write_submission
8c5424f33562b38506af94bdd164d66709001655
99b1792bf730a3d698828a726ace2bd1fb784623
/main_app/models.py
ab26ec1be5c3d0546d988c6db11d26415b960bb2
[]
no_license
yattew/chat-app
09322bea186031b820feed895f9cf52811ac922f
f950887fa88670a0b6c3a24a26bdfa4793fd448e
refs/heads/master
2023-03-08T12:29:40.545273
2021-03-01T11:07:06
2021-03-01T11:07:06
343,380,487
0
0
null
null
null
null
UTF-8
Python
false
false
1,236
py
models.py
from main_app import db from flask_login import UserMixin from main_app import login_manager from datetime import datetime from werkzeug.security import generate_password_hash,check_password_hash @login_manager.user_loader def load_user(user_id): return User.query.get(int(user_id)) class User(db.Model,UserMixin):...
06d267c9deea8668a003145f167675c313f9dce4
e10a6d844a286db26ef56469e31dc8488a8c6f0e
/contrastive_rl/lp_contrastive.py
79c407ec4b192111e85c7d5e0b8df7eddaa5a01b
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
Jimmy-INL/google-research
54ad5551f97977f01297abddbfc8a99a7900b791
5573d9c5822f4e866b6692769963ae819cb3f10d
refs/heads/master
2023-04-07T19:43:54.483068
2023-03-24T16:27:28
2023-03-24T16:32:17
282,682,170
1
0
Apache-2.0
2020-07-26T15:50:32
2020-07-26T15:50:31
null
UTF-8
Python
false
false
6,615
py
lp_contrastive.py
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # 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 applicab...
464b40ef7727700db99c658e2724c1ec543d8b72
c7b11921d9b99b3acbe0cce18906715ac5b756c7
/sp_polardeg.py
d3baac7d16b4bc91a7446bfae8dc408bf82bb882
[]
no_license
shvgn/py_spectool
ee9b32f5977ee35d387adba67f144d5208a7dfb0
1a4705bd43e6fc74052a54e0b7388b1fb6c80d52
refs/heads/master
2021-01-22T03:39:38.343778
2016-03-28T22:59:42
2016-03-28T22:59:42
28,034,155
0
0
null
null
null
null
UTF-8
Python
false
false
2,675
py
sp_polardeg.py
#!/usr/bin/env python3 import sys import os import re import spectrum as sp def te_or_tm(matchobj): """Returns 'te' for 'tm' and vice versa. Used in re.sub for polarization type substitution""" if matchobj.group(0) == 'te': return 'tm' elif matchobj.group(0) == 'tm': return 'te' ...
06183341d660f542ff20a81f030bef97f30713a9
911d644fc8aba5c026ab51fa2ffb33698f7618a7
/droidlet/perception/craftassist/voxel_models/detection-transformer/test_box_ops.py
7d1adcd163b937e29365e1b1579fffb3f47af693
[ "MIT" ]
permissive
adamlerer/droidlet
3df03e89f0a3d6236152d96fa68c4e89a7d8701f
ada38d191dadcea9aba12330e35e8e7d6d1663d9
refs/heads/main
2023-05-15T07:38:22.731918
2021-06-09T07:09:28
2021-06-09T07:09:28
375,388,047
0
0
MIT
2021-06-09T14:40:15
2021-06-09T14:40:14
null
UTF-8
Python
false
false
377
py
test_box_ops.py
""" Copyright (c) Facebook, Inc. and its affiliates. """ import unittest import torch import box_ops class Tester(unittest.TestCase): def test_box_cxcywh_to_xyxy(self): t = torch.rand(10, 4) r = box_ops.box_xyxy_to_cxcywh(box_ops.box_cxcywh_to_xyxy(t)) self.assertTrue((t - r).abs().max() ...
b1e1c0f930fee690ecd2678d87c2d5e160a5bb22
78eb991708c44cd8665de829c10b177b7a7fe0f3
/test/function/test.py
b93fe96a0b05037d04c3760b76f1a9d772da917a
[]
no_license
bluerwf/nala
db9d224b9e5fc4e71ef9c922d61dc0b65a63170c
80126db150b63f488118c3450db302f36e4cefa5
refs/heads/master
2016-09-02T05:34:24.318625
2014-12-05T12:26:07
2014-12-05T12:26:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,669
py
test.py
#! /usr/bin/env python import os, sys from optparse import OptionParser import nala.mof as mof from nala.parse import is_mof_instance, mof_parse, list_commands, CustomParse, NalaHTMLParser USAGE = """%prog <file> [<file> ...] <command> [options] Commands: """ + '\n'.join(["\t %s" % x for x in list_commands()]) def ...
a4bef76f8be14d4d10ac79582d4524f116663496
3f488c531dc92e5b28c6d2d010df456e77cffa8b
/Comparacion.py
fcfced1c0d03337bb3222e35380fd9ee17e0df8d
[]
no_license
SabrinaMejiaVilcabana/T02-Mejia-Vilcabana
3f87410b96564bfa8acb6c3e279fc12bb92f82b4
2d73bc632b8b0f5ac942281dae409bff0ce586ff
refs/heads/master
2020-09-06T05:27:17.321041
2019-11-07T22:18:30
2019-11-07T22:18:30
220,338,206
0
0
null
null
null
null
UTF-8
Python
false
false
369
py
Comparacion.py
a = dict(x=1,y=4) b = dict(y=2) c = dict(z=3) d = {"x":1,"y":"2"} e = dict({"Sabrina":"72086616"}) f = dict(zip(a,b)) g = dict(zip(b,c)) h = dict({"Hola":"Bienvenido"}) i = dict({"Cachorrito":"Cachorrita"}) j = dict(m=4) print(a!=b) print(b==a) print(j==i) print(c!=d) print(e!=f) print(f==g) print(j...
5dfbb18c97af75f1dccdda581e24259e74e2f4f2
452917179fa45c1447bddb646db9dfe449c8111c
/fetch_tasks/src/fetch_tasks/actions/arm_cartesian.py
1d28d92b0cdaf895716a40490a65c65bfcab3b0e
[ "MIT" ]
permissive
GT-RAIL/assistance_arbitration
a6a641ab361c0cf1b7c28531cd65afc39ee83c4f
84d7cfb6e08f0dd23de9fa106264726f19ef82ea
refs/heads/master
2021-07-01T19:50:41.550664
2020-06-23T19:17:54
2020-06-23T19:17:54
144,903,696
0
2
MIT
2020-08-25T20:37:42
2018-08-15T21:09:29
Python
UTF-8
Python
false
false
4,772
py
arm_cartesian.py
#!/usr/bin/env python # A cartesian arm action in a task plan. It converts velocity control to # position control from __future__ import print_function, division import rospy import actionlib from task_executor.abstract_step import AbstractStep from actionlib_msgs.msg import GoalStatus from geometry_msgs.msg import...
d01ecc8580c5417db4e97cde40f5f13bcc781e04
4a9c45f0535b0f12ba5a48e65399a797ac687755
/src/plugins/__init__.py
ec67612ee1b40330f4e4ef4746a41510327cf28a
[]
no_license
navistzero/CMDB_client
15e78169895357336f7b5d0bf31a42c193d4bc95
d410a15dd8042ffdea4fbabb9f43962ea4ccc198
refs/heads/master
2020-05-23T21:01:55.563851
2019-05-22T00:41:36
2019-05-22T00:41:36
186,943,670
0
0
null
null
null
null
UTF-8
Python
false
false
358
py
__init__.py
from lib.conf.config import settings from lib.import_string import get_class def get_server_info(handler, hostname=None): # 根据配置获取相应的硬件的信息 info = {} for name, path in settings.PLUGINS_DICT.items(): cls = get_class(path) obj = cls() info[name] = obj.process(handler, hostname) re...
e5c5f44cbca07dbc5e1b163eb1aa3ca62d022411
8e20e1c8a7305ff75e22d73c21edc2df4a84e1f9
/FSMS/admin.py
7fb344137d0bd366d7ce6a43a2975de1e8e6e7a9
[ "MIT" ]
permissive
hellen6654/DataBase_CGHP
7e4c910c67dcbeb327996852204783e234e72476
d4e393d3994c3a7b576c651ad2ac7ef919a3f386
refs/heads/master
2020-04-07T12:46:47.099751
2018-12-31T05:21:36
2018-12-31T05:21:36
158,380,778
0
0
null
null
null
null
UTF-8
Python
false
false
171
py
admin.py
from django.contrib import admin from .models import CheckOrder # Register your models here. @admin.register(CheckOrder) class CheckOrderAdmin(admin.ModelAdmin): pass
4bc509d3ee1f7367a9f5c5c40825a6e19601232a
f41b66e761797c38623bb0e11aeb869761d829df
/venv/lib/python3.6/site-packages/pywebpush/__main__.py
c5b27dc04506c2c8f007baf52e0e3d9f101b1e94
[]
no_license
alirezafattahi/faraz
2ef40fbdc1f46fbe2b097c4367e340b05a7ae568
135fa8a40c9b29982fcb876bf0b7e8b04ca16658
refs/heads/master
2020-11-27T22:41:29.784242
2019-12-23T11:15:49
2019-12-23T11:15:49
229,630,575
1
0
null
null
null
null
UTF-8
Python
false
false
1,960
py
__main__.py
import argparse import os import json from pywebpush import webpush def get_config(): parser = argparse.ArgumentParser(description="WebPush tool") parser.add_argument("--data", '-d', help="Data file") parser.add_argument("--info", "-i", help="Subscription Info JSON file") parser.add_argument("--head"...
134d90597c2934cc142f5d80295fa2c2b7c4502c
5480fc69ca3717ff89328402f3938e07030ac0fe
/wrangle_zillow.py
c943bd1a44fcd97c99c6c29ff76cef4c3b72c551
[]
no_license
cindyvillanuevads/zillow_clustering_project
418a83c226b889fe5aa6d7ec6ffcc6cedca45073
f8385f7b17fc8e62df8a3ffdce6c32d8c0712f89
refs/heads/main
2023-06-03T14:34:16.631071
2021-06-28T17:51:20
2021-06-28T17:51:20
379,377,154
0
0
null
null
null
null
UTF-8
Python
false
false
2,013
py
wrangle_zillow.py
import pandas as pd import numpy as np import os import acquire as a import prepare as p # turn off pink warning boxes import warnings warnings.filterwarnings("ignore") def wrangle_zillow ( prop_required_columns=0.75, prop_required_row=0.75): ''' Acquire zillow db from sql, single unit properties with t...
d91e38de9bd43323760f1ade25b620e30084a94d
bc2e77b92ae12e34aec9445f5e8c92fc399e6cc8
/vautils/orchestration/vcenter/vm/vm_action.py
0aa936275ba21cacedef0c6743584ec08952fd02
[]
no_license
18782967131/test
fc8049c10f02f7b49a4dd4a675618ccf388c4f2f
cb02979e233ce772bd5fe88ecdc31caf8764d306
refs/heads/master
2020-05-27T08:41:57.535153
2017-11-09T08:31:07
2017-11-09T08:31:07
82,536,387
1
0
null
null
null
null
UTF-8
Python
false
false
35,866
py
vm_action.py
""" coding: utf-8 Copyright 2016 vArmour Networks private. All Rights reserved. Confidential VmAction class is representing API for various virtual machine related actions example vmotion,power on vm, power off vm, change vm network etc. class methods either return string,boolean or managed objects. .. mod...
48e8701e6de2e9dd35539a2c7f86ad979d220a23
c2b13f10ee0b0cf2b995fcf51ddc1f75f93a96bb
/schemes_tests.py
5aea7b74690a6743c01f22d19757b11048eaa0f3
[]
no_license
mateus96mt/InterpolationSchemes
c86b3dd3e8c0f21feb336fc38c6fc29d3c711bc6
444d71c7f5c91ff9970b0102fa1ab32beca0ac58
refs/heads/master
2023-08-26T19:27:43.982537
2021-11-05T23:48:18
2021-11-05T23:48:18
287,830,386
2
0
null
null
null
null
UTF-8
Python
false
false
10,968
py
schemes_tests.py
#MATEUS TEIXEIRA MAGALHAES - UFJF - PGMC #github repository: https://github.com/mateus96mt/InterpolationSchemes.git import numpy as np import matplotlib.pyplot as plt import upwind_schemes as SCHEMES import flux_limiters as FLUX_LIMITERS import os def generate_TVD_Harten(color='b'): x, y, = [0.0, 0.5, 1.0], ...
43ff70ca2576d90978cb6f83d4917911150547a4
13fb63270b9474d7c25b1d9775d2df9649c2d019
/post_thread/trace.py
9a0a9a1ecafa9d6b4553937ac024e178d809909e
[ "MIT" ]
permissive
soryeongk/mvp_for_cherish
d59061c1a388d3513a94491679c7fb06936308bc
77e73191d33d19083ec05b7d2418c7bd6f512587
refs/heads/main
2023-02-26T12:06:27.878402
2021-02-05T14:34:42
2021-02-05T14:34:42
335,372,416
1
0
null
null
null
null
UTF-8
Python
false
false
843
py
trace.py
import json import requests from pandas.io.json import json_normalize import re import secret import search channel_id = search.channel_id # 채널 내 문구 조회 API 메소드: conversations.list URL = 'https://slack.com/api/conversations.history' # 파라미터 params = { 'Content-Type': 'application/x-www-form-urlencoded', 'token...
5c371eb890b6020ca9c9624279425e6e36f19ea9
cb8c1ecd44066616f27df4899f7b5921ed45581a
/feature_selection.py
e74914b89e89a920f5a0e2c82e56a1dd9baac8ad
[]
no_license
726-project/when_to_interrupt
12aad196de91da6010df856ea44b8201a629f60d
c3c357179891ece455662d4c33f8099bef677667
refs/heads/main
2023-02-02T06:11:02.868930
2020-12-17T01:39:16
2020-12-17T01:39:16
314,434,031
0
0
null
null
null
null
UTF-8
Python
false
false
3,385
py
feature_selection.py
import numpy as np import pandas as pd import matplotlib.pyplot as plt import sys from sklearn.model_selection import train_test_split from sklearn.pipeline import make_pipeline from sklearn.ensemble import RandomForestClassifier from sklearn.model_selection import StratifiedKFold from sklearn.feature_selection import ...
8c9314c631ef1079911eaf95829cc34a6b29578a
0c460b8e79c65a2b0a6fde23ba29b3c5d06ed6bf
/venv/app.py
b154d3e7abd4dff52c366334c1367a6e9489b900
[]
no_license
memorygardens/redditwikisearch
83838fe96c6565b47ace1220a0a19382e7c1391c
cb842b7c7aff4c3d9f93738bf5811da7b7dbe660
refs/heads/main
2023-04-25T04:37:36.503200
2021-05-18T16:01:40
2021-05-18T16:01:40
368,215,711
0
0
null
null
null
null
UTF-8
Python
false
false
1,006
py
app.py
from flask import Flask, request, render_template import wikipedia import json app = Flask(__name__) #app.config['SERVER_NAME']='.wiki-search.com' #app.url_map.default_subdomain = "*" @app.route("/", methods=['POST', 'GET']) #adding subdomain = "{search}" bricks it, but I know it is necessary to change * to the co...
f891d08c72ca38f9ca2d3b330f8920ad8b443bb6
d0d2c6122f324e10072ea0034d23270f77997bc7
/Django/lesson_3/forms.py
456cc8ce01d8077e5e65cd474ade14998bceacfc
[]
no_license
VITA-mlr/cbs_lessons
07ceffc555a56f66bb7184cd73c9e4de5e178bd9
d6da4d20d7730ac68a5e7488184233bc3193356f
refs/heads/master
2020-08-26T18:35:41.189467
2020-01-27T09:24:54
2020-01-27T09:24:54
217,105,703
0
0
null
null
null
null
UTF-8
Python
false
false
234
py
forms.py
from django import forms from . import models from django.core.validators import URLValidator, ValidationError class RespondForm(forms.ModelForm): class Meta: model = models.Respond fields = ['login', 'respond']
336a7e70e9aa989490b1b2ea7663d8b05a123405
da0bec53b392beaee0087ed74e16992bf6c6dbe6
/tools/stats.py
b477da7722a1ae911e7a5556a4ee5d06f06fef7b
[]
no_license
opatut/keyboardlayout
54e49ea44b11b055948565f5332e2c7aacee0155
e21288c92702e11035226427f037dc6a7b4b1ed4
refs/heads/master
2020-03-29T02:32:26.767009
2017-06-17T19:48:50
2017-06-17T19:50:16
94,645,691
0
0
null
null
null
null
UTF-8
Python
false
false
871
py
stats.py
#!/usr/bin/env python2 import os, sys, re, datetime, time, argparse, ConfigParser from collections import Counter sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'externals', 'selfspy'))) from selfspy import models from Crypto.Cipher import Blowfish import hashlib import selfspy.config a...
bd18ecca368fdd539c5e9e345aaa6ca6847e31a9
19ca7f8e0292903fc16bc36694ecb043c15e4b5b
/secbox/app/secbox.py
2ffd69a6b9a533d9a090f26e8fdf0b1deaa94621
[ "Apache-2.0" ]
permissive
jeziellago/SecBox
b6864a7d303376c74615c2c0f704bd04bdfcaf9a
78c1feb577eb644036317ee40150fb91365ab440
refs/heads/master
2021-12-14T07:48:19.584736
2021-12-01T15:47:21
2021-12-01T15:47:21
251,723,008
30
5
null
null
null
null
UTF-8
Python
false
false
2,637
py
secbox.py
import os from time import sleep from .actionbox import extract_apk, decompile_only_sources, decompile_only_resources, decompile_all, recompile_apk class SecBox: def __init__(self): self.__create_states__() self.menu_options = [] self.__add_menu_option__('Extract apk from device', extract...
3ede9a94f8ae35f213d0880a9ac0eeb0c0a2229e
acb45ad1d2ae263c387bc37ecba17db56352b8dd
/utils/constants.py
4b76ab8b0e980c140ec2e8e11478d7e55c5676f2
[]
no_license
harisrk/Final-Project-Server
b611f4ba29f6da92b393359093fce734cb147e8c
d6ed36e926bc18975202094c47073e7e2f5e23be
refs/heads/master
2022-11-26T05:52:10.337537
2020-07-26T19:13:01
2020-07-26T19:13:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
265
py
constants.py
# All constants import os PROJECT_HOME = os.path.dirname(os.path.realpath(__file__)) MODEL_FILE = PROJECT_HOME+"/../model/v2/ora.h5" MODEL_DICT = PROJECT_HOME+'/../model/v2/dict_output.csv' UPLOADS = PROJECT_HOME+'/../uploads/' OUTPUT = PROJECT_HOME+'/../output/'
c86bc8bad7e42ad1fe6837a3f219f772e849b0e3
7d50457f39a7967f1fb36a67f15ee54cd0a5e363
/Code/neuroconnect/__init__.py
c5e4fb1af1a204ce4e2df421dd775b6cd3696d99
[ "MIT" ]
permissive
seankmartin/NeuralConnections
30a1560d108247bb43614ede5fa3a502a8ee4ef5
fa92e124ab4e2edc9dc56a1903248dc2740229e4
refs/heads/main
2023-05-26T08:25:23.792858
2023-05-23T10:31:50
2023-05-23T10:31:50
319,713,133
0
0
null
null
null
null
UTF-8
Python
false
false
28
py
__init__.py
"""Neuroconnect package."""
2365e41c3ba9ee3aec7e9417d87dec56426a430e
efa6f5c4b942e850289d00b44984831bcaa728d9
/lec21/examples/example2.py
5412be0d9e41ef70c7625c153913fae1b000f8e2
[]
no_license
SamyPolcher/CMP
d909e6d79416e2b62cc0a7ab1029ca090a4073fb
b46a85b891e4ba35feb02e1c83f90047bb524c16
refs/heads/master
2023-02-03T18:43:16.171866
2020-09-25T15:36:04
2020-09-25T15:36:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
110
py
example2.py
import classes as c x = c.Datum(-1.1, 0.08) print(x) paolo = c.Person("Paolo") paolo.display() print(paolo)
1b0cab3e34ac456478a0b8936c692321b7d7019b
852feaeae43180d0d7d9ee0525901ad3603f759b
/afwerkingOnderdelen.py
0af3f2d8d36d3dbbe30e5b8dd125bb2f858f2ecf
[]
no_license
tdelaet/verwerkingMeerkeuzeIJkingstoets
c2c690b552d2b1cd6ed157a5c81ab058a0e9d9f0
c9c68a53514e6888820606c6e378ef39517df723
refs/heads/master
2023-07-27T21:15:17.685719
2023-07-14T12:05:33
2023-07-14T12:05:33
21,001,024
0
0
null
null
null
null
UTF-8
Python
false
false
8,878
py
afwerkingOnderdelen.py
import os import pandas as pd import sys import shutil import numpy def kopieerQSF(jaar,toets,outputFolder): qsfSourceFilename= outputFolder + "_TOTAAL/printenscan/antwoorden_" + jaar + "_" + toets +"_TOTAAL.qsf" qsfTargetFilename= outputFolder + "/antwoorden_" + jaar + "_" + toets +".qsf" shuti...
062bf1ed79c5580ca427e6538a0e1491ca429582
a38914a1013000824de76ecfa86c7709cff5f43e
/account/views.py
f478dc3abeb68fc8c96eb2da38cdd0614bffaae5
[]
no_license
seunsekoni/django-bookmarks
1cada09bc511fbd8da59b1535503729d73a26922
77075adad582e8d3ace0d57eb4751ce2ac6ce869
refs/heads/master
2023-02-05T02:18:44.617967
2020-12-21T12:38:56
2020-12-21T12:38:56
322,946,525
0
0
null
null
null
null
UTF-8
Python
false
false
5,578
py
views.py
import logging from django.shortcuts import render from django.contrib.auth import authenticate, login from django.http import HttpResponse, JsonResponse from .forms import LoginForm, UserRegistrationForm, UserEditForm, ProfileEditForm from django.contrib.auth.decorators import login_required from .models import Profi...
fe62e470eb1e57511ed1c12487347a97b3238ae0
cb5cd4daf0b92fc80297bbdd91c5e4a79a4ecbfe
/datasets/cifar10.py
4abb0cf9fdd02223ffbe34ee25b1103540f87c76
[]
no_license
kobef-orever-zhou/SSL-Image-Classification
404001d7a9f9a52f1938a940f650ba9e6ceb79c4
542187c5c5b9c05dd14db3561f185a49e2691daf
refs/heads/master
2022-01-19T21:12:33.637580
2019-05-06T20:10:55
2019-05-06T20:10:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
816
py
cifar10.py
from torch.utils.data import Dataset, DataLoader import torch.nn as nn import torch import pdb import torchvision import random class CIFAR10Dataset(Dataset): def __init__(self, is_train = True, supervised = True, data_transforms = None): self.data = list(torchvision.datasets.CIFAR10("data/", train = True, transfor...
10bb9a146a7defd4bba1447a007ae05c5fe43b44
dab35797fe33d9a92f8fb55ba6b85546be7be9ee
/filehandling.py
92f6de97352f434dd68e2124511543cf72d1ae49
[]
no_license
sogupta05/pythonBasics
f1f99294c2225b84ec31f7e07450581bd876752d
6aa8a705c474866e7bd0bfb9d47e1f00f23e95e3
refs/heads/master
2022-08-30T11:09:44.503100
2020-05-26T08:27:13
2020-05-26T08:27:13
266,980,096
0
0
null
null
null
null
UTF-8
Python
false
false
508
py
filehandling.py
f = open('factorial.py','r') # open a file in read only mode print(f.readline()) f1 = open('abc','w') # 'w' is for writing, it will overwrite any existing data # 'a' is for append, it will append new data to already existing one f1.write("new file") for data in f: #making a copy of the file f1.write(data) pi...
ef001b78485fc71b538af4a97996bad25853ed95
15833ffe9cd3a6242c6731644e21820adfb68efb
/__init__.py
4b57820dafdb7a7fdd9e355da337c67bdd098003
[ "MIT" ]
permissive
EtienneCmb/ipywksp
118640072c060e9b736627514d280bd8d62f781c
d41029577784e820598ddd27cd26b04d19c614fe
refs/heads/master
2021-01-10T17:11:22.131650
2016-05-06T13:03:39
2016-05-06T13:03:39
55,362,354
4
1
null
null
null
null
UTF-8
Python
false
false
35
py
__init__.py
from ipywksp.wksp import workspace
d3b00265a55428d1bae27e21adb76f91c86c1eb0
b20443f61a23c25942481b0726e6008ecf7d353c
/Python/Raster_Vector/raster_resample.py
9ecf8750279017063b0c7daec637319ac3fa4fb4
[]
no_license
kalyanphai/My_Development
5163c03f503e9fcb33fd93e91bd8439614f11b54
615745fd1a0d4b8b76128dc84aab34556be80fa8
refs/heads/master
2021-01-14T08:12:48.804457
2017-12-20T11:01:12
2017-12-20T11:01:12
81,937,162
0
0
null
2017-12-20T11:01:13
2017-02-14T11:10:03
Python
UTF-8
Python
false
false
1,891
py
raster_resample.py
# -*- coding: utf-8 -*- """ Created on Mon Jul 25 11:52:31 2016 @author: Kalyan Raster resample """ from osgeo import gdal from gdalconst import * def RasterResample(in_file, out_file, pixel_size): in_data = gdal.Open(in_file, GA_ReadOnly) #Read input raster file in_band = in_data.GetR...
80fe24315ac7f71d1b3c0591337d332ab625f327
c2ef52f64cc000213e5238df9ccf0a3ff737da16
/simple/my.py
2ffcc5a0bdb44e0d2455e91cf316527143b66fc1
[]
no_license
m7dev/python_learning
e04ce9c60fbdd5d3aa02da3165b3e22ad148bac3
b4c64f04536da6c5b8f38eb234d8b144cc91be4e
refs/heads/main
2023-01-15T17:15:09.461659
2020-11-14T21:08:03
2020-11-14T21:08:03
312,902,004
0
0
null
null
null
null
UTF-8
Python
false
false
79
py
my.py
title = 'The Meaning of Life' a = 'AnyName' b = 2 c = 3 print (a, b, c)
f03b15fee189bd823965faf31e9810b983630fe5
6440a113597191d3b78aa6b5cae6cea9fb057e2e
/Daily-Grind/30.py
98a3fd2320f9f65e44a47afa04717f35951de376
[]
no_license
DarshanGowda0/LC-Grind
40c162d8894df81ea7124f66daf20f86f327b6cb
f7b9a86797d52ab1057f0300352c0c5670a59bd5
refs/heads/master
2023-01-28T01:27:45.195164
2020-12-06T03:58:14
2020-12-06T03:58:14
277,024,335
0
0
null
null
null
null
UTF-8
Python
false
false
679
py
30.py
class Solution: def countSubstrings(self, s: str) -> int: tab = [[False for _ in range(len(s))] for _ in range(len(s))] count = 0 for i in range(len(s)): tab[i][i] = True count += 1 for i in range(1, len(s)): if s[i] ...
fce9019c69cc5f4521c7c30d722dd41e7a78d4b0
7f97189431abb471a719125dc3c88feb2f9e475c
/PRODUCT.py
ab4959b92584b9a623943761b8e3344edcf4f31b
[]
no_license
sasi-reddy-thota/AI-Product-review-anlysis
f8b150fca00d71d5bcc3ae14e8f1702b6f48d3c1
2dbcaf5b1ce050531c0c5400fc5d2c1ce5664f9d
refs/heads/master
2022-04-11T20:38:19.674648
2020-04-05T16:02:17
2020-04-05T16:02:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,880
py
PRODUCT.py
import os import sys #from PIL import Image from tkinter import * from subprocess import call #from PIL import ImageTk,Image import os import sys try: from Tkinter import * except ImportError: from tkinter import * try: import ttk py3 = False except ImportError: import tkinter....
8d7a30552ca4a050b9cbc6c27220d14164bc8fbb
7329413a9f0bdd1d0af0b8b235d984248d63e983
/pydatastructures/binary_trees/bst.py
c3bb5b214e608bf7282cb8dc5e950c9ae7f3d437
[ "MIT" ]
permissive
JuanPabloMontoya271/pydatastructures
d9dedbb8f51a61db712ceb2f4335a61c2bac9b7f
1c55c825ff82eaa3612d4e976f9433e77196e6d1
refs/heads/master
2022-11-22T13:16:37.583198
2020-07-22T23:12:44
2020-07-22T23:12:44
280,470,317
0
0
null
null
null
null
UTF-8
Python
false
false
3,765
py
bst.py
class Node: def __init__(self, data): self.data = data self.left = None self.right = None def printTree(self, layer = 0, orientation ="root"): u = layer+1 print(f"{orientation} => {layer}: {self.data}") if self.left: ...
a53a50ca2ca8c99cc721b134f82fd79826e99146
22e8eaf83e9f4ef0b2dc0819974c7db45befb623
/Deck/deck_service/views.py
73ec8b05d97033a701c69c80217d1aae78e58b20
[]
no_license
light-it/deck
e8f954b5d011576c7bca86088b02cafb5fdb8ed7
18656e1c35d3d490cdb51d8c51d42bf80d9b396b
refs/heads/master
2021-01-18T00:01:22.400207
2016-02-11T10:02:31
2016-02-11T10:02:31
51,739,206
0
0
null
2016-02-15T07:51:23
2016-02-15T07:51:22
null
UTF-8
Python
false
false
839
py
views.py
from rest_framework import viewsets from models import Deck from serializers import DeckSerializer from rest_framework.response import Response from transform_number import transform class ViewDeck(viewsets.ModelViewSet): queryset = Deck.objects.all() serializer_class = DeckSerializer def list(self, req...
8b5b5af8bd3952fddc89753fa5dddc6a6787699c
44b3422ea808fde78ae18cc3041654ce3b8efd86
/process_images.py
14ea821bd100b8b652d8f9495f45f698ac8d7ae4
[]
no_license
xpzouying/deeplearning_utils
62537ca843d5bd0cfc186d062f2ccbffc42d7950
6c2054698459aaf6af11aaa088c84c970de15565
refs/heads/master
2021-01-20T00:13:13.279712
2017-08-24T09:23:55
2017-08-24T09:23:55
101,273,332
0
0
null
2017-08-24T09:23:56
2017-08-24T08:41:49
Python
UTF-8
Python
false
false
2,834
py
process_images.py
# -*- coding: utf-8 -*- '''Processing Author: zouying (xpzouying@gmail.com) 1. rotate 90, 180, 270 2. flip 3. mirror ''' import os import argparse from PIL import Image, ImageOps IGNORE_FILES = ['.DS_Store'] SUPPORT_IMGS_FORMAT = ('.jpg', '.jpeg', '.bmp') parser = argparse.ArgumentParser() parser.add_a...
72ddc55b8bdd3b20390a785a68aae57f26cf2a4b
cdb7bb6215cc2f362f2e93a040c7d8c5efe97fde
/BinaryLiftingLCA.py
63a496e4fe3244dc2d07baf71924ce03ae6c8420
[]
no_license
bssrdf/pyleet
8861bbac06dfe0f0f06f6ad1010d99f8def19b27
810575368ecffa97677bdb51744d1f716140bbb1
refs/heads/master
2023-08-20T05:44:30.130517
2023-08-19T21:54:34
2023-08-19T21:54:34
91,913,009
2
0
null
null
null
null
UTF-8
Python
false
false
1,594
py
BinaryLiftingLCA.py
from collections import defaultdict n = 9; edges = [[2,5],[3,4],[4,1],[1,7],[6,7],[7,0],[0,5],[5,8]] # n = 4; edges = [[0,1],[1,2],[1,3]] # n = 5; edges = [[2,0],[3,1],[1,0],[0,4]] f = [[0]*22 for _ in range(n+1)] # if node start 1 dep = [-1]*(n+1) G = defaultdict(list) for u,v in edges: # if node index st...
0dd00d8d16f47ca299a3757cb4775868e83a6662
54d797e621dad7d93e5cd57b6407b8ae31a12c32
/coprime.py
a6dec8aa8968b21adec9e07d19a8b65a75c9a121
[]
no_license
SovaidKhan/Python
5f1afa87b2ee4d6d7f63a976cb91365caba8c2d2
1e5f0519da8f164ec15c6f862a651806af536014
refs/heads/master
2021-01-10T15:46:38.880606
2016-04-22T20:22:38
2016-04-22T20:22:38
53,063,730
1
1
null
2018-04-19T18:38:02
2016-03-03T16:01:28
Python
UTF-8
Python
false
false
395
py
coprime.py
def coprime(Array): count = 0 for i in range(0,len(Array)-1): for y in range(i,len(Array)-1): flag = True for k in range(2,9): if Array[i]%k == Array[y+1]%k == 0: flag = False break ...
c63f11c67be91261e163570f96da79c4ef9bdbfe
a01e33ec6fc648d75934937896888fa0252072e2
/weatherbit.py
648a9465e874aa2f905b478fa4588ea9b7447b15
[]
no_license
extraspecialbitter/sandbox
e94dc4913c10ad0a5f4e738a0f1c2edddcf32eff
5d9e6aeb6a0fc10a16f79b5a843aba042dfccb93
refs/heads/master
2023-02-08T04:02:01.351274
2023-01-31T12:58:25
2023-01-31T12:58:25
8,341,128
0
0
null
null
null
null
UTF-8
Python
false
false
4,901
py
weatherbit.py
#!/usr/bin/python3 # This script fetches the weather from the weatherbit.io API site and prints it out. import urllib3 import urllib.request from datetime import datetime, timedelta from sys import argv from os.path import join import os, socket, subprocess import time import getopt import sys import os import json ...
248cbdf33c4dc1eaf0a24427ef980bb7f7a243d4
856fff93e79168420812394c9b13d3cec3ce3753
/black_rapids_forward_model/ice_model_functions.py
c54cedcbf97de1a7617aa18d7b1f4c6f8d42fe06
[ "MIT" ]
permissive
cpknowles/BRG
5a8fd5b16d2c70c4a6d18d44080c909d52e5fc54
637285a243f34313d73bda5c46abaed53ac10ae2
refs/heads/master
2021-04-28T22:39:55.476099
2017-02-16T00:57:21
2017-02-16T00:57:21
77,720,554
0
0
null
2017-01-26T02:20:53
2016-12-31T02:05:18
OpenEdge ABL
UTF-8
Python
false
false
2,036
py
ice_model_functions.py
from dolfin import * from pylab import deg2rad,plot,show,linspace,ones,zeros,copy,array # VERTICAL BASIS REPLACES A NORMAL FUNCTION, SUCH THAT VERTICAL DERIVATIVES # CAN BE EVALUATED IN MUCH THE SAME WAY AS HORIZONTAL DERIVATIVES. IT NEEDS # TO BE SUPPLIED A LIST OF FUNCTIONS OF SIGMA THAT MULTIPLY EACH COEFFICIENT. ...
36671c95e7d735e42566733d5761d2bd42b352a6
c13e204beec7c5f157d66b3423fe3acf5bf92cdf
/blog/admin.py
b5fa0bbb6aae644894a34ac19fa1bb73dc3e6f32
[]
no_license
hibridox888/okeanos
63de3f68fc18bb7af1c24ec55ba351f311b32941
1e3a9f2308c1b34115f9acc65cab96e98ad81bb4
refs/heads/master
2022-12-11T04:24:08.274643
2017-10-26T12:31:47
2017-10-26T12:31:47
124,602,179
0
0
null
2022-12-08T00:40:46
2018-03-09T22:59:20
HTML
UTF-8
Python
false
false
1,900
py
admin.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from .models import Etiqueta, Entrada, Imagen, Documento, Video class EtiquetaInLine(admin.TabularInline): model = Etiqueta prepopulated_fields = { 'slug': ('titulo',), } # Register your models here...
360af495fffae6f621906f56415b9d78885baec2
c988a8856d2d3fb7771417b4c7810e528a197d2b
/join method.py
07feed5bf2b249646092498164c10c095c7948a5
[]
no_license
arunekuriakose/MyPython
0c8a9161fef20bf77f7ba31149ec4ba0fa79b0bd
19f44819612a8490d430bafec0616f68ce109776
refs/heads/master
2022-01-20T07:56:48.505226
2019-07-22T06:26:52
2019-07-22T06:26:52
198,158,499
0
0
null
null
null
null
UTF-8
Python
false
false
93
py
join method.py
#join() method l=[1,2,3,4,5,6,7] s="" for i in l: s+=i print(s) s=".join(l)
618c04c58c5db90f18e6ef5b7424378effd84105
703d26d862e17aad590a581fc4b28b73e94eafd2
/meson/post_install.py
b213b8476fdc79e5eeffd3a86a71b11c801e0fcf
[]
no_license
artemanufrij/translit
12aa51661d531a9e28fa6e872213bdbb05987348
326e80e65b071499ed9e73deccec744017307d60
refs/heads/master
2021-06-18T13:53:52.632006
2019-07-16T18:57:31
2019-07-16T18:57:31
102,906,685
11
8
null
2020-11-18T19:44:02
2017-09-08T21:39:59
Vala
UTF-8
Python
false
false
582
py
post_install.py
#!/usr/bin/env python3 import os import subprocess prefix = os.environ.get('MESON_INSTALL_PREFIX', '/usr/local') schemadir = os.path.join(prefix, 'share', 'glib-2.0', 'schemas') datadir = os.path.join(prefix, 'share') if not os.environ.get('DESTDIR'): print('Compiling gsettings schemas...') subprocess.call(['glib...
4c60fd123f591bf2a88ca0affe14a3c3ec0d3cf6
a3d7756623f6ec0f27b2f3aa076eabad0b5ddf80
/exercise_1/investigations/procedure_variability/procedure_variability.py
20f43280bd345d7921687819f9abff72e5ccae72
[]
no_license
maxyan/UCB_MIDS_W205
15798a3540d44527bf4b65597e030f527d7a9ba7
17ecc65472f465aef7b1d07b72a49454db06864b
refs/heads/master
2016-09-11T03:14:07.388259
2015-12-17T12:21:18
2015-12-17T12:21:18
41,799,008
0
2
null
null
null
null
UTF-8
Python
false
false
981
py
procedure_variability.py
from pyspark import SparkContext from pyspark.sql import SQLContext from pyspark.sql.types import * sc = SparkContext("local", "weblog app") effective_care = sc.textFile('file:///data/exercise1/effective_care').map(lambda l:l.encode().split(',')).map(lambda x: (x[0], x[1:])) procedure_care = effective_care.map(lambda ...
4264cba9a6c39219d21bd21d4b21009bacd1db38
bdc2fff8cd98aad7c64f981767b0feb0d9ae1623
/service/upload_profile_information.py
4d599e2396d8ab3e338608841da4da9dc0db180f
[]
no_license
ayl4408/CDL-Capital
73c46dcc44728e51dc7e3d62ce71a0a8769b1c00
1210e9ac641be8996871c31372f0fe8ab4dd96e9
refs/heads/master
2021-01-18T23:40:45.959917
2016-05-18T21:04:20
2016-05-18T21:04:20
51,186,618
5
11
null
2016-04-27T21:04:22
2016-02-06T02:44:56
Python
UTF-8
Python
false
false
7,261
py
upload_profile_information.py
#!/usr/bin/python import operator import cgi, sys, LINK_HEADERS import simplejson as json from datetime import datetime from dateutil import tz from decimal import * sys.path.insert(0, str(LINK_HEADERS.DAO_LINK)) from transaction_dao import Transaction_dao from user_portfolio_dao import User_portfolio_dao from user_st...
5c30b0e952ddf2e05a7ad5f8d9bbd4f5e22f887d
767276e6c64a091c9b700330de2c0063a36e9259
/strOperator.py
72a820702c032f070bf50307f376318c3666f1dc
[]
no_license
PykeChen/pythonBasicGramer
02ad11ceada4ed45ab9f503d90b40e2c12946e22
2599be5274ffb736973a7cef69751e699ff98095
refs/heads/master
2020-05-26T23:36:34.560476
2019-07-28T13:35:55
2019-07-28T13:35:55
188,412,856
0
0
null
null
null
null
UTF-8
Python
false
false
243
py
strOperator.py
# strspn(str1,str2) str1 = '12345678' str2 = '456' # str1 and chars both in str1 and str2 print(str1 and str2) str1 = 'cekjgdklab' str2 = 'gka' nPos = -1 for c in str1: if c in str2: nPos = str1.index(c) break print(nPos)
a86b64ccd0dab4ab70ca9c2b7625fb34afec3794
4e8648ae26e15958aca6046c8ec08ae073678766
/article/admin.py
1fad57a217204d9c84d860234947887fbb9f6043
[]
no_license
Keoooo/portfolio-project
0d6c83bb6e6f24f1bf44ef60f8411fc0dd2445a2
686de73a2d4bd15dc52fe43ef717acf86da06603
refs/heads/master
2020-04-07T17:43:36.971888
2018-12-02T21:57:50
2018-12-02T21:57:50
158,581,246
0
0
null
null
null
null
UTF-8
Python
false
false
314
py
admin.py
from django.contrib import admin from django_summernote.admin import SummernoteModelAdmin from .models import ArticlePost # Register your models here. class SomeModelAdmin(SummernoteModelAdmin): # instead of ModelAdmin summernote_fields = '__all__' admin.site.register(ArticlePost, SummernoteModelAdmin)
f17d33f1d035da42dc9a2b4c0c60beefc6a48dea
0ab9731d9c914a540a1d967b4d35018de452052c
/ibllib/tests/extractors/test_extractors.py
56a8de86d36f55ed17acc4cb17518bd3daf3d8a1
[ "MIT" ]
permissive
int-brain-lab/ibllib
50fe66f463f5d476ea20b21955105d774d5f8795
e31bafbed56655749f48a7419d2b3fba3006a750
refs/heads/master
2023-09-01T11:51:41.810094
2023-08-25T14:22:51
2023-08-25T14:22:51
142,146,976
55
42
MIT
2023-09-12T11:25:35
2018-07-24T11:08:22
Python
UTF-8
Python
false
false
33,488
py
test_extractors.py
import functools import shutil import tempfile import unittest import unittest.mock from pathlib import Path import numpy as np import pandas as pd import one.alf.io as alfio from ibllib.io.extractors import training_trials, biased_trials, camera from ibllib.io import raw_data_loaders as raw from ibllib.io.extractors...
767c0e6d956701fcedddb153b6c47f404dec535a
ed3e23eb0b40fbc09dfb7022d61dfa2080373f78
/src/macros/methods.py
c21f78bb6551c4c12ad53eaa3cd499af9c07390c
[]
no_license
toshke/hl-component-cfhlmacros
81348e6299ecea57df492efd1bbeae0dc2448e56
6aa4f850b69b08b10e88dad769bf072e03971cfe
refs/heads/master
2020-05-30T02:25:12.843789
2019-05-31T10:39:27
2019-05-31T10:39:27
189,497,347
0
0
null
null
null
null
UTF-8
Python
false
false
3,027
py
methods.py
import boto3 class NetworkLookup: def __init__(self): self.loaded = 0 self.subnets = {} self.vpcs = {} def load(self): if self.loaded: return client = boto3.client('ec2') # load subnets subnets_r = client.describe_subnets() subnets_...
efcbe296ea72a94be967124a8ba8c84a524e2eb1
10f37fe1908ae6d53c3cbad9c999f9ba6507e64c
/Labs /BST/filter_pos_rec.py
eb57becdea8e5a6460b07990c007106993da7eb5
[]
no_license
a19c97/csc148-code
c144cac199196ecacbe112a720a3c985565361b2
2af8fd88b0b7dcbc9ce48d7d280c3ee41edffed7
refs/heads/master
2021-01-10T14:41:09.166247
2016-02-16T15:58:59
2016-02-16T15:58:59
51,847,493
0
0
null
null
null
null
UTF-8
Python
false
false
526
py
filter_pos_rec.py
__author__ = 'AChen' from rec_linked_list import * def filter_pos_rec(lst): """ @type lst: LinkedListRec >>> lst = LinkedListRec([3, -10, 4, 0]) >>> pos = filter_pos_rec(lst) >>> str(pos) '3 -> 4' """ if lst.is_empty(): return lst else: pos_rec = LinkedListRec([]) ...
4789546128263bd298f8f5827734f8402747b9ac
9b646f80aa2631d206fd421db3d7e11bbcdef0df
/assets/game_projects/fighter/src/input_buffer.py
a52ab6cabe717134b04a1d33dede25cc9cdff7a3
[ "MIT" ]
permissive
PineTreePizza/roll-back-engine
0413dd3ddddc895dff7257b3540bffff905bf7be
fc1fc19f9f8fdff52055064980349024aa1c2324
refs/heads/main
2023-04-22T23:06:02.977328
2021-05-19T15:30:47
2021-05-19T21:25:23
369,007,864
1
0
MIT
2021-05-19T21:40:23
2021-05-19T21:40:23
null
UTF-8
Python
false
false
4,067
py
input_buffer.py
from enum import Enum from roll.input import Input from roll.network import Server, Client from assets.game_projects.fighter.src.game_properties import GameProperties from assets.game_projects.fighter.src.network_message import NetworkMessage class InputBuffer: """ Responsible for collecting game input from...
b693cc63e2ee4c994ef7b5e44faea99f15a021f6
19ec740b87e1fa5f29443c302c0014d84e0ac358
/a2c/qmaneger.py
7469cfbdef4637cbb877a0f664a174cd7c93e49f
[]
no_license
ShogoAkiyama/rltorch2
f090b4dd1e7ae54740080461501dddff3e1dfc8b
9e01aca621a7df25b187aafb490eb9ae89bc0bde
refs/heads/master
2022-09-18T02:37:31.151993
2022-09-06T13:34:51
2022-09-06T13:34:51
219,762,475
3
0
null
null
null
null
UTF-8
Python
false
false
1,484
py
qmaneger.py
import torch import torch.multiprocessing as mp import random class QManeger(object): def __init__(self, opt, q_trace, q_batch): self.traces_s = [] self.traces_a = [] self.traces_r = [] self.lock = mp.Lock() self.q_trace = q_trace self.q_batch = q_batch sel...
3c0beb7be29953ca2d7b390627305f4541b56efa
aa88cfbebfe2d9a1997f5119b6386bd93b779131
/tests/test_cnv_proconf.py
0e8dcfa6fcdd527bbc0c58b27c70319a7676b23f
[]
no_license
Tina9/circos_report
85a01482bec3df26bfc41e16924f9ab60b8557c4
faa2f1a66bd9100a743c0cfbd9eba3ba42fd298a
refs/heads/master
2020-07-23T14:36:20.084560
2018-04-12T01:38:52
2018-04-12T01:38:52
207,594,186
3
0
null
null
null
null
UTF-8
Python
false
false
232
py
test_cnv_proconf.py
import sys sys.path.append("../circos_report/cnv_anno2conf") from cnv_anno2conf import main_cnv tarfile = {"yaml": "data/test_app.yaml"} def test_main_cnv(): main_cnv(tarfile) if __name__ == "__main__": test_main_cnv()
93aea40586df1d036121fbd737d5379b0ebdd4dc
7b8abb4cb81b881cd3a47128439f9f7994cd4ab8
/functionals/scripts/deprecated/parse_fits.py
659a7921067dba1336247cf27044ba8281b73a33
[]
no_license
kris-brown/functionals
e8aec42ca3250cacb93d60fb17d9fe70b536cf49
743e4412df0e1bbbe1d2266deaec852373666552
refs/heads/master
2023-03-17T14:11:56.167750
2021-03-27T17:14:22
2021-03-27T17:14:22
149,363,971
0
0
null
null
null
null
UTF-8
Python
false
false
1,655
py
parse_fits.py
from typing import List,Tuple from os import environ,listdir,mkdir from os.path import join,getmtime,exists from json import load,dumps from datetime import datetime # type: ignore ############################################################################# def parse_fits()->Tuple[List[int]...
063f9ddc37c5bbca82b3c9bf302b1f0f82854dec
15bfb1ba1ab7d84b925f91d28e6bfd604a51c294
/62. Unique Paths.py
afc281eb5c823bf9257adf68e112850ea2788805
[]
no_license
57ing/leetcode
4289440fa44f0cd6d90a60384c84b87d6a7ef07f
7f9f53bd35ed5855f3aeb56b21dcc4933abdac1a
refs/heads/master
2021-09-11T13:58:21.995176
2018-04-08T12:57:25
2018-04-08T12:57:25
116,575,910
3
1
null
null
null
null
UTF-8
Python
false
false
951
py
62. Unique Paths.py
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' @author: 57ing @contact: black8clock@gmail.com @file: 62. Unique Paths.py @time: 2018/3/20 11:17 使用动态规划算法,由最后的终点反着倒推前面每一个点到终点有多少路线 这一题的模型实质上来说可以抽象成求解杨辉三角形上指定位置的数的大小的问题,可以直接套用杨辉三角的求解公式进行计算 ''' class Solution: def uniquePaths(self, m, n): """ :type m: ...
165a16ea3051a4d9eb5c16f022485cb151d02825
2c4648efe8c7e408b8c3a649b2eed8bb846446ec
/codewars/Python/5 kyu/DoubleCola/who_is_next.py
eeab2fd52271570372d438c3e2f3c4d6f448f458
[]
no_license
Adasumizox/ProgrammingChallenges
9d79bd1b0ce4794b576124f9874aabb86d5c0713
3630fcde088d7991e344eb1b84805e9e756aa1a2
refs/heads/master
2021-07-16T08:16:57.538577
2020-07-19T19:58:28
2020-07-19T19:58:28
190,159,085
1
0
null
null
null
null
UTF-8
Python
false
false
140
py
who_is_next.py
from math import ceil def who_is_next(names, r): while r > len(names): r = ceil((r - len(names)) / 2) return names[int(r-1)]
c512dc440c9afcccb4088d681d3e9d04da935bd9
7981a6125241a13070a0738735aa7fab9426881b
/fool/section.py
463d76c80adeb24fb77f99da502546f8b2daf399
[]
no_license
nathantypanski/fool
c9ef3ee3577034db295787ed9937f96da2547fa7
5bfaac752c3a17eec5f0801630c38832c19eb213
refs/heads/master
2016-09-06T04:46:56.050655
2014-11-29T04:53:48
2014-11-29T04:53:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,269
py
section.py
"""Fool sections.""" from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import fool.conf import fool.files class SectionList(fool.objects.DirectoryObject): """A directory containing a list of fool sections. """ def __init__(self): conf ...
03a10f15cc8a7340f35fcd7444d6175aabc2377e
ab14c41d66962c310f472f0aefc7bf75776b8d57
/app/routes.py
149d7e123d6e80adf2840ed876a8a2c866f5f9eb
[]
no_license
openclimateinitiative/climsoftweb-flask
66abcd870b4acda89abce73d96fcb1ba2c5fb232
bd018522b098b11c42c5e7150463067b53b3208d
refs/heads/main
2023-06-28T16:49:54.861078
2021-07-29T09:06:34
2021-07-29T09:06:34
390,650,713
0
0
null
null
null
null
UTF-8
Python
false
false
11,782
py
routes.py
import datetime from app import app, db from app.forms import LoginForm, RegistrationForm from app.models import User from flask import flash, redirect, render_template, request, url_for #, g from flask_babel import lazy_gettext as _l, get_locale from flask_login import current_user, login_required, login_user, logou...
2e90384cfa5f35cd00ef16bf0072d0a2d0e3fd30
5e14dbed4139925544a24cdf299d3db73c31f960
/books/migrations/0001_initial.py
f3f3daf19c9684d6e303193e0f81f26b5e342feb
[]
no_license
JJuniJJuni/book_management
aa0867328f81e4641d5266b0cf2af454ca101962
7068ab109c3477740fb3e1b7fadbdc8d79494272
refs/heads/master
2022-12-16T14:35:52.375170
2019-09-16T14:28:01
2019-09-16T14:28:01
139,111,221
0
0
null
2021-06-10T21:08:14
2018-06-29T06:40:32
Tcl
UTF-8
Python
false
false
1,939
py
0001_initial.py
# Generated by Django 2.0.6 on 2018-06-11 05:31 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Book', fields=[ ('id', models.AutoField(aut...
86fd455f579a2412fb1652c7537ac06cd605118d
629dc87416a7afeb1467072890cf475e08388752
/OCR.py
aeced6f5fd48a5d3a915fdc8385dfb4a7a1f322a
[]
no_license
ji394vul3m6/ptcg-cards
112b4a6fc57b4f74a6b62175fec3199824bcd670
4b8eec3706c143dc199d5a4b9d856d780aceccb6
refs/heads/master
2021-06-19T15:05:00.853807
2021-05-22T13:35:48
2021-05-22T13:35:48
215,208,898
0
0
null
null
null
null
UTF-8
Python
false
false
2,262
py
OCR.py
import http.client import urllib.request import urllib.parse import urllib.error import base64 import sys import json import time def getCardName(series, idx): p = './{}/name_{:03d}.png'.format(series, idx) f = open(p, 'rb') data = f.read() f.close() headers = { # Request...
9ff6a9f5b5c909062008043b68d59f3093a8ab9c
9680c27718346be69cf7695dba674e7a0ec662ca
/Matplotlib/51-Place The Legend Outside The Plot -2.py
4e4f07ca2be32817bfb36f608e8b134592679d03
[]
no_license
Md-Monirul-Islam/Python-code
5a2cdbe7cd3dae94aa63298b5b0ef7e0e31cd298
df98f37dd9d21784a65c8bb0e46d47a646259110
refs/heads/main
2023-01-19T05:15:04.963904
2020-11-19T06:10:09
2020-11-19T06:10:09
314,145,135
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
51-Place The Legend Outside The Plot -2.py
import numpy as np import matplotlib.pyplot as plt t = np.array([1,2,3,4]) plt.plot(t**2,t,color="c",label="1") plt.plot(t**3,t,color="g",label="2") plt.plot(t,t**2,color="r",label="3") plt.plot(t,t**3,color="k",label=4) plt.xlim(0,4) plt.ylim(0,4) plt.xlabel("x label") plt.ylabel("y label") plt.title("first plot") plt...
f8d5fbecf462fe98d26d2f3cab559ab3b5d7537c
524db41f7fe7fdd141ebcff5ea9896843d695191
/Bio_Mfg_Versions/Bio_Mfg_V13
962a78775b60f04097bc2c6f505f8964dec1db40
[]
no_license
gsharma007/Single_Use_Systems_Simulation_Modeling_And_Optimization
c86dbfe93ddd090ee220ff34348afd4e4a96ca43
62b811f51fa6c46acd1d82df3eb85073604f810e
refs/heads/master
2021-07-12T19:45:01.918032
2020-06-18T19:52:51
2020-06-18T19:52:51
164,628,770
1
1
null
null
null
null
UTF-8
Python
false
false
7,594
Bio_Mfg_V13
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Oct 4 04:57:15 2019 @author: gauravsharma """ import numpy as np import matplotlib.pyplot as plt from smt.sampling_methods import LHS #surrogate modeling toolbox from scipy import stats # number of customers considered in the system NUM_CUSTOMERS = ...
341e98a62ad3bf82a323fa4051bd320342344139
9bc964b9bbe1912a649e8f2962a6b4301c28437c
/plusMinus.py
7a783395e72fcfb0eb4828a668315470648e9cde
[]
no_license
rizzu1023/HackerRank
2053396746bc7e937b8140c9c53c8bb4aef43ade
e207f7eebc7d1918f3616d94b4fd5b2391266ac0
refs/heads/master
2021-07-10T19:19:20.302168
2019-01-17T16:06:24
2019-01-17T16:06:24
143,964,719
0
0
null
null
null
null
UTF-8
Python
false
false
252
py
plusMinus.py
def plusMinus(arr): n,p,z=0,0,0 for i in range(0,len(arr)): if(arr[i]>0): p+=1 if(arr[i]<0): n+=1 if(arr[i]==0): z+=1 print(p/len(arr)) print(n/len(arr)) print(z/len(arr))
17d9737c2d2315571a9ae81f8f91064f9f831ba0
197985d64a7748bb9998e046aefe1406d87739c9
/csvtodb.py
a4ac4be43bafb83a31abeb63e89babcd7c711f83
[]
no_license
arun398singh/scrapying_to_database
20a489f1ba6c462a09099adb6c189a45323463cd
e0a1a09b35aa6014b4da5c45fd591123e0367a5b
refs/heads/master
2021-09-24T02:11:39.239961
2018-10-01T19:43:53
2018-10-01T19:43:53
151,148,139
1
0
null
null
null
null
UTF-8
Python
false
false
944
py
csvtodb.py
import mysql.connector import csv mydb = mysql.connector.MySQLConnection( host="localhost", user="root", password="arun@123", database='edulab',auth_plugin='mysql_native_password' ) mycursor =mydb.cursor() query = """INSERT INTO DataAnalyst_ncr (Job_Title,Experience_Required,Company_Name,Job_DescriptionPage,Ke...
e2f46f9c5687311e79884d44422999f6c5b34ff6
dfa5f9f1fcf6adc4f6573372eaec6e6ef2f076e2
/026-异常.py
c2666b89d63f50f81eb4eb2109ea16734766edea
[]
no_license
cwx727/python-exercises
8bef86d6a1c6b92d3a487b23e45203f9ef36a42c
dabff162b27716982f7f0699f3773293709ed193
refs/heads/master
2020-04-18T01:58:58.971500
2019-01-28T04:02:11
2019-01-28T04:02:11
167,142,172
0
0
null
null
null
null
UTF-8
Python
false
false
478
py
026-异常.py
#including utf-8 class ShortInputError(Exception): def __init__(self, length, atleast): Exception.__init__(self) self.length = length self.atleast = atleast try: s = input("请输入:") if len(s) < 3: raise ShortInputError(len(s),3) except EOFError: print("你输入了一个结束标记EOF") except ShortInputError as x: ...
be64e396a3a4d9124a4cbbd25a4b7b5834738010
96b44dc0df4cc0e9059da1c79d6d2468740939b1
/downloads/code/LeetCode/Python/Scramble-String.py
6155511edb5e3616239a7399cad3abd6edd26546
[]
no_license
sdytlm/sdytlm.github.io
5cb9fcc93fc5d2a287c4f0d1920ab83c34b3f68d
0506ca9039db2ba253eb311c23b544d164c6bbda
refs/heads/master
2021-01-24T11:08:54.257293
2019-05-06T03:59:17
2019-05-06T03:59:17
27,394,945
0
0
null
null
null
null
UTF-8
Python
false
false
860
py
Scramble-String.py
class Solution(object): def isScramble(self, s1, s2): """ :type s1: str :type s2: str :rtype: bool """ if s1 == s2: return True if len(s1) != len(s2): return False # 把s1,s2转换成数组 l1 = list(s1) l2 = list...
472cb2d0bb29362adc8795527dcb65aa8c6620b3
bf7dbd8f526fb7e38a4f9e397e78653b7b6a02eb
/crawler/tests/test_db.py
22563adcad7df5d12b34167299284734f41be231
[]
no_license
ethanh2425/snapchat-friends
101dd83c754769c863c8e406c9457c9b7fd37379
aeeac8cd9b20cccddab74b07e6987316e3890231
refs/heads/master
2021-08-27T15:13:09.866682
2013-08-04T18:22:51
2013-08-04T18:22:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,077
py
test_db.py
from nose.tools import assert_equal, with_setup from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker import db from db import Friend, User SESSION = None def setup_func(): global SESSION engine = create_engine('sqlite:///') Friend.metadata.create_all(engine) User.metadata.crea...
a84d5fbeb3bfef10763431325dd0656f78c994d5
b91578b96ffe63639d3efc70d4737b92091cd0b1
/backend/unpp_api/apps/externals/migrations/0002_auto_20180725_1006.py
da46c9fbea8c07a01e0c9867aaafcd7f5ae4da1f
[ "Apache-2.0" ]
permissive
unicef/un-partner-portal
876b6ec394909ed2f72777493623413e9cecbfdc
73afa193a5f6d626928cae0025c72a17f0ef8f61
refs/heads/develop
2023-02-06T21:08:22.037975
2019-05-20T07:35:29
2019-05-20T07:35:29
96,332,233
6
1
Apache-2.0
2023-01-25T23:21:41
2017-07-05T15:07:44
JavaScript
UTF-8
Python
false
false
559
py
0002_auto_20180725_1006.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.14 on 2018-07-25 10:06 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('partner', '0066_auto_20180724_0902'), ('agency', '0013_auto_20180612_0625'), ('exte...
12590f5a206d535b22ef28c324d994e13b387d54
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_exercises/templates/_algorithms_challenges/leetcode/LeetCode_with_solution/275 H-Index II.py
1da009994103aa592c1c596f637f393e78a52e89
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
591
py
275 H-Index II.py
""" Follow up for H-Index: What if the citations array is sorted in ascending order? Could you optimize your algorithm? """ __author__ 'Daniel' c_ Solution(o.. ___ hIndex A """ Given sorted -> binary search From linear search into bin search :type A: List[int] :rtype: int ...
26a838065b5afa310eb3d731ccc0282d1c2cd81f
cfb20d2d6328575228d74ed0c812a1f17544458d
/ParallelComputing/project/src/knn_pycuda.py
f9602af49676551424081026f8e58162d8d6a3a8
[]
no_license
sty-hhh/Assignments
dfe8b9599948325e6188982e7364f25644255b87
c6b2521b0c3ebb69097986fa3e822f5672120688
refs/heads/main
2023-03-16T14:03:10.535828
2023-02-24T11:54:39
2023-02-24T11:54:39
566,193,333
1
0
null
null
null
null
UTF-8
Python
false
false
4,101
py
knn_pycuda.py
import numpy as np import random import time import pycuda.driver as drv import pycuda.autoinit from pycuda.compiler import SourceModule from sklearn.metrics import accuracy_score # MNIST手写数字数据集(28*28) K = 10 # K值 sample_ratio = 1 # 选取数据集的采样率 split_ratio = 0.2 # 验证集比率 # mod = SourceModule (""" # #...
2982703ddb5a49bfabf94a0cabdfad6135df8ab1
b0276406de2f14b46b94678d977b41ef59728c26
/new_9h_csv.py
acd263ec999178459c16330d314b84df79593427
[]
no_license
ansharma74/metro
110b84c3b64d517f43dec79e9079ee83b5310904
390157f60e26a839d750f25ae0d596d54b141a10
refs/heads/master
2020-03-30T14:17:44.843412
2019-08-19T02:54:36
2019-08-19T02:54:36
151,311,352
0
0
null
null
null
null
UTF-8
Python
false
false
1,086
py
new_9h_csv.py
import csv path1='datafiles/A1000_eng_1.csv' path2='datafiles/top200engg.csv' path3='datafiles/A1000_eng_1r.csv' outdata = [] input_file1 = open(path1,'r') input_file2 = open(path2,'r') output = open(path3,'w') reader1 = csv.DictReader(input_file1, delimiter=',',quoting=csv.QUOTE_MINIMAL) reader2 = csv.DictR...
86a9415b082f214177445d92b12e91c2ecf2488b
8eefc9b2ac0c674b00978b3d23bd7c3b74986be9
/tests/examples/lsrr_fw_example.py
89a8a2681498471369fc0fdd696cc55a11b113a6
[]
no_license
apanda/modeling
a26408e1ad120e26c2668debf97f6499a6e2bc49
e032abd413bb3325ad6e5995abadeef74314f383
refs/heads/master
2020-12-24T16:24:09.907868
2016-05-02T16:57:32
2016-05-02T16:57:32
13,710,038
3
2
null
null
null
null
UTF-8
Python
false
false
3,126
py
lsrr_fw_example.py
import components import itertools def LSRRFwExample (size): left_nodes = ['l_%d'%(l) for l in xrange(size)] right_nodes = ['r_%d'%(r) for r in xrange(size)] end_hosts = ['e0', 'e1'] firewalls = ['f0'] all_nodes = [] all_nodes.extend(left_nodes) all_nodes.extend(right_nodes) all_nodes...
a2992e846c2db2162f28cc81c53a020feb90ef83
3fa6a47cba65aa6e4a2129cb8b74c7b5486cc4e3
/kepler_python_packages/python_scripts/Cam_project/remnantobtain.py
2ef3a2c4ac881c67c7d7d3b906983145bd98adef
[ "BSD-3-Clause" ]
permissive
adam-m-jcbs/xrb-sens-datashare
866b2329664d1a1403e070cfa78bff93eab0e099
98fc181bab054619d12ffa4173ad5c469803c2ec
refs/heads/master
2021-08-24T12:53:05.972818
2020-08-14T18:22:38
2020-08-14T18:22:38
214,235,821
1
0
null
null
null
null
UTF-8
Python
false
false
3,566
py
remnantobtain.py
import numpy as np def remnant(energyvalues, mixingvalues, energy, mixing, rem, count): # count 2 is for iterating through the different elements, count is for each star """ This program linearly interpolates the remnant masses to grab the correct one for a given energy and mixing value ...
fdeaa15b7239ee310d27a7bab50fa84eaeb8c805
d714b7ab88e4e3c204c4c3beae9c726816d0a228
/makeRunView/main.py
68a2c789e700a93f0371e0371a9e7aaedea190fc
[]
no_license
Tehforsch/makeRunView
d954cb3cd86a9e714d09e0ad1bdc18bf0edde051
1d8f6e823ed27dbbec5d962d9adf4a97bc64f69f
refs/heads/master
2021-01-17T08:00:36.220427
2017-09-28T12:19:24
2017-09-28T12:19:24
20,189,936
0
1
null
null
null
null
UTF-8
Python
false
false
1,141
py
main.py
import logging, os, sys, time from makeRunView import makerunview def run(mrv, workPath): os.chdir(workPath) run = 0 try: while True: run += 1 time.sleep(0.1) mrv.handle() except (KeyboardInterrupt, SystemExit, Exception, AttributeError) as ex: # Kill...
48bff52ebbf9b5bc2dcc2aaecf0c77849c429ced
1925db8e8d45ef9887321da7927a274e1e9becf5
/experimentum/Storage/SQLAlchemy/Store.py
9b71a979800de43a97c3fbd4061478a0363b00ef
[ "Apache-2.0" ]
permissive
PascalKleindienst/experimentum
d4f6263f098fe4759358965c95cb623d27c06d8f
5d547e0e8135d4d7ffe42b0c8a57e70a7ac2af4b
refs/heads/master
2020-03-25T17:53:24.055759
2019-10-07T16:56:00
2019-10-07T16:56:00
144,001,375
0
0
null
null
null
null
UTF-8
Python
false
false
6,048
py
Store.py
"""Concrete Implementation of a data store based on SQLAlchemy. Uses the SQLAlchemy ORM to implement the :py:mod:`.AbstractStore` interface. """ from experimentum.Storage import AbstractStore from experimentum.Storage.SQLAlchemy import SQLitePlatform, Platform, ColumnFactory from sqlalchemy import inspect, MetaData, T...
6d3b63a0013ebbf36f56e21e6d716d5f58a1488f
dff70806af1e03640f357a9966d9076d52be4a6a
/ProjectEular20.py
709387a88b3cf8616a466509ab86026514f97707
[]
no_license
BanarasiVaibhav/LearningPython
f5c74ac43485701dd9639ec60b704bc5259ece9e
fe83c9181383959093c91bd54d2937645678568e
refs/heads/master
2020-03-30T16:18:09.010339
2019-07-28T08:54:02
2019-07-28T08:54:02
151,402,645
0
0
null
null
null
null
UTF-8
Python
false
false
246
py
ProjectEular20.py
def factorial(num): for i in range(1,num+1): num=num*i return num print(factorial(100)) digits=factorial(100) length=list(str(digits)) sum=0 for j in range(1,len(length)+1): sum=sum+digits%10 digits=digits//10 print(sum)
a9cfac33de46d07e94908d8ad7ddce728a0724e8
c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce
/flask/flaskenv/Lib/site-packages/tensorflow/_api/v1/compat/v2/test/__init__.py
4de07e3518dd09fc8ef9c898697d9112ce2f0617
[]
no_license
AhsonAslam/webapi
54cf7466aac4685da1105f9fb84c686e38f92121
1b2bfa4614e7afdc57c9210b0674506ea70b20b5
refs/heads/master
2020-07-27T06:05:36.057953
2019-09-17T06:35:33
2019-09-17T06:35:33
208,895,450
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
__init__.py
version https://git-lfs.github.com/spec/v1 oid sha256:2aacfdd48a375b02df5afccac116e169a378b144a59f734915af63341d0a83f7 size 1160
fc8af0728a10eebb751e4c24bc3611aeeaf9bf92
799dd9a6aa3a17461ad724be443877032ef892c5
/pattern.py
e8ee725d2092149c6f53d82551dd9db7655ca467
[]
no_license
anushkapatil18/Python_miniProjects
db5b47c016a0aafa3705aa189ab4fa1f839a5331
ccd15e05c9cd841af1946236f2d1513bf85277c4
refs/heads/main
2023-09-05T15:35:48.692515
2021-11-16T13:18:09
2021-11-16T13:18:09
428,221,566
0
0
null
null
null
null
UTF-8
Python
false
false
437
py
pattern.py
def pattern(num): k = num for i in range(k,0,-1): for j in range(k,0,-1): print(end=" ") k += 1 for j in range(0,i): print("*",end=" ") print("\r") n = k - 1 for i in range(0,num): for j in range(n,0,-1): print(end=" ") ...
db8039dbf4d07eda45e99086c0a28e9960856eac
3ee00c022f6eb31d83c3f926fec772d82cda41eb
/opensearchsdk/v2/suggest.py
01196f1566f9b39375834569b2c7449031927a0e
[ "Apache-2.0" ]
permissive
gaussic/ali-opensearch-sdk
8b135db9729990c0982788dba51f465fb188a502
90e8ce5a0f121302b64b113b2d86546c80a36100
refs/heads/master
2020-06-16T21:02:01.128263
2016-12-30T17:54:52
2016-12-30T17:54:52
75,066,525
0
0
null
2016-11-29T09:44:25
2016-11-29T09:44:25
null
UTF-8
Python
false
false
669
py
suggest.py
# -*- encoding: utf-8 -*- from opensearchsdk.apiclient import api_base class SuggestManager(api_base.Manager): """Suggest resource manage class""" def suggest(self, query, index_name, suggest_name, hit=10): """ get suggest from user input. :param query: query string :param inde...
08fcb976e6ca81ea5293a0ad87eb16fdd6bd71e5
087f9b06b476cfe22d25d26ca63dc143d1821c77
/phase2/task2.py
5b71064de76ab1762b508415196a07f5a26df7bd
[]
no_license
shantanu-93/CSE515
3e961ed1f081597827b447d85dd8e17214e3322e
a5410700c109a6c5e94a4848f2e913b6236d9028
refs/heads/master
2022-03-26T18:00:02.367283
2019-12-06T10:19:58
2019-12-06T10:19:58
234,500,523
1
1
null
null
null
null
UTF-8
Python
false
false
3,003
py
task2.py
""" Multimedia Web Databases - Fall 2019: Project Group 17 Authors: 1. Sumukh Ashwin Kamath 2. Rakesh Ramesh 3. Baani Khurana 4. Karishma Joseph 5. Shantanu Gupta 6. Kanishk Bashyam This is the CLI for task 2 of Phase 2 of the project """ import os import sys from classes.dimensionreduction import DimensionReduction ...
026e0bf6f2768515c33c1bb48b3691210db05275
31eff9b8f96ae318c30456f06bfc2041e7b18939
/connection.py
125e7bbf8b7e0072d35e7096f03f81954dbb1084
[]
no_license
onekstar/tornado_memcache
79566cdd884b82cba5e1400d132385d695df6ff7
8ba3f7ac730f713cbd3df0ab68ec978fba8f55b3
refs/heads/master
2021-05-29T14:34:32.075480
2014-06-11T07:05:29
2014-06-11T07:05:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,260
py
connection.py
#coding:utf-8 import socket import time from functools import partial import tornado.ioloop import tornado.gen import tornado.iostream class TimeoutError(Exception): pass class ConnectionTimeoutError(TimeoutError): pass class ReadTimeoutError(TimeoutError): pass class WriteTimeoutError(TimeoutError): ...
4681deefdeb954cc2bba0fe641a2ad574c7055f3
c5b90ad64113c3364876a630862b60effce758de
/powerboard/powerboard-control/control.py
2e287287737c012ce2a3c30c4a5c5911c9881acf
[]
no_license
alxshine/tinkering
80b8c42d2da5644a81e4072b626e8a2c22d2133b
0acb2ecde1bd557811e988e55390e5d95d9e7e11
refs/heads/main
2023-06-17T07:18:58.625641
2021-07-07T16:16:51
2021-07-07T16:16:51
382,808,284
0
0
null
null
null
null
UTF-8
Python
false
false
623
py
control.py
import psutil import serial from time import sleep COM = "COM6" # /dev/ttyACM0 (Linux) BAUD = 115200 ser = serial.Serial(COM, BAUD, timeout=0.1) print("Waiting for device") sleep(3) print(ser.name) # clear bytes the MC sends during startup ser.readall() i = 0 while True: load = psutil.cpu_percent() print...
d0216cd863a0b35c7d4f7e4882fd3e4efad0bf64
1d8c621058f39515888129ae222087fdf7ffb324
/create_feature_vector/create_feature_vectors.py
96959e5b42a5d52e45dce08723d321ddcce20e1a
[]
no_license
Piier/activity_forecasting
704f199ed1f430ae8e1707b851701cbb86c42491
dfed739596a3b8d14076d3ff5c4cd1e28d0c012d
refs/heads/main
2023-06-26T21:45:56.886576
2021-07-09T14:14:49
2021-07-09T14:14:49
381,729,812
0
0
null
null
null
null
UTF-8
Python
false
false
9,663
py
create_feature_vectors.py
import psycopg2 from psycopg2 import Error from psycopg2.extensions import ISOLATION_LEVEL_AUTOCOMMIT import datetime import re import csv import pandas as pd case=['HH122'] name_db="casas" username_db="postgres" password_db="admin" host_db="127.0.0.1" port_db="5432" try: connection = psycopg2...