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
83cb77dfdb198f5a3fd0ee13494f7c649230c4c3
8277520227d463138846ab46cd893b04ed6c67c8
/sent_drone.py
cd8c7a657f6e94c86bb2e821dbd7853d0ea767ff
[ "MIT" ]
permissive
jinwu0408/drone_tracker
98b24ab83a0cce18a5fc19545af564d2a1470eb1
dc08c3d76df650e5ba82f8f72c2b1740ea9ca65d
refs/heads/main
2023-06-03T15:15:47.346555
2021-06-23T04:43:17
2021-06-23T04:43:17
374,870,472
0
0
null
null
null
null
UTF-8
Python
false
false
30
py
sent_drone.py
def sent_drone(pos): pass
7dbb4f0a23b514e1e1c2ae1f19768a8c5193441b
fec97e3446cd39c50e01a9646ecca3d3b9e4a37c
/src/info_provider/utils/ldap_utils.py
2bda88351611f9ca602772028531485f985a1385
[ "Apache-2.0", "CC-BY-2.5" ]
permissive
italiangrid/storm-info-provider
070f40369465f853c89bf96ac9723f4a36ac07b9
1b4d75fbeb06b0be15a18e4efcc66250d34f3f59
refs/heads/master
2023-07-11T19:21:31.462039
2023-06-27T20:08:49
2023-06-27T20:08:49
8,200,302
0
2
NOASSERTION
2023-06-27T20:08:50
2013-02-14T13:57:09
Python
UTF-8
Python
false
false
2,098
py
ldap_utils.py
import logging from ldif import LDIFWriter class LDIFNode: def __init__(self, dn, default_entries): self.default_entries = default_entries self.dn = dn self.entries = {} return def add(self, entries): # add/update entries for entry_name in entries: ...
5fee2e269376d7aedbd3e0004b4cb5976d3b0806
cec6b0f6795008eec4075b0ffe1f2ac831071da5
/driving.py
f63e752bf3521d4b1451f6c03fbe8642c122c99f
[]
no_license
YageZhan/age_for_driving
476034a0b04fbd8efe8ae84fd09fa1604260b620
0426ffccdbdb052d2686a240832e050219b86eaf
refs/heads/master
2022-11-07T02:28:14.346068
2020-06-29T03:56:20
2020-06-29T03:56:20
275,715,783
0
0
null
null
null
null
UTF-8
Python
false
false
719
py
driving.py
country = input('请问你是哪国人?') if country == '中国': print('你可以考试') else: print('回自己国家去吧') age = input('你的年龄是多少?') age = int(age) if age >= 18: print('你可以考驾照') else: print('成年了再来吧臭小子!') #================================================ country = input('你是哪国人') age = input('你的年龄') age = int(age) if country == '中国': i...
4ce7957a50cddf5cfc4b0facd72486e6ca851248
1ef01ce3941e8664c362eb7be942c068ac49a3a1
/2_part2.py
f58fd7fd32312e9cf3e221634218e72a70280916
[]
no_license
BenJuan26/advent2018
ac2cad96ce7e51c6658bc87ef8b60a1add5630ea
c77aac3e4f7fb1f2d9036b3b1704d94674c47690
refs/heads/master
2020-04-09T15:24:23.160219
2018-12-05T15:34:50
2018-12-05T15:34:50
160,425,008
0
0
null
null
null
null
UTF-8
Python
false
false
519
py
2_part2.py
from aoc import get_input data = get_input(2) lines = data.split("\n") for i in range(len(lines)): for j in range(len(lines)): word1 = lines[i] word2 = lines[j] diff = 0 for n in range(len(word1)): if word1[n] != word2[n]: diff += 1 if diff == 1:...
c9c164b3929eb9ab398139004addb5d05ef63fcb
6900f20d8d96b73938761871dc23f10681995bc3
/Code/LSTM/model-analysis/extract_embeddings_from_rnn.py
b2eb02ea1e2f1bc1ec0d3eafca32baf480a7f6ea
[]
no_license
FAIRNS/sentence-processing-MEG-LSTM
f2b0b37b3f8447c2aea1600ae8ab83acd207355e
5ef1fbb5d6f4922cb19602e9c89163ec04f6ed48
refs/heads/master
2021-05-11T01:50:51.398651
2021-02-04T15:07:50
2021-02-04T15:07:50
118,335,132
0
1
null
null
null
null
UTF-8
Python
false
false
7,750
py
extract_embeddings_from_rnn.py
#!/usr/bin/env python import sys, os import torch import argparse sys.path.append(os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../src/word_language_model'))) import data import numpy as np import matplotlib.pyplot as plt from tqdm import tqdm parser = argparse.ArgumentParser(description='...
a4fb745748c4f4fc13d7e4bcd27201ecb1a642e2
dd616b888494f2d848447d360d883c9c9b4bdbf9
/cantoolz/isotp.py
8c33e2212bf2d22b7b8e30b6f654ddcd44f83eea
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
CANToolz/CANToolz
2b25730770ac6a97c671067bf975a52d58f1066c
82d330b835b90598f7289cdfe083f7f66309f915
refs/heads/master
2023-05-14T14:36:54.135516
2021-02-24T07:26:06
2021-02-24T07:26:06
99,575,229
247
49
NOASSERTION
2023-05-07T13:18:09
2017-08-07T12:24:35
Python
UTF-8
Python
false
false
6,854
py
isotp.py
from cantoolz.can import CANMessage class ISOTPMessage: """ dirty ISOTP impl ISO 15765-2 https://en.wikipedia.org/wiki/ISO_15765-2 """ # Protocol Control Information #: int -- The frame is self-contained SINGLE_FRAME = 0 #: int -- The frame is the first frame of a series of fram...
8452c0eb18bb3a9abbc0e11803df89c7ea2598e3
0ff9a7fe7f255d52a5fb051b13d6cc70b2629707
/035_circular_primes/035_circular_primes.py
3f76f48be6445da29cb958ef91fe3dda08f27273
[]
no_license
terry3/python_euler_project
be90f104bbd014af19b10ae4c954a9fc119eeb06
2d068d82bc3fdd5459a7053a6e5f1a5e48e2f7d7
refs/heads/master
2021-01-01T17:10:01.252496
2015-09-23T08:32:56
2015-09-23T08:32:56
35,097,482
0
0
null
null
null
null
UTF-8
Python
false
false
2,200
py
035_circular_primes.py
#!/usr/bin/python # -*- coding: utf-8 -*- """ The number, 197, is called a circular prime because all rotations of the digits: 197, 971, and 719, are themselves prime. There are thirteen such primes below 100: 2, 3, 5, 7, 11, 13, 17, 31, 37, 71, 73, 79, and 97. How many circular primes are there below one million? ""...
34a79fc682b79058ea9096b96d551c60810b49dc
db4bb532b35ff32af7b2cc91151c392433f10c9e
/djangoenv/lib/python3.7/copyreg.py
e65f9c36ff0bbd92e139fbb5201df67a4127987c
[]
no_license
covesoyars/Stone-Cold-Properties
fdab6033e0e623e8d6469d3bd3a6b3d46b045a94
f5281c7edd63bf164f0125f5c78a24175664fe51
refs/heads/master
2022-10-02T15:17:07.029088
2019-11-30T22:45:03
2019-11-30T22:45:03
221,248,638
0
0
null
null
null
null
UTF-8
Python
false
false
56
py
copyreg.py
/Users/covesoyars/opt/anaconda3/lib/python3.7/copyreg.py
11c55448fbbcc52c3e522f2b426c1fdc9abcc26f
125218dd260e802179ec851641bc5d63f0a6a36b
/cal_UI_Menu.py
dbf0bb48bd92dd9e4b19993a0d51757ae2d451da
[ "MIT" ]
permissive
luoyueyizhan/sec2021
fda35fb349fe26de8508bbceb82b4fe063eaec31
e93613f302beeddda14d380ee1d25a7348b1b233
refs/heads/master
2023-07-18T03:48:12.352900
2021-08-29T05:07:40
2021-08-29T05:07:40
397,051,433
0
0
null
null
null
null
UTF-8
Python
false
false
2,246
py
cal_UI_Menu.py
from cal_history import read_history import tkinter as tk class cal_menu: """Menu. The menu of the window. Args: master(Tk):the window menubar(Menu):the menu box root(Tk):the window filemenu(Menu):a smaller menubox on the menubar helpmenu(Menu):a smaller menubo...
82a99818ad27809d2b4b338bdad789631ae11172
d7b009ff6fb9ef81ade9a96aa35cec74b89d7914
/LeetCode-Cpp/regularexpressionmatching.py
7c815a142396d8ac08005ff5da795d715879f582
[]
no_license
dazhxu/CodeLib
18c73ac2ba2134674e2922cecd8ca8af898a7563
8691e7e2f5d8e2754f1278be6bba20ecfec041f5
refs/heads/master
2020-12-25T16:50:33.028277
2020-12-09T08:00:56
2020-12-09T08:00:56
41,577,387
0
0
null
null
null
null
UTF-8
Python
false
false
695
py
regularexpressionmatching.py
class Solution: cache = {} def isMatch(self,s,p): if (s,p) in self.cache: return self.cache[(s,p)] if not p: return not s if len(p) == 1 or p[1] != '*': self.cache[(s[1:], p[1:])] = self.isMatch(s[1:], p[1:]) return len(s) > 0 and (p[0] == '.' or s[0] == p[0])...
f12893cb7c9cf1edda8794eb44a2d061065e5475
1d1215797d6b9e75efcd4d8873664f22c3ef03e8
/gui/dermsapp/group.py
57345a173aad86b6b27ecd033158b4ca82144eb6
[]
no_license
GRIDAPPSD/gridappsd-soap-server
5e814222dae5ecb3c6cb64275c5180771c17e316
af4482c3ba8b93619294ca6654d1ce15767645d6
refs/heads/master
2023-08-07T23:04:11.953732
2023-06-22T02:11:47
2023-06-22T02:11:47
227,204,410
1
0
null
2023-07-25T21:45:17
2019-12-10T19:58:33
Python
UTF-8
Python
false
false
3,332
py
group.py
import jsons import os from threading import Lock __groups = {} write_lock = Lock() class Group: ''' class represent a DERM group ''' def __init__(self, mrid, name, description, deviceList, derFunctions=None): self.mrid = mrid self.name = name self.description = description ...
fb1e34db30103baedd079b2d8ee00399e541dcd9
c912fd8bcd90fcb3cb82bfb15673b58f9fe3c97f
/peak_reader.py
78a51954ffffd3b6964263faafcc8534f22f57e0
[]
no_license
emilemac/SmartScan-python
3d3dc42cd04937361d07fdd1eefea49469c9ddaa
854260f69cd044870d8f832bd752a2811744c7d5
refs/heads/main
2023-05-07T23:11:40.798361
2021-05-19T12:00:49
2021-05-19T12:00:49
344,883,472
0
0
null
null
null
null
UTF-8
Python
false
false
1,427
py
peak_reader.py
import socket import struct import numpy as np from scipy import constants def process_peak(peak, start_f, step_f): if peak == 0: return 0 ch = peak/128. # Gives channel number freq = (start_f*1000 + step_f*ch) * 10e9 # frequency of the grating in Hz wl = constants.c/freq * 10e9 # convert t...
26da3540ca6c65a90f476fd32a133ee034b18b02
7950c4faf15ec1dc217391d839ddc21efd174ede
/problems/0082.0_Remove_Duplicates_from_Sorted_List_II.py
0c4390d08f61ccf6db1b5131890a6b181e642a13
[]
no_license
lixiang2017/leetcode
f462ecd269c7157aa4f5854f8c1da97ca5375e39
f93380721b8383817fe2b0d728deca1321c9ef45
refs/heads/master
2023-08-25T02:56:58.918792
2023-08-22T16:43:36
2023-08-22T16:43:36
153,090,613
5
0
null
null
null
null
UTF-8
Python
false
false
2,172
py
0082.0_Remove_Duplicates_from_Sorted_List_II.py
''' T: O(3*N + NlogN) S: O(2*N) Runtime: 67 ms, faster than 33.87% of Python3 online submissions for Remove Duplicates from Sorted List II. Memory Usage: 14 MB, less than 54.61% of Python3 online submissions for Remove Duplicates from Sorted List II. ''' # Definition for singly-linked list. # class ListNode: # de...
8191e1e893c799166e35a4da28968be52b349918
795da29385cdbcc224ec669d110b27eba053e6d1
/extras/.old/fit_sheng/embe_fit.py
f54eba360c478e1ba2f21feac1cacd6d013684b2
[]
no_license
BenPalmer1983/eampa_v3
2246b148a92e8ea8551bd6345d8c60881ee3545d
5ee54e6e14f93f0310aea3717f71ce51e4b48ff1
refs/heads/master
2023-06-11T11:39:32.060041
2021-07-09T22:29:50
2021-07-09T22:29:50
304,792,312
2
1
null
null
null
null
UTF-8
Python
false
false
2,537
py
embe_fit.py
import numpy import matplotlib.pyplot as plt from matplotlib import colors from matplotlib.ticker import PercentFormatter class embe_fit: @staticmethod def rss(d, p, f): return sum((f(d[:,0], p) - d[:,1])**2) @staticmethod def embe_a(x, p): return p[0] * numpy.sqrt(x) + p[1] * x**2 + p[2] * x**4...
4584d8fe80fe5deb183efd8e22760e4395be0884
ce2c8f612669dfa85574a7004957b51c59b125b4
/src/apps/accounts/forms.py
1da0ecfe737d1cd0dd3e1a1c98bf6468584e5589
[ "MIT" ]
permissive
snicoper/snicoper.com
b37190881b8e6777841924890d00b601858a7d5f
22c17b5ead6096227a3415770c0cbd2923f2f14a
refs/heads/master
2021-01-19T10:48:54.227594
2018-10-15T08:06:30
2018-10-15T08:06:30
83,424,820
2
0
null
null
null
null
UTF-8
Python
false
false
1,018
py
forms.py
from django import forms from django.contrib.auth.forms import ( UserChangeForm as AuthUserChangeForm, UserCreationForm as AuthUserCreationForm, ) from .models import User class UserChangeForm(AuthUserChangeForm): """Form para editar usuario en admin.""" class Meta(AuthUserChangeForm.Meta): ...
ed5216811b25b38e556b10d3914df72927f2d617
cb9f695a40a5c5074a818ceb6e6e1f91c60825eb
/handlers/login.py
3180226541d2e70f2014e0f7a5ab2698c803300b
[ "MIT" ]
permissive
raspberry9/tinypost
52255525a69e5a94e4ece94f24004f8ab6cf0fee
6e4b4bf764e93f6d344fbdb9369f326f08146d00
refs/heads/master
2022-06-16T07:54:38.606731
2019-12-08T10:54:39
2019-12-08T10:54:39
226,651,031
0
0
MIT
2022-06-03T22:45:11
2019-12-08T10:38:37
Python
UTF-8
Python
false
false
1,749
py
login.py
# -*- coding: utf-8 -*- import time import logging from bottle import route, request from error import NoError, ApplicationError, UnauthorizedError from http import get_response, get_request req_proto = {'userid': str, 'password': str,} res_proto = {'code': int, 'msg': str,} def login_requ...
4f125c97314ce169b8393c385f89a56602fe9c54
c5bc4b7f885ca87804feb9cb7d416a6a4e9bed82
/images/squarelimit2-highlight.py
cab0662cc07aa39958b663627f0dc206ddc34e92
[]
no_license
anandology/the-joy-of-programming
d3d4a439665d81bf499aabf127b04a5a5a9cd5bb
231be9dc97fb8935f490237277d1cf16b28fe366
refs/heads/master
2023-01-23T07:45:25.811908
2020-12-06T12:34:14
2020-12-06T12:34:14
317,910,429
5
0
null
null
null
null
UTF-8
Python
false
false
1,217
py
squarelimit2-highlight.py
import math def display(shape): border = Node("rect", x=0, y=0, width=260, height=260, stroke_dasharray="5,5", stroke="#888") s = over(shape, border) show(scale(2.3, 2.3, shape)) blank = Node("g") fish = Node("path", d=fish.attrs['d'], style= 'fill: #666; stroke: #666;')...
d6b37ea86b5da2a44f6b3dc76de6644bab5102a6
ef8b8faf1082bf0fc3421ac8d421fcced5f77e66
/webservice_helper_method/ip_status.py
dc5e11edca3953a41338802293cb82c1d1fe8d62
[]
no_license
ramakrishnabolisetty007/Cloud-based-monitoring-dashboard
b21a3d60fa6f6eb7b97e0d4bf3128477ef85433f
b184a55c08043b8427be38b8b916859b68fb44cd
refs/heads/master
2022-12-14T16:07:58.466898
2020-09-22T07:59:55
2020-09-22T07:59:55
145,101,477
0
0
null
null
null
null
UTF-8
Python
false
false
465
py
ip_status.py
import subprocess ip_dict = {} def get_ip(): content = ( subprocess.Popen(r"ipconfig /all", stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True).communicate()[ 0]).decode( 'utf-8').split("\r\n") for i in content: if ":" in i.rstrip("\n"): key = i.split("...
16130038a4bc18d0af41414d9d0e555c689ad3ab
d371b1d0ae2c78c716305661276e99ea99a2ec3f
/sandbox/evaluation.py
78dc2fac263e744774bb421762a9927e1cc085e3
[]
no_license
ravioactive/subtrendr
96fa9485f453662c391d46aa9c5b7c5cb70972c6
6afddb96ff9ce4c8eaa6d3c3d43d81426d2c2870
refs/heads/master
2020-12-24T14:09:27.363320
2015-05-10T19:53:01
2015-05-10T19:53:01
32,291,769
0
0
null
null
null
null
UTF-8
Python
false
false
6,922
py
evaluation.py
import sys import pymongo import operator def main(): args = sys.argv[1:] trendname = args[0] if not trendname or trendname == '': print 'Trend value missing. Abort.' sys.exit(1) connection_string = "mongodb://localhost" connection = pymongo.MongoClient(connection_string) db = connection.subtrendr target_...
89fc5cd4ffef02aeacec8c3fb8b77d593a03b3c6
c1fac8e8b4c25092b6dc9762ffbffe5a1a300f9a
/test/test_igp_shortcuts.py
cb4b79bd2a64b669c02e75a4cc2d59b49df0e3ce
[ "Apache-2.0" ]
permissive
tim-fiola/network_traffic_modeler_py3
e9defcb7c0f8b2331337cba7916422e57c3569b0
d2bd7287ea86fb22ec41c2522164d5761fc225dd
refs/heads/master
2021-11-23T00:21:33.689441
2021-10-12T03:02:33
2021-10-12T03:02:33
145,035,500
115
11
Apache-2.0
2021-10-06T13:44:45
2018-08-16T20:21:45
Python
UTF-8
Python
false
false
12,449
py
test_igp_shortcuts.py
import unittest from pyNTM import FlexModel from pyNTM import ModelException from pyNTM import PerformanceModel class TestIGPShortcuts(unittest.TestCase): def test_traffic_on_shortcut_lsps(self): """ Verify Interface and LSP traffic when IGP shortcuts enabled in baseline model. """...
c8081af6b5851bc0cbc0b9e6ef97502e2861ddda
3c16ac0f305dbe6433a0380b1c77519aaa1f9345
/watson/core/dsl/functions/click.py
f7c5bc7a128074e9432009ffb9cf1f590706b5c3
[]
no_license
huseyinyilmaz/watson
0828feeeebd21635df9608e5f23fd6cb5578d303
6cd26684f91768f36485175608db5b2959f09135
refs/heads/master
2021-10-15T22:26:43.729436
2019-02-06T01:49:35
2019-02-06T01:49:35
168,898,554
0
0
null
null
null
null
UTF-8
Python
false
false
147
py
click.py
def click(query: str): def f(**kwargs): log = kwargs['log'] log(f'click(\'query\'): success') return True return f
1d63dd1c2c69c588396d4cfcef0fa5f4cf731a62
a490c21844080473084a5c323111875111efaf1e
/assignment-4/run.py
2dd5e514a9c4820c84067ae285cfcf1a6875c509
[]
no_license
shobhit6993/cs394R-reinforcement-learning
02ccab929a82b827aa0413a76761e33bec42722a
61234c22b2485d7197909cecc8b6650ca8820a12
refs/heads/master
2020-12-25T20:09:05.983969
2016-12-03T18:10:48
2016-12-03T18:10:48
68,414,923
2
2
null
null
null
null
UTF-8
Python
false
false
3,312
py
run.py
import pylab from chainworld import ChainWorld from policy import Policy from state_features import StateFeatures from td import TD from lstd import LSTD import utils def estimate_values_by_td(env, policy, features, true_values, lambda_, alpha): """Computes value-estimates using TD(\lambda) algorithm. Args:...
62a2f168802e3e52917c6f6bd085dc5e61439cae
1b3e7215e66994ad207695bc60a877b3758c16ae
/token_psmm/preprocess.py
d463a6040717d664ce02c20f66e98980da119673
[]
no_license
bopopescu/intelligent-code-completion
6082fdd82229b9e65ee03b20979a308f15f00005
afdddafbc88fcf873efa8909f03f5ca7083dbb27
refs/heads/master
2021-08-29T19:03:41.315874
2017-12-14T18:05:43
2017-12-14T18:05:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,545
py
preprocess.py
import os class Dict(object): def __init__(self): self.word2idx = {} self.idx2word = [] def add_word(self, word): self.word2idx[word] = len(self.idx2word) self.idx2word.append(word) def get_idx(self, word): if word not in self.word2idx: raise KeyError("...
26dafa923e74470d7c12af2fe2b6eaf4eedc1387
06a42f583fe5f156980f336adcc9ec12ba9a59fd
/format_convert.py
621b4f5a96f0083322fa10e89d11652bea92a709
[]
no_license
Jean13/convenience
8eb98103b937fc7660c26f660c6acb5558a4aa6a
623014e6a5d0c139a87beca78182bc6bfd1bd679
refs/heads/master
2021-01-20T10:30:36.114414
2017-03-30T19:17:15
2017-03-30T19:17:15
83,933,475
3
0
null
null
null
null
UTF-8
Python
false
false
2,444
py
format_convert.py
#!/usr/bin/python # Converts to hex, ascii, decimal, octal, binary, or little-endian. import sys def asctoHex(string): in_hex = string.encode('hex') return in_hex def toLittleEndian(string): little_endian = '0x' + "".join(reversed([string[i:i+2] for i in range(0, len(string), 2)])) return little_endian d...
713c4853c4162485ce79261c5363c603d2487aba
b851a63730b29078980a3102bcd1dd835891dbfb
/tests/venmo_api_test.py
abb6911cd010ec6403a976cd2f6fb232fdf9a868
[]
no_license
azai91/alfred-venmo-workflow
4a662331cb05d6b545cab41a9cc4f75ed63732ef
0c8746c3a6e1dd2265084d0bd06d27ac44782f8e
refs/heads/master
2021-01-22T15:34:20.099721
2015-12-14T17:07:24
2015-12-14T17:07:24
46,210,396
11
0
null
null
null
null
UTF-8
Python
false
false
6,769
py
venmo_api_test.py
""" Unit tests for Venmo API """ # pylint: disable=protected-access, invalid-name, unused-argument import unittest from src.venmo_api import Venmo, wf import httpretty from src.config import TOKEN_URL from tests.sample_data import sample_friends, sample_user from src.config import FRIENDS_URL, LOGIN, LOGOUT, CLEAR_CA...
97791d00c3b944df422a04ec551eae7337cc20bc
e6c01a77e4de138e2d14a3167a3d2a88990f11fd
/gleecog/__init__.py
6ce6da7b32be7b709805112631b35443c7ca4274
[]
no_license
LordWizardy/GleeCog
93afab4c86f61cee16e450041c963725ba4d4812
11a6fbdd67c26c4001de08482823e25c472127e6
refs/heads/master
2021-07-10T20:52:05.744449
2020-10-27T10:23:31
2020-10-27T10:23:31
208,757,764
0
1
null
2020-10-27T10:23:32
2019-09-16T09:12:37
Python
UTF-8
Python
false
false
80
py
__init__.py
from .gleecog import Gleecog def setup(bot): bot.add_cog(Gleecog(bot))
8652e56b41d2e454a74397dcbc6cdd0483693557
210a5f0bebdf9087a57e1edaa1c48b25661d528d
/study_distractor/s_data_storage.py
a5f3a13d9cf4787f6b78876e768ae7e17d98c736
[]
no_license
Qian-Han/HapticRing
8f88242d1b45bb9f78c1b22cb3f4b04269d71c29
66004676106d67158da190d46caf4a7ef66a8863
refs/heads/master
2021-06-22T11:10:22.094641
2017-08-21T22:25:55
2017-08-21T22:25:55
97,230,980
0
1
null
2017-07-14T12:19:50
2017-07-14T12:19:50
null
UTF-8
Python
false
false
2,206
py
s_data_storage.py
import csv import numpy as np from threading import Thread import time class data_sample(object): def __init__(self, timestamp, angle, force, event, block, trial, profile, count, duration, profile_result, distractor, distractor_result): self.timestamp = timestamp self.angle = angle self.force = force #...
5a569aba985167f92272743699cfa4562f2d0c51
8f6aa9ac9c8c2e409875bbf36fbc49b3eb37d88b
/enthought/units/frequency.py
b8c45316f7997fc1cb3219fec398537870e9f7d6
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
enthought/etsproxy
5660cf562c810db2ceb6b592b6c12274bce96d73
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
refs/heads/master
2023-03-27T04:51:29.297305
2020-12-02T09:05:18
2020-12-02T09:05:18
1,632,969
3
1
NOASSERTION
2020-12-02T09:05:20
2011-04-18T22:29:56
Python
UTF-8
Python
false
false
92
py
frequency.py
# proxy module from __future__ import absolute_import from scimath.units.frequency import *
d5af71b909cefe25f5a37d4363f5e315e61f12fc
d8741c569e4e0878ca2738f9fd76d93a9d013351
/message_auto_subscribe_avoid_notification/models/mail_thread.py
5e8319ecc74728585ad60df5fb6e9a7347570e68
[]
no_license
SDIsl/sdi-addons
66b950da1ba6d469da5175b87d2654b13c91f274
911fc5d67eafc306ca3fab057c092ae1a0e80760
refs/heads/12.0
2023-09-03T15:46:11.390957
2023-06-27T12:01:40
2023-06-27T12:01:40
173,916,697
2
5
null
2023-08-07T09:55:28
2019-03-05T09:31:59
Python
UTF-8
Python
false
false
868
py
mail_thread.py
############################################################################### # For copyright and license notices, see __manifest__.py file in root directory ############################################################################### from odoo import api, models class MailThread(models.AbstractModel): _inhe...
81bc6612c3504129cbac92254871e1222096898e
3637fe729395dac153f7abc3024dcc69e17f4e81
/reference/ucmdb/discovery/NNM_Integration_Utils.py
84b6194d83034880d097aa26cd20863cfd190259
[]
no_license
madmonkyang/cda-record
daced6846c2456f20dddce7f9720602d1583a02a
c431e809e8d0f82e1bca7e3429dd0245560b5680
refs/heads/master
2023-06-15T08:16:46.230569
2021-07-15T16:27:36
2021-07-15T16:27:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
49,267
py
NNM_Integration_Utils.py
#coding=utf-8 import logger import netutils import modeling import sys import traceback from modeling import NetworkInterface, finalizeHostOsh from com.hp.ucmdb.discovery.library.common import CollectorsParameters ## Java imports from appilog.common.system.types.vectors import ObjectStateHolderVector from appilog.comm...
81e70950f9f91df7dc9ab6518ba4b5c009682425
96ea3f8f0e17a220af7ad16c3db52b7d4a1e8bac
/CH02/Numbers.py
849dc50fb29e9c90313f2c315b22880ff965e1e0
[]
no_license
conanwhf/ML-Action
5c653a4d0c7ef70e59f211c1b776633cca598329
ddfa712190724269321833a7f6602de42b811c7d
refs/heads/master
2021-06-29T02:31:02.460113
2017-09-19T18:51:34
2017-09-19T18:51:34
103,661,422
0
0
null
null
null
null
UTF-8
Python
false
false
2,573
py
Numbers.py
#!/usr/bin/python3 #-*- coding:utf-8 -*- from KNN import * import os DIR_TRAINING_DATA = "digits/trainingDigits/" DIR_TEST_DATA = "digits/testDigits/" #DIR_TEST_DATA = "digits/mytest/" EACH_DATA_SIZE = 1024 '''将txt数据读取为数组''' def img2verctor(dir, fn): # 读取文件所有内容 with open(dir+fn, 'r') as f: data = f.readlines() ...
99bd9b1ab544eabcfe2d7ce1f694565432994f22
a0db69ddb08f229519ec89e699ffb6c575ed7bf5
/addpoint/category/models.py
f963cda0067fec8aa7c8ed5cf49519cfbdc46e25
[]
no_license
ninsgosai/photo-project
db814fe8850a87d49c98f1fa3347b5e60577a3f7
abeb5b1f00701d4716e70e1b8b0ea2815586167a
refs/heads/main
2023-01-07T01:09:52.911010
2020-11-18T09:41:04
2020-11-18T09:41:04
313,877,849
0
0
null
null
null
null
UTF-8
Python
false
false
588
py
models.py
from django.db import models # Create your models here. class Category(models.Model): cat_id = models.BigAutoField(primary_key=True) cat_img = models.ImageField('Category Thumb Image', upload_to='catthumb/') cat_name = models.CharField('Category', max_length=255, unique=True, null=False) created_date ...
76347a54b8e4f540ad3929e109be05e112c67a2d
9b132fd45241b4c477771c073c285e9329670e17
/chmodsnoop.py
ba4def5d03df29ebae33e326a7af6af700444f7c
[]
no_license
quinn-han/chmodsnoop
bd053be9c156a50c9f6fbd39c67d9c8ea14bd4c2
c44338320f0212fe16f21a007f3576c4f444fcb3
refs/heads/main
2023-05-08T07:10:01.495020
2021-05-28T06:15:46
2021-05-28T06:15:46
371,592,114
0
0
null
null
null
null
UTF-8
Python
false
false
4,129
py
chmodsnoop.py
#!/usr/bin/python # @lint-avoid-python-3-compatibility-imports # # chmodsnoop Trace chmod() syscalls. # For Linux, uses BCC, eBPF. Embedded C. # # USAGE: chmodsnoop [-h] # # Copyright 2021 Zhongqiu Han 13301259660@163.com. # Licensed under the Apache License, Version 2.0 (the "License") # # 27-may-2021 Zhon...
6fe9c6c2c2a76360132444d71b89dc6a51bc90a9
f64ae1c1da91b2b22bc6cb17e425df2283e51be1
/python 练习案例/wallpaper/capturewechat.py
deb36d5b951ed012d433652168bc90f620b7ed9b
[]
no_license
isLeeTender/GitRepository
7d8347e216c05d5c0328f911d6226f5fc48c1965
9114c560e99c8f84dc6cb5b9984a6de6cadfcbeb
refs/heads/master
2021-01-19T19:08:39.028189
2017-10-24T03:06:07
2017-10-24T03:06:07
101,181,992
0
0
null
null
null
null
UTF-8
Python
false
false
1,800
py
capturewechat.py
# -*- coding:utf-8 -*- import itchat import re import jieba import matplotlib.pyplot as plt from wordcloud import WordCloud,ImageColorGenerator import numpy as np import PIL.Image as Image from os import path from scipy.misc import imread itchat.auto_login() friends = itchat.get_friends(update=True)[0:] #获取好友性别信息 ma...
d1d50946597eb3a09e4c7009257ab08ae081892d
7ec4de9ac367fe8a87c15141166b2e5e7acbfd8d
/scripts/control_core.py
a4e17acaa7d659082bca9178b8a2e18965973f5c
[ "BSD-3-Clause" ]
permissive
anticlql/rdda_ur5_control
70ead9ec307cecedd336c0842692d1e3f3f8d775
309f381b9a3fc975b9d6c70de35fc778d3a1064f
refs/heads/master
2023-05-30T20:12:40.922386
2021-06-24T08:02:39
2021-06-24T08:05:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,384
py
control_core.py
#!/usr/bin/env python import os import ast import copy import subprocess import time import socket from multiprocessing import Manager, Process import rosnode import rospy from ur5.ur5_controller import Ur5Controller from rdda.rdda_comm_bridge import rdda_proxy_control_in_port, rdda_proxy_control_out_port, rdda_repe...
18adc0f318712299bb5419a0b18809d442836175
b61f5c84892480030e81a57ecbe71c8b90a8a6d5
/fmri_analysis/fmri/nilearn_learn/fmri2001.py
e6556f7fbba87d3b475cfb13e19f7dd6daffa4a3
[]
no_license
FF120/python
fea04dd36ecd813125e573e63309a28cccd3111b
47b03b429cc74f5c8a9ec7d7c8a224387d5a201e
refs/heads/master
2021-01-17T06:09:47.461820
2016-07-28T13:20:01
2016-07-28T13:20:01
49,636,134
1
0
null
null
null
null
UTF-8
Python
false
false
3,166
py
fmri2001.py
# -*- coding: utf-8 -*- from nilearn import datasets from nilearn.input_data import NiftiMasker from sklearn.svm import SVC from sklearn.cross_validation import KFold from sklearn.cross_validation import cross_val_score from sklearn.cross_validation import LeaveOneLabelOut from sklearn.cross_validation import permutati...
0f65c5c040e173bb8a215c4fa3b0da428f88a93e
8d62d6cd0b93fc96e5d924a6c511f1aa6c923110
/accounts/migrations/0005_trip_otp.py
4b2c3dcc37d5c0df852adfe4bd7307b64092490f
[]
no_license
angshumukherjee100/WebTechProject
31c773eb30a8f6f0552fe5d860daccb797d332da
28e4b103e9636f3493b14e82836841cbba1ce4a2
refs/heads/master
2020-04-04T10:30:06.264211
2018-11-20T12:06:39
2018-11-20T12:06:39
155,857,125
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
0005_trip_otp.py
# Generated by Django 2.1.3 on 2018-11-17 08:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0004_trip_state'), ] operations = [ migrations.AddField( model_name='trip', name='otp', ...
e24b5a2a042fda13abdb24384747e19a023d5759
cd23ba6f25b5a8d0e99babdcc1d4b0824bb0cbb7
/Compiler/Compiler.py
f050fc60a733ea242a1b339c768d4ba2c84d8075
[ "MIT" ]
permissive
stevexyz/BF-it
5984957c245d2011adaa855070426b6e28fac5b4
42fdbc96e641b51120f0fe74d7fccbd2d3d04fd1
refs/heads/master
2023-01-06T04:01:28.895662
2020-11-07T18:04:28
2020-11-07T18:04:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,810
py
Compiler.py
#!/usr/bin/env python3 from Compiler.Lexical_analyzer import analyze from Compiler.FunctionCompiler import FunctionCompiler from Compiler.Parser import Parser from Compiler.General import * """ This file is responsible for creating FunctionCompiler objects and global variables objects And finally return the code of t...
46da241c119c13dee65f2f80a7da44b5e5ec5855
b36bc964855dfda1e73275bdb1dab00580943854
/train.py
9d9fc363724e3017958aaf87b4405aa8fd7ae8a7
[]
no_license
waics/tianchi_gongye_lvcai
5c90e424cc909b4dd89b5b6b9f703abab0fe66d9
3f28fe3885c31e79be788ec2e0df10a53cf7c588
refs/heads/master
2023-03-17T07:58:55.213356
2018-10-28T13:43:58
2018-10-28T13:43:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,298
py
train.py
from __future__ import print_function from keras.backend.tensorflow_backend import set_session import keras from keras.models import Sequential from keras.layers import Dense, Dropout, Flatten from keras.layers import Conv3D, MaxPooling3D from keras import backend as K from keras.utils import plot_model from keras.lay...
723878f6f5ba66aab94e42e149a06934c2bc5c77
8dd6599db5f96dd6334afc501ef87b83284131e7
/lab2/z1.py
d9261483dfdf4654e7897921f53fa6aa50aff80c
[ "MIT" ]
permissive
iCarrrot/SI
3e0703172071a52c89fc11fa5fc54c3a5cca3f82
35f29e46902d6704a83e376fe58027954859f8a3
refs/heads/master
2021-04-25T06:48:29.995901
2018-06-08T13:17:42
2018-06-08T13:17:42
122,226,062
1
0
null
null
null
null
UTF-8
Python
false
false
5,679
py
z1.py
from random import randint import time start_time = time.time() # from time import sleep def opt_dist1(row, size): if(len(row) == size): return size - sum(row) if(len(row) < size): print("ERROR za duży kawałęk") print("ERROR+5") return len(row)+5 suma = sum(row) change ...
05844e2dedb0d8bdc1672a5edc722181fa89cd63
07c75f8717683b9c84864c446a460681150fb6a9
/2.Tornado_cursor/days02数据模型/demo04模块化入门/models_manage.py
4b0fe84064ff2defab34f98c535e16d2865d3ff5
[]
no_license
laomu/py_1709
987d9307d9025001bd4386381899eb3778f9ccd6
80630e6ac3ed348a2a6445e90754bb6198cfe65a
refs/heads/master
2021-05-11T09:56:45.382526
2018-01-19T07:08:00
2018-01-19T07:08:00
118,088,974
0
0
null
null
null
null
UTF-8
Python
false
false
725
py
models_manage.py
""" 数据模型管理器模块 通过该模块管理所有数据对象的增删改查操作 """ from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker class BaseManager: """ 基础管理类型 """ def __init__(self, engine_str, **kw): self.engine = create_engine(engine_str) Session = sessionmaker(bind=self.engine) self.ses...
aacb6b359d7f1dce5f70c5d0ce553b172bfcdba4
17690076dfc8310d7a5a9e4dd4e746674e6ce529
/mmovies/migration/loaders/tests/test_movies.py
551eb130b68e7e96ecea36c3888210292eac5447
[]
no_license
trenthaynes/mmovies.migration
23e1beff5d1e4d94c4d942d995ba6087aca3de70
95ac43c1fdd6254193c0bb488273e58a7e882ff4
refs/heads/master
2021-05-27T21:17:04.912019
2014-01-15T22:03:34
2014-01-15T22:36:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,777
py
test_movies.py
# -*- coding: utf-8 -*- from mmovies.migration.loaders import Year from mmovies.migration.loaders.tests.base import LoaderTest plaintext = u""" movies.list 6 Jul 2012 ----------------------------------------------------------------------------- MOVIES LIST =========== !Women Art Revolution (2010) 2010 "!Next?...
928b18c910e121bbd461b317a81805d0908436ef
b07ff85741ba7d2faee76e5640de9fa45bd9f2cc
/LeetCode/Tree/diameter_of_binary_tree.py
8d9508db8dc651a1707c85ab18e51d25f1097568
[]
no_license
yankee624/Algorithm-practice
6d77afa4fad65e2e463a705ed994d3862b122ec1
7b3d8a8b9faff549531885622f144d155dcc8e60
refs/heads/master
2021-11-06T16:17:18.559983
2021-10-15T15:31:04
2021-10-15T15:31:04
128,718,769
0
0
null
null
null
null
UTF-8
Python
false
false
1,102
py
diameter_of_binary_tree.py
from typing import * # Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def diameterOfBinaryTree(self, root: Optional[TreeNode]) -> int: def calc_height(node...
b47a25df4f12564503082c2ad557d446aa2a4ec7
bd1c694ec9d573fefeeb25f952adfc2ce17aa093
/webserver/columbus-master/static/js/dummyData.py
8c562a3ac28d348967749bfc0ff14a13a9b6fa34
[ "MIT", "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
maxr1876/Radix
e3ec45bb640075fcadec02a5286ab1171692bfcb
bf9a5470908ea0823c8398565086b1e6b960c73b
refs/heads/master
2020-04-08T09:58:58.520667
2018-12-27T20:42:28
2018-12-27T20:42:28
149,193,484
0
0
null
null
null
null
UTF-8
Python
false
false
478
py
dummyData.py
import random def createLine(line): line = line[:-4] line +=', "avgCO2":'+str(random.uniform(390,410))+', "avgHumidity":'+str(random.uniform(.6,.85))+',"avgTemp":'+str(random.uniform(80, 85))+"}}," return line out = open("plots.json", "w+") infile = open("Plot_Center.json", "r") lines = infile.readlines() out.wri...
661522630da829b5fb6b60cc1f27e6ed39dbf925
677a97d507ce6a155dcd3dbdfcc3d041f5587a61
/docs/conftest.py
d5288c0df8c241038bbacd4225abf062256f314e
[ "MIT" ]
permissive
pauleveritt/viewdom
d8f9e7c79f9aeb9491320824ebae1c743b4d464b
afd5de2e66140737fdf8b01d46957114179bcd7f
refs/heads/main
2023-05-25T05:47:15.337378
2023-02-22T11:48:12
2023-02-22T11:48:12
250,838,028
6
2
MIT
2023-05-23T03:12:38
2020-03-28T16:07:35
Python
UTF-8
Python
false
false
791
py
conftest.py
"""Setup Sybil and other central testing.""" from os import chdir from os import getcwd from shutil import rmtree from tempfile import mkdtemp import pytest from sybil import Sybil from sybil.parsers.codeblock import PythonCodeBlockParser from sybil.parsers.doctest import DocTestParser @pytest.fixture(scope="module"...
edd8d0483fb238d65337ee45192db4f23cda72fb
6f9a29946dc107cd44d88cf07c9d715ebe4208be
/source/conf/home_conf.py
661c851efe491bd571b7bd850d6d0a98faa65c7c
[]
no_license
cash2one/gongzhuhao
66bb14439a2265175bdd4b2f585456fcf47922bf
0596bcb429674b75243d343c73e0f022b6d86820
refs/heads/master
2021-01-18T15:38:37.258737
2015-10-28T09:13:33
2015-10-28T09:13:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,130
py
home_conf.py
#encoding:utf-8 __author__ = 'wangjinkuan' from collections import OrderedDict packages_position = OrderedDict() packages_position['essence'] = '本月精选' packages_position['upper_first'] = '上排左' packages_position['upper_second'] = '上排中' packages_position['upper_third'] = '上排右' packages_position['down_first'] = '下排一' pac...
9f292ed35835cba1702e6e23d0498213620bba08
255be32676999cf9d6e221a2b71e82d74bd762d1
/database.py
04f824db16b5a4b64930d8d274bad10fcd3fad5d
[]
no_license
NUsav77/Near-Earth-Objects
aabc8d306a67b6c2b96b1595712d04055418bb9f
0751c884b2c5acbca917ea70c40314cb76c984a7
refs/heads/main
2023-04-04T05:36:02.610755
2021-04-11T05:59:08
2021-04-11T05:59:08
354,199,993
0
0
null
null
null
null
UTF-8
Python
false
false
7,662
py
database.py
import json import csv from collections import defaultdict, OrderedDict """A database encapsulating collections of near-Earth objects and their close approaches. A `NEODatabase` holds an interconnected data set of NEOs and close approaches. It provides methods to fetch an NEO by primary designation or by name, as wel...
31f125e9eeb882f211875a74f6ddfd40e4d4a499
c3c6b97d125353f9fc67d57f9fdd3c57de9aee11
/path-sum-ii/path-sum-ii.py
4ba0b5520d769fd26da0e5d78ac5779a9af8b2d6
[]
no_license
mahir-d/Solved-LeetCode-problems
5c05e354f54885c0085b0cd573ec0274755ca03f
fb21200475cdecfe969ebed2423d8d5ccb46bdcd
refs/heads/main
2023-08-10T17:35:28.531094
2021-09-26T22:00:15
2021-09-26T22:00:15
321,485,372
0
0
null
null
null
null
UTF-8
Python
false
false
1,146
py
path-sum-ii.py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def pathSum(self, root: TreeNode, targetSum: int) -> List[List[int]]: if not root: ...
09f423aa556f8019b7d9e5e557deb0aafd48c5d4
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/125/usersdata/215/32640/submittedfiles/ap1.py
a3820f8ec556da943061fbadeb1e204434ff9562
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
267
py
ap1.py
# -*- coding: utf-8 -*- A=int(input('digite o primeiro num')) B=int(input('digite o primeiro num')) C=int(input('digite o primeiro num')) if (A<B) and (A<C): print (A B C ) if (B<A) and (B<C): print (B C A) if (C<A) and (C<B): print (C A B)
7734b7d417cdac4a44b0bf090aa0b3d6b5e3d783
70cfe9d04a1da80d8686487a4bd37975ba22a48d
/Mouse_game/main.py
f1b9c0c40b8ed4a87f5a3374e626a37a794daa55
[]
no_license
Alauan/Pygame
f6a91acba66a0b40f2064c93a7042bfa3554f28f
54c7d5f9152c519b511283ee4b5c1cbe932a7b94
refs/heads/main
2023-03-02T08:54:25.740260
2021-02-11T21:29:21
2021-02-11T21:29:21
325,886,141
0
0
null
null
null
null
UTF-8
Python
false
false
1,084
py
main.py
import pygame as pg from time import time classes = __import__('Classes1') Sand = classes.Sand pg.init() # janela width = 400 height = 400 window = pg.display.set_mode((400, 400)) # Cursor: diamond, arrow, broken_x, tri_left pg.mouse.set_cursor(*pg.cursors.tri_left) # Sand cor = (250, 250, 200) sand = Sand((width/...
63c5894542e682a88fb44bef3e1bd9013ef898b2
d3006a069f12a9c7a3cb49e412a9e679930bc94a
/backend/apps/settings/views.py
98d9845271d9761e843a88c75722c999375f2d6d
[]
no_license
alexmon1989/keiko
906e60328bc86f58cae9d9a0f9266869ed29f99a
45cc0d770ddd93129b8c51727a683cd15d0afad4
refs/heads/master
2022-12-12T08:00:31.843565
2019-08-13T11:50:17
2019-08-13T11:50:17
168,360,214
0
0
null
2022-12-08T11:58:54
2019-01-30T14:53:11
CSS
UTF-8
Python
false
false
382
py
views.py
from django.views.generic import TemplateView from .models import RobotsTxt class RobotsTxtView(TemplateView): template_name = "settings/robots.txt" content_type = 'text/plain' def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) context['robots_txt'], create...
78406ac79c4e4cfd433eef542e2149965d49f532
94047d3a2f5718bf57694f8053fbf70baa778864
/test/integration_test.py
e138f8346978dd4635a026bfeb3847d43c005cf4
[]
no_license
durovda/mind_map_parser
d8484728f8b23971b1da8dadb5f4d9856f76927b
0af819e8f2e8ccf390ff2d43a1feb2845d9fdcec
refs/heads/master
2022-03-13T13:28:02.555370
2022-02-25T21:40:08
2022-02-25T21:40:08
220,003,002
0
0
null
null
null
null
UTF-8
Python
false
false
364
py
integration_test.py
import text_utils from mind_map_parser import pars_map_to_xml def test_real_suite(): pars_map_to_xml('fixture/01_mind_map.txt', 'results/01_test_cases.xml') expected_lines = text_utils.getFileAsLines("fixture/01_expected_test_cases.xml") actual_lines = text_utils.getFileAsLines("results/01_test_cases.xml"...
f6bec3129571d4c09505ddbb4746016ba8e8b2ef
6fcca18a5f9a52c322295326f0138800023835b6
/steps/steps.py
85683dd58884d59c3f71c3a117dba66c5950c248
[]
no_license
MikaelLuz/TesteWeb
56d0cf049026b3c57e074aee459e6067770cde01
66459b4852e537995ddc402d73c417a36eb82ac0
refs/heads/master
2020-03-19T00:27:19.535001
2018-05-30T18:26:31
2018-05-30T18:26:31
135,482,079
0
0
null
null
null
null
UTF-8
Python
false
false
1,570
py
steps.py
''' Created on 29 de mai de 2018 @author: mconceicaos ''' from behave import * from time import sleep from selenium.webdriver.support.ui import Select from django.db.models.expressions import When from Pyautomators.Pywebautomator import Web from Pyautomators import Pyambautomator @given("Estou na tela main") def ste...
b8dfbcb7a72b7a10ffac48c34bedf23d04554968
d2efd76108968bdf206b98e861b51e79e0814b83
/probdists/Poissondistribution.py
6c0252355595ab5d3c8c496c8af7a56828dd6e54
[ "MIT" ]
permissive
saeyma/probdists
6d1bce530c5c3e6124805c2f50d9091b5041769e
3bcde5be625fd26340de9b7fe702f309b4fd4b06
refs/heads/main
2023-08-25T21:53:10.887709
2021-10-26T16:53:14
2021-10-26T16:53:14
415,187,294
0
0
MIT
2021-10-09T03:07:29
2021-10-09T03:07:28
null
UTF-8
Python
false
false
4,030
py
Poissondistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Poisson(Distribution): """ Poisson distribution class for calculating and visualizing a Poisson distribution. Attributes: mean (float): the mean value of the distribution stdev (float): the st...
6f79e6e29eadf0c2833d49347aa9f1f8823228e3
94f30ae06380fe751ce2a0afe9c5572b656ac00c
/_git_diff.py
dedb2bc4c05d93cb6ec70968fb64f5a767f503f6
[]
no_license
mullaryv/python_study
7f85dba086c2671fd2e9072085f65f101f097d61
432709c74bc4a3212dc6624f1961886687dd31b4
refs/heads/master
2021-05-15T01:40:56.534851
2017-11-16T18:03:33
2017-11-16T18:03:33
24,244,772
0
0
null
null
null
null
UTF-8
Python
false
false
1,624
py
_git_diff.py
# formats deployment log into some nicer view import sys #read file name, open file for reading if len(sys.argv) < 2: print (' !!!Error: a name of the file with Git differences is absent.') exit(-1) fname = sys.argv[1] fin = open (fname, 'r') # list to contain attributes' components attributes = []; # spl...
9a05823d52ff9f8d814db2a60bc79775d360f47d
03981e5b6d8bfc6954ba7f757b4492d51ace2262
/integral.py
28a199654c8d469fe2bba44b3baa69a96f94a581
[]
no_license
bulat-f/Computational-science
f21a94b1e7dc6c05a54f25e7702e2c39064c9ae6
465ee627672b22cda02d9c66a0b25c56d8f9dd47
refs/heads/master
2021-05-30T05:39:03.017951
2015-05-14T04:45:34
2015-05-14T04:45:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
736
py
integral.py
import math def integral(func, a, b, N, method_name): possibles = globals().copy() possibles.update(locals()) method = possibles.get(method_name) sum = 0 h = (b - a) / N for i in range(0, N): sum += method(func, a + i*h, a + (i + 1)*h) return sum def left_rectangle(func, a, b): ...
2a59396073eb35b46216b6521fdecf59ff5d5066
a779e1932703de2f08a9975c7ccbc7b53f9a7b8e
/src/postfix/parser.py
8035ac5bf471e53307189866c01ca7aca392f538
[ "MIT" ]
permissive
thebongy/PyGraph
553e31127537004d9bf0a9a4c4d5a99b8fb4920e
e6a011c75352d15c727dca3d1e33cafa62ef0e81
refs/heads/master
2021-05-16T12:07:18.974691
2018-01-23T14:32:32
2018-01-23T14:32:32
105,182,323
1
2
null
null
null
null
UTF-8
Python
false
false
6,501
py
parser.py
''' Classes which handle the parsing and evaluation of a string expression ''' from operators import BINARY_OPERATORS, UNARY_OPERATORS from functions import FUNCTIONS from constants import CONSTANTS from decimal import Decimal # For floating point calcluations from components import * from stack import Stack,UnderflowE...
a429f3323385a200a3d634ef4ab235ae5856483e
49c4733da726b3ffdf7baa26842bb70f83cd6759
/images.py
5e0c990708c2f9a05686d8da3a6b708b74308a59
[ "MIT" ]
permissive
bcc0421/BigData_Web
60617eed6a842a3fd4ea84ea819cf9d150f76457
a8c5eee38d10213062a2ba3cb7fae0053a33958e
refs/heads/master
2021-01-21T12:39:37.857319
2013-11-11T02:40:58
2013-11-11T02:40:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
327
py
images.py
#coding:utf-8 import requests import conf class Thumbnail: def GET(self, id): res = requests.get(conf.locate('/attachments/thumbnail/%s' % id)) return res.content class SourceImage: def GET(self, id): res = requests.get(conf.locate('/attachments/source/%s' % id)) return res.c...
c2c49ebc516016f8f49d9e44b0f8e6a43f7ecb1d
58dc2a2cb352483304c8122f8ed669ba694a65da
/number-game/model.py
75731726ce3ddaecedb71b46e5260bcf77f9b764
[]
no_license
JanathonL/language-grounding-experiments
c05f43fcb3280535045fa319085875c177f06713
d435d51afb76b8c30c9fd23706bb05c538adbc27
refs/heads/master
2021-06-28T04:51:23.407559
2017-09-15T09:44:46
2017-09-15T09:44:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,867
py
model.py
import torch import torch.nn as nn import torch.nn.functional as F """ Format: input vector: (kn + 1) output vector(prob): (k) """ class Receiver(nn.Module): def __init__(self, n, k, hid): super(Receiver, self).__init__() self.n = n self.k = k self.hid = hid self.net = nn....
09f0db6b7042c3e357891e06728c28421995e019
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2291/61406/314491.py
d2df09a84f06822e5d314b09be9c2cf9ca8d814c
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
933
py
314491.py
class TreeNode: def __init__(self,value): self.value = value self.lch = None self.rch = None def setlch(self,node): self.lch = node def setrch(self,node): self.rch = node def weights(root,h): if root.rch is None and root.lch is None: return root.value*...
fe5baa485e1ac8dc8b23430a863c3250740ff63f
238ddea0877ecc5e8b3a92567db28d22f7c35de0
/superlists/functional_tests/base.py
694557751142a796479cdaae62421f6e99551681
[]
no_license
ho23a/ToDo-List
c7833ac9fc8e1af8b15a8b8bab26a828e9ccdb20
2438dbe0a10f5cd1a23ff8870174e9e1edc4b72f
refs/heads/master
2021-01-21T02:53:12.226053
2016-01-15T16:37:56
2016-01-15T16:37:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,345
py
base.py
from unittest import skip from django.contrib.staticfiles.testing import StaticLiveServerTestCase from selenium import webdriver from selenium.webdriver.common.keys import Keys # import unittest # inside () is extends class TodoFunctionalTest(StaticLiveServerTestCase): def setUp(self): self.browser = webd...
4cf82e20a2df6d550e0ef137e411f0020676d632
44e48d30d49d2a398bda9ef705ed2a803dbbbc25
/2017/J/polygon.py
2a7963f51e10bdc6e7c43c0278e9facd3703f1a8
[]
no_license
sagidM/it_planet_java_contest
c81fc12192662d9af924ddeb8e949887f0cf1175
554322797f7a74d6b74e00502828882f1cb28090
refs/heads/master
2021-09-10T10:05:30.385162
2018-03-24T10:33:03
2018-03-24T10:33:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,515
py
polygon.py
def rotate(a, b, c): '''ax*by - ay*bx''' if (-3, 1) == c and ((((1, 3) == a and (1, 1) == c)) ^ ((1, 3) == c and (1, 1) == a)): print('here') return (b[0]-a[0])*(c[1]-b[1]) - (b[1]-a[1])*(c[0]-b[0]) points = [ (0, 0), (3, 0), (1, 1), (2, -2), (-3, 1), (-2, 2), (1, 3), (-2, 0...
ab8b3a2144698b70aab42b5c21b3f65d033cc53a
ff876fc79cb20b2ded47e2c5469629951c3a5642
/src/shell/__init__.py
5518f1bf862ff609fde323dfbbfd396be0154fa2
[]
no_license
sirkonst/MyPyShell
8c60a36a655f12784db054410ab650f17a9e708d
a35f7b0a20b9380e5b29ee7e628fc9e16687b08d
refs/heads/master
2021-01-25T09:00:25.477518
2010-04-16T09:02:26
2010-04-16T09:02:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
496
py
__init__.py
# -*- coding: utf-8 -*- """ Пример использования модуля: from shell import ShellError, shell as sh try: # run one command and print stdout print sh('ls -l') # run two and many command shell('ls -l', 'who') # run two and many command and print stdout print '\n'.join(sh.out for sh in shell('ls ...
c721a7e7dbc2549160e18b125598d4624d1677ab
7830c2afc2ae1ac2e77c0838bb0c191bb4316cd8
/tcp_client.py
3d3bb9bdd6508413f1069cd7914f01d6fca78740
[ "MIT" ]
permissive
aeroju/PyPunchP2P
2b6a6b104af6bde68d9f074d9ecc3d09449d89b8
b4c27fea6cd33c79406fce99b7a58b253d6d5a99
refs/heads/master
2021-01-07T21:16:41.540827
2020-02-28T02:59:42
2020-02-28T02:59:42
241,822,550
0
0
MIT
2020-02-20T07:40:35
2020-02-20T07:40:34
null
UTF-8
Python
false
false
6,536
py
tcp_client.py
import socket import threading import time import logging from message_wrapper import * logger = logging.getLogger('tcp_client') logging.basicConfig(level=logging.INFO,format='%(asctime)s - %(message)s') class TcpClient(object): def __init__(self,server_addr,server_port,timeout=5): self.server = (server_...
c510a9f778cc070495f5b4196363b98cad1a1e5b
703ef24cbdae2dcb4581d27f9a709637c2e855fe
/Task2/Task2.py
cf6a80e19e1a7a08194b1373a543cf87d3756c58
[]
no_license
Lazareva-Katya/itransition
a340081b22d43c50cd130ea9c6f77b1b8329e5eb
04af69e2da712c726cb5239cad9113c6099e56ba
refs/heads/main
2023-09-04T12:51:50.297933
2021-10-29T03:50:19
2021-10-29T03:50:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
432
py
Task2.py
import os import sha3 path = 'D:\\Itra\\Task2\\task2' filelist = os.listdir(path) my_list = [] for name in filelist: file = open(path + '\\' + name, 'rb') my_list.append(sha3.sha3_256(file.read()).hexdigest()) file.close() my_list = sorted(my_list) ts = my_list[0] for i in range (1, len(my_list)): t...
35ae971e5b74ef28818cb918880cf49ed60659b8
a16fc25b421889eabd1f4e204ba40a9c624940c5
/leafletwidget/__init__.py
8d1452d01df58689dfb76df7ff08cc48f4116931
[ "MIT" ]
permissive
sgillies/leafletwidget
115d830c15d52d3bd768b3e6357768f5311cd596
05aa98b5260d078739dfd78b5611b466b65be29c
refs/heads/master
2020-12-11T02:02:03.954962
2014-05-11T05:18:14
2014-05-11T05:18:14
19,625,855
1
0
null
null
null
null
UTF-8
Python
false
false
254
py
__init__.py
from .leaflet import ( Map, Marker, TileLayer, ImageOverlay, Polyline, Polygon, Rectangle, Circle, CircleMarker, GeoJSON, LayerGroup, FeatureGroup, DrawControl ) from .notebook import initialize_notebook, get_static_path
7bb2f2694565fd4965108cf50f5ed31b5ca38e91
ed1b6548a79f7af25d5cf129ec5da43668d763da
/reverseCount.py
a541db148020a57eb973defca100dbbc6fef588b
[]
no_license
nightrain11/algorithem-Test
d1da8d97bf0fd8b6590de9ca8d74d9cc4b17cfe3
a02e50006d45938b6a8eeedf237bb9b6093fc81a
refs/heads/master
2020-08-09T22:37:30.505533
2019-10-10T13:41:40
2019-10-10T13:41:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
913
py
reverseCount.py
def reverseCount(array): if array is None or len(array) <= 1: return 0 return mergeReverse(array, 0, len(array) - 1) def mergeReverse(array, left, right): if left == right: return mid = left + (right - left) // 2 mergeReverse(array, left, mid) mergeReverse(array, mid + 1, right...
5c507e27b7fbba7a8b74c160052c7b4769efa9b4
acdd7574ced8d61bd0cec0c80529632d479fefa8
/utils.py
4873cc1cf4519faec5806d89b755c2ac02d363ab
[]
no_license
choiw-public/tfrecord_builder
21c779992d5a2c18d0103ffcc5a3cbbddcd078dd
6d8958503821543a7731eb8469810ab77cd9db6c
refs/heads/master
2022-08-21T15:07:39.033338
2020-05-25T20:55:20
2020-05-25T20:55:20
266,834,710
1
0
null
null
null
null
UTF-8
Python
false
false
4,697
py
utils.py
import collections import tensorflow as tf import os import re import math class ImageReader(object): """Helper class that provides TensorFlow image coding utilities.""" def __init__(self, image_format, channels): """Class constructor. Args: image_format: Image format. Only 'jpg', ...
307e7376e63d0a1656af1130c7a826167137ba7d
cddf00bb532aa52b006037823fde9739fc58ee4c
/22.212/SN/slab.py
bc5ab1bc16b9dc8d52b5f8a1d414da7f3ac1c774
[]
no_license
ameliajo/reactorPhysics
436e574bc8d71acf7fbe70ffb5b1c572809012da
89fcb93031af09a12c335c87aedb0a69249e6274
refs/heads/master
2021-01-24T10:05:38.378727
2020-02-26T17:43:40
2020-02-26T17:43:40
123,035,954
1
0
null
null
null
null
UTF-8
Python
false
false
4,152
py
slab.py
import matplotlib.pyplot as plt import numpy as np from sweep import * from numpy.polynomial.legendre import leggauss import sys numCells = 200 width = 25.0 SigT = 1.0 SigS = 0.1 # 0.1, 0.5, 0.99 src = 1.0 N = 2 flux = True error = False uniform = False ##########################################################...
82a2db4e6d277a5fd993ea29de9ca3b60fc9b9db
d7da288db4fd9fc0bb1c60c5074f290b5f70c8ef
/Aulas Python/Exercícios Extras/ime usp/1. Exercícios com inteiros/1.8 - n!.py
5bb02e47a220eacd25f03ba01e5cc475e9a81aac
[]
no_license
luizdefranca/Curso-Python-IgnoranciaZero
dbf4cf342b3f3efea6fb3b8cf27bf39ed92927e9
9fbf2f25e3e6fce1f1582af0bd6bc7dbc5b9f588
refs/heads/master
2020-04-09T07:17:00.735378
2016-09-12T10:51:37
2016-09-12T10:51:37
67,999,169
1
0
null
null
null
null
UTF-8
Python
false
false
220
py
1.8 - n!.py
""" Dado um inteiro não-negativo n, determinar n! """ n = int(input("Digite n: ")) cont = 1 prod = 1 while cont < n: prod = prod * (cont + 1) cont = cont + 1 print ("O valor de", n, "! é igual a:", prod)
39bbd2cb477143ec8d1e4a8d8316e6befb37c6d3
db14fea4dc12c0656c339d6aca76e056a219aae0
/MultPageScrapy/MultPageScrapy/spiders/crawler_cookies.py
dc2f30ec02336ab9a7910a1172c267d5b47a4741
[]
no_license
DZZDZD/scrapy-job
ae4c84e476f14dbd91571276f0f372e43e46a465
bb36f605c3f1a0aac0d18ef3c86e14659c7be1a0
refs/heads/master
2020-03-31T11:12:38.930965
2018-10-08T14:11:27
2018-10-08T14:11:27
152,167,612
1
0
null
null
null
null
UTF-8
Python
false
false
1,723
py
crawler_cookies.py
from scrapy import Spider import lxml.html from scrapy import Request,FormRequest #日志 import logging headers = {'User-Agent':'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36'} def parse_form(html): """ 找到所有form表单提交关键字 :param html: :return:...
fe62b48f92f9c9324197fd1c44e4284f4227f6e7
1dc51d67b748b6691fe899d6ff844d9b9b6f55bf
/src/nfm_rca/views.py
0b8031322bc135732ab812f0ddef6810aa47767e
[]
no_license
ropfeg/ROPF
d4ae63bf31f120472c5f0674fd1f7eb647928acf
4f04a6ee9ab5de8b32c5dade602530f6fa2a48a1
refs/heads/master
2023-02-08T21:02:23.017192
2020-12-30T15:06:00
2020-12-30T15:06:00
325,573,558
0
0
null
null
null
null
UTF-8
Python
false
false
7,834
py
views.py
from django.shortcuts import render,redirect import pandas as pd import time import glob import os from shutil import copyfile from ropf_auth.models import user_privilege,UserProfile from .NFM_RCA_V4 import add_physical_technology,add_site_power_source,\ add_site_unified_power_source,add_backup_problem_ods,add_guar...
b29fce4836b18b507276bb5cf42dc336a0c6c0d6
2b5689ccb348b08821c9f068eb80f3d82ab0d817
/GameSpace.py
d214766c2a734aa944fa215dd263c32faa3351a1
[]
no_license
mtroy2/ParadigmsFinal
10bbc35856a24dc7ec5e182b6ae39964f55bc46c
0e9db0addd951cdf36a54aa3c28e6e01ca46092b
refs/heads/master
2020-12-31T05:09:52.905335
2016-05-04T07:24:22
2016-05-04T07:24:22
57,322,344
0
2
null
null
null
null
UTF-8
Python
false
false
6,360
py
GameSpace.py
import sys import os import pygame from pygame.locals import * from GameObjects import * from GameScreens import * import math import spritesheet from twisted.internet.task import LoopingCall from twisted.internet.protocol import Factory from twisted.internet.protocol import Protocol from twisted.protocols.basic...
b2a05eaaf154229f4ef4168713fb44ab3e603e84
89594edf581b8512d262768fb4c3e0ad001996a9
/colibris/middleware/errors.py
fe167d7e8c9c679352ef240f841115832c0e7e75
[ "BSD-3-Clause" ]
permissive
colibris-framework/colibris
b8524ac31a100c987dcbb5954b23f8c309370be3
9655016637888c480f49f92711caa6088013e442
refs/heads/master
2023-08-08T11:45:36.191451
2023-08-07T07:15:32
2023-08-07T07:15:32
193,250,040
7
2
BSD-3-Clause
2021-09-12T21:52:07
2019-06-22T15:35:53
Python
UTF-8
Python
false
false
2,310
py
errors.py
import json import logging import re import traceback from aiohttp import web from colibris import app from colibris import authentication from colibris import utils from colibris.api import BaseJSONException, envelope from colibris.conf import settings logger = logging.getLogger(__name__) def _extract_request_l...
dfb3df1ba6288dec191d1997df0fcdf083e9e113
7ab34435cd249bd0594955ebf861196250688aed
/builder/make-zipfile.py
e72f066807252448a8301ef10edccce39e352af3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
Mrmaxmeier/tectonic-staging
81d21bcae79563c65968e19596026fc038fd4540
3b4ae66327b096970333eacde19118e07322bf66
refs/heads/master
2021-05-09T10:28:48.103825
2018-01-15T02:01:12
2018-01-15T02:01:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,536
py
make-zipfile.py
#! /usr/bin/env python # -*- mode: python; coding: utf-8 -*- # Copyright 2016 the Tectonic Project. # Licensed under the MIT License. """Create a Zip file containing all of the resources from a TeXLive installation. Usefulness not guaranteed unless the installation was created with the "texlive-builder/builder.sh" scr...
4348082c138d3734e3e7068616fa330e44528b58
7c1b8f8f777fb089ac54db13033c5582844203b5
/python/simple-projects/pdf-splitter.py
bfcfb485d17ef79a7697ec29e43d8b2832d7aa14
[]
no_license
srmk1/Programming
29b15ac1d8d254c9cf19a40f6c05b1694a5ec90f
c72b335186976b13cc5b956d06c1524d05d2518c
refs/heads/master
2023-08-05T08:17:20.057941
2023-08-01T14:17:44
2023-08-01T14:17:44
83,558,166
0
0
null
null
null
null
UTF-8
Python
false
false
1,455
py
pdf-splitter.py
#!/usr/bin/env python2 """ Reads PDFs in the parent directory, creates directories based on their names, splits the PDFs and exports the pages into directories based on the original filename. @Author: Michael Currin Required: - pip install pyPdf Inspired by: - http://stackoverflow.com/questions/490195/split-a-...
03b463d4c176fe4e078453052fd982c0ac5a98ae
0f81d56a68055275a13b0bcc632e75b9c1622f01
/config/api_router.py
fa5667e13064e98ff2bcbe954a837836761ed59e
[ "MIT" ]
permissive
fis2021/be-game-shop-app
83215bc589c0174e7fa44403d0bd907bef295d1b
abbccfa3b739e0891dacf3e503a99b8e9767a0bc
refs/heads/master
2023-04-26T17:20:17.089498
2021-05-16T19:21:47
2021-05-16T19:21:47
347,627,494
0
0
MIT
2021-05-11T22:46:50
2021-03-14T12:13:57
Python
UTF-8
Python
false
false
480
py
api_router.py
from django.conf import settings from rest_framework.routers import DefaultRouter, SimpleRouter from begameshopapp.users.views import UserViewSet from begameshopapp.games.views import * if settings.DEBUG: router = DefaultRouter() else: router = SimpleRouter() router.register("users", UserViewSet) router.regi...
cd2dfbef2d9bdad58348b97d501f6a706b7b5bf7
2324dea2cb3003c8ab7e8fd80588d44973eb8c77
/E341b.py
fd380bde7c2f411e168ce1ffe802ca0e36aca162
[]
no_license
MikeOcc/MyProjectEulerFiles
5f51bc516cb6584732dc67bb2f9c7fd9e6d51e56
4d066d52380aade215636953589bf56d6b88f745
refs/heads/master
2021-01-16T18:45:44.133229
2015-05-27T18:28:43
2015-05-27T18:28:43
5,876,116
0
0
null
null
null
null
UTF-8
Python
false
false
234
py
E341b.py
# # # Euler Problem 341 test. # # from mpmath import * x = 1 incr = 1 incr2 =1 bump = 0.0 flipflop = True def a(n): if n ==1: return n else: return (1 + a(n -a(a(n-1)))) #a=[1] for i in xrange(1,10000): print a(i)
b317e281c081f5eae7bce662a87bbbbf697c0543
044327eb30b73dbfa00aee00d88fb520793e8059
/tasks/county_capabilities/csv_loader.py
bf9836d6d781b81d0869e9521b58bdedf3b079dc
[]
no_license
availabs/mitigate-ny
bff81ffd91c79f30b0f0348ad098806f2c7bf80b
81e2429ed22cb03272a3c78eb6c4e5495794aa52
refs/heads/master
2023-02-07T23:21:35.322766
2022-02-24T17:00:18
2022-02-24T17:00:18
134,436,832
0
0
null
2023-01-26T16:17:10
2018-05-22T15:34:48
JavaScript
UTF-8
Python
false
false
2,027
py
csv_loader.py
import argparse, csv, os, psycopg2, re from config import host def createTable(cursor): sql = """ DROP TABLE IF EXISTS public.county_capabilities; CREATE TABLE public.county_capabilities( type TEXT, sub_type TEXT, description TEXT, geoid VARCHAR(5), value NUMERIC default NULL ) """ cursor.exec...
d67900860d551209c2a895d21e2b541a7dcc3be9
9e5a38e056dd0a7eef8022a1d818a16ecfc203d9
/tic-tac-toe/create.py
df5b7ebd7611d6e4da303e5ad34d8742fe840e3b
[]
no_license
antThom/Anthony-s-Humanoid-Robotic-Code
b12e9ea624bcdca9f4d33ab998a580b17a7fdb5c
806563b040353707024dc12a95ca729159b13143
refs/heads/master
2021-01-02T09:46:30.951256
2019-03-24T17:55:58
2019-03-24T17:55:58
99,298,868
0
0
null
null
null
null
UTF-8
Python
false
false
722
py
create.py
import analyzeData as AD def createData(humMove,comMove,gameNum,turn,meth): # Data should be created and uploaded after every turn # Split the board into human and computer moves turn -= 1 file = open('ant.csv','a') file.write(str(gameNum)) file.write(',') file.write(str(humMove)) file.write(',') file.write...
05fa92dee4c930c708c79312f95f662ef5ddd8fd
3bf912b7f509744b5866c054497586508ffb882b
/tests/SampleTestFail.py
dce4ace3426876ef5d306b57c02b2042b4135c6a
[ "BSD-3-Clause" ]
permissive
howareyou/HTMLTestRunner
fe216826cb8071477328cffd92a260a6676ab46c
9541d4324cd910f86ffd76ac8cac693305d94600
refs/heads/master
2021-01-12T05:01:15.767268
2017-01-07T08:34:15
2017-01-07T08:34:15
77,829,533
0
0
null
2017-01-02T11:40:21
2017-01-02T11:40:21
null
UTF-8
Python
false
false
951
py
SampleTestFail.py
import unittest class SampleTestFail(unittest.TestCase): EXPECTED_RESULT = """ <tr class='failClass'> <td>tests.SampleTestFail.SampleTestFail</td> <td>1</td> <td>0</td> <td>1</td> <td>0</td> <td><a href="javascript:showClassDetail('c2',1)">Detail</a></td> </tr> <tr id='ft2.1' class='none'...
184755eed45c395234ef280a089f0da54bed38fa
f0847e46a916accab9904efeb3ddc168fb80fdc9
/python/problem_4.py
628cc4ab59f75d88914da9b4c84add62cebcdc98
[]
no_license
douglasmiranda/project-euler
5020dc2ef5f7736275658044c0300264eaa1d2d7
d88b9256262c21968ffaa1d4854f81fdfd446120
refs/heads/master
2020-05-18T11:59:20.928601
2012-02-26T23:23:28
2012-02-26T23:23:28
2,027,639
2
0
null
null
null
null
UTF-8
Python
false
false
402
py
problem_4.py
""" Problem 4 A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 x 99. Find the largest palindrome made from the product of two 3-digit numbers. """ def is_palindrome(number): string = str(number) return string == string[::-1] print max(...
92f36ccd7a1c11b1537b261e468891226751613f
11cc78f470cf69101a6ba6487e7f0643ce41602e
/bot.py
50c8bbb9495c5414fa25397b8329e65c659a6ab7
[]
no_license
rex-gentium/medbot
a266fc4693cce774080a1426e45fc33f1dcbab12
4428b3ee87992149027620e9313eb56821ce7752
refs/heads/master
2023-01-22T19:04:23.232010
2020-12-03T19:30:19
2020-12-03T19:30:19
315,425,670
0
0
null
null
null
null
UTF-8
Python
false
false
13,176
py
bot.py
import telebot import telebot_calendar import logging import json import datetime from telebot.types import ReplyKeyboardRemove from dbworker import DbWorker from settings import * from state import State from telebot_calendar import CallbackData from collections import defaultdict logging.basicConfig(filename='medb...
3a6f9f923eab1c99683bdebef0ef67794641e5ff
ee60a8ce6ca9b0b82bd7d43f243d3689f6d0cb87
/src/model/pooling.py
3c8736f982aea9e1ed58ccfd221ccd9f5c0827cb
[ "MIT" ]
permissive
statsu1990/kaggle_bengali_classification
0ad6025729ed4df9da141eeb5c2532f08648bd1a
3ee2eed2f6901dbc4cd9216a43531323a86d9ed5
refs/heads/master
2021-04-01T05:12:53.731342
2020-03-18T08:59:23
2020-03-18T08:59:23
248,159,288
7
0
null
null
null
null
UTF-8
Python
false
false
2,889
py
pooling.py
from torch.nn.parameter import Parameter import torch.nn.functional as F import torch.nn.init as init from torch import nn import torch import math def gem(x, p=3, eps=1e-6): return F.avg_pool2d(x.clamp(min=eps).pow(p), (x.size(-2), x.size(-1))).pow(1./p) class GeM(nn.Module): def __init__(self, p=...
36ddf20a4743de288649e8bb632806990f297020
b28513f46b7c3e58503e4657015928505bb8869d
/web_scrapers/scrapers/base_scraper.py
1e92501c4c41b855fe9e43ec05650cb64955a4bd
[]
no_license
bartek3pl/IT-Job-Finder
40f0d119214e2929914248ffaadb69d1540fafa2
7ad3ba9df637b1174f94e1e10b96d305706b454d
refs/heads/master
2023-08-23T09:58:22.828515
2021-09-07T18:39:52
2021-09-07T18:39:52
356,564,075
1
0
null
null
null
null
UTF-8
Python
false
false
6,486
py
base_scraper.py
import requests import sys import logging import requests from typing import Union from decouple import config from requests.models import Response from authentication import Authentication logging.basicConfig(level=logging.DEBUG, format='%(asctime)s | %(name)s | %(levelname)s | %(message)s') DAT...
d28c905d295b4df5db32ded9b05789d0afcc3655
524b1ac8cd8d55e3d7aca6ca6deb2b7e6a782cfa
/src/batchRecord.py
e91054e395157cdf396c52008d9d5bad52193c45
[]
no_license
jie786389209/face_hand
5747763f78e065f8484dd4f93c7e14f799a9d0d1
0595817cde4ba9383ec7630e1f71ae3d4ef492dc
refs/heads/master
2020-05-25T23:46:54.854483
2019-05-22T13:09:57
2019-05-22T13:09:57
188,040,924
0
0
null
null
null
null
UTF-8
Python
false
false
2,264
py
batchRecord.py
from PyQt5.QtCore import QThread, pyqtSignal from PyQt5.QtWidgets import * from PyQt5.QtWidgets import QFileDialog import os #from .util import get_encodings from face_recognition import load_image_file, face_encodings from PyQt5 import QtWidgets class BatchRecordThead(QThread, QtWidgets.QWidget): sin_out_tuple =...
cf15f499f601c81088da9b2899692dc6910974b7
caba3da8ebae2f3c8237624c208e3febc86e2709
/shell_control_infra/shell_control.py
162861df89665e35fc678202ac2ee10c9448c9ab
[]
no_license
ofiriluz/ms17_010_android
c3404059029abf78053a04bf3b0186a1cbaf1c95
a6e4d973b5e1a9d9a2a0c1373402dc036d70c66b
refs/heads/master
2020-03-13T01:57:24.096440
2018-05-08T18:16:31
2018-05-08T18:16:31
130,914,947
0
0
null
null
null
null
UTF-8
Python
false
false
6,628
py
shell_control.py
import uuid import threading import datetime import time from kivy.logger import Logger from shell_control_stream import ShellControlStream from shell_control_job import ShellControlJob class ShellControl: def __init__(self, allow_stdout_log=True): self.flow_commands = {} self.flow_command_jobs = ...
6b8affb417549248cc20bca05459a446a408be85
3391fd1973715b6df53fbf79d49e13701b0cc5e9
/RFClassifier.py
cbe9519079b6d2d2c518ef65755de7abe5eb835b
[]
no_license
andpberr/dist_ai_project
c74ac4bad99557b35aec18bc024a67335956e353
e84c8cf7a560429abaa86ab0fc0e5b551141717b
refs/heads/master
2020-04-20T01:30:38.184124
2019-01-31T15:29:22
2019-01-31T15:29:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,272
py
RFClassifier.py
import pandas as pd import time import numpy as np import sklearn.ensemble as es import DatasetManager as dsm import argparse # Column names: # 'Provider ID' # 'Hospital Name' # 'Address' # 'City' # 'State' # 'ZIP Code' # 'County Name' # 'Phone Number' # 'Measure Name' # 'Measure ID' # 'Compared to National' # 'Denomi...
5ad4bfce20290e58221eab28cc3246a9a43e213b
ef3f927659084ed0dcfbff93883f5e574f1945cb
/app/models/user.py
628f057874cc51357b970e9a7736adcd36915fe8
[]
no_license
IJaykkk/flask-aws
5d69651bd0d6bdf488c197bb80064b03347e8662
8bcd337d20e93b2afad5cc7171551fdb608213f1
refs/heads/master
2022-07-16T06:52:04.037825
2020-05-15T00:34:37
2020-05-15T00:34:37
262,674,553
0
0
null
null
null
null
UTF-8
Python
false
false
1,724
py
user.py
from passlib.hash import pbkdf2_sha256 as sha256 from app import db from app.models.user_group import user_group from app.models.subscription import SubscriptionModel class UserModel(db.Model): __tablename__ = 'users' id = db.Column(db.Integer, primary_key = True) username = db.Column(db.String(120), un...
9d16b09536d89f02a6e3e383ca3829e04d00fd1c
9cc56b2e92da0993546ab3be0c7d149c05e421a6
/project.py
76497526efd38a9c6dc1206521c67b2e13e0d868
[]
no_license
radhikasingh13/opencv-mouse-events
ae8072472164d976ed428bceab8d1e911b30fb11
a85bed97f5fd7eec4483612df602fb1d776fa29c
refs/heads/master
2022-10-20T11:28:46.362948
2020-06-15T11:24:34
2020-06-15T11:24:34
272,416,346
3
0
null
null
null
null
UTF-8
Python
false
false
1,938
py
project.py
import numpy as np import cv2 img = cv2.imread('deepika.jpeg') #print(img.shape) def click_events(events,x,y,flay,param): if events == cv2.EVENT_RBUTTONDOWN: print(x,',',y) font = cv2.FONT_HERSHEY_SIMPLEX text = str(x) +',' +str(y) cv2.putText(img,text,(x,y),font,.5,(0,255,2...
02088036d4779a3f68dbc81ff54fb949e8072a81
ddf0ad89d1220550b948dda2a3c52f692d6532fa
/src/compas_pattern/datastructures/mesh_quad_pseudo_coarse/__init__.py
f43b5c1aa7f12d2233a6f66f74fbdc30295b6f84
[ "MIT" ]
permissive
jf---/compas_pattern
f220a951d29e2c97886a1a4cf11b75007c81e8f6
f1663c6362d8751e2f0c45d5699b083e3ed14395
refs/heads/master
2021-05-19T08:20:07.774850
2020-03-09T09:58:05
2020-03-09T09:58:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
91
py
__init__.py
from compas_pattern.datastructures.mesh_quad_pseudo_coarse.mesh_quad_pseudo_coarse import *
a3628249a4f3262079dc3ca894ef37dcc804a463
83efa0dfe22cd6cc01fb561ba2e79166574d580c
/help/admin.py
3dc06b953c9d9ac53920920bbcbe9ed90de57eda
[]
no_license
finnishnetsolutions/otakantaa
a4e4bbe77ef72b42f1fc7d52f867ac663c30ae40
5842dbbc35d6bd668191f4d6ac81487aa27c0e89
refs/heads/master
2021-01-10T11:30:37.702009
2016-05-06T13:36:54
2016-05-06T13:36:54
55,126,662
0
0
null
null
null
null
UTF-8
Python
false
false
861
py
admin.py
# coding=utf-8 from __future__ import unicode_literals from django.contrib import admin from django import forms from libs.attachtor.forms.fields import RedactorAttachtorField, UploadSignatureField from libs.attachtor.forms.forms import RedactorAttachtorFormMixIn from mptt.admin import MPTTModelAdmin from .models i...
03ad3323e16e3186cfd15612fdd4d269024d832e
30d36cbbc483a3fcf3c43dac42d4e78f0821d16a
/SNATF/Framework/LoggerLib/log_generate.py
c50a370d2d32c3298c7693b408356f40af2fabe2
[]
no_license
sindhukotluru/HAPPIEST_FRAMEWORK
d84f70051ac3b82af81e91c62e51f394b0467dca
6f65a498b40e906e7b806de043cfc4e2bd157244
refs/heads/master
2020-04-12T14:46:36.439718
2018-12-19T08:14:53
2018-12-19T08:14:53
162,561,162
0
0
null
2018-12-20T10:05:26
2018-12-20T10:05:26
null
UTF-8
Python
false
false
2,060
py
log_generate.py
import logging import os import re import sys import datetime import inspect import config class Logger(object): cwd = os.getcwd() log_path = config.LOG_PATH if not os.path.exists(log_path): os.makedirs(log_path) stack = inspect.stack() stack.reverse() reg = None i = 0 for i in...
340fbcf2156acd69279093bfa52dc5b010305ad3
7a28b6b935387d57debd6c443eca4cb18c898642
/parser.py
4a149fb6c27759900cbb3db20336f946e70db4f4
[]
no_license
mpaulweeks/parser-test
fd6c8aefb037724eabef30d598bc86aa84007364
9f1ee09973b06b2755bf51d8e955cb4387647a3e
refs/heads/master
2020-04-21T14:02:35.268210
2014-07-22T20:56:40
2014-07-22T20:56:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,512
py
parser.py
class Parser: # Case1: Lastname, Firstname, (703)-742-0996, Blue, 10013 # Case2: Firstname Lastname, Red, 11237, 703 955 0373 # Case3: Firstname, Lastname, 10013, 646 111 0101, Green def clean_phonenumber(self, raw): digits = "" for char in raw: if char.isdigit(): digits += char if len(digits) != 10:...
1305f032e400f3aa0e3517a99385bb45588e5230
d05e326977cfaecdddf6bd3c6b056f9bcd448046
/__init__.py
5e39af0dd0c03ec58f158ba60ef2b94a7a982a61
[]
no_license
messiest/playground
d50eb0a45b49f9317e670c2fc924d3c14a79e762
de7ea27898c8f7e59ce0ad1557027a197fa70005
refs/heads/master
2020-04-04T21:14:13.998344
2019-01-22T17:49:58
2019-01-22T17:49:58
156,280,088
0
0
null
null
null
null
UTF-8
Python
false
false
183
py
__init__.py
from actor_critic import ActorCritic from mario_actions import ACTIONS from mario_wrapper import create_mario_env # from shared_adam import SharedAdam from .utils import fetch_name
e968744012252755ccb85837466bd9974bbb69f9
e4cbdaa3131d3b2b6057e222084b055a7abb05c1
/api/image/serializers.py
ae37238a0653cb116b8eb5b20d350965d9a3afb4
[]
no_license
yannickkiki/storimagify-api
e0f77ff5d47c1852a1b93b05c978169066be76ab
e5a58d6c41236cc10ba4382f88cdf2f24b849fa3
refs/heads/main
2023-08-11T06:14:27.831054
2021-09-26T09:02:38
2021-09-26T09:02:38
410,499,581
0
0
null
null
null
null
UTF-8
Python
false
false
240
py
serializers.py
from rest_framework import serializers from api.image.models import Image class ImageSerializer(serializers.ModelSerializer): class Meta: model = Image write_fields = ('url',) fields = ('id',) + write_fields
e55e2197a00540983dfab94623713030a53d5d8b
f4be39ce7466c41f59ba6135ed15cc9c069b73e1
/models/ensemble_rf_xgboost.py
78d7adfb905c3448049bfdf08df5a6aaf62ace11
[]
no_license
michelepapale1996/Fraud_Detection_LSTM_Thesis
d7906cb2a19dc27feebe334d57603bb46fe9e95d
7cf0c78446cf7d98e6fb21709721927bd4e7ca79
refs/heads/master
2022-04-24T22:54:51.069470
2020-04-23T17:12:20
2020-04-23T17:12:20
213,425,964
1
0
null
null
null
null
UTF-8
Python
false
false
4,055
py
ensemble_rf_xgboost.py
from models import evaluation, RF, xgboost_classifier, resampling_dataset import numpy as np from dataset_creation import sequences_crafting_for_classification from dataset_creation.constants import * from scipy import stats def get_predictions_for_each_model(rf, xg_reg, x_supervised): y_rf = rf.predict_proba(x_su...
1cfe9a44b0f9a2b8156eeaea494977268d52e0b9
13b1d9a5245f6ed42297687fe52602a5ed7b06de
/scripts/feature_extractor/Prediction_one_view_with_merge_for_slim(old).py
6c57975e379b1030ecd5b9fe497833deeb5444e6
[]
no_license
wenqingsun/representative_selection
cda21e92536a854906888813c5bc09cdabe0e1a4
df00c29d69890e5819aae72279f96953d00369e2
refs/heads/master
2020-05-02T23:46:45.365386
2019-03-28T22:14:50
2019-03-28T22:14:50
178,290,001
1
0
null
null
null
null
UTF-8
Python
false
false
32,218
py
Prediction_one_view_with_merge_for_slim(old).py
# -*- coding: utf-8 -*- """ Created on Mon Feb 13 12:09:17 2017 @author: lwei @author: xliu """ from os import listdir from math import ceil import os import os.path import tensorflow as tf import numpy as np import time from tensorflow.python.platform import tf_logging as logging from tensorflow.contrib.framework.p...
ae56fb39c011827b03f226dc714591f67a53c65f
89694ed2678df252190484fce244a67077547803
/home/urls.py
edc84ae602e459dbf3cad2ee3c6f15536c13983e
[]
no_license
kendricktan/taiste
75e9d4a76224a40c51491c1237935beac097a87b
4223b1f479e4ad593b83b5238e8106d15e779270
refs/heads/master
2020-07-04T21:06:46.745407
2016-11-19T10:00:23
2016-11-19T10:00:23
74,141,033
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
urls.py
from django.conf.urls import url from home.views import home_view urlpatterns = [ url(r'^$', home_view, name='home_view') ]
222d1b83f2ed5d7c1d5ca224fedcbe275b7a0902
9b55018e38564a10ba1fbb56b3523870b5cc84f4
/pages/display_module_page.py
8d025a4ee390443e611bc3f86b210de151e00050
[ "MIT" ]
permissive
redhataccess/cheesecake-ui-tests
f364b5bbf526a7ad6f5a564444735757dfe3a8c9
77effa39e4cc5b4d5be6e89db6d489ecd72eb6eb
refs/heads/main
2022-12-02T05:12:23.755683
2022-05-06T12:01:34
2022-05-06T12:01:34
217,027,665
3
1
MIT
2022-04-28T13:59:15
2019-10-23T10:12:17
Python
UTF-8
Python
false
false
4,253
py
display_module_page.py
from helpers import utilities from helpers import locators from helpers import constants import lemoncheesecake.api as lcc from lemoncheesecake.matching import * import urllib.parse as urllib import sys from fixtures import fixture import requests from helpers import base from selenium.webdriver.common.by import By sys...