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
ae7809f3604c6604f22ba1fa70a1e9c3ed5f2c69
57d978b0ba29c745cf409e819f2f7e42e98516dc
/ibs/_input.py
ce3078f28411719e86def04fdd019b03afda1c2e
[ "MIT" ]
permissive
lnls-fac/lnls
26564b9bdaf0602e2f50d67e294d0d8ba5cc0f82
91299d84ce7628d33c46861687d17a574428bc85
refs/heads/master
2023-02-09T00:26:47.298350
2022-11-25T19:25:50
2022-11-25T19:25:50
33,893,299
5
2
MIT
2022-11-25T19:25:51
2015-04-13T20:51:15
Python
UTF-8
Python
false
false
2,116
py
import numpy as _np import copy as _copy def read_energy_acceptance_file(fname, eRF): # reads raw data from file lines = [line.strip() for line in open(fname)] # processes raw data accp, accn = [], [] for line in lines: if not line or line[0] == '#': continue values = ...
bf10c5772f31298525eb55957cf0421f17ad7983
87cac4166f07729f1c94066259996c8b752c1202
/examples/calc/calc_distance.py
dc0d473aceccd019cbfe3f28a154c888c08db7e6
[]
no_license
danielsocials/bbox
068238a15880468d214109a23017a19e70fc13ec
292e350b1cefbbab987baf8c946d4021abd211ea
refs/heads/master
2020-03-16T06:25:47.907369
2018-05-08T04:42:45
2018-05-08T04:42:45
132,554,332
0
0
null
2018-05-08T04:36:35
2018-05-08T04:36:35
null
UTF-8
Python
false
false
589
py
import asyncio from aiobbox.cluster import get_cluster from aiobbox.client import pool from aiobbox.handler import BaseHandler class Handler(BaseHandler): def add_arguments(self, parser): parser.add_argument('--a', type=float) parser.add_argument('--b', ...
c26c22a572fc6788014f0e253f267b21cc87a9dd
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/python/statsmodels/2016/12/test_tsaplots.py
91616d7673599e86c8dfeba8b0c28021f08f1d27
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Python
false
false
4,803
py
from statsmodels.compat.python import lmap, map import numpy as np import pandas as pd from numpy.testing import dec, assert_equal import statsmodels.api as sm from statsmodels.graphics.tsaplots import (plot_acf, plot_pacf, month_plot, quarter_plot, seasonal_plot) import stat...
46db86e79771ab26fcdc605bdf0ce05b8ed2ab07
2735c5f1a9b1f1a3d2468f0838fc0f20725cbe31
/usr/lib/pymodules/python2.7/numpy/core/tests/test_ufunc.py
43f4f539e4e53be8feb7e24a89b82b135eb556ca
[]
no_license
sanyaade-iot/rpi-sysroot
f202b9188fd99c372d28b59ebe1b8fcabbfb7a67
6e13f05b5b2b44b29ead66c96230a17f077d5198
refs/heads/master
2020-04-08T16:14:25.745147
2014-03-21T06:27:54
2014-03-21T09:47:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
50
py
/usr/share/pyshared/numpy/core/tests/test_ufunc.py
71ae2a5380a5dac7a539c945d44e63ada72a53ba
bf4f4731f099dcdc964509b51ffc6ce8875f6041
/ll.py
c48d2277a0c507a6b81eae89b47f552294de014e
[ "MIT" ]
permissive
YanglanWang/squad
8c9b98d3bd4ff0fe824bc08fc2a314fb45936b38
1019e4c7bf1a90c049d16ed1b48553964468c790
refs/heads/master
2020-06-19T19:02:30.891520
2019-08-02T15:53:15
2019-08-02T15:53:15
196,834,600
0
0
null
null
null
null
UTF-8
Python
false
false
1,217
py
# import torch # import torch.nn.functional as F # import torch.nn as nn # # input is of size N x C = 3 x 5 # m = nn.LogSoftmax(dim=1) # input = torch.randn(3, 5, requires_grad=True) # print(input) # print(F.softmax(input)) # print(F.log_softmax(input)) # print(m(input)) # # each element in target has to have 0 <= val...
818a6404248346ef4bcc70ea941cc25a5cc2006c
1b7b13984a90b5d11331966fe1b1bb88f2b85dd7
/modeling/test.py
b583abada1374a6055aa896f3d6fcaa16e67abe6
[]
no_license
yekeren/VCR
23cf6b17ce7adcc057a531182898900dcd75727b
6a573edf3183e9a8ef2056449c53865d8e27125d
refs/heads/master
2023-04-06T05:41:09.851825
2020-04-14T18:26:42
2020-04-14T18:26:42
232,395,848
0
0
null
2023-03-24T23:35:46
2020-01-07T19:01:27
Python
UTF-8
Python
false
false
2,259
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from absl import app from absl import flags from absl import logging import os import numpy as np import tensorflow as tf from google.protobuf import text_format from protos import pipeline_pb2 from modeling i...
96df20298ac9dc1fdaca45b61783c50aaaad575f
219d7694180482e0b9944deb6dee11dcf7bf0e23
/morecvutils/connectedComponents.py
58ed9279dc1b6fef5516c8a7b21f18623978e5ce
[ "MIT" ]
permissive
Aresthu/morecvutils
5e3bfcba2b5c48ec022e641f19b40e2836d2d6bd
4856d98c45dbd6bcfb86c87f7ec9987c378e244c
refs/heads/master
2021-04-09T16:03:01.956218
2018-02-18T07:14:41
2018-02-18T07:14:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,580
py
import cv2 try: #OpenCV 2.4 from cv2 import SimpleBlobDetector as SimpleBlobDetector except ImportError: #OpenCV 3 from cv2 import SimpleBlobDetector_create as SimpleBlobDetector from numpy import asarray def doblob(morphed,blobdet,img,anno=True): """ img: can be RGB (MxNx3) or gray (MxN) http://do...
f004405fef2fdf69649331b17e36bc392d5c02ba
32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd
/benchmark/wikipedia/testcase/pwpreferencecases/PW_pre_8.py
59c846093a4300d149fa46929cd4e09dfe78d39a
[]
no_license
Prefest2018/Prefest
c374d0441d714fb90fca40226fe2875b41cf37fc
ac236987512889e822ea6686c5d2e5b66b295648
refs/heads/master
2021-12-09T19:36:24.554864
2021-12-06T12:46:14
2021-12-06T12:46:14
173,225,161
5
0
null
null
null
null
UTF-8
Python
false
false
9,018
py
#coding=utf-8 import os import time import traceback from appium import webdriver from appium.webdriver.common.touch_action import TouchAction from selenium.common.exceptions import NoSuchElementException, WebDriverException desired_caps = { 'platformName' : 'Android', 'deviceName' : 'Android Emulator', 'platformVer...
df595c77d73ecc81233488dc652b38172a935850
d86c52f4098fd9c1a102c2d3f5630556e0610fa2
/fitle/myenv/Lib/site-packages/django/urls/base.py
0caa424c33ca350337f9994d131b8e12e6d6d6ca
[]
no_license
makadama/bitbucket
24f05c4946168ed15d4f56bfdc45fd6c0774e0f2
cabfd551b92fe1af6d9d14ab9eb3d9974b64aa79
refs/heads/master
2023-06-19T19:04:03.894599
2021-07-15T12:10:39
2021-07-15T12:10:39
385,203,791
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:b1fa9d73dc9c6873504ab270b4646eb91e5cd202f9f0a9fffff2342e2183d8ab size 5587
5b6d5e796aa35788250c17aa14808559a36e5c1d
a3b306df800059a5b74975793251a28b8a5f49c7
/Graphs/LX-2/molecule_otsu = False/BioImageXD-1.0/ITK/lib/InsightToolkit/WrapITK/lib/itkCannyEdgeDetectionImageFilterPython.py
5b48b0c6d95f111348c8b5f16df1963f18580000
[]
no_license
giacomo21/Image-analysis
dc17ba2b6eb53f48963fad931568576fda4e1349
ea8bafa073de5090bd8f83fb4f5ca16669d0211f
refs/heads/master
2016-09-06T21:42:13.530256
2013-07-22T09:35:56
2013-07-22T09:35:56
11,384,784
1
1
null
null
null
null
UTF-8
Python
false
false
44,738
py
# This file was automatically generated by SWIG (http://www.swig.org). # Version 1.3.40 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (3,0,0): new_instancemethod = lambda func, inst, cls: _itkCannyE...
3a5912957350ed986573050c9f331ab000478692
5d0e8ac83fc0e39adb1b031cc01187bcdeb3a452
/h2o-py/tests/testdir_javapredict/pyunit_javapredict_irisDRF.py
dde1d997ffd534e4322911996f0d558a268813e9
[ "Apache-2.0" ]
permissive
xxushans/h2o-3
f466a3faebb7342c7e41266b5d8ba0a40a2d1cff
1567366c926b932acf8051a9ef579b966133f5f8
refs/heads/master
2021-01-14T08:56:24.477570
2015-10-20T20:25:23
2015-10-20T20:25:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
576
py
def javapredict_iris_drf(): # optional parameters params = {'ntrees':100, 'max_depth':5, 'min_rows':10} print "Parameter list:" for k,v in zip(params.keys(), params.values()): print "{0}, {1}".format(k,v) train = h2o.import_file(pyunit_utils.locate("smalldata/iris/iris_train.csv")) test = ...
4693d026ff3eb51517ea1524650b2119fb6af8db
77c4ca9b33e007daecfc4318537d7babea5dde84
/tensorflow/python/keras/mixed_precision/experimental/keras_test.py
498077829da14e10358b297127d0a5d1b268ac03
[ "Apache-2.0" ]
permissive
RJ722/tensorflow
308eede8e911e2b6a6930fef3e24a493ab9a2a61
6c935289da11da738f2eaed18644082f3a6938d6
refs/heads/master
2020-12-20T16:51:12.767583
2020-01-25T06:46:50
2020-01-25T06:51:20
236,138,137
2
3
Apache-2.0
2020-01-25T07:12:41
2020-01-25T07:12:40
null
UTF-8
Python
false
false
46,076
py
# Copyright 2019 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...
334b108ede915f2978c4c60ecab922e2db736edb
8dc84558f0058d90dfc4955e905dab1b22d12c08
/third_party/catapult/catapult_build/js_checks.py
78cc745ebd8c0a9d391d4f7b6b80392c3d74fce2
[ "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
meniossin/src
42a95cc6c4a9c71d43d62bc4311224ca1fd61e03
44f73f7e76119e5ab415d4593ac66485e65d700a
refs/heads/master
2022-12-16T20:17:03.747113
2020-09-03T10:43:12
2020-09-03T10:43:12
263,710,168
1
0
BSD-3-Clause
2020-05-13T18:20:09
2020-05-13T18:20:08
null
UTF-8
Python
false
false
3,390
py
# Copyright (c) 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import re import eslint from py_vulcanize import strip_js_comments from catapult_build import parse_html class JSChecker(object): def __init__(sel...
dd4532867225260b493c78ccb86707a010c68f3e
412b0612cf13e9e28b9ea2e625975f3d9a2f52b6
/2022/16/pressure_release.py
450cad8ba653b096a272d2898024b05e9b964992
[]
no_license
AlexClowes/advent_of_code
2cf6c54a5f58db8482d1692a7753b96cd84b6279
d2158e3a4edae89071e6a88c9e874a9a71d4d0ec
refs/heads/master
2022-12-24T19:02:07.815437
2022-12-23T17:35:53
2022-12-23T17:35:53
225,618,394
0
0
null
null
null
null
UTF-8
Python
false
false
2,151
py
from collections import defaultdict import functools import heapq from itertools import combinations, pairwise, permutations import re from tqdm import tqdm def main(): pat = r"Valve (\w+) has flow rate=(\d+); tunnels? leads? to valves? ([,\s\w]+)" flow_rate = {} graph = defaultdict(dict) with open...
b52273a1e19daac8b6173e5b3287d5a6ad803d06
4bfdb3ad5b44044113d3d6b586e10281d3987c9e
/infra/bots/recipe_modules/upload_dm_results/api.py
3005f3e77790c38666ee47a5e9b661f92619102c
[ "BSD-3-Clause" ]
permissive
imxiangpeng/skia
dcdca3538564f2707fde10b43bdcaa6d9b5e0103
3e7cddaf32e280fe9f32eec5bfdd8168ca4941b6
refs/heads/master
2021-01-23T02:40:18.169644
2017-03-23T20:24:50
2017-03-24T01:24:57
86,016,340
1
0
null
null
null
null
UTF-8
Python
false
false
2,932
py
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Recipe for uploading DM results. import calendar from recipe_engine import recipe_api DM_JSON = 'dm.json' UPLOAD_ATTEMPTS = 5 VERBOSE_LOG = 'verbose...
e8aa6f13db12e6079697b3754a63bb24bcc8c34c
279f415dd1e06c594c6c87deda57e201c73c4542
/test/espnet2/schedulers/test_noam_lr.py
1e34d4684444b4b4dde33466d11137fe8f499a5a
[ "Apache-2.0" ]
permissive
espnet/espnet
f7ba47271c1a6b1ed606dbbfb04a7f14220bb585
bcd20948db7846ee523443ef9fd78c7a1248c95e
refs/heads/master
2023-08-28T23:43:34.238336
2023-08-23T02:51:39
2023-08-23T02:51:39
114,054,873
7,242
2,244
Apache-2.0
2023-09-14T08:01:11
2017-12-13T00:45:11
Python
UTF-8
Python
false
false
313
py
import torch from espnet2.schedulers.noam_lr import NoamLR def test_NoamLR(): linear = torch.nn.Linear(2, 2) opt = torch.optim.SGD(linear.parameters(), 0.1) sch = NoamLR(opt) lr = opt.param_groups[0]["lr"] opt.step() sch.step() lr2 = opt.param_groups[0]["lr"] assert lr != lr2
270aaddedb72e83d89edde7860500e85380b8b0d
4dd695521343d56ff943e8c1768343d7680714e3
/experiments/scripts_auto_crossdataset_ynoguti_braccent/config_SVM_1024_crossdataset.py
70cd8e2343abb6a9b2f80d3d2b006aed092d244f
[]
no_license
natharb/environment
ea659ee541f6473e92b5b30c549e52b66f47b280
86e6cee6e01d2370abeb7c55a2c8a15001735919
refs/heads/master
2021-09-28T02:39:02.222966
2018-11-13T12:03:34
2018-11-13T12:03:34
139,762,646
1
0
null
null
null
null
UTF-8
Python
false
false
1,372
py
#!/usr/bin/env python # vim: set fileencoding=utf-8 : #Nathália Alves Rocha Batista ([email protected]) import sys sys.path.insert(0, '.') import bob.bio.spear import bob.bio.gmm import numpy import scipy.spatial temp_directory = './results/crossdataset_ynoguti_braccent/SVM/1024/temp/' result_directory =...
378055851595a6f4509513667890d3915c1def51
3b504a983f1807ae7c5af51078bfab8c187fc82d
/client/gui/HUD2/features/AttitudeIndicator/AttitudeIndicatorSource.py
d55efec79392f37f2e6fbd53db0997fa8ae8c1b0
[]
no_license
SEA-group/wowp_scripts
7d35fd213db95ea6b3dbd1ec6d3e0f13de86ba58
2fe54a44df34f2dcaa6860a23b835dcd8dd21402
refs/heads/master
2021-09-07T23:10:13.706605
2018-03-02T17:23:48
2018-03-02T17:23:48
117,280,141
0
0
null
null
null
null
UTF-8
Python
false
false
1,245
py
# Embedded file name: scripts/client/gui/HUD2/features/AttitudeIndicator/AttitudeIndicatorSource.py from gui.HUD2.core.DataPrims import DataSource from gui.HUD2.hudFeatures import Feature class AttitudeIndicatorSource(DataSource): def __init__(self, features): self._model = features.require(Feature.GAME_M...
2dbeed1dcdd89e81a9c6703e2d459c3d9b55a577
ba46f774793ff06ae12cbed51a024142d2b0f63e
/topiary/cli/outputs.py
a4d26ea8ba21e21749e38ca4d7e35b53b424729f
[ "Apache-2.0" ]
permissive
Saintyven/topiary
05fe9eb9b0a9bbb851564d0d835d967bf1fce6ab
04f0077bc4bf1ad350a0e78c26fa48c55fe7813b
refs/heads/master
2021-09-07T17:21:56.267182
2018-02-26T19:56:58
2018-02-26T19:56:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,255
py
# Copyright (c) 2017. Mount Sinai School of Medicine # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
f0cfc11ac7bdbd46f6556b49a3637218927f3cb7
b7f3edb5b7c62174bed808079c3b21fb9ea51d52
/build/android/gyp/jinja_template.py
ba335a248b06620e7b8f9d1dac8dfd6b516e3ac5
[ "BSD-3-Clause" ]
permissive
otcshare/chromium-src
26a7372773b53b236784c51677c566dc0ad839e4
64bee65c921db7e78e25d08f1e98da2668b57be5
refs/heads/webml
2023-03-21T03:20:15.377034
2020-11-16T01:40:14
2020-11-16T01:40:14
209,262,645
18
21
BSD-3-Clause
2023-03-23T06:20:07
2019-09-18T08:52:07
null
UTF-8
Python
false
false
6,456
py
#!/usr/bin/env python # # Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Renders one or more template files using the Jinja template engine.""" import codecs import argparse import os import sys from u...
2f167b5a9bd0dc459aa87415a30c103af343f999
28bdfca0131db38323fc28f6178425dc2c86e6ca
/contactApp/__init__.py
d5c7ce7bab4ecaf90d75d91a360af75fe5d769d5
[]
no_license
my-xh/hengDaProject
d8879d6755b24f230361b25d0e88d205fec98a1d
45aa43aabc798652a0f05d4e93d1c2c7ae819e4c
refs/heads/master
2023-04-20T07:04:57.424269
2021-05-13T11:46:48
2021-05-13T11:46:48
345,997,472
0
0
null
null
null
null
UTF-8
Python
false
false
56
py
default_app_config = 'contactApp.apps.ContactappConfig'
e9efec337c980a999a72131b97ffb0caae8b4eb5
b1e958f90059cd97b8c1cb62abb34948fa867569
/Mini-projects/7 - Spaceship/mini-project - Student 5.py
9968fe6bacc39a38cfc68711ff7b017b3ec4e1d5
[]
no_license
deltaworld/python-programming-coursera
ff756f3522a79f9b2101607f8156adc8d256db10
740ef3b02c05323e8da691ccbaa17337deb32db7
refs/heads/master
2021-01-23T03:04:25.476645
2015-07-15T13:25:22
2015-07-15T13:25:22
39,136,483
0
0
null
null
null
null
UTF-8
Python
false
false
10,476
py
# http://www.codeskulptor.org/#user16_7BY7hy435a_16.py #This game was designed to run in Chrome browser # program template for Spaceship import simplegui import math import random # globals for user interface WIDTH = 800 HEIGHT = 600 ROTATION_VEL = 0.2 FORWARD_VEL = 1 SPACE_DEBRIS_FRICTION = 0.925 score = 0 lives = 3 ...
01e37d72a54fb67fc279b8a9d7469470c7d54586
ec2b3b8b61cef4e94447ad70e543b690d70050e5
/order-1_voronoi/core/fortune/arc_tree/Arc.py
69579dc3f9bf92572ce60e9e24790faf3580a891
[ "MIT" ]
permissive
bzliu94/algorithms
d6e491f6d3c68c50a37bab504501a73362b9a94d
43ccefd7ea1fd88339bf2afa0b35b0a3bdf6acff
refs/heads/master
2021-01-17T02:22:26.044478
2020-08-02T01:13:59
2020-08-02T01:13:59
36,104,048
0
0
null
null
null
null
UTF-8
Python
false
false
12,170
py
# from BeachLineItem import * import math # class Arc(BeachLineItem): class Arc: # focus is a (x, y) pair # def __init__(self, focus, arc_tree): """ def __init__(self, focus, insert_l_y): self.focus = focus # self.arc_tree = arc_tree self.insert_l_y = insert_l_y ""...
1857e98731a98fbbf1200a924206070e99daf9c6
bb853b657537eca893032ad08e4c843b5195fa35
/dateandtime2.py
ff50587bccebcdb78c87b2dd95e50b62bff026b6
[]
no_license
PrathameshDhumal/Artificial-Intelligence-Assistant-With-Python
584064e5219479576244d74aafb6f4e4dcbd16cc
6afcdf792a2e0e1d6168dfb732add3d63158f38d
refs/heads/main
2023-05-31T01:31:19.202678
2021-06-30T19:57:53
2021-06-30T19:57:53
379,478,238
0
0
null
null
null
null
UTF-8
Python
false
false
472
py
import pyttsx3 import datetime engine = pyttsx3.init() def speak(audio): engine.say(audio) engine.runAndWait() def time(): Time = datetime.datetime.now().strftime("%I:%M:%S") speak(Time) time() def date(): year = int(datetime.datetime.now().year) month= int(datetime.datetime....
770681d3dbbe5a567c39708a2f499a677b0b69a4
c6ce21e5b8a906b0bf95cfcac9d84e243c876723
/PARALLAX/CODE/resnet_train.py
c41dca46d825c0b593e8b6d0f4d047ab9e5385a9
[]
no_license
yuchanmo/cloud_class
6450b08017fbe72dde810620365a87cda7ae8abd
b3d2c6589f7a9b8c0340e00487f610a097373ec6
refs/heads/master
2020-06-01T06:48:19.669550
2019-06-07T04:04:51
2019-06-07T04:04:51
190,685,867
0
0
null
null
null
null
UTF-8
Python
false
false
4,012
py
#Copyright 2016 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 applicab...
f4850aed962c3460094182316ff7933229ed1cb1
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/380/usersdata/310/97316/submittedfiles/minha_bib.py
d6b2c61dad7783f3393a133c2502721a863c2a10
[]
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
499
py
# -*- coding: utf-8 -*- import random def solicitaSimbolodoHumano(a): a = input('Simbolo que quer jogar: ') while a!='O' and a!='X' and a!='o' and a!='x': a = input('Simbolo que quer jogar: ') return 1 def sorteioPrimeiraJogada(a): a = random.choice((0,1)) if a ==1: print('Vencedo...
7d9c1c37687134af6b5864674dbd42ead9ea5025
c4a32dc9fb26d72721864982b52578e2aea31db4
/7.SEPTIMA EXPOSICIÓN/FOURIER-PRESIÓN.py
a4c7034b8db9d72cd8fd750fa9c00fd12905510d
[]
no_license
yordanarango/CODE_TRABAJO_GRADO
30eee8778bf4d61706fd5e7dc26b609ad1214fd3
5eb55e90b864359942e40ac8d4672c28dea1e1de
refs/heads/master
2021-04-15T12:18:33.032433
2018-03-22T14:19:35
2018-03-22T14:19:35
126,347,319
0
0
null
null
null
null
UTF-8
Python
false
false
13,361
py
# -*- coding: utf-8 -*- """ Created on Wed Oct 12 21:59:37 2016 @author: yordan """ from mpl_toolkits.basemap import Basemap import matplotlib.pylab as pl import numpy as np import netCDF4 as nc import matplotlib.pyplot as plt from scipy import linalg as la import pandas as pd #from FuncionesFourier import consulta_m...
9d452f69e846718fd2cc84f675566da6c840c37e
791b790ce8a4ad93ab88cf9a2aea3b2dd70652dc
/Competitions/Codechef/MARCH17/Xenny and Alternating Tasks.py
b6e1e5fcced9841b3dcdab65f1ad2f9859b3d986
[ "MIT" ]
permissive
Debasmita-01/Competitive-Programming
16d8778db5ff225519404e88afa4cccf830006b7
547859d6ded88a0d3977c2f6e747d80235c054cd
refs/heads/master
2022-12-25T11:14:55.129524
2020-10-01T05:22:01
2020-10-01T05:22:01
300,511,195
3
1
MIT
2020-10-02T06:06:30
2020-10-02T05:32:52
null
UTF-8
Python
false
false
361
py
t = int(raw_input()) for i in xrange(0, t): n = int(raw_input()) x = [int(j) for j in raw_input().split(" ")] x.sort() for j in xrange(1, n-1): if x[j-1]+1 != x[j] and x[j-1]+2 != x[j+1]: print x[j-1] break elif x[j-1]+1 != x[j] and x[j]+1 != x[j+1]: print x[j] break elif x[j-1]+2 != x[j+1] and x[...
4cdc6b4d468c8ce11e8f6bafbe4e091e22cf7685
80642a9db76d98e1b956ed447ca29fe1f448394b
/tsoc/signal_dependent_offset_analysis.py
ffb4a4727fa99c1b8992cd0e69a6311a3d685f42
[]
no_license
nischalmishra/tempo
4af5f699535d209a2e8c1e7655abd689faf6a90d
cddb489de999edf6963e87a74ed58ff1a208d474
refs/heads/master
2021-05-15T16:02:19.033202
2017-10-18T16:42:37
2017-10-18T16:42:37
107,434,048
0
0
null
null
null
null
UTF-8
Python
false
false
19,334
py
# -*- coding: utf-8 -*- """ Created on Tue May 9 13:22:55 2017 @author: nmishra """ import os import numpy as np import pandas as pd #from scipy.io.idl import readsav import matplotlib.pyplot as plt from scipy.io.idl import readsav from outlier_detection import identify_saturation,\ rej...
89a0785d067ba85fdb5f0718923cb544b67b8140
00b1fe62aff1bbad885a1b13354239b07925c5c1
/catalyst_rl/rl/scripts/load_db.py
e27de3d61db62001fe0d5978f118d899921047fa
[ "Apache-2.0" ]
permissive
catalyst-team/catalyst-rl
a78675c477bef478d73cd1e7101be6dbb7b586aa
75ffa808e2bbb9071a169a1a9c813deb6a69a797
refs/heads/master
2021-09-22T08:36:12.161991
2021-09-13T05:59:12
2021-09-13T05:59:12
247,928,934
50
8
null
null
null
null
UTF-8
Python
false
false
1,791
py
#!/usr/bin/env python # usage: # catalyst_rl-rl load-db --db=redis --in-pkl ./my_db_0.pkl ./my_db_1.pkl import argparse import pickle import numpy as np from tqdm import tqdm from catalyst_rl import utils from catalyst_rl.rl.db import MongoDB, RedisDB def build_args(parser): parser.add_argument("--host", type=...
6a20e5f8abbe7f63a1bdaa934e00d7d7693ebcfb
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03014/s911800035.py
b678df13f7f47ee72f75b442123a31cda6f77d04
[]
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
1,186
py
h, w = map(int, input().split()) s = [list(input()) for _ in range(h)] u_light = [[0]*w for _ in range(h)] #上をてらせる数 d_light = [[0]*w for _ in range(h)] #下 l_light = [[0]*w for _ in range(h)] #左 r_light = [[0]*w for _ in range(h)] #右 def count_light(i, j): if s[i][j] == '.': return 1 else: retur...
0c85cf23abb1d04fd0e059f646b0947f308e3492
b1a6c44495c3a0cf8ac3f6df52d5a984cdb7b471
/cocotbext/pcie/core/caps/pcie.py
6bfd9e4f79d19070b5c39f930008bccafb060fa1
[ "MIT" ]
permissive
psumesh/cocotbext-pcie
a678384b2bdbb1d2d79d12b639e78b1b3dba2c0d
17d98d16da10e5839cf6826c08fc80971fd50298
refs/heads/master
2023-08-15T02:53:44.731590
2021-09-26T10:58:42
2021-09-26T10:58:42
358,151,301
0
0
MIT
2021-04-16T16:36:25
2021-04-15T06:27:52
null
UTF-8
Python
false
false
32,943
py
""" Copyright (c) 2021 Alex Forencich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute...
6321a92b239f65d266baddd409d0323cffabd579
89b6997b24e404c176358073626a8bfad7bcdb8e
/.history/courses/models_20210412233123.py
f22ac53d1746d99cb174542b2a8b300401606f5f
[]
no_license
mohamedhawas123/Education-platform-django
513e64ac112880385402ce609077796578b4e9ee
7b83e66bba66b8b2b1a007f5818a534653e6abfb
refs/heads/main
2023-07-18T16:19:52.177886
2021-09-24T12:04:09
2021-09-24T12:04:09
352,306,462
1
0
null
null
null
null
UTF-8
Python
false
false
2,324
py
from django.db import models from django.contrib.auth.models import User from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes.fields import GenericForeignKey from .fields import OrderField class Subject(models.Model): title = models.CharField(max_length=200) slug = model...
a887c48538b070bc949cb678b712fd5ea562c029
e0980f704a573894350e285f66f4cf390837238e
/.history/streams/blocks_20201029145758.py
3227cd805384affb4014e12555cfee402b57bfa8
[]
no_license
rucpata/WagtailWebsite
28008474ec779d12ef43bceb61827168274a8b61
5aa44f51592f49c9a708fc5515ad877c6a29dfd9
refs/heads/main
2023-02-09T15:30:02.133415
2021-01-05T14:55:45
2021-01-05T14:55:45
303,961,094
0
0
null
null
null
null
UTF-8
Python
false
false
3,497
py
from django import forms from wagtail.core import blocks from wagtail.images.blocks import ImageChooserBlock from wagtail.contrib.table_block.blocks import TableBlock class TitleBlock(blocks.StructBlock): text = blocks.CharBlock( required = True, elp_text='Tekst do wyświetlenia', ) class ...
6a10fdec032287788f43ac694db394d334627b95
cd8f7ecd20c58ce1ae0fe3840f7c7ee961aa5819
/Find Duplicate File in System.py
ac5ae45decb6dd46daedbe7378173039d67c8773
[ "Apache-2.0" ]
permissive
sugia/leetcode
9b0f2a3521b088f8f7e5633c2c6c17c76d33dcaf
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
refs/heads/master
2021-06-05T07:20:04.099488
2021-02-24T07:24:50
2021-02-24T07:24:50
29,124,136
1
0
null
null
null
null
UTF-8
Python
false
false
2,859
py
''' Given a list of directory info including directory path, and all the files with contents in this directory, you need to find out all the groups of duplicate files in the file system in terms of their paths. A group of duplicate files consists of at least two files that have exactly the same content. A single dire...
b18a2b8e878ac6dab0ef153d54eb8846e3615e8d
1424812c4f211d3d5e356e8b3889a689162062f3
/arcade/python/62_check_participants.py
f8957ee5841a7be2c906e5af02edf03edd07382b
[]
no_license
nazomeku/codefights
cb7d3c40be0809695ec524a87c88dbebcf5b47bc
b23f6816f9b5b0720feac1c49c31163923e0a554
refs/heads/master
2021-01-22T12:49:35.905165
2017-11-21T19:03:37
2017-11-21T19:03:37
102,357,617
0
0
null
null
null
null
UTF-8
Python
false
false
215
py
"""Given the list of participants, your task is to return the list of games for which too few people signed up.""" def check_participants(participants): return [a for a, b in enumerate(participants) if a > b]
fce324c6496b5a5fd24b5262554147cad286f36a
3efe2059de4c7efd1f58a385656d19098b7efd63
/deepiu/tools/ensemble-inference-v2.py
436205085a0efdf481c2d9609e180ad472bc2c8b
[]
no_license
yangyaoyunshu/image-caption-ai-challenger2017
5d2e82b2f8d70ac6d4eb7a0e70f6b406e551189b
7f2c556587ea1e5c4583fe3b12b8d40c5a2aa2cc
refs/heads/master
2021-08-31T22:48:55.886186
2017-12-23T07:27:04
2017-12-23T07:27:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,927
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # ============================================================================== # \file ensemble-inference-v2.py # \author chenghuige # \date 2017-10-21 14:56:40.017795 # \Description This is time cosuming 1hour and 12 mintues, and not...
8ab8e5f98c41b9fb41c80d47225b946e72e9c11b
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p3BR/R1/benchmark/startPyquil365.py
7bd3571d7cf4002ea5c98aabb057ee26101e6441
[ "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
2,533
py
# qubit number=2 # total number=67 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += H(0) # number=1 pr...
24d0293db4c4da28e8dcbdb081b1ca13f6d8bde4
55e28e35db5bf6a844df3fb47080500b115a893e
/day6/test/fan2.py
d15faad00febdceb92f9769a970ee29416ca85f6
[]
no_license
pylarva/Python
5743ffa4a69db42b642d51b62f9e9b69ddbc1a72
71b484950e6dbdcf708726a68a3386d0d6ddc07f
refs/heads/master
2020-04-19T09:11:11.195393
2017-11-16T07:32:59
2017-11-16T07:32:59
67,507,687
1
0
null
null
null
null
UTF-8
Python
false
false
447
py
# !/usr/bin/env python # -*- coding:utf-8 -*- # Author:lichengbing # import fan1 # # user_input = input('输入编号:') # if hasattr(fan1, user_input): # func = getattr(fan1, user_input) # func() # else: # print('no module...') user_input = input('请输入URL:') k, v = user_input.split('/') obj = __import__('lib.' + ...
3c21849b572848e17c219d6d9115dda9eaf3d56e
d66818f4b951943553826a5f64413e90120e1fae
/hackerrank/Algorithms/Cut the Tree/test.py
71dbf8141286bc70cf3538beaf3323dcc9737296
[ "MIT" ]
permissive
HBinhCT/Q-project
0f80cd15c9945c43e2e17072416ddb6e4745e7fa
19923cbaa3c83c670527899ece5c3ad31bcebe65
refs/heads/master
2023-08-30T08:59:16.006567
2023-08-29T15:30:21
2023-08-29T15:30:21
247,630,603
8
1
MIT
2020-07-22T01:20:23
2020-03-16T06:48:02
Python
UTF-8
Python
false
false
796
py
import unittest import solution class TestQ(unittest.TestCase): def test_case_0(self): self.assertEqual(solution.cutTheTree( [100, 200, 100, 500, 100, 600], [ [1, 2], [2, 3], [2, 5], [4, 5], [5, 6], ...
19280aa9b5205cfb4b3e115b73029117af55a39a
f524c132340474bf80784095321753e083a2563a
/GearBot/Util/GearbotLogging.py
231080a511b781af383ff0de23f0818d6375e2c1
[ "MIT" ]
permissive
JohnyTheCarrot/GearBot
51bf4f1e641908725ab70ccc766e861b7ec0af23
8a32bfc79f997a154c9abccbf6742a79fc5257b0
refs/heads/master
2020-04-10T17:03:22.403295
2018-12-10T08:14:05
2018-12-10T08:14:05
161,163,866
0
0
MIT
2018-12-10T11:24:11
2018-12-10T11:24:11
null
UTF-8
Python
false
false
8,957
py
import asyncio import logging import os import sys import traceback from datetime import datetime from logging.handlers import TimedRotatingFileHandler import discord from discord.ext import commands from Util import Configuration, GlobalHandlers, Utils, Translator, Emoji LOGGER = logging.getLogger('gearbot') DISCOR...
0506fa6a486ad43932a07600c4d00d1ddc5a40b9
7bd9be7f25be80791f9220b62025f06170273293
/end-plugins/pycerebro/examples/create_tasks.py
ed3f5c9a50d7b348f9c12a77fad2a31adcebc5f9
[]
no_license
cerebrohq/cerebro-plugins
ab46b4844adcb12c51d14e21f2c0d8b758b0bb57
e2e0f97b548ef22957e13d614200027ba89215e0
refs/heads/master
2021-11-12T16:25:48.228521
2021-10-22T11:25:58
2021-10-22T11:25:58
143,178,631
5
3
null
null
null
null
UTF-8
Python
false
false
14,092
py
# -*- coding: utf-8 -*- """ Примеры создания задач. Этот модуль демонстритует, как можно устанавливать соединение с базой данных, создавать задачи и связывать их между собой без использования графического интерфейса Cerebro. Также в модуле продемонстрировано создание сообшений и прикладывание к ним файлов. Модуль исп...
cbb187e7d59019198c646d702aff8fbadc4169a3
fa89010f366aa33967c12636bf6cfae6105a9ee5
/ex7/nation_mood.py
cee5016c3dfd5694fae9bb9cc3434bbd28db8739
[]
no_license
borgr/intro2cs
4db1985b789d0938d7c9cecddbe5a302f284bd95
9030d9831a168d9636093bd5211926666298d80f
refs/heads/master
2020-05-29T19:35:20.829664
2016-10-22T06:07:22
2016-10-22T06:07:22
15,959,512
0
0
null
null
null
null
UTF-8
Python
false
false
2,976
py
############################################################# # FILE : nation_mood.py # WRITER : Leshem Choshen + borgr + 305385338 # EXERCISE : intro2cs ex7 200132014 # DESCRIPTION:nation wide tweet functions ############################################################# from data import load_tweets from geo import us_...
c843c8f5ac94babd9d6dda5862e4393a08c25abd
b0a1884cd6c40362085dc08c7a091ed7cf1ece7f
/eelbrain/tests/test_mne.py
06e2009c988be2ab9c2632f8d57ae4e63439b6be
[]
no_license
LauraGwilliams/Eelbrain
4f37dbcc314063e92425dadf9b1f9f2aeea69a9c
d04fa2e7108c5f683fc145fc44a794d39928f2cb
refs/heads/master
2021-01-18T16:00:36.727474
2015-10-23T13:38:17
2015-10-23T13:43:17
34,459,099
0
0
null
2015-04-23T13:51:09
2015-04-23T13:51:09
null
UTF-8
Python
false
false
7,674
py
"""Test mne interaction""" from itertools import izip import os from nose.tools import eq_, ok_, assert_less_equal, assert_not_equal, assert_in import numpy as np from numpy.testing import assert_array_equal, assert_allclose import mne from eelbrain import datasets, load, testnd, morph_source_space, Factor from eelb...
2fc98b738bd56aa8aff7591590b98098af6a04b0
37b014820aef8b83e3eca3f102b3d04ef504066e
/readcsv/settings.py
65777c4908e4034159ad3c696a1251fa850b447a
[]
no_license
juniorcarvalho/readcsv
d8ae35efe65c90363920a1049c17554b0757fe15
0a20ad4f96929b9f5bab703f2c47f6c0ff345bc3
refs/heads/master
2022-05-25T08:00:16.372555
2021-04-08T20:38:00
2021-04-08T20:38:00
208,878,426
1
0
null
2022-04-22T22:17:01
2019-09-16T19:14:28
Python
UTF-8
Python
false
false
5,052
py
""" Django settings for readcsv project. Generated by 'django-admin startproject' using Django 2.2.5. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os fr...
a962ff1bdbf5794c6ccf3662675aacd15b94ab20
de4c5ecaf541d67e7cbf02837d93cf303d23b5da
/tests/app/views/home_tests.py
457f11123076d3a77c42d472cd58e5fe3b42dc01
[ "Apache-2.0" ]
permissive
shadowmint/py-test-watcher
d140064cafeb0b2efce8a403a3abd63322f812d0
36d33206b104c81e2d6acebdbed2dddee71fe2a7
refs/heads/master
2021-01-19T14:07:13.441335
2013-07-01T06:07:56
2013-07-01T06:07:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,641
py
# Copyright 2013 Douglas Linder # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
576a5caebe9274dbe6a976f5be2cda765413cea2
0faf534ebb6db6f32279e5bee25b968bd425ce3a
/tests/extension/thread_/stream_sink_fifo/test_thread_stream_sink_fifo.py
2fbe7fdf2573c48b8a204e9797df3ef6b7351a35
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
PyHDI/veriloggen
e8647cb2d40737d84e31d6b89c5799bab9cbd583
f2b1b9567150af097eed1b5e79ba2b412854ef43
refs/heads/develop
2023-08-09T10:02:35.626403
2023-08-09T00:50:14
2023-08-09T00:50:14
37,813,184
282
60
Apache-2.0
2023-07-20T03:03:29
2015-06-21T15:05:30
Python
UTF-8
Python
false
false
547
py
from __future__ import absolute_import from __future__ import print_function import os import veriloggen import thread_stream_sink_fifo def test(request): veriloggen.reset() simtype = request.config.getoption('--sim') rslt = thread_stream_sink_fifo.run(filename=None, simtype=simtype, ...
be41226a5a51288ece78ea6a8101e94652515a8a
74b812828a80190636523cbad4f3a6fc239484ba
/openff/bespokefit/executor/services/optimizer/app.py
cb29e0c1ed66c8e77bb693ced204a9a750190e59
[ "MIT" ]
permissive
openforcefield/openff-bespokefit
ef438ddc9a072a280e155d1e2d097068a369f73f
97262756c5c014e9bd5f799d64755b7f73a6160e
refs/heads/main
2023-08-17T07:09:11.715404
2023-08-04T09:43:57
2023-08-04T09:43:57
241,694,600
29
4
MIT
2023-09-08T06:14:39
2020-02-19T18:31:38
Python
UTF-8
Python
false
false
1,559
py
import json from fastapi import APIRouter from qcelemental.util import serialize from openff.bespokefit.executor.services import current_settings from openff.bespokefit.executor.services.optimizer import worker from openff.bespokefit.executor.services.optimizer.models import ( OptimizerGETResponse, OptimizerP...
b2ccc54baa8f5810be524d0f142b9b43562381c9
a8592d34f144b71794ebf30f1c2a1b5faf0b053c
/Praktikum2023/Modul_08/codes/diffusion_02.py
c407706419324a395034cba60ab038151f2df39b
[]
no_license
f-fathurrahman/ffr-MetodeNumerik
ee9a6a7153b174b1ba3d714fe61ccbd1cb1dd327
e3a9da224c0fd5b32e671708e890018a3c4104c4
refs/heads/master
2023-07-19T22:29:38.810143
2023-07-07T10:02:34
2023-07-07T10:02:34
107,272,110
2
2
null
null
null
null
UTF-8
Python
false
false
1,735
py
# Explicit method (forward Euler) for diffusion equation # Using two vectors for current and future time import numpy as np import matplotlib.pyplot as plt # Global variables !!! L = 1.5 Tfinal = 1.0 α = 0.1 DO_PLOT = True # Manufactured solution def u_exact(t, x): return 5*x*t*(L-x) def initial_cond(x): r...
b365e14451153a32b788ea21316db61b97698dc1
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/sieve-big-3648.py
43de1a025a9b7634670b7fa09e1476f970e269f3
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
31,754
py
# A resizable list of integers class Vector(object): items: [int] = None size: int = 0 def __init__(self:"Vector"): self.items = [0] # Returns current capacity def capacity(self:"Vector") -> int: return len(self.items) # Increases capacity of vector by one element def incr...
cbd55ab8d75ea16cc6b47917fdb3d4bd5b865eac
a3a3e1298db9555eda37f8da0c74a437d897cb1f
/compiled/Python3/Euler_Problem-030.py
a12edacad0729aad1effb41722fb40fbead3d74c
[ "MIT" ]
permissive
LStepanek/Project-Euler_Befunge
58f52254ee039ef6a5204fc65e62426c5e9d473a
f35fb2adecd737e410dee7b89b456cd61b25ce78
refs/heads/master
2021-01-01T17:51:52.413415
2017-05-03T17:23:01
2017-05-03T17:26:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,953
py
#!/usr/bin/env python3 # transpiled with BefunCompile v1.1.0 (c) 2015 def td(a,b): return ((0)if(b==0)else(a//b)) def tm(a,b): return ((0)if(b==0)else(a%b)) s=[] def sp(): global s if (len(s) == 0): return 0 return s.pop() def sa(v): global s s.append(v) def sr(): global s i...
d5cc2e960fa20a62afd08cea843d499c874eb6ff
67325192c1e528a39d457f11e61b480d68826708
/mods/mcpython/entity/__init__.py
fcc545f71f824192400ba7b8553e05f7da608cb7
[ "MIT" ]
permissive
vashistaarav1611/mcpython-a-minecraft-clone-in-python
5851b377b54fd2b28c106112c7b18f397b71ab50
c16cd66f319efdeec4130e1a43f5a857caf1ea13
refs/heads/master
2023-02-01T22:48:51.787106
2020-12-21T15:02:25
2020-12-21T15:02:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
68
py
from .entity import * from .player import * from .boxmodel import *
497f7ca218fcaa165751dd0dc22241730614b5c1
cdfbf466a03c1176ad5a9c8c2aaaa42551d6750d
/pythongame/scenes/scene_creating_world/scene_creating_world.py
265e969f25448a1f80a27e9be9124c5eb2b0cc2e
[]
no_license
JonathanMurray/python-2d-game
62540cac42291da23176f3ac0e88c8809131f84d
cac61c93545e32dc517d021448715a77fe97f531
refs/heads/master
2021-12-14T07:46:31.287997
2021-12-11T18:03:18
2021-12-11T18:03:18
145,474,245
63
18
null
2021-03-15T21:52:18
2018-08-20T21:53:03
Python
UTF-8
Python
false
false
8,198
py
from typing import Optional from typing import Tuple from pythongame.core.common import ConsumableType, Sprite, ItemId from pythongame.core.common import Millis, HeroId, AbstractScene, SceneTransition from pythongame.core.entity_creation import create_player_state_as_initial, create_hero_world_entity from pythongame.c...
060b1268ae58049eaebc7151db0af7140d6583bd
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp/BANYAN-NW-MIB.py
f988b13520165504fffda4cffd448f7e316bcf83
[ "Apache-2.0" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
27,336
py
# # PySNMP MIB module BANYAN-NW-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BANYAN-NW-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:17:24 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 201...
d237833b720ab49c6906e5708002d2834372ac3d
9ddfd30620c39fb73ac57e79eae0a001c45db45f
/addons/prisme_contact_enhancement/models/__init__.py
56357c83a049980c861e401c12364ef855b55a5d
[]
no_license
zamzamintl/silver
a89bacc1ba6a7a59de1a92e3f7c149df0468e185
8628e4419c4ee77928c04c1591311707acd2465e
refs/heads/master
2023-01-06T20:29:25.372314
2020-10-29T21:02:41
2020-10-29T21:02:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,059
py
# -*- coding: utf-8 -*- ########################################################################### # # Prisme Solutions Informatique SA # Copyright (c) 2016 Prisme Solutions Informatique SA <http://prisme.ch> # # This program is free software: you can redistribute it and/or modify # it under the terms of t...
d6830d4ff16376893003b80808781e3aec0c3bb2
c104dbd09a853725cb4f4b17df7c5dd59d47e04e
/test/test_modify_alert_policy.py
83402c1d6893da6593578261001770b0aa9a0dea
[ "Apache-2.0" ]
permissive
bm-lab/opsgenie-python-sdk
5a64e2c24f1b9168ecadf482ba8084ba27a659fc
244c4c40ddcc25e70df5ba4425ab8d7c8da59c18
refs/heads/master
2021-10-09T03:18:48.101672
2018-12-15T01:03:36
2018-12-20T15:13:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
902
py
# coding: utf-8 """ OpsGenie REST API OpsGenie OpenAPI Specification # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import opsgenie_swagger from opsgenie_swagger.models.modi...
402ccdca5869a573340f6de12ef5e4dbbe9e588a
e6f0b705a768229c160a2603393709b4b8a683be
/.history/books/api/views_20210424164436.py
c4d52011855368b33b5770873ed269be0a6587e8
[]
no_license
walaaElbasha/bookstore_django_basics
0741e16e3fe69d4460c095bb8afc964f52d96f1d
2037a434d7bdb0ca1954ca3de9f56655b77ec64e
refs/heads/main
2023-04-19T07:01:05.416800
2021-04-28T15:04:15
2021-04-28T15:04:15
361,507,660
0
0
null
null
null
null
UTF-8
Python
false
false
2,712
py
from django .shortcuts import render,redirect from rest_framework.response import Response from rest_framework import status from books.models import Book,Isbn from .serializers import IsbnSerializer from rest_framework.decorators import api_view from rest_framework.permissions import IsAuthenticated,BasePermission fro...
c7d568aa9eace0957fa12ebcbc59a6088b37bf31
2572a35d4861b1f25add1bf746474636d30134af
/Regex/matching_character_ranges.py
cd108c0f4e072daa738c993a7d4c6a4164099282
[]
no_license
gargi13832/Hackerrank-Problems
b1e78f42f3627609ddf08d546da7a84d139eb6f2
84c6a03ccfaaf5fef91938d3f566af92cc913a12
refs/heads/master
2023-01-04T22:22:40.830760
2020-10-29T17:31:17
2020-10-29T17:31:17
289,316,477
2
0
null
null
null
null
UTF-8
Python
false
false
70
py
Regex_Pattern = r'^[a-z][1-9][^a-z][^A-Z][A-Z]' # Do not delete 'r'.
5b3a4cf867926248aefb635b5b895a9b7d33a3f8
6a087c6fb00ba91f815f997450306a3fac020a8b
/Test_case/CLGL/test自定义车辆.py
6a0ed72cd83c09c38f031f3ee7b5841b4c947e2f
[]
no_license
anghu3/xizangbianfang
cd2037af5e06cc558bf3ef9ff145e0c33495139b
f4f35195963017c22bd4875853ef31f280f4b6a8
refs/heads/master
2020-03-28T22:31:06.591507
2018-12-14T07:36:47
2018-12-14T07:36:47
149,238,712
0
0
null
null
null
null
UTF-8
Python
false
false
7,930
py
# -*- coding: utf-8 -*- """ Created on Thu Jun 21 14:11:17 2018 @author: PCCC """ import unittest from selenium import webdriver from selenium.webdriver.support.ui import Select import time import os import re from public_package.pubilc_package import url,login_name,login_name_test,login_password,login_password_test f...
da110465a674ab0792226d4ac273b86fc9ed28ac
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03090/s812303792.py
0fb18fdf310d674ae4f216404ba354a1c71ffbf6
[]
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
905
py
#!/usr/bin/env python3 #AGC32 B import sys import math from bisect import bisect_right as br from bisect import bisect_left as bl sys.setrecursionlimit(1000000000) from heapq import heappush, heappop,heappushpop from collections import defaultdict from itertools import accumulate from collections import Counter from c...
c8a81c58a5ba30e56493fc3f9f751e59848f81d9
fab14fae2b494068aa793901d76464afb965df7e
/benchmarks/f3_wrong_hints/scaling_ltl_timed_transition_system/13-sender_receiver_34.py
716b7a6f40a03d13a219212d8ffce30ce7cdb74a
[ "MIT" ]
permissive
teodorov/F3
673f6f9ccc25acdfdecbfc180f439253474ba250
c863215c318d7d5f258eb9be38c6962cf6863b52
refs/heads/master
2023-08-04T17:37:38.771863
2021-09-16T07:38:28
2021-09-16T07:38:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,103
py
from typing import FrozenSet from collections import Iterable from math import log, ceil from mathsat import msat_term, msat_env from mathsat import msat_make_constant, msat_declare_function from mathsat import msat_get_integer_type, msat_get_rational_type, msat_get_bool_type from mathsat import msat_make_and, msa...
79a3a476ca30b1e4a997e58c1852b7ece681f724
afbfb4479c031c4515d623507c3529d019b2506a
/link/json/collection.py
070cfd0e3a2b277dd4bd2c73129a02fd1bc2979a
[]
no_license
linkdd/link.json
22e95664635986208a8ce51d6d7d410bb5012f68
2169a4252d3393def0e37d3a1aa167dd0b77c730
refs/heads/master
2020-04-15T13:38:33.317573
2016-09-16T13:50:41
2016-09-16T13:50:41
58,967,314
0
0
null
null
null
null
UTF-8
Python
false
false
5,275
py
# -*- coding: utf-8 -*- from b3j0f.conf import Configurable, category, Parameter from link.json.schema import JsonSchema from link.json import CONF_BASE_PATH DEFAULT_SCHEMA = 'http://hyperschema.org/mediatypes/collection-json.json' @Configurable( paths='{0}/collection.conf'.format(CONF_BASE_PATH), conf=ca...
df99f66d6a4ea213d5897a886fa15861e00d5972
dcd772f567ef8a8a1173a9f437cd68f211fb9362
/tests/framework/Samplers/EnsembledSampler/EnsembleForwardTestFunction/funct2.py
02dee0def8bbab059befbaac1ff1f937f1f2f1a2
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "BSD-2-Clause", "BSD-3-Clause" ]
permissive
idaholab/raven
39cdce98ad916c638399232cdc01a9be00e200a2
2b16e7aa3325fe84cab2477947a951414c635381
refs/heads/devel
2023-08-31T08:40:16.653099
2023-08-29T16:21:51
2023-08-29T16:21:51
85,989,537
201
126
Apache-2.0
2023-09-13T21:55:43
2017-03-23T19:29:27
C++
UTF-8
Python
false
false
57
py
def evaluate(self): value = 2.0*self.x2 return value
bd5ba5c7452d780e35d39750ff9e32f378d30a5f
0760fb4901a75766921a205b55686d6d6f049b30
/python/ray/_private/runtime_env/py_modules.py
97fccf60addb8d4131a5f5171d938b8c5bdf6255
[ "MIT", "BSD-3-Clause", "Apache-2.0" ]
permissive
ray-project/ray
a4bb6940b08b59a61ef0b8e755a52d8563a2f867
edba68c3e7cf255d1d6479329f305adb7fa4c3ed
refs/heads/master
2023-08-31T03:36:48.164405
2023-08-31T03:20:38
2023-08-31T03:20:38
71,932,349
29,482
5,669
Apache-2.0
2023-09-14T21:48:14
2016-10-25T19:38:30
Python
UTF-8
Python
false
false
8,762
py
import logging import os from pathlib import Path from types import ModuleType from typing import Any, Dict, List, Optional from ray._private.runtime_env.conda_utils import exec_cmd_stream_to_logger from ray._private.runtime_env.context import RuntimeEnvContext from ray._private.runtime_env.packaging import ( Prot...
1f7723168e6a49bcdc616eed2a91fc7a05d1b3d3
f3057f554643bd68ccf5fb34966f8233c57c600f
/djmodels/blog/migrations/0007_auto_20171213_1357.py
0f340f6c17444af0f3f8de61a33fd8e29ffcc8c9
[]
no_license
travishen/djcore
e917eeefc0d8a985fa083bbaf6b426ad4af31dcb
e611d82797abd04f5909b809e6c4debb46eece11
refs/heads/master
2021-09-03T02:52:38.336089
2018-01-05T02:24:16
2018-01-05T02:24:16
113,840,771
0
0
null
null
null
null
UTF-8
Python
false
false
716
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2017-12-13 13:57 from __future__ import unicode_literals import blog.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0006_auto_20171213_1225'), ] operations = [ ...
d2da3d3a0bb26f5782b9c140d847572bc7cd8ec0
fc0a6e0f9ffa90a2473fec77bc52ea02e9b21f55
/venv/lib/python3.7/site-packages/akshare/qhkc/funcs.py
ef5311e4c8f7909a2359e139fe2ab25f1364655b
[]
no_license
YixuanSeanZhou/COVID19_Scraping
3903e697caf406c7d357afd8cc43811d62896244
b84890c4a5ddef589cd76d1ed8fd4a1976f4e3c4
refs/heads/master
2022-09-08T16:14:33.292096
2020-05-23T04:26:02
2020-05-23T04:26:02
266,261,823
0
0
null
null
null
null
UTF-8
Python
false
false
1,527
py
# -*- coding:utf-8 -*- # /usr/bin/env python """ Author: Albert King date: 2020/2/13 23:11 contact: [email protected] desc: 可用函数库 --> client.py --> DataApi """ class QhkcFunctions: @staticmethod def variety_positions(fields="shorts", code="rb1810", date="2018-08-08"): """ 奇货可查...
2f5013ac6fd73da64e153628614dfa276fd04d3b
48a36fddd9e7c584a9792533c11601f0e4619885
/torchvision/edgeailite/xvision/losses/flow_loss.py
d3d238fa87d39813f0da26d516e3e186af56441d
[ "MIT", "BSD-2-Clause-Views", "BSD-3-Clause" ]
permissive
supermy00/edgeai-torchvision
8c152e796590ae5f6ae4f6948cbfb132409506a0
29b02c32b26ea8c0c319a376ab8a9a1b9ada25b5
refs/heads/master
2023-09-02T02:36:47.068701
2021-11-17T10:08:17
2021-11-17T10:08:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,504
py
################################################################################# # Copyright (c) 2018-2021, Texas Instruments Incorporated - http://www.ti.com # All Rights Reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditio...
[ "a0393608@udtensorlab5" ]
a0393608@udtensorlab5
5a1cfbe5e8072892a669b1003898b436401022a5
a807ce0fa3e3e9c3b558b2e977c05e60c3a667b1
/nemo_text_processing/inverse_text_normalization/en/verbalizers/cardinal.py
bd053bebf7645a4fbb554dfb082d991b1be9c614
[ "Apache-2.0" ]
permissive
blisc/NeMo
630376e7555c0face994da2f6f9af5d8d31243c3
fadeb45c84d6b323d78e30475538455a88b7c151
refs/heads/rework_reqs
2023-08-17T00:03:39.248669
2021-08-12T15:15:06
2021-08-12T15:15:06
208,142,160
2
0
Apache-2.0
2022-02-03T16:30:33
2019-09-12T20:37:24
Jupyter Notebook
UTF-8
Python
false
false
1,812
py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # Copyright 2015 and onwards Google, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/license...
ca75f05cd80acb75911622ecaa2e8e98c607b2fa
1213bcf770a94a89b39be8dc7b99a3f7e35fd369
/src/alloy/backend/x64/optimizer/passes/sources.gypi
6d80257ca4d2836c37d094b89bcaa73a046bbcae
[]
no_license
wtfaremyinitials/xenia
c86e4625a1dd084d97d44c3242e2faf208bca2b8
16b3ecd5897051f82bc236ad9a4d0ab5cab22e87
refs/heads/master
2020-12-31T02:43:53.168712
2014-01-14T22:06:05
2014-01-14T22:06:05
15,918,955
2
0
null
null
null
null
UTF-8
Python
false
false
254
gypi
# Copyright 2013 Ben Vanik. All Rights Reserved. { 'sources': [ 'reachability_pass.cc', 'reachability_pass.h', 'redundant_mov_pass.cc', 'redundant_mov_pass.h', 'register_allocation_pass.cc', 'register_allocation_pass.h', ], }
fc52d8ec81fe4b307261bd7e11d50deb5d97ee67
9ba00eb872099e6fe69c4e6b3561b0578cc09ca4
/exoplanets.py
cc3e8a16376dfb30a79845c999770f1eb685ffd8
[]
no_license
RuthAngus/exoplanet_travel
4ab56ee3adfaaeca009e6997706f42091d634c01
b7248030e8713811f65239d5745fbd9493dcfd58
refs/heads/master
2020-12-24T13:28:35.234907
2014-07-01T16:14:24
2014-07-01T16:14:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,548
py
from exoplanet_pictograms import plot_exoplanet, plot_name, remove_space from flask import Flask, url_for from flask import render_template import numpy as np import kplr import csv app = Flask(__name__) @app.route('/') def index(name=None, text=None): name = nm() print name text1 = p_text(name) text2 ...
00061ee28548b2c6b4aefaa5471d754a09c8788d
653a3d9d66f3d359083cb588fc7c9ece8bb48417
/src/graph_transpiler/webdnn/backend/fallback/kernels/cosh.py
ceb89aa2948de8ed8a485af2566d587d6dfce987
[ "Zlib", "MIT" ]
permissive
leonskim/webdnn
fec510254b15f3dec00f5bed8f498737b372e470
f97c798c9a659fe953f9dc8c8537b8917e4be7a2
refs/heads/master
2020-04-15T18:42:43.632244
2019-01-10T10:07:18
2019-01-10T10:07:18
164,921,764
0
0
NOASSERTION
2019-01-09T19:07:35
2019-01-09T19:07:30
Python
UTF-8
Python
false
false
186
py
from webdnn.backend.fallback.kernels.elementwise import register_elementwise_kernel from webdnn.graph.operators.cosh import Cosh register_elementwise_kernel(Cosh, "y = Math.cosh(x0);")
9edbd7dd5d1dc89004fd5abd46398875aab00e34
1afa6c852dfc922d1a26a384d965976f31a87692
/Imaging/Core/Testing/Python/TestSeparableFilter.py
da6b137d7329c12a4b1484262e2fe32f6bd2f967
[ "BSD-3-Clause" ]
permissive
dgobbi/VTK
631d037aacc7258861e70f77c586b01cd4ebff3f
17f232ee440025c26bc78a897edef78e9fc78510
refs/heads/master
2021-01-04T22:27:46.611907
2013-03-01T19:44:02
2013-03-01T19:44:02
938,377
0
2
null
null
null
null
UTF-8
Python
false
false
1,282
py
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # Image pipeline reader = vtk.vtkPNGReader() reader.SetFileName("" + str(VTK_DATA_ROOT) + "/Data/fullhead15.png") # Take the gradient in X, and smooth in Y # Create a simple gradient ...
a2face64492994c1d89d87de17f1735956e91868
1f214956382f62e876de3d00c40c5a8684a3b5df
/preprocessing/tests/test_mysql.py
ef73d63c507114b639af108327ad9518ec0fd887
[ "MIT" ]
permissive
ennima/omas
e1f00e0d3445f995d36b221c43ab47113750aeee
c8507b95c8c07a311c29c70acc0a7d3504d28f78
refs/heads/master
2021-01-18T18:11:49.027451
2016-10-14T19:28:14
2016-10-14T19:28:14
56,949,079
0
0
null
null
null
null
UTF-8
Python
false
false
1,041
py
import sys import unittest sys.path.append('../') sys.path.append('../db') from MysqlProcessing import * from pprint import pprint class MysqlProcessingTest(unittest.TestCase): # def test_it_should_be_able_to_construct(self): # mysql = MysqlProcessing() # self.assertIsInstance(mysql,MysqlProcessing,"Es instanc...
3435d0e6edaab0672cac56775147c66023890e1f
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_75/288.py
5d27fe84e3a6db4dda7c09565446712b904e8b3e
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,467
py
# coding:utf-8 import sys argvs = sys.argv argc = len(argvs) #print argvs #print argc f = open(argvs[1]) T = f.readline() for i in range(int(T)): comb_rules = [] oppo_rules = [] line = f.readline() tc = line.split(' ') C = int(tc[0]) # 変換ルールの個数 for j in range(C): temp = tc[j+1]...
0f1efd38304a5382f434bb66d79a51c0c7e7975c
b521802cca8e4ee4ff5a5ffe59175a34f2f6d763
/maya/maya-utils/Scripts/Animation/2019-2-15 Tim Cam_Route_Manager/.history/Cam_Main/Cam_Main/Cam_Attribute_Panel_20190119093039.py
087baf065ed52ddf41a02765c0e1351af2098e5e
[]
no_license
all-in-one-of/I-Do-library
2edf68b29558728ce53fe17168694ad0353a076e
8972ebdcf1430ccc207028d8482210092acf02ce
refs/heads/master
2021-01-04T06:58:57.871216
2019-12-16T04:52:20
2019-12-16T04:52:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,514
py
# -*- coding:utf-8 -*- # Require Header import os import json from functools import partial # Sys Header import sys import traceback import subprocess import plugin.Qt as Qt from Qt.QtCore import * from Qt.QtGui import * from Qt.QtWidgets import * from maya import cmds def loadUiType(uiFile): import plugin.Qt a...
1fdcdc99bcf503501c3716c003b8e28528b0ce68
0857913ae5cde7481c5bca63ed5081e11f217581
/p1804/p10While/whileTest.py
5d346d2f002ca0cee68216cb7d6c969ca233f173
[]
no_license
nmww/p1804_ceshi
48c2d93849018d8601f0732c5005395c81490ef1
72bf25cc7767371594b41f8919454e46fe178023
refs/heads/master
2020-03-15T23:25:43.345763
2018-06-27T03:19:55
2018-06-27T03:19:55
132,393,611
53
7
null
null
null
null
UTF-8
Python
false
false
565
py
''' while 循环 # while语句作用的范围是 # 下方相同缩进的 所有语句 while 循环条件: pass pass 循环条件: 1. 是否成立: True / False 2. 条件判断控制 a 比较 b ''' #------------------------------- qiandao = 0 # 没有签到 xinqing = 'kaixin' while qiandao < 10: print ("您未签到,请尽快去签到,否则要跪键盘 %d "% qiandao) qiandao = qiandao + 1 #---------------------...
daab02c365ce921ab5905425f021e1307979d25e
2293c76c3d18e2fcd44ded90bd40113d26285663
/pyeccodes/defs/mars/stream_table.py
e671c33b78355b98ed7a672fe0156befb48febba
[ "Apache-2.0" ]
permissive
ecmwf/pyeccodes
b1f121dbddf68d176a03805ed5144ba0b37ac211
dce2c72d3adcc0cb801731366be53327ce13a00b
refs/heads/master
2022-04-23T10:37:40.524078
2020-04-18T06:30:29
2020-04-18T06:30:29
255,554,540
9
3
null
null
null
null
UTF-8
Python
false
false
9,953
py
def load(h): return ({'abbr': 0, 'code': 0, 'title': 'Unknown'}, {'abbr': 'fsob', 'code': 1022, 'title': 'Forecast sensitivity to observations'}, {'abbr': 'fsow', 'code': 1023, 'title': 'Forecast sensitivity to observations wave'}, ...
c5de7953254fdb1308494e7667c8a26fe17950d4
f82757475ea13965581c2147ff57123b361c5d62
/gi-stubs/repository/ModemManager/ModemOmaClass.py
aa6224a47cc7b630f23469b8985f3eb96ae06ecb
[]
no_license
ttys3/pygobject-stubs
9b15d1b473db06f47e5ffba5ad0a31d6d1becb57
d0e6e93399212aada4386d2ce80344eb9a31db48
refs/heads/master
2022-09-23T12:58:44.526554
2020-06-06T04:15:00
2020-06-06T04:15:00
269,693,287
8
2
null
2020-06-05T15:57:54
2020-06-05T15:57:54
null
UTF-8
Python
false
false
4,603
py
# encoding: utf-8 # module gi.repository.ModemManager # from /usr/lib64/girepository-1.0/ModemManager-1.0.typelib # by generator 1.147 """ An object which wraps an introspection typelib. This wrapping creates a python module like representation of the typelib using gi repository as a foundation. Accessing attr...
4dc98360b6b09c2585684d65e841dc4239d20e34
401ea01ffb848f1eabd8aa17690ec1ff5dc8e6bd
/test/test_action_event.py
62370e432b086e11d277be6874c16774885dc2d8
[]
no_license
bbrangeo/python-api-client
735acda3627d7a0ddd78ecb1e9617bb4082c9001
c2481e0cd012a41aeceefdce289d48509540b909
refs/heads/master
2020-03-14T18:24:20.888631
2018-04-30T14:47:47
2018-04-30T14:47:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
873
py
# coding: utf-8 """ BIMData API BIMData API documentation # noqa: E501 OpenAPI spec version: v1 Contact: [email protected] Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import bimdata_api_client from bimdata_api_c...
9d4a06013d0517080446f5dfd957558c9e77d8d9
a86fda09a185ebf367e31cf26589161303f9497a
/metrics/topologyVertex.py
3b6fc44e77e468ade8bbf02eebf09fef94eecc0f
[ "BSD-3-Clause" ]
permissive
kristianeschenburg/metrics
67ec2cd5b697241eee35da46daf71b2d735cdb64
53900f8130cb7dd762ae3e816225fb4f178a5b29
refs/heads/master
2020-03-25T10:27:29.623361
2019-04-02T21:20:08
2019-04-02T21:20:08
116,600,441
0
0
null
null
null
null
UTF-8
Python
false
false
1,711
py
import numpy as np def labelCounts(label, adjacencyList): """ For each vertex, count the number of vertices with other labels that are adjacent to it. Parameters: - - - - - label : int, array label vector adjacencyList : SurfaceAdjacency adjacency list for surface mesh ...
d8c33a598956091bab533eda8716d63e6ce852b5
2986a62a5221885b2f070060aadb9c9ab1e84035
/Aula10 - Condições em Python/ex033 - Maior e menor valor.py
1084395b85db8996bebe2ec6aea68e8a3f430e7f
[]
no_license
igorkoury/cev-phyton-exercicios-parte-1
dcb39772be48ba7333a391af4e9fda025654472f
b187565ca996402f4862ad3000d18bfb461e269e
refs/heads/main
2023-08-28T02:38:32.311162
2021-10-06T21:38:39
2021-10-06T21:38:39
414,375,879
1
0
null
null
null
null
UTF-8
Python
false
false
627
py
# Faça um programa que leia 3 números e diga qual é o maior e o menor. print("Digite 3 numeros para saber quem é o menor e o maior.") n1 = int(input("Digite um número: ")) n2 = int(input("Digite outro: ")) n3 = int(input("Digite mais um: ")) print("Você digitou {}, {} e {} respectivamente.".format(n1, n2, n3)...
df9181e897d1c79756259eeadcb4711eca0fff67
04975a41eb459f1528dcbdcb1143a3cb535aa620
/Tree_easy/leetcode_590.py
ef470b8651a6a2b4c709b9cdf7f36ce6651cff88
[]
no_license
RickLee910/Leetcode_easy
2a50d632379826979a985e1b9950d4cf6bbd8b18
c2687daf334f96a908737067bb915b8b072d0d56
refs/heads/master
2023-01-29T11:09:26.701243
2020-12-02T04:36:14
2020-12-02T04:36:14
294,952,436
0
0
null
null
null
null
UTF-8
Python
false
false
325
py
class Solution: def postorder(self, root: 'Node') -> List[int]: ans = [] def dfs(root,ans): if root == None: return for i in root.children: dfs(i,ans) ans.append(root.val) return ans dfs(root, ans) return...
455ab705f17ca676bf7042b5beb8912bd9ac74c8
6ab31b5f3a5f26d4d534abc4b197fe469a68e8e5
/tests/kyu_7_tests/test_patterncraft_visitor.py
8824069b8298d54921b0b5d2084e335ee8fe30a0
[ "MIT" ]
permissive
mveselov/CodeWars
e4259194bfa018299906f42cd02b8ef4e5ab6caa
1eafd1247d60955a5dfb63e4882e8ce86019f43a
refs/heads/master
2021-06-09T04:17:10.053324
2017-01-08T06:36:17
2017-01-08T06:36:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
552
py
import unittest from katas.kyu_7.patterncraft_visitor import Marauder, Marine, TankBullet class PatterncraftVisitorTestCase(unittest.TestCase): def setUp(self): self.bullet = TankBullet() self.light = Marine() self.bullet2 = TankBullet() self.armored = Marauder() def test_equ...
31de42d8a93f76985b06a65ff8e74ce14733af1e
bec8f33002130d8395f4ac4f0c74b785aa22cac5
/appium/options/common/language_option.py
f82de63d08680cc5a2a131403286ba603d4c8827
[ "Apache-2.0" ]
permissive
appium/python-client
1c974fdf1ac64ce4ac37f3fc8c0a3e30c186d3ca
2e49569ed45751df4c6953466f9769336698c033
refs/heads/master
2023-09-01T22:14:03.166402
2023-09-01T11:52:27
2023-09-01T11:52:27
18,525,395
1,588
606
Apache-2.0
2023-09-10T02:00:09
2014-04-07T17:01:35
Python
UTF-8
Python
false
false
1,317
py
# Licensed to the Software Freedom Conservancy (SFC) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The SFC licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
8f16b2d94dc4d8a4ebc5c2b779b1049670c0faa5
d8829cbc2d2863f68cb1b447a878dce0ac20a878
/scraper/positions.py
40a42e62b99118840ea7c9eef7ef2123b8b36208
[]
no_license
XiaoxiaoWang87/InsightPrj
170a9757dfdf4669ee2c52322f2f5e5d766ce2a1
767a3719fad93ddb9711817f543b5e7b1822f680
refs/heads/master
2021-01-19T00:41:44.195663
2014-10-06T22:28:24
2014-10-06T22:28:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
198
py
import pandas as pd df = pd.read_csv('position_draft.csv',sep='\t') for index, row in df.iterrows(): #if row["DRAFT"] == '[]': if row["POSITION"] == '[]': print row["PLAYERCODE"]
[ "=" ]
=
8ba17eac98795a2e90941bb8a59a7c5f271b75eb
a9937139b1af85180cea706a52d447abce2430f4
/e/Pliki/otwieranie_pliku.py
1f748da7717c491ec9513b293b31648e29137cf4
[]
no_license
MirekPz/Altkom
8f16014d43adb10e87804ae2b5d23151924cb226
0a49e75e681593b41d07cbff63dea0723a11756b
refs/heads/master
2020-09-29T00:12:37.990353
2019-12-13T15:52:30
2019-12-13T15:52:30
226,899,295
0
0
null
null
null
null
UTF-8
Python
false
false
192
py
plik = open('example_txt_file.dmo', 'r') zawartosc = plik.read() print(zawartosc) plik.close() input('drugi:') # with open with open('example_txt_file.dmo') as file: print(file.read())
a3d44c517ab38a95c83ab8b1483260b48e15327b
4328c71ddbb3dd564c04c599f8e95afef16e0d7c
/dg/4-sysProcess/06-全局变量在多个进程中不共享.py
773b57b49e89c4bc420af8e6576049b0201d5761
[]
no_license
amtfbky/git_py
470fb7bc8f2c5017d47c31e1af8bb042bfe377b4
6159049b088036ebd133f5dab917d3e540a304c8
refs/heads/master
2020-03-09T04:16:12.991206
2018-06-01T01:16:05
2018-06-01T01:16:05
128,583,362
0
0
null
null
null
null
UTF-8
Python
false
false
275
py
import os import time g_num = 100 ret = os.fork() if ret == 0: print("------process-1--------") g_num += 1 print("------pricess-1---g_num=%d--"%g_num) else: time.sleep(1) print("------process-2--------") print("------pricess-2---g_num=%d--"%g_num)
2901a64d6a75331ae821fc785d834c03fc4d5a31
616c3c02be31b9ae4d06bd7c5a8d4a2e7c446aa1
/1370.上升下降字符串.py
36aae8d92dbacc45541253677dc27fdce052d717
[]
no_license
L1nwatch/leetcode-python
8b7c47c04ee9400d50d8b0764a544a0463df8f06
0484cbc3273ada25992c72105658cd67411c5d39
refs/heads/master
2023-01-11T14:53:15.339276
2023-01-11T05:24:43
2023-01-11T05:24:43
194,516,548
0
1
null
null
null
null
UTF-8
Python
false
false
935
py
# # @lc app=leetcode.cn id=1370 lang=python3 # # [1370] 上升下降字符串 # # @lc code=start class Solution: def sortString(self, s: str) -> str: s = list(s) s.sort() answer = list() while len(s) > 0: # step1 char = s.pop(0) answer.append(char) ...
be8e5e49757da2d235076e9890d0f790ea19a91d
1273fc880f09305fd1ed9ddc9b273df4253f15e7
/muffin_babel/__init__.py
3c8cca5765181a5b60e915fac27beabaa6161269
[ "MIT" ]
permissive
klen/muffin-babel
ac63b997bb7ecb589b72d6e8a0ce3092fb87193f
c627a4da4263e883bec04793c6637d3f8aa1f9bc
refs/heads/develop
2023-06-01T04:38:45.708882
2023-05-22T12:04:37
2023-05-22T12:04:37
39,961,646
3
0
MIT
2021-05-28T10:02:34
2015-07-30T16:51:18
Python
UTF-8
Python
false
false
10,443
py
"""Muffin-Babel -- I18n engine for Muffin framework.""" import csv import logging import sys from contextlib import contextmanager from pathlib import Path from typing import TYPE_CHECKING, Any, Awaitable, Callable, Dict, Optional, Tuple, TypeVar from asgi_babel import current_locale, select_locale_by_request from bab...
f4ba49f50c1a6829dee16f64d136e2f0406c7115
d992f98d3c5d009c567e9dac83f38770d8d72f77
/postCMeval/annoate_summary_with_pscore.py
942920673d5212449ff7547f0710420b4b39e90f
[]
no_license
rlleras/quasiClique
c65643dcc35e2426e4c519ee1b3400895e9610cc
d57be41a213d2e57778d2feb9c103594ebbbf705
refs/heads/master
2021-01-21T20:53:05.841720
2012-02-28T22:49:17
2012-02-28T22:49:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,335
py
import os import sys import glob import csv def annotate_rank_summary_with_pscore(filename, delimiter=','): """ Given a rank_cmfinder.pl-output summary file X, create a new file X.pscore_added that has the motifs' pscores appended """ motif_dir = os.path.dirname(filename) in_csv = csv.DictReader(open(filename),...
4532e075eae5a1ddc4b9609e44839947d035ec9f
a68f37fcbf069c0656d4838af7386d6a9919fe59
/company_account/decorators.py
1454352528e707241395d14220ced8df0d57a92c
[]
no_license
mitchellpottratz/JobMatch
7dd2cbd979ca55cf651bcee4356a97e061145b90
797a9b1c3dfad57c05db52384d87d5f82be632f5
refs/heads/master
2022-11-26T08:44:27.535809
2019-12-13T20:05:11
2019-12-13T20:05:11
224,901,935
0
0
null
2022-11-22T04:53:46
2019-11-29T18:08:55
JavaScript
UTF-8
Python
false
false
457
py
from functools import wraps from django.http import HttpResponseRedirect # this decorators checks if the current user is a company_user, and redirects # them to the login user if they are not a company_user def company_account_required(function): @wraps(function) def wrap(request, *args, **kwargs): if not request...
6add13271b6ebf08177a20b058dc78e738d70a03
255e19ddc1bcde0d3d4fe70e01cec9bb724979c9
/dockerized-gists/5320734/snippet.py
5d6a295d577a6aa909c64302aa627f27dc8e67b7
[ "MIT" ]
permissive
gistable/gistable
26c1e909928ec463026811f69b61619b62f14721
665d39a2bd82543d5196555f0801ef8fd4a3ee48
refs/heads/master
2023-02-17T21:33:55.558398
2023-02-11T18:20:10
2023-02-11T18:20:10
119,861,038
76
19
null
2020-07-26T03:14:55
2018-02-01T16:19:24
Python
UTF-8
Python
false
false
1,522
py
import os import matplotlib.pyplot as plt def save(path, ext='png', close=True, verbose=True): """Save a figure from pyplot. Parameters ---------- path : string The path (and filename, without the extension) to save the figure to. ext : string (default='png') The file exte...
64c32586630e0c01a48bb1e4907ab4ac66192273
98d8b7dd018b95dbf2c81431561546fd9619e391
/model/ItemLimitModel.py
4c9e5c484728ea86929619b001baca2ad8e6fea9
[]
no_license
c1xfr2e/kkyadmin
1642c42659724a676000768bab559684581f3b07
e5cef8b8ed63d3db8c1ff22af0edf44c36c4df63
refs/heads/master
2021-09-08T08:55:17.448640
2018-03-09T00:07:46
2018-03-09T00:07:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,436
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 """""" from third_party.orm.field import StringField from third_party.orm.field import IntegerField from third_party.orm.field import ObjectIdField from third_party.orm.field import ListField from third_party.orm import Document from tornado import gen im...
c47b81eae5619450ed32f1b322237587c0217bf4
33d490698f2958f2d53a6436043959bac5c9f63d
/l10n_es_aeat_mod340/__openerp__.py
5bc97b620692f733dc328a58c8b83803b21a8568
[]
no_license
ideosoft/odoo-modules
cf1a4bf0a1f0f25bfa44a83f8c10a2c73baed67e
3183a533ec9b89a57fd2b4c09cca0111afc86730
refs/heads/master
2021-03-30T18:13:42.873503
2016-07-14T13:46:01
2016-07-14T13:46:01
49,328,128
0
1
null
null
null
null
UTF-8
Python
false
false
3,276
py
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (c) 2011 Ting (http://www.ting.es) All Rights Reserved. # Copyright (c) 2011-2013 Acysos S.L. (http://acysos.com) # Ignacio Ibeas...
6e475fa396e9a6dcef96eed3caf04907181bd82f
03f9b8bdea312636afb4df3737b55cb0cc4b21ff
/RLEIterator.py
abaa4b9c89f81c3310c20d22aec12ca5c65ea68a
[]
no_license
ellinx/LC-python
f29dd17bbe15407ba0d06ad68386efdc9a343b56
9190d3d178f1733aa226973757ee7e045b7bab00
refs/heads/master
2021-06-01T15:21:24.379811
2020-10-29T04:37:07
2020-10-29T04:37:07
132,704,788
1
1
null
2019-05-15T03:26:11
2018-05-09T05:13:26
Python
UTF-8
Python
false
false
2,435
py
""" Write an iterator that iterates through a run-length encoded sequence. The iterator is initialized by RLEIterator(int[] A), where A is a run-length encoding of some sequence. More specifically, for all even i, A[i] tells us the number of times that the non-negative integer value A[i+1] is repeated in the sequence....
f890543311bf3991003bb75799e29477022c6245
00ce0f4d0c380d60cb336484200153636b249120
/hearthbreaker/effects/minion.py
18d49d2a99c6775f7c8aca516afe987f51750f98
[ "MIT" ]
permissive
tezheng/hearthbreaker
21784aeba11f557703e22a23af54886c496d3fec
169ad0d00e62300054e7cbaf5562d750f28730a8
refs/heads/master
2021-01-15T14:30:05.542012
2014-09-24T20:03:12
2014-09-24T20:03:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
28,857
py
import copy import json import abc from hearthbreaker.constants import MINION_TYPE import hearthbreaker.game_objects class MinionEffect (metaclass=abc.ABCMeta): def __init__(self): self.target = None def set_target(self, target): self.target = target @abc.abstractmethod def apply(se...
c1ceb404454ce567e24d20d975800d5a86c84ea7
4140a1eecd862356d7d41b171d8956a7ab96be7b
/nitro-python-1.0/nssrc/com/citrix/netscaler/nitro/resource/stat/lsn/lsndslite_stats.py
23db16cfc4e72bdd3a3490761b166565c8a07ce0
[ "Apache-2.0", "Python-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Citrix-TechSpecialist/NS-Init
1c4311fef80d47d80fb5bfe107df058f5ff93e20
bd1b695584a6acadec0140457782c7f4e97c266b
refs/heads/master
2020-12-02T10:00:13.245312
2017-07-09T09:30:51
2017-07-09T09:30:51
96,673,273
1
0
null
null
null
null
UTF-8
Python
false
false
13,736
py
# # Copyright (c) 2008-2015 Citrix Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
69a1f0b6fd6245b262107582163cc8ddd44ea88e
38a92e99215d4bd6146374408513e7b8446ec828
/ocpu/views.py
59a753c4ddfbdf47b2487cad764f92feee416851
[]
no_license
andi-nl/ANDI-frontend
b953ca50d1c1f3a4d6d12de8e68b7d81e815f0dc
8d41bc8b6764444ab7b7a7ac053cdf8c317a568a
refs/heads/master
2020-04-14T23:12:14.309292
2017-06-22T12:08:43
2017-06-22T12:08:43
41,303,252
1
12
null
2017-01-02T13:17:41
2015-08-24T13:00:35
JavaScript
UTF-8
Python
false
false
932
py
import json import logging from django.http import JsonResponse from django.views.decorators.csrf import csrf_exempt from django.contrib.auth.decorators import login_required from django.core.exceptions import SuspiciousOperation from .utils import do_normcomp, do_calccomposite logger = logging.getLogger(__name__) ...
7b6058bd35243dcac57bec06afb8147e964d4555
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_softwoods.py
bf431aa729f540bf80fb4fb0ce05106eaa0eb798
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
252
py
from xai.brain.wordbase.nouns._softwood import _SOFTWOOD #calss header class _SOFTWOODS(_SOFTWOOD, ): def __init__(self,): _SOFTWOOD.__init__(self) self.name = "SOFTWOODS" self.specie = 'nouns' self.basic = "softwood" self.jsondata = {}
850ecdca5bc07271e05e480aefeb8432c7ea8f48
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/EPXH424t2SSjMzms5_5.py
6f2e5df2ee3869baab5543822cd15128d9777f20
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
901
py
""" Create a function that takes both a string and a list of integers and rearranges the letters in the string to be in the order specified by the index numbers. Return the "remixed" string. ### Examples remix("abcd", [0, 3, 1, 2]) ➞ "acdb" The string you'll be returning will have: * "a" at index 0 * "b"...