blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
777 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
2f6b30e1b2d944c0354a536d1c08f9eff2fa2e31
867846ed1df7f560ccc473413a70020155f66ad4
/fixMarkdownHeadings.py
1645916fdfb4c594d76c9f5feaf75e762005a85a
[]
no_license
abhineet123/PTF
84297bf5aa95320dbc2d34f422f2dd563ff65a58
0c63f7f8251af0d70c329b2cef53694db76c1656
refs/heads/master
2023-08-18T18:34:40.513936
2023-08-09T17:28:51
2023-08-09T17:28:51
157,794,848
5
1
null
2021-05-16T18:48:32
2018-11-16T01:24:05
MATLAB
UTF-8
Python
false
false
2,487
py
import pyperclip from Tkinter import Tk from anytree import Node, RenderTree def findChildren(_headings, root_level, _start_id, _root_node, n_headings): nodes = [] _id = _start_id while _id < n_headings: _heading, line_id = _headings[_id] words = _heading.split(' ') curr_level = wo...
[ "asingh1@ualberta.ca" ]
asingh1@ualberta.ca
271a78833a1218dfa0f8b72a67a4f57a00c22f77
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/pa65DgwG5HMbtf6iY_17.py
75b738a5317af85ec0083358898136fca0256512
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
415
py
class player(): ​ def __init__(self, name, age, height, weight): self.name = name self.age = age self.height = height self.weight = weight def get_age(self): return self.name + " is age " + str(self.age) def get_height(self): return self.name + " is " + str(self.height) + "cm...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
f92344a7b55176c215b569cd01d99ec9c4fd8ee9
4c7baee40b96e6499f96d6fe81935437264c9c88
/stock_scraper/Indicators/RSI.py
d153d32174cf5e1a805325812081c1df70ba9210
[ "MIT" ]
permissive
webclinic017/Stock-Analysis
083d376484adebcad2d52113749a513aa48b09a8
eea8cb5bcb635f12eb15ac13306ef16e2892cd92
refs/heads/master
2022-04-13T00:20:54.287730
2020-03-29T21:05:22
2020-03-29T21:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,277
py
import sys from os import path sys.path.append( path.dirname( path.dirname( path.abspath(__file__) ) ) ) import pandas as pd class kRSI(): def __init__(self): #do nothing print "In kRSI class" def CalculateRSI(self, avgGain, avgLoss): if avgLoss == 0: return 100 r...
[ "singhanurag50@gmail.com" ]
singhanurag50@gmail.com
2d46b4f1438042afecc40c4acf20344806223487
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p3BR/R1/benchmark/startQiskit_Class245.py
b531b8a8a74a4a467b8ee86bca4983619acd57d1
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
5,321
py
# qubit number=3 # total number=46 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collections import Counter from...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
0c5ab6e315afa21be876ef1a62aeaa6b3aaaff97
379a473d6f572b7fb0c00ffa3387931a6bebb082
/Chapter9/plot_confusion_matrix.py
061034801b4a3a58edac77979b4adc9847936748
[]
no_license
Willianan/Data_Analysis_and_Mining
6746f75dcade79f9134574d5962ec5bc19da51de
8c526e5d12a535fde1b8b5c84b21007289b8eb20
refs/heads/master
2020-04-28T15:26:58.227850
2019-04-07T13:51:41
2019-04-07T13:51:41
175,367,669
0
0
null
null
null
null
UTF-8
Python
false
false
1,053
py
import matplotlib.pyplot as plt import numpy as np import itertools def plot_confusion_matrix(cm, classes, normalize=False, title='Confusion matrix', cmap=plt.cm.Blues): """ This function prints and plots the confusion matrix....
[ "noreply@github.com" ]
Willianan.noreply@github.com
4decd0022d8b9f5903a2348dd6c8ca81a7787360
d25c89a54ad980c68bc8d247eb43f88499617dda
/src/ocr_line_curation_chars.py
1dda0fa5a2a17ad15a2000d2ca7bd195293a99de
[]
no_license
nakamura196/amami
5922e396b89850d18660e465d8e6af498b28b967
19bdc712bb24ab325806c3cb2bb4666d16182768
refs/heads/master
2023-01-07T05:29:19.145424
2020-11-06T04:31:16
2020-11-06T04:31:16
286,902,467
0
0
null
null
null
null
UTF-8
Python
false
false
3,639
py
from PIL import Image import sys sys.path.append('/path/to/dir') import json import pyocr import pyocr.builders tools = pyocr.get_available_tools() if len(tools) == 0: print("No OCR tool found") sys.exit(1) tool = tools[0] print("Will use tool '%s'" % (tool.get_name())) langs = tool.get_available_languages() ...
[ "na.kamura.1263@gmail.com" ]
na.kamura.1263@gmail.com
9013611ed7ed83fb4065f9d6e3bb601c6efacc71
9f84d91a8ae3df53b07fe3267992fba00a99ac9e
/torch_geometric/graphgym/contrib/__init__.py
47365d98aadd0b304b67af8266d8e4228eb52f85
[ "MIT" ]
permissive
pyg-team/pytorch_geometric
ebea601eae228f3905465b5c2349d3fb3bb5cb26
a52af694b8ce6a80811e20966fe6d08a3e7511fe
refs/heads/master
2023-08-31T04:13:40.943308
2023-08-30T12:48:42
2023-08-30T12:48:42
106,024,057
6,775
1,563
MIT
2023-09-14T17:10:18
2017-10-06T16:03:03
Python
UTF-8
Python
false
false
389
py
from .act import * # noqa from .config import * # noqa from .encoder import * # noqa from .head import * # noqa from .layer import * # noqa from .loader import * # noqa from .loss import * # noqa from .network import * # noqa from .optimizer import * # noqa from .pooling import * # noqa from .stage import * ...
[ "noreply@github.com" ]
pyg-team.noreply@github.com
0ce6670c9e67f8a7231b9c6d03cec2f066c58ab0
376c8f2c9051b8dffe851fab7c831f96dcf06ddb
/dp/1965_상자넣기.py
e430c04d04043fdf653ac4dee4d15404c6d63625
[]
no_license
getChan/algorithm
cad3ac74ac686ec4306ad8db551700d35e27a782
6a82c04cdbf670e3140b1a8685480a3f37c82c62
refs/heads/master
2021-06-30T01:08:42.270514
2020-09-19T07:55:45
2020-09-19T07:55:45
140,247,854
0
0
null
null
null
null
UTF-8
Python
false
false
361
py
n = int(input()) boxes = [int(_) for _ in input().split()] dp = [1 for _ in range(n)] # 최장증가수열 문제 # dp[i] : i에서 끝나는 최장증가수열 answer = 1 for i in range(0, n): for j in range(0, i): if boxes[i] > boxes[j] and dp[i] < dp[j]+1: dp[i] = dp[j] + 1 if dp[i] > answer: answer = dp[i] print(answ...
[ "9511chn@gmail.com" ]
9511chn@gmail.com
1a0fbf08f1e836f3287ff05cb95026d3db0e9c4d
071ca9494ce811cdf52dc585ec863dc621a7865b
/test_coroutines.py
c82bc510a64e9c940b63bebf76764d13498b1922
[]
no_license
phaustin/parallel_project
37d7ea7dbc6de8406d50e47142b271e05c1552eb
821cca5ad7dcf5c3b6caa2ca3f20358b86120d06
refs/heads/master
2021-08-22T08:18:01.675473
2017-11-29T17:56:57
2017-11-29T17:56:57
112,510,223
0
0
null
null
null
null
UTF-8
Python
false
false
1,407
py
#http://blog.thumbtack.net/python-coroutines/ def coroutine(f): def wrapper(*arg, **kw): c = f(*arg, **kw) c.send(None) return c return wrapper @coroutine def logger(prefix="", next=None): while True: message = yield print("{0}: {1}".format(prefix, message)) ...
[ "paustin@eos.ubc.ca" ]
paustin@eos.ubc.ca
957b52ebdc5a273f9ccdd5b16a60f4b0053ff1bd
2a4be1e256ed19c8dd5d37cb3cfbe7f50bb4f8f6
/Landing/wsgi.py
7a21379d42a306591ffa506ec52344f303075fa1
[]
no_license
Miker69/Landing_telebot
55c3b34aac3db5753203260421ae7f2584160122
f32538d563c74108053418b177340b634f26c5f3
refs/heads/master
2023-04-04T03:48:58.941446
2021-04-13T15:37:36
2021-04-13T15:37:36
357,578,267
0
0
null
null
null
null
UTF-8
Python
false
false
391
py
""" WSGI config for Landing project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTI...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
1a7fafcd552464eccc415a7cd7f6c13f568bd217
c2c03e034513a766c7de8298be428fb3eab3ab7b
/chainerrl/NeverSay20/env/bin/wheel
6aec0ddb9ff1fc7d022b5e8ab8645344758aa131
[]
no_license
hamko/sample
434adeca12e11587edce8cad799162b84c7f5071
9b0624b99e3e551d6b72b632d3a7d1a38aac7a9f
refs/heads/master
2021-01-17T02:51:25.174354
2018-10-23T02:40:04
2018-10-23T02:40:04
9,640,383
1
3
null
null
null
null
UTF-8
Python
false
false
255
#!/home/hamko/git/sample/chainerrl/TicTacToe/env/bin/python3 # -*- coding: utf-8 -*- import re import sys from wheel.tool import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "wakataberyo@gmail.com" ]
wakataberyo@gmail.com
f8022236e53f1c2f42d0dfc05b69d592acb001a4
0d0c13d80924b6e5cfc74a623eb250a5fd2e2cca
/Stacks/sliding window maximum.py
b848b90e9f5e374590087d07587cd492462bd090
[ "Apache-2.0" ]
permissive
Akashdeep-Patra/problemSolving
54e2fc3c3a9587b8c976921f6fc45364af1dfcac
c278e5d090af7370e56789e68b7bb73dc37165f8
refs/heads/master
2022-11-15T19:20:54.585886
2020-06-29T10:47:39
2020-06-29T10:47:39
258,956,787
0
0
null
null
null
null
UTF-8
Python
false
false
2,145
py
from collections import deque class Solution: # @param A : tuple of integers # @param B : integer # @return a list of integers def slidingMaximum(self, a, k): q=deque() for i in range(k): if(len(q)==0 or a[q[-1]]>=a[i]): q.append(i) else: while(len(q)!=0 and a[q...
[ "replituser@example.com" ]
replituser@example.com
779a04c19db092d2dee3ac7a2cee5ec9378b58bc
da47e42519b6d5eb37bdb634fd618672706e79da
/localizacion_metromed/Txt_file_module/models/txt_activo.py
d825bda0ddc8ed2165a4344dd28d866ff52ec13b
[]
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,580
py
# -*- coding: utf-8 -*- # Part of BrowseInfo. See LICENSE file for full copyright and licensing details. from datetime import datetime, timedelta from odoo import models, api, fields from logging import getLogger _logger = getLogger(__name__) class bono(models.TransientModel): _inherit = "account.wizard.generaci...
[ "soporte.innova2129@gmail.com" ]
soporte.innova2129@gmail.com
bcfe1e99173899327dcff8051e09ffc4433afce6
e6dab5aa1754ff13755a1f74a28a201681ab7e1c
/.parts/lib/django-1.4/tests/regressiontests/views/tests/debug.py
566b96c0e404e04bcbc2da47bd1409201df46bd8
[]
no_license
ronkagan/Euler_1
67679203a9510147320f7c6513eefd391630703e
022633cc298475c4f3fd0c6e2bde4f4728713995
refs/heads/master
2021-01-06T20:45:52.901025
2014-09-06T22:34:16
2014-09-06T22:34:16
23,744,842
0
1
null
null
null
null
UTF-8
Python
false
false
108
py
/home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.4/tests/regressiontests/views/tests/debug.py
[ "ron.y.kagan@gmail.com" ]
ron.y.kagan@gmail.com
d4156f6b387f2c2bbfab43d6331fe0e83479c75c
d2332604fc80b6d622a263b2af644425a7e703de
/facebook/trees_and_graphs/12_accounts_merge.py
9d2fd775ac9e45fdb77ea0793a06731010f2ed00
[]
no_license
abhijitdey/coding-practice
b3b83a237c1930266768ce38500d6812fc31c529
6ae2a565042bf1d6633cd98ed774e4a77f492cc8
refs/heads/main
2023-08-14T23:31:06.090613
2021-10-18T21:35:56
2021-10-18T21:35:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,999
py
from typing import List """ 1. First, create a graph (adjacency list) connecting all emails that are related to the same account 2. Second, keep track of the account name for each unique email 3. Find connected components in the graph: a. Each connected component refers to the same account. b. So, all unique ...
[ "ashiz2013@gmail.com" ]
ashiz2013@gmail.com
381eb050befc9726fcc4b57820d8a6e03ecd00a6
d2abb93fc50ec2ef3513a4a1307c0e6955a27eaf
/generic/threaded.py
2bb1c2d319ec064bb3ef93f259d786d8568e2606
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
staccDOTsol/DialoGPT
1cddb45ab500afdb6c89690b9440d880c61f7140
b026278c2ae831f3bc63759300dba56f14bf3228
refs/heads/master
2023-01-27T18:27:14.611490
2020-12-04T07:48:25
2020-12-04T07:48:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
28,303
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import sys import time import os.path import math import re import argparse import traceback import json import bz2 import gzip from nltk.tokenize import TweetTokenizer from flashtext import Keywo...
[ "you@example.com" ]
you@example.com
8556153eee128df8d4a4b2c68b116c9fc5edad6e
67416177cd9e221db0b20332c02dcc7680fcdd0e
/이것이 취업을 위한 코딩 테스트다/Chapter05_DFS_BFS/Q04_S.py
0e89d038a59dde7bce9a39cb6bf567d78488ff5a
[]
no_license
svclaw2000/Algorithm
4fe5e3bf50888b974df4f3d87387a003b5249352
b6d92cf0d18997e9e973d5f731ecb44a7935d93a
refs/heads/main
2023-06-21T21:50:13.089719
2021-07-11T14:18:47
2021-07-11T14:18:47
363,825,838
0
0
null
null
null
null
UTF-8
Python
false
false
739
py
from collections import deque N, M = map(int, input().split()) maze = [list(map(int, input())) for _ in range(N)] ds = ((-1, 0), (0, 1), (1, 0), (0, -1)) def dfs(x, y): queue = deque() queue.append((x, y)) while queue: x, y = queue.popleft() for dx, dy in ds: nx, ny = x + dx, ...
[ "svclaw2000@gmail.com" ]
svclaw2000@gmail.com
dedc1fed02afc5cafde18f60d850ddf2a3f2c7d7
a1cd1135cd7bc3255e29632fe6c025cffd231285
/cluster/server_base.py
efe3f07db8830108d0bfc6e7cd4883872a50401e
[]
no_license
liguopeng80/gcommon.py27
5f8d3ac9fe85c7134cfbb557ec06a61184b58fd1
900cd0717c7a9db90793752fd5cbf9a576286497
refs/heads/master
2023-08-11T16:01:16.566945
2021-10-10T07:08:54
2021-10-10T07:08:54
404,542,040
2
1
null
null
null
null
UTF-8
Python
false
false
9,940
py
#!/usr/bin/python # -*- coding: utf-8 -*- # created: 2015-05-04 import optparse import traceback import os import sys import logging from twisted.internet import reactor from twisted.internet.defer import inlineCallbacks, maybeDeferred from gcommon import cluster from gcommon.logger import log_util from gcommon.logg...
[ "liguopeng@liguopeng.net" ]
liguopeng@liguopeng.net
4ce810b7a98c0b77591ee5e277abc2db6860b0c2
556db265723b0cc30ad2917442ed6dad92fd9044
/tensorflow/python/profiler/profiler_v2_test.py
42fbeba1e98be36f2c2c401a3db60bfbe1f1b5a8
[ "MIT", "Apache-2.0", "BSD-2-Clause" ]
permissive
graphcore/tensorflow
c1669b489be0e045b3ec856b311b3139858de196
085b20a4b6287eff8c0b792425d52422ab8cbab3
refs/heads/r2.6/sdk-release-3.2
2023-07-06T06:23:53.857743
2023-03-14T13:04:04
2023-03-14T13:48:43
162,717,602
84
17
Apache-2.0
2023-03-25T01:13:37
2018-12-21T13:30:38
C++
UTF-8
Python
false
false
4,412
py
# Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
2a812d45d9da8870b85821736661cd9b51ad3c61
c7cebec6209866b02ee654cffeafe0f2cf0646f1
/implementation/oceangame.py
8c2fcb4e93ffdc7cf0b2c1af8292a4326c4b7a2d
[]
no_license
dondon17/algorithm
5492cf039a96ecf5a944816bdca9b5755e5a2623
da4d6ca1c21c31c6521a62b38855e0b9cf4b0d91
refs/heads/master
2023-05-02T14:54:35.185914
2021-05-30T07:31:40
2021-05-30T07:31:40
323,802,402
0
0
null
null
null
null
UTF-8
Python
false
false
941
py
n, m = map(int, input().split()) x, y, _dir = map(int, input().split()) check = [[0]*m for _ in range(n)] # 0으로 채워진 n * m 행렬 생성 check[x][y] = 1 # 시작 위치 방문 처리 _map = [] for i in range(n): _map.append(list(map(int, input().split()))) count = 1 turn_time = 0 # 4방이 이미 방문한 곳이거나 바다인 경우를 체크하기 위함 dx = [-1, 0, 1, 0] dy =...
[ "qwerqw889@ajou.ac.kr" ]
qwerqw889@ajou.ac.kr
f45b44a0ce075baa3867c855c1d857223d4631c4
ef4a1748a5bfb5d02f29390d6a66f4a01643401c
/algorithm/algorithm_week/week3/problem_3.py
1dfac10225edd5d46d7a5f1b0aee2c62ba86901b
[]
no_license
websvey1/TIL
aa86c1b31d3efc177df45503d705b3e58b800f8e
189e797ba44e2fd22a033d1024633f9e0128d5cf
refs/heads/master
2023-01-12T10:23:45.677578
2019-12-09T07:26:59
2019-12-09T07:26:59
162,102,142
0
1
null
2022-12-11T16:31:08
2018-12-17T08:57:58
Python
UTF-8
Python
false
false
498
py
import sys sys.stdin = open("problem_3.txt", "r") T = int(input()) for tc in range(1, T+1): comp = input() total = input() len_comp = len(comp) len_total = len(total) empty_list = [0] * len_comp result = 0 # print(empty_list) for i in range(len_comp): for j in range(len_total): ...
[ "websvey1@gmail.com" ]
websvey1@gmail.com
d4263f84ee75cfae0c1c0448bd6e638c64abaaec
f68e0b205bd3eb036905c60bd03a8d9c7f3b1d88
/gluon-tutorials-zh-master/chapter_optimization/adagrad-gluon.py
9fe3fd6be483681cf7e1719444f2b19373cdcb0f
[ "Apache-2.0" ]
permissive
SleepyBag/TrivialPractice
c31458d0c28afba158cb4090cb7013267ff54bb2
8e006fbe1425f62b52b2a5fe5b6404ea1883f3ab
refs/heads/master
2020-03-22T00:34:37.415074
2018-06-30T14:02:04
2018-06-30T14:02:04
139,253,389
2
0
null
null
null
null
UTF-8
Python
false
false
1,188
py
import mxnet as mx from mxnet import gluon, nd from mxnet.gluon import nn import sys sys.path.append('..') import utils # 生成数据集。 num_inputs = 2 num_examples = 1000 true_w = [2, -3.4] true_b = 4.2 features = nd.random.normal(scale=1, shape=(num_examples, num_inputs)) labels = true_w[0] * features[:, 0] + true_w[1] * fe...
[ "xueqianming200@gmail.com" ]
xueqianming200@gmail.com
86fee19decbe6fbd99256621b5d77459a4c80b51
a6cc157fdd1a15e9d451af653cf3eadbdac60885
/cpp_develop/catkin_ws/src/ros_arduino_bridge/ros_arduino_python/src/ros_arduino_python/calibrate_linear.py
3ab1f901ef9a959a737978f37d4c3bb5cebabeba
[]
no_license
miaoruonan/morn
9b4f0b64241c12140e8adc571579974d9e35a14b
88e353ce480265b0b0b12f22a67ce13dd2ff42f3
refs/heads/master
2021-06-26T05:18:58.321932
2021-01-28T07:21:51
2021-01-28T07:25:16
214,172,876
0
0
null
null
null
null
UTF-8
Python
false
false
3,792
py
#!/usr/bin/env python import rospy from geometry_msgs.msg import Twist, Point from math import copysign, sqrt, pow import tf class CalibrateLinear(): def __init__(self): #give the node a name rospy.init_node('calibrate_linear', anonymous=False) #set rospy to execute a shutdown function wh...
[ "15879209474@163.com" ]
15879209474@163.com
7ffae845f088fb2c95c7c37d9f6e0559af611adc
6d9fbe6e6a2abfd8455e92f6dba67a5f02d87f41
/lib/phonenumbers/data/region_AC.py
243d707a8213496a114091c66baa4551350d4629
[]
no_license
JamesBrace/InfluenceUWebLaunch
549d0b48ff3259b139cb891a19cb8b5382ffe2c8
332d25940e4b1b45a7a2a8200f77c8413543b199
refs/heads/master
2021-09-04T04:08:47.594900
2018-01-15T16:49:29
2018-01-15T16:49:29
80,778,825
1
1
null
null
null
null
UTF-8
Python
false
false
1,094
py
"""Auto-generated file, do not edit by hand. AC metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_AC = PhoneMetadata(id='AC', country_code=247, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[46]\\d{4}|[01589]\\d{5}', possible_numb...
[ "james.brace@mail.mcgill.ca" ]
james.brace@mail.mcgill.ca
5f751d070b7b8f37c7891268731da16b714824f3
066286643b062e681e3f35c83ac8fa9187a402db
/Section4/py_project/Lib/site-packages/django/core/management/commands/dumpdata.py
31df5ac2440c294424bf6015d86f4adb5b3e1751
[ "MIT" ]
permissive
PacktPublishing/Real-World-Projects-in-Python-3.x
fd4664ac70e67a922eab422a6c339d65ab1aee90
ac1cddb400e4e8b9bad3eea0eac3c33f06867d7a
refs/heads/master
2023-02-13T10:21:47.780189
2023-01-30T08:40:38
2023-01-30T08:40:38
183,572,451
18
9
MIT
2022-12-13T02:26:39
2019-04-26T06:40:50
Python
UTF-8
Python
false
false
8,479
py
import warnings from collections import OrderedDict from django.apps import apps from django.core import serializers from django.core.management.base import BaseCommand, CommandError from django.core.management.utils import parse_apps_and_model_labels from django.db import DEFAULT_DB_ALIAS, router class ProxyModelWa...
[ "35484449+cleonb-packt@users.noreply.github.com" ]
35484449+cleonb-packt@users.noreply.github.com
9f628a3fcb3ba15724f1abcb004ff2ed34f398a2
ad13583673551857615498b9605d9dcab63bb2c3
/output/instances/nistData/atomic/nonNegativeInteger/Schema+Instance/NISTXML-SV-IV-atomic-nonNegativeInteger-enumeration-3-2.py
b576ac7679de66f6d806e4fa821974abf9447594
[ "MIT" ]
permissive
tefra/xsdata-w3c-tests
397180205a735b06170aa188f1f39451d2089815
081d0908382a0e0b29c8ee9caca6f1c0e36dd6db
refs/heads/main
2023-08-03T04:25:37.841917
2023-07-29T17:10:13
2023-07-30T12:11:13
239,622,251
2
0
MIT
2023-07-25T14:19:04
2020-02-10T21:59:47
Python
UTF-8
Python
false
false
648
py
from output.models.nist_data.atomic.non_negative_integer.schema_instance.nistschema_sv_iv_atomic_non_negative_integer_enumeration_3_xsd.nistschema_sv_iv_atomic_non_negative_integer_enumeration_3 import NistschemaSvIvAtomicNonNegativeIntegerEnumeration3 from output.models.nist_data.atomic.non_negative_integer.schema_ins...
[ "tsoulloftas@gmail.com" ]
tsoulloftas@gmail.com
52164c85a80608ac931cec19edf6440abf757d17
e48a43af1b285f19137cf1c839ea5836312c6793
/toutiao.py
f330e711018b71ad4b9619c8c133b9cad3456107
[]
no_license
willfengis/toutiao
5f933aadebd6a24d5f4a69c162a61efb4dcd68d0
10fc31a46368f9cc08e5889f4a644a2e0ffc7028
refs/heads/master
2021-01-21T10:47:17.788795
2017-08-31T10:09:27
2017-08-31T10:09:27
101,987,700
0
0
null
null
null
null
UTF-8
Python
false
false
2,909
py
import requests from urllib.parse import urlencode from requests.exceptions import RequestException import json from bs4 import BeautifulSoup import re import pymongo import os from multiprocessing import Pool from hashlib import md5 from com.it.ttconfig import * client = pymongo.MongoClient(MONGO_URL,connect=False) db...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
651465018b3370f246d12c0b45dead9a006898ac
5488617b1b05c436b1f8c8642ea75ca754719f8d
/phenomenological/Single_TOP/select_scripts/script/script_1065.py
07afd7a1b201fed85dd725acf70a9ea4ba7a34d7
[]
no_license
wenxingfang/TW_Top
fdb1ba136be6ace8fdacaade58cb4ca4fcdc3c9e
389e76c904d08a59d9141b9b66ec15d2583f8e9a
refs/heads/master
2021-02-05T06:54:27.908688
2020-02-28T13:24:00
2020-02-28T13:24:00
243,754,087
0
1
null
null
null
null
UTF-8
Python
false
false
231
py
import os import ROOT ROOT.gSystem.Load("/user/wenxing/ST_TW_channel/CMSSW_8_0_25/src/Phynomenological_study/Single_TOP/select_scripts/select_save_parton_C.so") ROOT.gROOT.ProcessLine('select_save_parton("1065")') print 'Done!'
[ "wenxing.fang@cern.ch" ]
wenxing.fang@cern.ch
781541a1f0b86a43ce728e170b53055a99749d93
12123592a54c4f292ed6a8df4bcc0df33e082206
/py2/pgms/sec6/flask/db_create.py
667c9a87acb3e16e1bbb26111a89d32eaae62ba8
[]
no_license
alvinooo/advpython
b44b7322915f832c8dce72fe63ae6ac7c99ef3d4
df95e06fd7ba11b0d2329f4b113863a9c866fbae
refs/heads/master
2021-01-23T01:17:22.487514
2017-05-30T17:51:47
2017-05-30T17:51:47
92,860,630
0
0
null
null
null
null
UTF-8
Python
false
false
525
py
#!venv/bin/python # db_create.py - create database from migrate.versioning import api from config import SQLALCHEMY_DATABASE_URI from config import SQLALCHEMY_MIGRATE_REPO from app import db import os.path db.create_all() if not os.path.exists(SQLALCHEMY_MIGRATE_REPO): api.create(SQLALCHEMY_MIGRATE_REPO, 'database ...
[ "alvin.heng@teradata.com" ]
alvin.heng@teradata.com
f1b609c2eddd00d477feba9484dbec32eaf69cf5
6b4ab6543a3ead51a4b26dd750b01925c6a59a81
/rawe/newton/nmpcMaps.py
0115715b43911eb057a78714303a19406993d614
[]
no_license
jaeandersson/rawesome
f5139f255d8de90467329e3d0d35b9f32e5d459b
67e8eefd6eedd9df563084c9a3238733cfe21a47
refs/heads/master
2021-01-18T10:30:55.579069
2013-04-04T11:06:38
2013-04-04T11:06:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,039
py
import numpy as np import casadi as C class VectorizedReadOnlyNmpcMap(object): """ Initialize this with a vector (like MX or numpy.array) and it will provide efficient slices with xVec/uVec/pVec. It will also provide lookup(name,timestep) functionality """ def __init__(self,dae,nk,vec): ...
[ "gregmainland@gmail.com" ]
gregmainland@gmail.com
c384ec15b71a910edb23a3ece597828f1918efc1
ba80ca143ba35fd481730786a27ebdb1f88ce835
/algorithm/Daily Coding Problem/전체탐색/5.py
b00f4a6021504dc364e8ea5b32dbdadd7ce6fbe1
[]
no_license
uiandwe/TIL
c541020b65adc53578aeb1c3ba4c6770b3b2e8b3
186544469374dd0279099c6c6aa7555ee23e42fe
refs/heads/master
2022-02-15T08:33:07.270573
2022-01-01T15:22:54
2022-01-01T15:22:54
63,420,931
2
4
null
null
null
null
UTF-8
Python
false
false
720
py
# -*- coding: utf-8 -*- """ Given an array of integers where every integer occurs three times except for one integer, which only occurs once, find and return the non-duplicated integer. For example, given [6, 1, 3, 3, 3, 6, 6], return 1. Given [13, 19, 13, 13], return 19. Do this in O(N) time and O(1) space. """ de...
[ "noreply@github.com" ]
uiandwe.noreply@github.com
bcc9c809b5e3b2f36a892d4ae81d9509a2aba905
4cbc8b81d197bc392d1b57856254300331b9738f
/python/voz.py
9a63b10843050891efa76b73fcb08d8c72ccf6b6
[ "MIT" ]
permissive
vcatafesta/chili
87b9606f17cda645ba44cbf2bb4cc4637e18d211
5c734ac88454db76eb2f4e92c13364a5bbc7a93a
refs/heads/main
2023-09-01T01:39:09.457448
2023-08-29T21:23:28
2023-08-29T21:23:28
171,972,556
2
2
null
2019-02-22T01:38:49
2019-02-22T01:26:46
null
UTF-8
Python
false
false
260
py
# coding: cp860 import speech_recognition as sr r = sr.Recognizer() with sr.Microphone() as s: r.adjust_for_ambient_noise(s) while True: audio = r.listen(s) print("Voce respondeu:", r.recognize_google(audio, language = 'pt'))
[ "vcatafesta@gmail.com" ]
vcatafesta@gmail.com
00fc5380aacd4b854d68cc5cd1802c1879b9e2e4
260306e56beaaa5ecad8f783d094ecbabef4705b
/blog.py
3bfbbfd1ea4129429f2520d6cd12680037202c45
[]
no_license
xxnbyy/mytools
dd5f09033b2b794b3e56bf16b9d4f28fe1377503
88d99614f09dd7a96f787236d0bbf674dfc5fcf2
refs/heads/master
2021-04-29T10:13:07.230358
2016-12-29T13:16:56
2016-12-29T13:16:56
77,874,884
0
1
null
2017-01-03T01:49:32
2017-01-03T01:49:32
null
UTF-8
Python
false
false
899
py
############################################################# ### ### _|_|_| _| _| _| _| ### _| _| _| _|_|_| _|_| _| _| _|_|_|_| ### _|_| _|_| _| _| _| _| _| _| _| ### ...
[ "quanyechavshuo@gmail.com" ]
quanyechavshuo@gmail.com
7428a6f9ed8f18d1d5b40f66c207c09dbccfea2e
58ee1dc37b57e0b4f06cf383c6a9e0654f490150
/python-zict/lilac.py
74172c63bc984bdbddbadf099461698472befd29
[]
no_license
MikeyBaldinger/arch4edu
f3af87ef3a8d4cd78fde7e0ef75658c17dbe8c06
c1775bf7fe0ffc87f3c8b4109fb1e8acde12a430
refs/heads/master
2022-12-23T16:40:55.513537
2020-09-28T21:00:59
2020-09-28T21:00:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
350
py
#!/usr/bin/env python3 from lilaclib import * maintainers = [{'github': 'petronny', 'email': 'Jingbei Li <i@jingbei.li>'}] update_on = [{'aur': None}, {'alias': 'python'}] build_prefix = 'extra-x86_64' repo_depends = ['python-heapdict'] pre_build = aur_pre_build post_build = aur_post_build if __name__ == '__main__': ...
[ "i@jingbei.li" ]
i@jingbei.li
5cf4e3cccdec114e403ab352d32e8640f5a6250b
b99bbc50ab1d039948ccf853963ae044a97498fb
/src/api/symbols/views/__init__.py
9f0254365c9be66a905516f608870a81172d33c2
[]
no_license
fan1018wen/Alpha
26899cc0eb6761bf6bd8089e7d12716c9e7ae01e
c50def8cde58fd4663032b860eb058302cbac6da
refs/heads/master
2021-05-12T12:54:15.747220
2017-10-11T10:58:51
2017-10-11T10:58:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,736
py
from django.core.paginator import Paginator from django.db.models import Q from rest_framework.views import APIView from common.models import BackstageHTTPResponse from common.utils import log_exception from symbols.filters import SymbolFilter from symbols.models import Symbol from symbols.serializers import SymbolSer...
[ "mengqiang@1b2b.cn" ]
mengqiang@1b2b.cn
9ae6c6e071cb9074c94b0058901696c52d416298
a0eb6744e6f7f509b96d21f0bc8b3f8387f6861c
/notebook/union_find_basic_usage.py
01c45b5560292afba9712dec8f754ebe83733393
[ "MIT" ]
permissive
nkmk/python-snippets
a6c66bdf999502e52f4795a3074ced63bf440817
f9dd286a9cf93f474e20371f8fffc4732cb3c4d5
refs/heads/master
2023-08-03T04:20:05.606293
2023-07-26T13:21:11
2023-07-26T13:21:11
98,900,570
253
77
MIT
2020-10-25T01:12:53
2017-07-31T14:54:47
Jupyter Notebook
UTF-8
Python
false
false
1,721
py
from union_find_basic import UnionFindBasic, UnionFindPathCompression, UnionFindByRank, UnionFindBySize, UnionFind ufb = UnionFindBasic(5) print(ufb.parents) # [0, 1, 2, 3, 4] ufb.union(3, 4) print(ufb.parents) ufb.union(2, 3) print(ufb.parents) ufb.union(1, 2) print(ufb.parents) ufb.union(0, 4) print(ufb.parents) # ...
[ "nkmk.on@gmail.com" ]
nkmk.on@gmail.com
5be778cd62c0fc4fb164b11572b2864f06dd6ffe
4a0f8c5c0e8324fa614da776f2a704b5c369ccbb
/topologyTest/GetDDIs_150_250Examples_WithDifferentDomainNames.py
cafde521581bfddd4fd57d7b907fcb2ae3e1149d
[]
no_license
magic2du/contact_matrix
9f8ae868d71e7e5c8088bf22a9407ea3eb073be6
957e2ead76fabc0299e36c1435162edd574f4fd5
refs/heads/master
2021-01-18T21:15:07.341341
2015-09-16T02:14:53
2015-09-16T02:14:53
24,237,641
0
0
null
2015-09-10T19:58:24
2014-09-19T16:48:37
null
UTF-8
Python
false
false
1,903
py
import _mysql from dealFile import * #Get of Domains which has more than 2 interfaces have 16-20 examples db=_mysql.connect(host="localhost",user="root",passwd="zxcv4321",db="DDI") #db.query("""select COUNT(*) from PPI inner join example on (ID = PPI_ID) where domain1="ACT" and domain2="ACT" and topology_1 = 6 and topo...
[ "magic2du@gmail.com" ]
magic2du@gmail.com
b5ab5cda1555793b46c2e5542858767a98e8ef6e
658e2e3cb8a4d5343a125f7deed19c9ebf06fa68
/course_DE/udacity-data-engineering-projects-master/Project 5 - Data Pipelines with Airflow/exercises/dags/3_ex3_subdags/dag.py
bc6617c67ca71e8cfaa562b89339fc7fdf1fc524
[]
no_license
yennanliu/analysis
3f0018809cdc2403f4fbfe4b245df1ad73fa08a5
643ad3fed41961cddd006fadceb0e927f1db1f23
refs/heads/master
2021-01-23T21:48:58.572269
2020-10-13T22:47:12
2020-10-13T22:47:12
57,648,676
11
9
null
null
null
null
UTF-8
Python
false
false
2,352
py
# Instructions # In this exercise, we’ll place our S3 to RedShift Copy operations into a SubDag. # 1 - Consolidate HasRowsOperator into the SubDag # 2 - Reorder the tasks to take advantage of the SubDag Operators import datetime from airflow import DAG from airflow.operators.postgres_operator import PostgresOperator ...
[ "f339339@gmail.com" ]
f339339@gmail.com
a0fcd76bb531bd1b8db92bfd0f143b1ac789e17f
f983d2fc949bc0de944755a19e57e5d15466dd98
/homeads/mails.py
a837ea5fa7f51062eae6d086a491ffecd86079ce
[]
no_license
wd5/localized_classified_ads
2c523a58372a3963d15f01e52709e1923df20ca7
49414088a8ba7f09da35f005b15652efd2bcdb18
refs/heads/master
2020-12-25T15:30:40.113192
2012-11-01T15:29:02
2012-11-01T15:29:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,646
py
#-*- coding: utf-8 -*- from django.contrib.sites.models import Site from utils.mails import AdEmailMultiAlternatives class HomeEmail(AdEmailMultiAlternatives): """ Class used to send multi alternavies email (text + html) for AcheterSansCom and LouerSansCom """ def get_default_context(self): ...
[ "samuel.goldszmidt@gmail.com" ]
samuel.goldszmidt@gmail.com
2d91f87c27aff3220f48df0e44ec5d65370af653
c831e7f6c434900d817f59a11b25e78a1a5090ad
/Calibration/CalibConfigFiles/MuonCalibration/CalibConfig_DetModel89_RecoStage38.py
4f213b2a710dcce9269a2f654daa625b68761bfc
[]
no_license
StevenGreen1/OptimisationStudies
8cca03f57d2cbf81e5fb609f13e2fa4b9c9880f6
c5741e8d2fab4752ceca8b10cc5f2bbc1a7fafa9
refs/heads/master
2021-01-18T21:30:51.418785
2017-02-21T16:27:50
2017-02-21T16:27:50
44,306,370
0
0
null
null
null
null
UTF-8
Python
false
false
2,896
py
# Digitisation Constants - ECal CalibrECal = 42.121331495 # Digitisation Constants ILDCaloDigi - HCal CalibrHCalBarrel = 47.5716455642...
[ "sg1sg2sg3@hotmail.co.uk" ]
sg1sg2sg3@hotmail.co.uk
965503ab5aa40de1f3305cdc5d07646e13c4cb78
c60c199410289c1d7ec4aea00833b461e1f08f88
/.history/older-than/day2/func1.py
13cbbeac3c8a8aec182f78f63a9acaf9f1149a4d
[]
no_license
ver007/pythonjumpstart
66fb111e6af197fad3e853b2c2d712a1b57a7d59
5b1f52479abd07456e2da494149e491d398f3b7d
refs/heads/master
2021-01-21T01:34:35.501870
2015-05-13T14:10:13
2015-05-13T14:10:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
104
py
#!/usr/bin/env python def sum(a, b): return a+b #print sum(2, 3) func = sum print func(10, 100)
[ "ravi@rootcap.in" ]
ravi@rootcap.in
836dfafcfdee968679acbc1cd37e6add131774e2
994a82e4d859e605cf67736446aadcaf3cca2ec8
/examples/query_horizon.py
f5d72107849b8b207524dd159b162cfb44653d09
[ "Apache-2.0" ]
permissive
kingdavid6336/py-stellar-base
fe7a5af576b7f03f7d36badca6a540232719e7cc
5e22370113e81eca1096ae62d58a5e663ffebca7
refs/heads/master
2021-12-18T14:20:01.146139
2020-06-21T07:55:59
2020-06-21T07:58:57
231,694,118
1
0
Apache-2.0
2020-06-21T12:04:49
2020-01-04T01:52:57
Python
UTF-8
Python
false
false
464
py
from stellar_sdk import Server server = Server(horizon_url="https://horizon-testnet.stellar.org") # get a list of transactions that occurred in ledger 1400 transactions = server.transactions().for_ledger(1400).call() print(transactions) # get a list of transactions submitted by a particular account transactions = se...
[ "4catcode@gmail.com" ]
4catcode@gmail.com
b6d49962e507d1202269880c14641540b5bffc8d
b22778ed4a21cc1102512ae7da7e8225b5f5299e
/examples/vector_v3.py
b5c655b305449e8e06758c7fe3ff2eeb22089f93
[ "MIT" ]
permissive
afcarl/pythonic-api
4722358935075878ff91a640174a2e5d0ae5764d
764cb9dba9418c591d6d0cef20401b58d8ce0b1b
refs/heads/master
2020-03-18T16:41:40.297453
2016-07-30T19:45:41
2016-07-30T19:45:41
134,980,879
1
0
null
2018-05-26T17:18:08
2018-05-26T17:18:08
null
UTF-8
Python
false
false
1,369
py
""" A multi-dimensional ``Vector`` class, take 3 """ from array import array import math import reprlib import numbers class Vector: typecode = 'd' def __init__(self, components): self._components = array(self.typecode, components) def __len__(self): return len(self._components) de...
[ "luciano@ramalho.org" ]
luciano@ramalho.org
daebceb3498025be0ba64616015b483e5246c793
3c54f853a782e07675b809cada049debe3d415b1
/main/rates/management/commands/get_rate_data.py
a5e02efdf4c86d7cd7a4d9b3c79e36f983ab86be
[ "MIT" ]
permissive
Hawk94/coin_tracker
ebf82a17aff1ae84aa7de872734dbf1616022de5
082909e17308a8dd460225c1b035751d12a27106
refs/heads/master
2021-01-24T08:12:37.041745
2017-08-10T11:01:19
2017-08-10T11:01:19
93,378,699
0
0
null
null
null
null
UTF-8
Python
false
false
786
py
from django.core.management.base import BaseCommand, CommandError from django.conf import settings from main.rates.models import Rate import requests import datetime import decimal class Command(BaseCommand): help = 'Gets todays BTC price and saves it to the database' def handle(self, *args, **options): ...
[ "x99tom.miller@gmail.com" ]
x99tom.miller@gmail.com
123ff2163d0dea2759b84eef2ebe3fab6a5fdbff
7cc53a80f8ca9716e2e6893b6fd98ddab326061c
/iHome/web_html.py
453a18b89d1a6db8eec578debdba818165338f0e
[]
no_license
zengsiquan/ihome
4b98c476fdf381ad18113b070a44e48432b51a58
40926f74d46bc76de4aecd98cfc52302ecf72f1b
refs/heads/master
2020-03-10T00:55:06.484107
2018-04-10T13:22:52
2018-04-10T13:22:52
129,093,116
0
0
null
null
null
null
UTF-8
Python
false
false
561
py
# -*- coding:utf-8 -*- from flask import Blueprint,current_app,make_response from flask_wtf import csrf html = Blueprint('html',__name__) @html.route('/<re(".*"):file_name>') def get_html(file_name): if not file_name: file_name = 'index.html' if file_name != "favicon.ico": file_name= 'html/...
[ "xwp_fullstack@163.com" ]
xwp_fullstack@163.com
718743c7da0e3030a59f7358c4988be1a2d87356
534570bbb873293bd2646a1567b63d162fbba13c
/Python/Data Structure/Binary Tree/Serilization:Deserialization/Verify Preorder Serialization of a Binary Tree.py
9a2274a297c9e044d6cc6fe2a8830f27f34a8bea
[]
no_license
XinheLIU/Coding-Interview
fa3df0f7167fb1bc6c8831748249ebaa6f164552
d6034c567cef252cfafca697aa316c7ad4e7d128
refs/heads/master
2022-09-17T14:30:54.371370
2022-08-19T15:53:35
2022-08-19T15:53:35
146,382,499
0
1
null
null
null
null
UTF-8
Python
false
false
836
py
class Solution: def isValidSerialization(self, preorder: str) -> bool: stack = [] top = -1 preorder = preorder.split(',') for s in preorder: stack.append(s) top += 1 while self.endsWithTwoHashes(stack,top): h = stack.pop() ...
[ "LIUXinhe@outlook.com" ]
LIUXinhe@outlook.com
1cae18ce8bce6554011b5d4dd4091266f3224738
4d9b7b5f12b343e515609b063bdf5c31fe89a4f9
/asynchttp/websocket.py
ad23d2e17d1975f029217e182f7e79048da1b7f1
[ "BSD-3-Clause" ]
permissive
oohlaf/asynchttp
6aa956695dd82a60854d98afbf09741ce5c1fee9
2fb6a3b321c130e7b87cf1de03f042b89579a702
refs/heads/master
2021-01-16T19:47:18.929253
2013-10-10T23:36:13
2013-10-10T23:36:13
13,546,086
0
0
null
null
null
null
UTF-8
Python
false
false
7,484
py
"""WebSocket protocol versions 13 and 8.""" __all__ = ['WebSocketParser', 'WebSocketWriter', 'do_handshake', 'Message', 'WebSocketError', 'MSG_TEXT', 'MSG_BINARY', 'MSG_CLOSE', 'MSG_PING', 'MSG_PONG'] import base64 import binascii import collections import hashlib import struct from asynchttp im...
[ "fafhrd91@gmail.com" ]
fafhrd91@gmail.com
67624c3041be101cc92c160d6d7e7fd3442377f3
832f86e052d90916fb0c8156825c87dc13c0443e
/imported-from-gmail/2020-05-03-invert-a-binary-tree.py
3afada0e040cf5b62868c3542fa850c26f003171
[]
no_license
johncornflake/dailyinterview
292615849cea62cb945ecc7039c594b6966a81f3
91bb0edb9e25255e6222279109c15ae9d203970c
refs/heads/master
2022-12-09T21:02:12.204755
2021-06-07T13:09:34
2021-06-07T13:09:34
225,059,833
0
0
null
2022-12-08T11:27:38
2019-11-30T19:24:58
Python
UTF-8
Python
false
false
1,226
py
Hi, here's your problem today. (You've reached the end of the problems for now - in the meanwhile, here is a random question. And visit CoderPro for more practice!) This problem was recently asked by Twitter: You are given the root of a binary tree. Invert the binary tree in place. That is, all left children shou...
[ "chadeous@gmail.com" ]
chadeous@gmail.com
ca092fc09e899aefc6a21b81dd2fa026594f71d9
ff0c17789badd75559eb834fe039d4b4ab175ba8
/pythonscript/x11-64-cpython/lib/python3.6/site-packages/zmq/green/core.py
a86c455dce0748319cf9d86431b9b202ef28f26b
[ "LicenseRef-scancode-python-cwi", "LicenseRef-scancode-free-unknown", "Python-2.0", "GPL-1.0-or-later", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unicode", "BSD-3-Clause", "Apache-2.0", "LicenseRef-scancode-public-domain", "OpenSSL", "MIT" ]
permissive
studioschade/notebook_graph
3f7555ab46167b050e461164c6b4a1525dc7df0c
0fd159855fdd9c38a6dd293e5ec6164986ad6209
refs/heads/master
2022-10-23T23:54:54.467050
2018-10-14T08:10:18
2018-10-14T08:10:18
148,099,361
9
2
MIT
2022-10-10T20:16:48
2018-09-10T04:32:44
Python
UTF-8
Python
false
false
10,619
py
#----------------------------------------------------------------------------- # Copyright (C) 2011-2012 Travis Cline # # This file is part of pyzmq # It is adapted from upstream project zeromq_gevent under the New BSD License # # Distributed under the terms of the New BSD License. The full license is in # the fi...
[ "allen.schade@gmail.com" ]
allen.schade@gmail.com
892eeecf50de0754f98741f00a9c62aa1017f5c9
91214eaa804c0673c4ef476be99331ee745af352
/application/models/piece.py
558ad924ced777003c1b2c77b38ec9534659d9f9
[]
no_license
Spike774/1jingdian
52a534bae08b162800e038e28c70d2a352155e38
7648bf8adb8964220b25f483f92d3e66f0b33ba8
refs/heads/master
2021-01-18T01:41:34.546533
2015-04-21T15:31:30
2015-04-21T15:31:30
34,445,222
1
0
null
2015-04-23T08:55:20
2015-04-23T08:55:20
null
UTF-8
Python
false
false
10,707
py
# coding: utf-8 import qrcode import math from flask import g from urlparse import urlparse from datetime import datetime, date, timedelta from ._base import db from ..utils.uploadsets import qrcodes, save_image from ..utils.helpers import absolute_url_for class Piece(db.Model): """Model for text piece""" id ...
[ "hustlzp@qq.com" ]
hustlzp@qq.com
5e45efaf0a3d7732008c6b31f63ea03a3f44c0fe
d75359fde22b08a4109b30bb39c9db27961fa417
/loginpass/github.py
794d62418c269dca14a72d1f15a6c4568fd4dea5
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
authlib/loginpass
58f0881b4e5975c305e633337d1b86657bea907b
635823a78a2a92cf8630f9935aebb9afcccb8656
refs/heads/master
2022-06-08T13:08:09.271879
2020-12-08T06:04:39
2020-12-08T06:04:39
128,506,236
280
95
BSD-3-Clause
2022-05-13T19:30:54
2018-04-07T07:26:46
Python
UTF-8
Python
false
false
1,775
py
""" loginpass.github ~~~~~~~~~~~~~~~~ Loginpass Backend of GitHub (https://github.com). Useful Links: - Create App: https://github.com/settings/developers - API documentation: https://developer.github.com/v3/ :copyright: (c) 2018 by Hsiaoming Yang :license: BSD, see LICENSE for more ...
[ "me@lepture.com" ]
me@lepture.com
67fd4e81addbef4bfb8d19272ec99dbf5c5362c6
1d27decdb5207616837f03a36741947a46e8852d
/py/hscTools/pipe_test/stacker.py
54af743c04e6fd06668d3410c5a7ec4f07cf2be9
[]
no_license
dr-guangtou/hs_hsc
12d7a83ee9898f6d9fb5cf5dc85fa682d50578e8
865abc0ba5337d3a085efa99b87ebfcfdd9710af
refs/heads/master
2021-01-17T03:20:03.900050
2019-06-19T05:26:34
2019-06-19T05:26:34
23,053,990
0
2
null
2015-12-02T15:52:47
2014-08-18T00:47:48
Python
UTF-8
Python
false
false
14,441
py
#!/usr/bin/env python # # LSST Data Management System # Copyright 2008, 2009, 2010 LSST Corporation. # # This product includes software developed by the # LSST Project (http://www.lsst.org/). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public Licen...
[ "dr.guangtou@gmail.com" ]
dr.guangtou@gmail.com
dcfd46cd7f64e2d713c1cee6172c58fb7d16cbea
9bb5241e1e48ec6d4a879ab53ec3976d747a39e0
/test/test_fx.py
18f42c03af0242a570b774d6b70e3b6b4d6f200e
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0", "BSD-2-Clause" ]
permissive
yupeifengyannis/pytorch
9dd4c2cebeb119ed57178f09e76366d17d27169b
c97dc9286dbea2cd3b3ca407e35cffdb3b181fdb
refs/heads/master
2021-12-06T13:27:47.115070
2021-12-05T03:42:55
2021-12-05T03:44:07
357,236,572
0
0
NOASSERTION
2021-04-12T15:03:16
2021-04-12T15:03:15
null
UTF-8
Python
false
false
139,137
py
# Owner(s): ["oncall: fx"] import builtins import contextlib import copy import functools import inspect import math import numbers import operator import os import pickle import sys import torch import traceback import typing import types import warnings import unittest from math import sqrt from torch.multiprocessin...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
ee32eb4c5bf0fa3b9827e0a11a8b943fbb9b709d
5c5b53b686cd11b76772768096d096b1f2e0636b
/codingtest/findCityBJ18352.py
d3ad4ff983e5fb5e1aeb7f0e0ff5922c2ea6daa9
[]
no_license
jewerlykim/python_Algorithm
3e72fe9b145ff172ca76c9d59fd1be6246513ae5
e83b7e8fc58807ebf05f423d962ad9ce37100ada
refs/heads/main
2023-08-22T10:23:29.764080
2021-10-14T16:13:14
2021-10-14T16:13:14
322,784,608
2
0
null
null
null
null
UTF-8
Python
false
false
1,019
py
import sys from collections import deque # sys.stdin = open("/Users/jewerlykim/Desktop/python_Algorithm/codingtest/18352.txt", 'r') cityNumber, roadNumber, distance, startCityNumber = map(int, sys.stdin.readline().split()) graph = [[] for _ in range(cityNumber+1)] visited = [False for _ in range(cityNumber+1)] distan...
[ "jsjs21good@gmail.com" ]
jsjs21good@gmail.com
0064386a9682b065d6f45192f430c384290a799a
c929632612012a436fdec27771a6a8716cdb24bf
/setup.py
047ed9b775f9449564700e84813c16890e9b8e7d
[]
no_license
imclab/python-ucto
bae2f082068261b70bf71ea681b92bf6e2e6263b
a07e87f568cdb342b84f7b76e9f466d507567211
refs/heads/master
2021-01-14T10:30:27.892695
2016-03-10T14:49:58
2016-03-10T14:49:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,652
py
#!/usr/bin/env python from distutils.core import setup, Extension from Cython.Distutils import build_ext import glob import os import sys from os.path import expanduser HOMEDIR = expanduser("~") VERSION = '0.3.0' includedirs = [HOMEDIR + '/local/include/','/usr/include/', '/usr/include/libxml2','/usr/local/include/' ...
[ "proycon@anaproy.nl" ]
proycon@anaproy.nl
59c3785a4ac2ee9b31690323dc85dd3b30e8673e
52b5773617a1b972a905de4d692540d26ff74926
/.history/get_20200805213236.py
40816acd83fa8a37b6e300d4e36406c9b1c906c9
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
167
py
def produce(num1,num2): totalValue = 0 for i in range(num1): print(i) totalValue +=num2 print(totalValue) produce(2,3) # 4513 = 4 *
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
6a7d2bc23a45d9781a2a50fbd1c51140a331df8f
8efe56ee34c455a6b1336897f6d457acbc9c10f9
/examples/tf/trpo_gym_tf_cartpole.py
d68045cd1292b920783ca7aa1a65100b8b7b1e9b
[ "MIT" ]
permissive
neurips2020submission11699/metarl
ab18d11e708bf569d76cb2fab2bcce089badd111
ae4825d21478fa1fd0aa6b116941ea40caa152a5
refs/heads/master
2022-10-15T22:03:09.948673
2020-06-11T19:22:55
2020-06-11T19:30:58
268,410,657
4
0
null
null
null
null
UTF-8
Python
false
false
1,441
py
#!/usr/bin/env python3 """An example to train a task with TRPO algorithm.""" import gym from metarl import wrap_experiment from metarl.envs import MetaRLEnv from metarl.experiment import LocalTFRunner from metarl.experiment.deterministic import set_seed from metarl.np.baselines import LinearFeatureBaseline from metarl...
[ "neurips2020submission11699@gmail.com" ]
neurips2020submission11699@gmail.com
91ae813803ef41b2393de367a4d0b898cf8d03a7
caaa1c57129a3e2369e4d6eeda46a94247c686d6
/flight/migrations/0002_auto_20180921_1020.py
9af863ff7971c398ad3a5436ebedac81b720fbb6
[]
no_license
Sundarmax/Ariline--Django-REST
3884c14ab8440f809c1dbac7d91b7349a9e4d3a0
131f875f58c94f0c297a2b82c31c4880d7f5de08
refs/heads/master
2020-03-31T02:31:57.754379
2018-10-06T10:16:03
2018-10-06T10:16:03
151,828,051
0
0
null
null
null
null
UTF-8
Python
false
false
366
py
# Generated by Django 2.1.1 on 2018-09-21 04:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('flight', '0001_initial'), ] operations = [ migrations.AlterField( model_name='flight', name='no_seats', ...
[ "sundar.info22@gmail.com" ]
sundar.info22@gmail.com
aa7516b3f811b25c098019f35297cf83e86f947f
ac54aa0127a47fb59211fba9e6cb8431d9d864cd
/apps/post/api.py
35052cf6869626cc68264ddbd273a9f3f4d61940
[]
no_license
xiringlama/manutd.org.np
8919e3c1ad0494f88b819089686a756d67d38598
f394f16edb96c05e2e864dcec1ec52532cd35ac2
refs/heads/master
2021-07-12T00:33:17.197706
2017-10-16T14:45:10
2017-10-16T14:45:10
107,222,122
1
0
null
null
null
null
UTF-8
Python
false
false
438
py
from rest_framework import viewsets, mixins from apps.key.permissions import DistributedKeyAuthentication from apps.post.models import Post from apps.post.serializers import PostSerializer class PostViewSet(mixins.ListModelMixin, mixins.RetrieveModelMixin, viewsets.GenericViewSet): serializer_class = PostSeriali...
[ "roshanshrestha01@gmail.com" ]
roshanshrestha01@gmail.com
ac82a99b56e519a3667ee7e102affd07d4921e27
38ecf426f34b025b70208faf5d7de03d7ce1e7f3
/Loan.py
04b28028a80419f800080a9e8ca9e2d6c3e6abb6
[]
no_license
ic1396/LearnPython
3ed6805e0cfcc622a8376084715f8c5fe3db8058
faabfecace5dd2ebf28ad75f35c61a29dee801ee
refs/heads/master
2021-11-22T23:26:10.085015
2021-11-06T06:48:19
2021-11-06T06:48:19
89,790,705
0
1
null
null
null
null
UTF-8
Python
false
false
1,500
py
#!/usr/bin/python3 # 《Python语言程序设计》程序清单7-8 # Programed List 7-8 # 示例:类的抽象与封装 利息类 class Loan: def __init__(self, annualInterestRate = 2.5, numberOfYears = 1, loanAmount = 1000, borrower = " "): self.__annualInterestRate = annualInterestRate self.__numberOfYears = numberOfYears ...
[ "redsirius@foxmail.com" ]
redsirius@foxmail.com
b405952335b6929afbb22de633864b74f1b0ad52
b2135e3fc77666f043f0fbafd0d88ed9865d5b4f
/Python files/01 Chapter 1.1 - About Printing/01 Printing numbers/77110_02_code.step.py
f7e395198a69c7e49f8b6c88c7007d98253a1ca1
[]
no_license
Felienne/spea
164d05e9fbba82c7b7df8d00295f7157054f9248
ecb06c66aaf6a2dced3f141ca415be9efb7dbff5
refs/heads/master
2020-03-17T17:35:27.302219
2018-05-17T10:14:49
2018-05-17T10:14:49
133,794,299
0
0
null
null
null
null
UTF-8
Python
false
false
75
py
# This code prints the number 17. Change it so that it prints 19. print(17)
[ "felienne@gmail.com" ]
felienne@gmail.com
6a7583878c83c37b2fc3a1416f0088ec77d2d1b2
0c70dcec22a090e70b1f20613ea6e0a64fd9a037
/GPS卫星位置的计算/venv/Lib/site-packages/pandas/tests/frame/methods/test_pop.py
8029640b10a0a2d2d7b0862092fba802273d2e96
[ "MIT" ]
permissive
payiz-asj/Gis
82c1096d830878f62c7a0d5dfb6630d4e4744764
3d315fed93e2ab850b836ddfd7a67f5618969d10
refs/heads/main
2023-06-27T15:25:17.301154
2021-08-03T10:02:58
2021-08-03T10:02:58
392,269,853
1
1
null
null
null
null
UTF-8
Python
false
false
1,266
py
from pandas import DataFrame, Series import pandas._testing as tm class TestDataFramePop: def test_pop(self, float_frame): float_frame.columns.name = "baz" float_frame.pop("A") assert "A" not in float_frame float_frame["foo"] = "bar" float_frame.pop("foo") ...
[ "1778029840@qq.com" ]
1778029840@qq.com
e99c443f7caab7c5da31ef4e7041c47f6dc04027
1b5802806cdf2c3b6f57a7b826c3e064aac51d98
/tensorrt-integrate-1.5-unet/unet-pytorch-main/unet.py
a00010a9854ff61c486873529329e54e252185eb
[ "MIT" ]
permissive
jinmin527/learning-cuda-trt
def70b3b1b23b421ab7844237ce39ca1f176b297
81438d602344c977ef3cab71bd04995c1834e51c
refs/heads/main
2023-05-23T08:56:09.205628
2022-07-24T02:48:24
2022-07-24T02:48:24
517,213,903
36
18
null
2022-07-24T03:05:05
2022-07-24T03:05:05
null
UTF-8
Python
false
false
15,472
py
import colorsys import copy import time import cv2 import numpy as np import torch import torch.nn.functional as F from PIL import Image from torch import nn from nets.unet import Unet as unet from utils.utils import cvtColor, preprocess_input, resize_image #------------------------------------------...
[ "dujw@deepblueai.com" ]
dujw@deepblueai.com
aa9a0e1ec0fb65029c338c1783ad70bdc8b72522
39c99883c3e55c0a0a7684fc5fd89c767ea93cc8
/model.py
1ba435317b63996e67640f13e3a5cb9aac440e01
[]
no_license
shawntan/billion-word-imputation
872f478926966aa17e44a1738c58fdb90681a552
ea581253537ad76e89ec5eaa0cf80d57d61121e4
refs/heads/master
2020-04-09T11:14:02.828445
2014-11-21T09:32:43
2014-11-21T09:32:43
22,462,900
1
0
null
null
null
null
UTF-8
Python
false
false
4,425
py
# coding=utf-8 import theano import sys import theano.tensor as T import numpy as np from theano_toolkit import utils as U from theano_toolkit import updates import cPickle as pickle from numpy_hinton import print_arr from theano.printing import Print from vocab import read_file def create_vocab_vector...
[ "shawn@wtf.sg" ]
shawn@wtf.sg
d9b69a220873901f4475849a5acbf53bdab5a693
21b201ebf2ffbbc19fa8d74e5657e12ef597b02d
/research/neural_programmer/data_utils.py
d5bae2d30db51a295f9719d42498a4e5bfc775fa
[]
no_license
alhsnouf/model
fa619691ad9d0afc7ad849a9471e6bb0643a8d47
5fe429b115634e642a7469b3f1d4bc0c5cf98782
refs/heads/master
2021-04-12T11:16:02.150045
2018-03-27T15:19:18
2018-03-27T15:19:18
126,702,717
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
version https://git-lfs.github.com/spec/v1 oid sha256:a53d41aacbe166afd6c9e4a1822c313dd0e1cef93707ab41e75a8afd1ffeb53b size 27733
[ "alhanouf987@hotmail.com" ]
alhanouf987@hotmail.com
b400fba31f2fdf357fddd49b9f1a2872913b8b9d
d4cdc6c9e2580b2011d63f6d62f70ab9e13cd317
/sld-api-backend/api_v1/endpoints/auth.py
5c25ca1f22d744b558c204861daeb55ec28aeaec
[ "MIT" ]
permissive
timezombi/Stack-Lifecycle-Deployment
75cc92bc0267953039f0d66c7c219a8d444817c8
d84241099fb44762476b4201a2fc195e76975e26
refs/heads/master
2023-07-13T11:11:35.001371
2021-08-20T13:35:14
2021-08-20T13:35:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
954
py
from typing import Any from sqlalchemy.orm import Session from fastapi import APIRouter, Depends from fastapi.security import OAuth2PasswordRequestForm from schemas import schemas from schemas.schemas import Token from security import deps from security.tokens import validate_user router = APIRouter() @router.post...
[ "{ID}+{username}@users.noreply.github.com" ]
{ID}+{username}@users.noreply.github.com
0a08e11ff1d01c391f047776fe01e6807cafe721
be0e978e39dd4ab192590e97b2e907b4072c461f
/conf.py
4ea22b874cef6819e261d30a7a5e5c553f8d29bc
[]
no_license
kbarbary/dessn-analysis
825007f1bcddf2e7fb92a99ee280cc644fd1ab70
2090b417b757447a28b766a6a5a38a7e7ea68c8e
refs/heads/master
2016-09-05T13:16:07.219179
2014-03-04T23:56:41
2014-03-04T23:56:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
134
py
import os pikdir = 'pik' plotdir = 'plots' # Make directories for d in [pikdir, plotdir]: if not os.path.exists(d): os.mkdir(d)
[ "kylebarbary@gmail.com" ]
kylebarbary@gmail.com
7dd3b559cde230f1cd49d4201ecfa533315f92fe
d83118503614bb83ad8edb72dda7f449a1226f8b
/src/dprj/platinumegg/app/cabaret/views/application/evolution/do.py
403717b769ec36230b647c36b6fe96b538c75f9a
[]
no_license
hitandaway100/caba
686fe4390e182e158cd9714c90024a082deb8c69
492bf477ac00c380f2b2758c86b46aa7e58bbad9
refs/heads/master
2021-08-23T05:59:28.910129
2017-12-03T19:03:15
2017-12-03T19:03:15
112,512,044
0
0
null
null
null
null
UTF-8
Python
false
false
2,683
py
# -*- coding: utf-8 -*- from platinumegg.app.cabaret.util.url_maker import UrlMaker from platinumegg.app.cabaret.views.application.evolution.base import EvolutionHandler from platinumegg.app.cabaret.models.Player import PlayerGold, PlayerDeck from platinumegg.app.cabaret.util.api import BackendApi from platinumegg.app....
[ "shangye@mail.com" ]
shangye@mail.com
f0a2557bcbcb8ad398c5927172e5d6cba1dc2da0
da199a7ff8bcc7a37efe2ac9036b785bf45c71c0
/service_mds/lun_inactive.py
0114f0829c74333e4b42bcfcf171b7d1b4f7836d
[]
no_license
saxisuer/smartmgr-v2
f8ed495ce7ce940477f27c12980bfd159bc159c3
6e3895062d37b6815a0d6de031652048b8f22ad3
refs/heads/master
2021-01-15T21:24:56.622142
2017-07-24T14:35:17
2017-07-24T14:35:17
99,865,861
0
2
null
2017-08-10T01:03:19
2017-08-10T01:03:19
null
UTF-8
Python
false
false
3,502
py
# -*- coding: utf-8 -*- # vim: tabstop=4 shiftwidth=4 softtabstop=4 from pdsframe import * from service_mds import g from service_mds import common import message.pds_pb2 as msg_pds import message.mds_pb2 as msg_mds class LunInactiveMachine(BaseMachine): __metaclass__ = MataMachine MID = msg_mds.LUN_INACTIVE...
[ "wuweisunshine@163.com" ]
wuweisunshine@163.com
8ffd0e1b3034be62335188db3ccdd16b0c58540c
38ac429d63369922e12e19cdda042b08b8123027
/swagger_client/models/json_sort_field_find_attribute_types_request.py
d563a4b2286f13ff3b7dce9832b2c61c8a9565ad
[]
no_license
aviv-julienjehannet/collibra_apiclient
0dfebe5df2eb929645b87eba42fab4c06ff0a6be
10a89e7acaf56ab8c7417698cd12616107706b6b
refs/heads/master
2021-09-12T16:52:19.803624
2018-04-19T01:35:20
2018-04-19T01:35:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,616
py
# coding: utf-8 """ \"Data Governance Center: REST API v2\" No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re...
[ "busworld08@gmail.com" ]
busworld08@gmail.com
678cc4f6459ab6e34107a402ad11f6583bb5612e
fe1d717382b175baeea1e0186fcdefad93e086f3
/arg_greet.py
db7606cbb722b48a2b8c71cf76fca72b6184e4cc
[]
no_license
jiwon73/lecture_2
19669014c7398a0f692e9a20302cb798fc67b438
4ee4f8badb74da6b852a09b8ccfad6eefcc73d3c
refs/heads/master
2022-11-19T16:56:53.074924
2020-07-15T08:52:08
2020-07-15T08:52:08
279,532,343
0
0
null
null
null
null
UTF-8
Python
false
false
155
py
def greet(*names): for name in names: print('안녕하세요',name,'씨') greet('홍길동','양민춘','이순신') greet('James','Thomas')
[ "you@example.com" ]
you@example.com
27307bfe340d36b6bb9ee49fcbd2dc75bc39a97f
bd9d75816e6bb174c2b9e443492096339e3f90e3
/sympy/mpmath/tests/test_rootfinding.py
f6221ada8ef6e46460c9edab405b2b624bc71af7
[ "BSD-3-Clause" ]
permissive
Rezaian-ma/sympy
ae800f0f1420f2cdbef1e4535e44f5cd47c9d8b0
7d8d096215c8f65ba1d4a9c09af78ec0c3844518
refs/heads/master
2021-12-03T01:17:38.048732
2010-02-14T05:53:55
2010-02-14T05:53:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,497
py
from sympy.mpmath import * from sympy.mpmath.optimization import * def test_findroot(): # old tests, assuming secant mp.dps = 15 assert findroot(lambda x: 4*x-3, mpf(5)).ae(0.75) assert findroot(sin, mpf(3)).ae(pi) assert findroot(sin, (mpf(3), mpf(3.14))).ae(pi) assert findroot(lambda x: x*x+1...
[ "ondrej@certik.cz" ]
ondrej@certik.cz
c306066a382072689bc5aec0380668d5f0faeed0
3b802edba5b97a4e97290be657395cd7635f5d35
/neoman/worker.py
8b960c99356d6fd8f2bc7ce851f4f9e769264c14
[ "BSD-2-Clause" ]
permissive
moreati/yubikey-neo-manager
a7678fafbf8f88b29482caa843092f7598b6725c
b0fa3cdf5331bf1504e2744790caddff52b551f6
refs/heads/master
2021-01-19T06:55:58.099823
2015-06-04T11:30:53
2015-06-04T11:30:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,363
py
# Copyright (c) 2013 Yubico AB # All rights reserved. # # Redistribution and use in source and binary forms, with or # without modification, are permitted provided that the following # conditions are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditi...
[ "dain@yubico.com" ]
dain@yubico.com
771df2d2ac822d8885a18f74c6dc9f8bae1bf489
ee721fac058d6c0472be24f95e3cc8df37f4198d
/Stack/reverse.py
4028f27a5effe0e1e23e87a5d35cf04f3f7f0712
[]
no_license
Horlawhumy-dev/Python_DataStructures
51af03dcbed86a51009c13657b17584f09d0a40d
c5aad1fe6c6566414c76711a0871abf9529fe04f
refs/heads/master
2023-06-04T09:32:34.776313
2021-07-02T21:43:09
2021-07-02T21:43:09
377,631,264
0
0
null
null
null
null
UTF-8
Python
false
false
823
py
# this program reverses what string inputs given by user class Stack(): def __init__(self): self.items = [] def is_empty(self): return self.items == [] def push(self, item): self.items.append(item) def pop(self): return self.items.pop() def peek(self): ...
[ "harof.dev@gmail.com" ]
harof.dev@gmail.com
ec213dd72742d92bdd997b79ef064fedbc9c7506
e5b4ed93d6666e195e96a265d3e7cfe4243a7300
/pbase/day13/code/mypack/games/supermario.py
b0979a018d00553c62cb30752ba30cf8fc1721cc
[]
no_license
Spider251/python
934f5b8b923c2b61186a6df8445957290e5c4c74
8b1931f862e1d5c29fed9af624bcac94c1d25755
refs/heads/master
2020-04-05T11:58:04.558098
2018-11-09T12:06:06
2018-11-09T12:06:06
156,852,553
0
0
null
null
null
null
UTF-8
Python
false
false
125
py
# file: mypack/games/supermario.py def play(): print("正在玩 超级玛丽") print("超级玛丽模块被加载")
[ "1419418693@qq.com" ]
1419418693@qq.com
ed3c30613036feb38c28bf2cee2a563c2faa8cc0
8f26514c451e2398d5e3688c184ea74d1dad21b2
/month_01/day_05/exercise_02.py
8d6e663126992c62ca4ef5f413334a35d88be2ec
[]
no_license
CircularWorld/Python_exercise
25e7aebe45b4d2ee4e3e3afded082c56483117de
96d4d9c5c626f418803f44584c5350b7ce514368
refs/heads/master
2022-11-21T07:29:39.054971
2020-07-20T10:12:24
2020-07-20T10:12:24
281,081,559
0
1
null
null
null
null
UTF-8
Python
false
false
1,094
py
''' 字符串: content = "我是京师监狱狱长金海。" 打印第一个字符、打印最后一个字符、打印中间字符 打印字前三个符、打印后三个字符 命题:金海在字符串content中 命题:京师监狱不在字符串content中 通过切片打印“京师监狱狱长” 通过切片打印“长狱狱监师京” 通过切片打印“我师狱海” 倒序打印字符 ''' content = "我是京师监狱狱长金海。" # 打印第一个字符、打印最后一个字符、打印中间字符 # 打印字前三个符、打印后三个字符 print(content[0],content[-1],content[len(content)//2]) print(content[:3],content[-3:])...
[ "jiayuhaowork@163.com" ]
jiayuhaowork@163.com
cc34be56b4526ad16bfdbf503a373b9a3f5a56a3
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03637/s505835119.py
2e2c10f3045b463cc3d59b8aad36d02afaeae057
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
215
py
N=int(input()) a=list(map(int,input().split())) n4,n2=0,0 for i in range(N): if a[i] % 4 == 0:n4 += 1 elif a[i] % 2 == 0:n2 += 1 if n4 >= N//2:print('Yes') elif n4*2 + n2 >= N:print('Yes') else:print('No')
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
191126e94cbf396eb4cb7f58ebd051eaa21c55b3
082782cfbd0d8ac77c0ec3901a9de1c1e748405a
/sutorbank/settings.py
7813c4759f3668de0041e98d18074ace7b3d9d84
[]
no_license
daniel-kanchev/sutorbank
1c1eb020f86ff58f5a3edc2d1c6971e8d66a390d
0738ec698f5711a9ceeb59e0a683a853a3bf8979
refs/heads/main
2023-03-17T17:55:50.537998
2021-03-17T14:47:37
2021-03-17T14:47:37
348,746,138
0
0
null
null
null
null
UTF-8
Python
false
false
363
py
BOT_NAME = 'sutorbank' SPIDER_MODULES = ['sutorbank.spiders'] NEWSPIDER_MODULE = 'sutorbank.spiders' USER_AGENT = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0', ITEM_PIPELINES = { 'sutorbank.pipelines.DatabasePipeline': 300, } FEED_EXPORT_ENCODING = 'utf-8' ROBOTSTXT_OBEY = True LO...
[ "daniel.kanchev@adata.pro" ]
daniel.kanchev@adata.pro
b734da395f91fb51745ae74515623e919ce896ee
2f2667682bb78578445b9e3aac7cc62cfba83d5a
/googlenet/SavedModel_to_trt.py
41b4f1216a144aa9b441b032c1fc82fe4ca0799b
[]
no_license
Yorwxue/trt_experence
9c770c2a1cb7c48c9d7f21c46be0107de91f1c41
778a6cef019dd8afdae6b608b3cbacb56480c7b1
refs/heads/master
2022-12-21T12:38:13.108402
2019-08-01T08:11:10
2019-08-01T08:11:10
195,760,238
0
0
null
2022-12-08T05:57:26
2019-07-08T07:36:12
Python
UTF-8
Python
false
false
4,722
py
# from SavedModel to trt graph import os import time import numpy as np import tensorflow as tf import tensorflow.contrib.tensorrt as trt from tensorflow.examples.tutorials.mnist import input_data from googlenet.checkpoint_to_SavedModel import image_web_saved_encode def directory_create(directory): if not os.pat...
[ "yorwxue@gmail.com" ]
yorwxue@gmail.com
05d5bbe7b2195d31cb3a4e49a9314e81afe7450c
f8d9f893a7afa667a9b615742019cd5c52ee2c59
/core/platform/taskqueue/dev_mode_taskqueue_services_test.py
77e45c75f94fed4aa4120ec85940c3c7e56c064a
[ "Apache-2.0" ]
permissive
FareesHussain/oppia
2ac6c48aaea6a70452b79d665995f6ba6560f70d
2862b7da750ce332c975b64237791f96189d7aa8
refs/heads/develop
2023-08-17T19:25:05.551048
2021-10-01T10:36:36
2021-10-01T10:36:36
323,160,532
2
0
Apache-2.0
2020-12-20T20:38:45
2020-12-20T20:38:44
null
UTF-8
Python
false
false
4,935
py
# coding: utf-8 # # Copyright 2020 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
[ "noreply@github.com" ]
FareesHussain.noreply@github.com
d851c1b76ebb72393f7423de98c40690a78c7c5b
e1e3ee617a50c44c7027ebabc3c918797f8daef8
/sorter.py
9566fdab8378d1cc2d5fe387c44cc5a9bdb5fec2
[]
no_license
Kain-Huang/pithy
179490f6af0d1a77dde015c5570d9d8f75bd3e41
6ed323782cad80954f9ab4a6d81726370d7ff53c
refs/heads/master
2022-01-05T12:12:27.395657
2019-05-19T18:25:08
2019-05-19T18:25:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
258
py
import sys arg = sys.argv[1] print arg from commands import getoutput as go a = arg.split("BREAKKKKK") dird = "" fil = a[-1]+".py" for i in a[:-1]: dird+=i+"/" go("mkdir -p code/"+dird) print dird+fil print go("cp code/%s.py code/%s/%s" % (arg,dird,fil))
[ "dan.steingart@gmail.com" ]
dan.steingart@gmail.com
c9c89d48c222f86dee205223c3208cf1a0857b72
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-mrsp.0/mrsp_ut=3.5_rd=0.5_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=42/params.py
2298340fefd6fd7ac91681022ad274284fb678f8
[]
no_license
ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
UTF-8
Python
false
false
250
py
{'cpus': 4, 'duration': 30, 'final_util': '3.512524', 'max_util': '3.5', 'periods': 'harmonic-2', 'release_master': False, 'res_distr': '0.5', 'res_nmb': '4', 'res_weight': '0.04', 'scheduler': 'RUN', 'trial': 42, 'utils': 'uni-medium-3'}
[ "ricardo.btxr@gmail.com" ]
ricardo.btxr@gmail.com
6665b847961f9fbe18e23a6309b0424a0ede5776
82b946da326148a3c1c1f687f96c0da165bb2c15
/sdk/python/pulumi_azure_native/securityinsights/v20190101preview/get_dynamics365_data_connector.py
2076d0d3c76949d8502ecd1dc8596fbb938831a6
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
morrell/pulumi-azure-native
3916e978382366607f3df0a669f24cb16293ff5e
cd3ba4b9cb08c5e1df7674c1c71695b80e443f08
refs/heads/master
2023-06-20T19:37:05.414924
2021-07-19T20:57:53
2021-07-19T20:57:53
387,815,163
0
0
Apache-2.0
2021-07-20T14:18:29
2021-07-20T14:18:28
null
UTF-8
Python
false
false
5,317
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
[ "noreply@github.com" ]
morrell.noreply@github.com
2c81ad50a51119c1b403adffc535dc8e0b3e962b
82b946da326148a3c1c1f687f96c0da165bb2c15
/sdk/python/pulumi_azure_native/insights/data_collection_rule.py
62121e6c6a62bf9f01862f7d7c4774bc76a24ffb
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
morrell/pulumi-azure-native
3916e978382366607f3df0a669f24cb16293ff5e
cd3ba4b9cb08c5e1df7674c1c71695b80e443f08
refs/heads/master
2023-06-20T19:37:05.414924
2021-07-19T20:57:53
2021-07-19T20:57:53
387,815,163
0
0
Apache-2.0
2021-07-20T14:18:29
2021-07-20T14:18:28
null
UTF-8
Python
false
false
17,724
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
[ "noreply@github.com" ]
morrell.noreply@github.com
a6f320488fbfcac32b54d57d57061287558b662e
89e40bf548403e440c230e06fa6301021ec8b0c7
/sw_expert_academy/D2/p1946.py
12221cf2e3b7cf1e668cdf6f634c66ecca732743
[]
no_license
TaeJuneJoung/Algorithm
b9cf5724501918c7302099b8194d26bd19512bd0
ecc2934a376c91ecec8bfd15af377d8a2973d71d
refs/heads/master
2020-06-19T13:50:14.720987
2019-08-04T14:35:43
2019-08-04T14:35:43
196,732,653
0
0
null
2019-08-04T14:35:44
2019-07-13T14:46:42
Python
UTF-8
Python
false
false
717
py
""" [1946.간단한 압축 풀기] 10개가 찍히면 다음줄로 내려가는 처리가 중요한 문제 또한, 테스트케이스가 하나 끝나면 한줄을 내려줘야한다 T : 테스트케이스 N : 받는 갯수 sum_num : 10개씩 띄어주기 위해서 사용 value : string타입의 값 num : value가 나오는 횟수 """ T = int(input()) for t in range(1, T+1): print("#{}".format(t)) N = int(input()) sum_num = 0 for i in range(N): value, nu...
[ "jtj0525@gmail.com" ]
jtj0525@gmail.com
79ea21858064c500d5f2adf83982fe2f10cbeafd
04dc3d8883c7b5510610ec3e86e4238606fc1e45
/tasks/tasks_fetch_currency_exchange.py
5103de89945a2192d07ba82a923e1b3ed841eb2b
[ "MIT" ]
permissive
xyla-io/almacen
72294c6d7758d39ca12c22af174145d716769b82
7b7f235dc7939777f971f1b5eadd5621e980c15e
refs/heads/main
2022-12-28T22:10:46.905278
2020-10-14T19:42:57
2020-10-16T19:50:55
304,113,749
2
0
null
null
null
null
UTF-8
Python
false
false
2,398
py
import models from . import base from config import CompanyConfiguration from typing import List, Dict, Optional from jones import FixerAPI from datetime import datetime class FetchBaseCurrencyExchangeReportTask(base.FetchReportTask): api: Optional[FixerAPI] min_currency_dates_to_fetch: Dict[str, datetime] max_...
[ "leif@leifmeyer.io" ]
leif@leifmeyer.io
72afca3f30972d5d9f1f07b20ac5b50b0d4d7a58
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4165/codes/1575_994.py
1ea93adeac7832332d12b5ce2126e1464ed3bbe4
[]
no_license
JosephLevinthal/Research-projects
a3bc3ca3b09faad16f5cce5949a2279cf14742ba
60d5fd6eb864a5181f4321e7a992812f3c2139f9
refs/heads/master
2022-07-31T06:43:02.686109
2020-05-23T00:24:26
2020-05-23T00:24:26
266,199,309
1
0
null
null
null
null
UTF-8
Python
false
false
44
py
print("Universidade Federal do Amazonas")
[ "jvlo@icomp.ufam.edu.br" ]
jvlo@icomp.ufam.edu.br
cdad717e47a15a103068cedb950db7175e3f5c00
34d88082307281333ef4aeeec012a3ff5f8ec06e
/100 python/Q090.py
57e5bf3e138599fd5fe71f041643aeb9d105c6eb
[]
no_license
JKChang2015/Python
a6f8b56fa3f9943682470ae57e5ad3266feb47a7
adf3173263418aee5d32f96b9ea3bf416c43cc7b
refs/heads/master
2022-12-12T12:24:48.682712
2021-07-30T22:27:41
2021-07-30T22:27:41
80,747,432
1
8
null
2022-12-08T04:32:06
2017-02-02T17:05:19
HTML
UTF-8
Python
false
false
364
py
# Q090 # Created by JKChang # 09/05/2017, 15:37 # Tag: remove particular element # Description: By using list comprehension, please write a program to print the list after removing the value 24 in # [12,24,35,24,88,120,155]. li = [12, 24, 35, 24, 88, 120, 155] l = [x for x in li if x != 24] # l = [x for (...
[ "jkchang2015@gmail.com" ]
jkchang2015@gmail.com
1c754907b1ef0c71898c4d9a19507c4825d2d577
c2ce7155a393e1056b5fdc4d3f9b9a89046e9285
/aw_nas/btcs/layer2/controller.py
27a221b2b58c7ce980ff31517931a6ac4fda1e97
[ "MIT" ]
permissive
blyucs/aw_nas
9c068dab1bd84a35e58a4c426f7c852a67b93882
8a32196ce342b8ad9e3885895735d1286e25beba
refs/heads/master
2023-08-19T11:00:00.526229
2021-08-21T05:16:13
2021-08-21T05:16:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
47,320
py
""" 2-layer controller. """ from aw_nas import utils, assert_rollout_type from aw_nas.utils import DistributedDataParallel from aw_nas.controller.base import BaseController from aw_nas.btcs.layer2.search_space import ( Layer2Rollout, Layer2DiffRollout, DenseMicroRollout, DenseMicroDiffRollout, Stag...
[ "foxdoraame@gmail.com" ]
foxdoraame@gmail.com
f26247827774f537f5498e3343140e8ee540b7e4
375e834e7a2ff7b085b88cc162fb8215e14cd132
/Python/largest-triangle-area.py
69ea932c4fb00f00dab5018641b8bbcd1559e8ed
[ "MIT" ]
permissive
tickpeach/LeetCode-Solutions
0842086aa1781191fe68639c884986f843194262
16c96776781d04672d653cef48f4f7989685cbe9
refs/heads/master
2020-04-01T02:46:38.356672
2018-10-12T18:15:41
2018-10-12T18:15:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
930
py
# Time: O(n^3) # Space: O(1) try: xrange # Python 2 except NameError: xrange = range # Python 3 class Solution(object): def largestTriangleArea(self, points): """ :type points: List[List[int]] :rtype: float """ result = 0 for i in xrange(len(poin...
[ "kamyu104@gmail.com" ]
kamyu104@gmail.com
23cfc92ea7ec20a590b33c1593e2e718bd0af201
f2658c4bd7f833ace25ac2b63e88317b05f4602d
/2017 July/2017-July-13/tf_rdf/st_rdf_test/model/WaysName.py
a9f3bd56d882d733a2a1cfe3b833a1a3e59fdefb
[]
no_license
xiaochao00/telanav_diary
e4c34ac0a14b65e4930e32012cc2202ff4ed91e2
3c583695e2880322483f526c98217c04286af9b2
refs/heads/master
2022-01-06T19:42:55.504845
2019-05-17T03:11:46
2019-05-17T03:11:46
108,958,763
0
0
null
null
null
null
UTF-8
Python
false
false
18,704
py
#------------------------------------------------------------------------------- # Name: RelationsGeneralCarto model # Purpose: this model is used to mapping the # columns: [ ] # # Author: Kuang # # Created: 10/12/2015 # Copyright: (c) rex 2015 # Licence: <your licence> #--------...
[ "1363180272@qq.com" ]
1363180272@qq.com
2ed90e62775bcf2abcceb6808eb7d46bfad27f24
5a9d8c64c6478f3816b63f59f1cdaca73c0848eb
/pythonNet/ex07_Thread/array.py
fbebd4f0134d54c89387bb558a5577494bae457e
[]
no_license
wangredfei/nt_py
f68134977e6d1e05cf17cec727644509f084c462
fedf03c0d52565f588e9b342d1c51df0b6dc2681
refs/heads/master
2020-04-08T07:55:08.302589
2018-11-23T09:53:48
2018-11-23T09:53:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
503
py
from multiprocessing import Process,Array import time # # 开辟一个共享内存,存入整数列表 # shm = Array('i', [1,2,3,4,5]) # def fun(): # for s in shm: # print(s) # shm[0]=1000 # p = Process(target = fun) # p.start() # p.join() # for i in shm: # print(i) shm = Array('c',b'hello') def fun(): for i in shm: ...
[ "289498360@qq.com" ]
289498360@qq.com
3e05f88b40601505afeed262deb49042d529da7a
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_277/ch118_2020_03_30_20_02_35_602471.py
1f099ee2f4af19fc094bf59344f12a9a10646426
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
import math def reflexao_total_interna(n1,n2,o2): o1=math.sin(o2*math.pi/180)*n2/n1 a=math.sin(o1) if a > 1: return True else: return False
[ "you@example.com" ]
you@example.com
ab320487cab51af6170a88923ce8087b084a8206
9c529778ea60e590e448589e35eb4dae941e832a
/evennia-engine/evenv/share/doc/networkx-2.4/examples/drawing/plot_spectral_grid.py
3f2bc92202d5f7a92efbf193f918e48aa2443540
[ "MIT", "BSD-3-Clause" ]
permissive
rajammanabrolu/WorldGeneration
3d0976ffba8588fcebda8b8593be694e1bc1501d
5e97df013399e1a401d0a7ec184c4b9eb3100edd
refs/heads/master
2022-11-25T20:10:52.682064
2021-09-08T11:50:23
2021-09-08T11:50:23
235,484,371
69
5
MIT
2022-11-22T08:50:22
2020-01-22T02:32:53
Python
UTF-8
Python
false
false
1,603
py
""" ================== Spectral Embedding ================== The spectral layout positions the nodes of the graph based on the eigenvectors of the graph Laplacian $L = D - A$, where $A$ is the adjacency matrix and $D$ is the degree matrix of the graph. By default, the spectral layout will embed the graph in two dimens...
[ "williambroniec@gmail.com" ]
williambroniec@gmail.com
efbc42ba62610026e9e989063cfe821d499f6971
7c17d6047a8a31a54a42dc213a0a3c26ccb320fd
/djlistener/djlistener/asgi.py
c9bd80b307fc14acff4568b13981b3e2eb69841c
[]
no_license
morlandi/sinewave
7d8cd55d4b0fb72b30c99144b09ce55da1722c2d
39e2fe778ca84d045a877f0ef7938ba7a5ef05ce
refs/heads/master
2023-04-16T11:29:11.748802
2021-06-28T14:46:43
2021-06-28T14:46:43
152,848,099
9
5
null
2023-03-31T14:55:40
2018-10-13T07:44:20
Python
UTF-8
Python
false
false
792
py
""" ASGI entrypoint. Configures Django and then runs the application defined in the ASGI_APPLICATION setting. """ # import os # import django # from channels.routing import get_default_application # os.environ.setdefault("DJANGO_SETTINGS_MODULE", "djlistener.settings") # django.setup() # application = get_default_app...
[ "morlandi@brainstorm.it" ]
morlandi@brainstorm.it
8782e35c54ec3809fa7022d9699b4f8f0f1a0bb6
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/Gauss_v45r8/Gen/DecFiles/options/42300000.py
25e564709eaf15a934a790a92af651aa2170f74d
[]
no_license
Sally27/backup_cmtuser_full
34782102ed23c6335c48650a6eaa901137355d00
8924bebb935b96d438ce85b384cfc132d9af90f6
refs/heads/master
2020-05-21T09:27:04.370765
2018-12-12T14:41:07
2018-12-12T14:41:07
185,989,173
0
0
null
null
null
null
UTF-8
Python
false
false
1,133
py
# file /home/hep/ss4314/cmtuser/Gauss_v45r8/Gen/DecFiles/options/42300000.py generated: Fri, 27 Mar 2015 15:48:05 # # Event Type: 42300000 # # ASCII decay Descriptor: pp -> [W+ -> tau+ nu_tau]cc ... # from Gaudi.Configuration import * importOptions( "$DECFILESROOT/options/Wtaunu.py" ) from Configurables import Generati...
[ "slavomirastefkova@b2pcx39016.desy.de" ]
slavomirastefkova@b2pcx39016.desy.de
f445c13cd68294138922d2b7dfada304cc3fb281
43a96eafd9108dd48f91d0b7c70cf4cd99e7eae2
/audio_zen/utils.py
0415dcc5518ed493db8332c1c592d75d1b272e7c
[ "MIT" ]
permissive
yaoao2017/FullSubNet
ec5096f9ed958aa6aceacb5cefcd96a1c77be1c9
213df1b46d5bc3d61d774a75aebae5b731046bd2
refs/heads/main
2023-08-28T01:22:24.022365
2021-11-01T11:43:47
2021-11-01T11:43:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,430
py
import importlib import os import time from copy import deepcopy from functools import reduce import torch def load_checkpoint(checkpoint_path, device): _, ext = os.path.splitext(os.path.basename(checkpoint_path)) assert ext in (".pth", ".tar"), "Only support ext and tar extensions of l1 checkpoint." mod...
[ "haoxiangsnr@gmail.com" ]
haoxiangsnr@gmail.com
7de97cc4e386019c8c8287f8821f5d0eba631a12
594fd699d9f8070c867b83b11881ca1f624b417b
/EstruturaDeDecisao/mais_barato.py
e1caf21790f912b0b381f4166b4196d14a2831b6
[]
no_license
felipmarqs/exerciciospythonbrasil
f140df2c59b933cc0460d5986afc8c6ddd493556
6d02e85ae5986d3b20cfd8781174998d871eeb90
refs/heads/master
2020-04-04T05:25:23.751175
2018-12-12T18:44:38
2018-12-12T18:44:38
155,745,781
0
0
null
null
null
null
UTF-8
Python
false
false
515
py
#Faça um programa que pergunte o preço de três produtos e informe qual produto você deve comprar, sabendo que a decisão é sempre pelo mais barato. p1 = float(input("Qual o preço do primeiro produto ? R$")) p2 = float(input("Qual o preço do segundo produto ? R$")) p3 = float(input("Qual o preço do terceiro produto ? ...
[ "noreply@github.com" ]
felipmarqs.noreply@github.com
98cbaad2a1b572d0d4e77f410261e0ed4a72c31a
c41d00f9c9f716709ea3cbded76fbebfb9058fa7
/polygon/problem2/views/base.py
fb74e4c275f13782212f9c76efdf95507f4b7003
[ "MIT" ]
permissive
revectores/eoj3
56e5d8f5e0f513752a159086125902ce3086e868
3435280768b366cc82f74f1f08697f059e0f2141
refs/heads/master
2020-04-01T17:56:34.122990
2018-10-15T10:59:14
2018-10-15T10:59:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,798
py
import re import traceback from itertools import chain from django.contrib import messages from django.core.exceptions import PermissionDenied from django.db import transaction from django.db.models import Count from django.db.models import Q from django.http import Http404 from django.http import HttpResponse from dj...
[ "scottyugochang@hotmail.com" ]
scottyugochang@hotmail.com
ed599d93d1e0fe2eb4569c2b7658cd44121bcf99
ee7cf88c40c848d75b20136b55f7d273ce21d2f2
/util/ec3po/interpreter.py
23e896c640f86f5a3e69d92966555287bb296fe5
[ "BSD-3-Clause" ]
permissive
akappy7/ChromeOS_EC_LED_Diagnostics
4e0dfbaf3103bbf8c34ab2c9a4c9c87a39cde3b8
73b8a148756a1aa723c8277e8475f0e43d703fbf
refs/heads/master
2020-12-07T15:16:10.831477
2016-05-05T06:29:52
2016-05-05T06:29:52
57,103,470
1
0
null
null
null
null
UTF-8
Python
false
false
15,519
py
# Copyright 2015 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """EC-3PO EC Interpreter interpreter provides the interpretation layer between the EC UART and the user. It receives commands through its command pipe, f...
[ "chrome-bot@chromium.org" ]
chrome-bot@chromium.org