blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
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
684 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
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
675e4bb1f08a758c131194ba74d7faf5d935ca50
e34cbf5fce48f661d08221c095750240dbd88caf
/python/homework/ElectiveSys/lib/commons.py
d43acd0be838e40ee4fe3cec890740b0be6b2ab6
[]
no_license
willianflasky/growup
2f994b815b636e2582594375e90dbcb2aa37288e
1db031a901e25bbe13f2d0db767cd28c76ac47f5
refs/heads/master
2023-01-04T13:13:14.191504
2020-01-12T08:11:41
2020-01-12T08:11:41
48,899,304
2
0
null
2022-12-26T19:46:22
2016-01-02T05:04:39
C
UTF-8
Python
false
false
340
py
#_*_coding:utf-8_*_ __author__ = 'Linhaifeng' import uuid,hashlib import time def create_uuid(): return str(uuid.uuid1()) def create_md5(): m=hashlib.md5() m.update(bytes(str(time.time()),encoding='utf-8')) return m.hexdigest() if __name__ == '__main__': x=create_md5() print(x) y=create...
[ "284607860@qq.com" ]
284607860@qq.com
c7ed48c440aded880b748fd9fff296772c73741a
3a22d9a1c4a8d5530208f4b9af004711bd620111
/sagemaker_neo_compilation_jobs/gluoncv_yolo_darknet/tools/concat_db.py
9b11085b6afbb3f060a2b0012d4e39f567fa497e
[ "Apache-2.0" ]
permissive
jme3192/amazon-sagemaker-examples
45fae7b1e2a8b8c0b8149eb1195caa8fd701a12a
93cd954b6f57c8f905340479b92eaca17b2527ff
refs/heads/master
2023-04-29T02:40:42.483934
2021-05-11T21:31:59
2021-05-11T21:31:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,976
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "noreply@github.com" ]
jme3192.noreply@github.com
541e171cb4e23513a2d526ad23f7aa9eea403533
1080ce3a527990289369916bebc22eee1e41e0ec
/app/__init__.py
64b7c8aa77e60495d267a3cd61b1f195bcbec821
[]
no_license
ChristineKarimi/watchlist3
2213afb30ee40cef23958239a431a381b0999ec4
e9821ad9a349964277bbb8e9c93c0ac03b907a6e
refs/heads/master
2023-05-27T19:03:48.949643
2021-06-03T19:28:19
2021-06-03T19:28:19
373,738,563
1
0
null
null
null
null
UTF-8
Python
false
false
477
py
from flask import Flask from flask_bootstrap import Bootstrap from config import config_options bootstrap = Bootstrap() def create_app(config_name): app = Flask(__name__) # Creating the app configurations app.config.from_object(config_options[config_name]) # Initializing flask extensions bootst...
[ "karimikim3@gmail.com" ]
karimikim3@gmail.com
6d792ce3a7977e91730930fc9fa2fae5769b5bb6
8f221b6fd60cf7a2e58360451b08c2f2ae628a0d
/proj/__init__.py
7637aa650fd633ff496dcb23de0d54a9b26cf4e0
[ "Apache-2.0" ]
permissive
P2PTeam/Flask-Bootstrap
f191b7d1b0794bf21a20ea6f431ec36075092833
d1be1069a29ae8d794985b3d7c9e29c50e7ecf92
refs/heads/master
2021-01-15T20:23:06.299066
2014-09-03T15:31:30
2014-09-03T15:31:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,371
py
# coding: utf-8 import sys import os # 将project目录加入sys.path project_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) if project_path not in sys.path: sys.path.insert(0, project_path) from flask import Flask, request, url_for, g, render_template from flask_wtf.csrf import CsrfProtect from flas...
[ "hustlzp@qq.com" ]
hustlzp@qq.com
3c2a12f4c6ba6c3e5af09e84132c66845ebc006d
faabe34af6297530617395bcc6811350765da847
/platforms/interviewbit/NextGreater.py
f19cce6d39c05c06ba41d4713acdb8180df4302d
[]
no_license
pqnguyen/CompetitiveProgramming
44a542aea299bd553dd022a9e737e087285b8b6d
27330e7ff79c4ac883d7e1fcdf2f0d30939c3f78
refs/heads/master
2021-07-21T12:15:47.366599
2021-06-27T14:58:48
2021-06-27T14:58:48
132,837,831
0
0
null
null
null
null
UTF-8
Python
false
false
584
py
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None from collections import deque class Solution: # @param A : list of integers # @return a list of integers def nextGreater(self, A): stack = deque() res = [-1...
[ "pqnguyen1996@gmail.com" ]
pqnguyen1996@gmail.com
e411e4e6ce7bd7e9f5684fd4ca91463162fd6dda
0d8486c1d55c40bebea7c5428930f18165d2d0e9
/tests/printInput.py
427adc8ff2a140d5629f8e232005b6cf9fe11987
[ "Apache-2.0" ]
permissive
bernardocuteri/wasp
6f81bf6aa8fb273c91bbf68ecce4ecb195a55953
05c8f961776dbdbf7afbf905ee00fc262eba51ad
refs/heads/master
2021-06-08T11:58:25.080818
2020-10-05T16:57:37
2020-10-05T16:57:37
124,245,808
0
0
Apache-2.0
2018-03-07T14:13:16
2018-03-07T14:13:16
null
UTF-8
Python
false
false
324
py
#!/usr/bin/env python3 import sys if len(sys.argv) != 2: sys.exit("Usage:\n\t%s <testcase>" % (sys.argv[0],)) testcase = sys.argv[1] exec(open(testcase).read()) for i in ['input']: if i not in locals(): sys.exit("Testcase %s does not provide variable '%s'" % (testcase, i)) print(input.strip...
[ "mario@alviano.net" ]
mario@alviano.net
6e41b6798166e01c404a9a124d14c853450ee068
6c82ad5e3794ebd586514d180587f70774e9ffd2
/accounts/helper/utils.py
775f63335602f75892b54577f3b3172efd029442
[]
no_license
madScientist101/healthApp
b1e34d94baf8c3f8fa0550da365a993496b57848
f412c09e7d63ea1e37a845f7dd550fa392f86ac8
refs/heads/master
2022-11-10T13:48:29.542585
2020-07-05T15:01:23
2020-07-05T15:01:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
690
py
def base36encode(number, alphabet='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'): """ Converts an integer to a base36 string. """ if not isinstance(number, (int, long)): raise TypeError('number must be an integer') base36 = '' sign = '' if number < 0: sign = '-' ...
[ "miketetteh751@outlook.com" ]
miketetteh751@outlook.com
d0d05fa64ee797b838485a9ac0c94af181d19e07
b167407960a3b69b16752590def1a62b297a4b0c
/tools/project-creator/Python2.6.6/Lib/test/test_scriptpackages.py
96bfe45e8fbe9f3e20217cbea5b55bef180e8bdf
[ "MIT" ]
permissive
xcode1986/nineck.ca
543d1be2066e88a7db3745b483f61daedf5f378a
637dfec24407d220bb745beacebea4a375bfd78f
refs/heads/master
2020-04-15T14:48:08.551821
2019-01-15T07:36:06
2019-01-15T07:36:06
164,768,581
1
1
MIT
2019-01-15T08:30:27
2019-01-09T02:09:21
C++
UTF-8
Python
false
false
1,378
py
# Copyright (C) 2003 Python Software Foundation import unittest from test import test_support import aetools class TestScriptpackages(unittest.TestCase): def _test_scriptpackage(self, package, testobject=1): # Check that we can import the package mod = __import__(package) # Tes...
[ "278688386@qq.com" ]
278688386@qq.com
d18ba3f23e10f3d94b7a764c8e07b0a4c471baa2
e7f5ba85998200eefa32c260f7328d8f6e42a9cc
/apps/session_words_app/views.py
1c7db0bd1bb8538e53b986d008a222f1d6942f6e
[]
no_license
MichaelKirkaldyV/Django_session_form
6b2c24aa8c4d80bd2a46b890cff7b5a11dde9ce8
809e46206259015603585c495aacacbb05ba9601
refs/heads/master
2020-03-22T11:47:41.254680
2018-07-06T14:42:51
2018-07-06T14:42:51
139,996,581
0
0
null
null
null
null
UTF-8
Python
false
false
1,465
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.shortcuts import render, HttpResponse, redirect #imports datetime module to be used. from datetime import datetime def index(request): #checks to see if there is anything in var list, which is a class variable in the html template. if requ...
[ "vmichaelkirkaldy@live.com" ]
vmichaelkirkaldy@live.com
5aee4e3479c4fc7e75f1564905b22a5f817af0ff
652ce343b97e6de655892c942c300017341eaf84
/bash_scripts/Scripts/WRF_score.py
992f46c11cce739fe329440b4f3f7241e9d30034
[]
no_license
hasithadkr7/Workflow
84d5ead50956b4908fe45b3e20ca44991c3921ed
b3b38626bcd6946c25dd04d2b6058766a2e2e47e
refs/heads/master
2020-05-18T12:57:01.682648
2020-01-08T13:25:07
2020-01-08T13:25:07
184,423,685
0
0
null
null
null
null
UTF-8
Python
false
false
3,141
py
#============================================================= # WRF_Score.py # Compute the score of performance of the scheme # # J.F. Vuillaume and S. Herath 2018 #============================================================= import numpy as np import gzip import glob import matplotlib.pyplot as plt from datetime im...
[ "hasithadkr7@gmail.com" ]
hasithadkr7@gmail.com
2c5147a06733aab6f04884bc05db4e318853dffb
29eec4f8c2e5356ed3ea9d0748f8fdcce42a008c
/simulations/results/Primi/FogQLen/FogQLen/dati/mul001/join.py
492ef4ad8274a3e186f052fdcec6f4a40da56a42
[]
no_license
mions1/Fog
0d021bbc4d26680ed8d89411bf5aa96acf3aab32
e37d17a6356c31343e23750362f27e9fdcfff081
refs/heads/master
2020-05-05T03:28:34.641508
2019-08-21T00:26:33
2019-08-21T00:26:33
179,673,964
0
0
null
null
null
null
UTF-8
Python
false
false
3,589
py
import os from os import path def getListFromFile(fileName, z=False): means = {"x":[],"y":[],"z":[]} with open(fileName,"r") as f: for line in f: split = line.split() means["x"].append(float(split[0])) means["y"].append(float(split[1])) if z: ...
[ "simone.mione1@gmail.com" ]
simone.mione1@gmail.com
fe41e7e7ba9ec269f129ce0af18e8a42b90b17ad
7d56ddd456613b77872598360494edd411366a79
/lwotai/cards/us/card4.py
f1077f29724e1a10f30f2515335a7a3de6633fc1
[]
no_license
andrewswan/lwotai
3bf6629eaed86c945fdd65f221320bd743dc18ac
33c6435ce3f0f85668cc5414cf78c1e9c614f6a9
refs/heads/release
2021-01-19T10:38:55.939281
2017-09-17T03:38:33
2017-09-17T03:38:33
87,885,218
1
0
null
2017-04-11T03:41:12
2017-04-11T03:41:12
null
UTF-8
Python
false
false
410
py
from lwotai.cards.us.us_card import USCard class Card4(USCard): def __init__(self): super(Card4, self).__init__(4, "Moro Talks", 1, True, True, False) def play_as_us(self, app): app.markers.append("Moro Talks") app.remove_marker("Abu Sayyaf") app.output_to_history("Moro Talks...
[ "andrew.i.swan@gmail.com" ]
andrew.i.swan@gmail.com
4062caf884460db856224e1d811bc5d7b9e1cdb2
0b5ab7349485da4ea40ca343bc50f4cab74c917c
/week06/c12_02.py
0cfd769f12665d2842c00798d8083b422a53640e
[]
no_license
workherd/Python006-006
9bf2782ccda037de9af98eb7daa87fd1edeb3caf
7aa176c3cf4effd015802b550edfb70f859e94d9
refs/heads/main
2023-04-29T14:37:43.545376
2021-05-16T04:13:08
2021-05-16T04:13:08
323,247,475
1
0
null
2020-12-21T06:13:42
2020-12-21T06:13:42
null
UTF-8
Python
false
false
419
py
#!/usr/bin/env python # -*- coding:utf-8 -*- # @Time : 2021/1/30 21:35 # @Author : john # @File : c12.py from abc import ABCMeta, abstractmethod class Bases(metaclass=ABCMeta): @abstractmethod def foo(self): pass @abstractmethod def bar(self): pass class Concrete(Bas...
[ "1330430077@qq.com" ]
1330430077@qq.com
464d185398afd5e15935229e48d4bfa334abafed
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_exercises/templates/_algorithms_challenges/exercism/python-exercises-master_with_unittest/alphametics/test.py
64f4e6b7fc35ce9fdf1f0ef8c1c1ddc13c59f72a
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
1,732
py
_______ unittest ____ alphametics _______ solve # test cases adapted from `x-common//canonical-data.json` @ version: 1.0.0 c_ TestAlphametics(unittest.TestCase ___ test_puzzle_with_three_letters assertEqual(solve("I + BB == ILL"), {"I": 1, "B": 9, "L": 0}) ___ solution_must_have_unique_value_for_ea...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
a58843e975021392e84eee977fa0295baf5c84ad
26aa5596094db02ce142c281f340d989cf102acd
/art/estimators/object_tracking/__init__.py
b84b05efba777268c892377f06c837e9ce421d2a
[ "MIT" ]
permissive
davidslater/adversarial-robustness-toolbox
a933215c1f0984402229f3bba0daf579f7746747
e7c763b650fa016ff9915da750d90ba0e876b1ef
refs/heads/master
2022-11-30T13:36:47.626740
2022-11-22T17:14:52
2022-11-22T17:14:52
237,506,398
1
0
MIT
2020-01-31T20:00:13
2020-01-31T20:00:12
null
UTF-8
Python
false
false
208
py
""" Module containing estimators for object tracking. """ from art.estimators.object_tracking.object_tracker import ObjectTrackerMixin from art.estimators.object_tracking.pytorch_goturn import PyTorchGoturn
[ "beat.buesser@ie.ibm.com" ]
beat.buesser@ie.ibm.com
535d963b7e72d3e3a50035b317afd5357b2f1d29
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_dictum.py
d4afc20689297ff463329c7e4a22d671d7642b58
[ "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
352
py
#calss header class _DICTUM(): def __init__(self,): self.name = "DICTUM" self.definitions = [u'a short statement, especially one expressing advice or a general truth: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'nouns' def run(self, obj1 = [], obj...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
b4fa0fa5fbd18dc4e3f669203b63324eac8db31b
0a2cc497665f2a14460577f129405f6e4f793791
/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/_configuration.py
525b1bfaf7d1c448af6f1b39b3b3775d941f0ee6
[ "MIT", "LGPL-2.1-or-later", "LicenseRef-scancode-generic-cla" ]
permissive
hivyas/azure-sdk-for-python
112158aa9e1dd6e30cf6b3dde19f5db6ea2a577b
8b3258fa45f5dc25236c22ad950e48aa4e1c181c
refs/heads/master
2023-06-17T12:01:26.392186
2021-05-18T19:56:01
2021-05-18T19:56:01
313,761,277
1
1
MIT
2020-12-02T17:48:22
2020-11-17T22:42:00
Python
UTF-8
Python
false
false
3,217
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
hivyas.noreply@github.com
a35e91050caeaf03765af15fd3288d9f941f07d5
3d46409d076e3a9c2bd0a3004f3a8ab8286bd364
/tools/filp_image.py
f1ffcd507dd8cbc9016dbadf82093ad8831a1159
[]
no_license
xiaodongdreams/UWEnhancement
de8b325bc2ed5b585213fbd3286eb1f8d134871f
efdb24281621ecb3ebe714e07bfefaa6e10ec494
refs/heads/master
2023-08-22T06:39:43.787027
2021-11-01T02:49:16
2021-11-01T02:49:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,978
py
from PIL import Image import os import os.path rootdir = '/home/dong/python-project/Dehaze/DATA/Test/val/a/26.png' image = Image.open(rootdir) image_flip_lr = image.transpose(Image.FLIP_LEFT_RIGHT) image_rotate_270 = image.transpose(Image.ROTATE_270) image_rotate_180 = image.transpose(Image.ROTATE_180) image_rotate_...
[ "yudongwang@tju.edu.cn" ]
yudongwang@tju.edu.cn
5c04d2042d4d74e2119e474395321fd18c0c88d3
180a43f0b2a25fc32a2c8da5e933f71018b77559
/apps/main/models.py
b66982825da2b991de8bbaa47379ef5974437b7a
[]
no_license
amkolotov/images
8d12e7255f2e76fd1d96cb6b39e23b7172d4cef6
6f694a45e549f521d3ce2d5bec163b0896d20e12
refs/heads/master
2023-08-17T01:08:42.775734
2021-09-27T02:16:52
2021-09-27T02:16:52
410,167,163
0
0
null
null
null
null
UTF-8
Python
false
false
578
py
import os import uuid from django.conf import settings from django.db import models from django.utils import timezone from versatileimagefield.fields import VersatileImageField, PPOIField class Image(models.Model): image = VersatileImageField('Изображение', upload_to='images/', ppoi_field='image_ppoi') imag...
[ "amkolotov@mail.ru" ]
amkolotov@mail.ru
82b6341e203688054f500d300a211540ecf48fe3
0c5f7aaee0fc6f494e412469d0212c11656c8e27
/function15.py
927e566ac50dc7ee68f9fa80046495432fd53e11
[]
no_license
PreritBhandari/python-programs
54921c9ef14ae6880ac5e6929d7b5dbc644c6793
059d507f0834e4d095ebc356d8f6251a829a5ba1
refs/heads/master
2022-11-12T23:32:11.823615
2020-06-28T13:10:51
2020-06-28T13:10:51
275,586,905
1
0
null
null
null
null
UTF-8
Python
false
false
252
py
""" Write a Python program to filter a list of integers using Lambda """ def filter_list(input_list): filter_even = filter(lambda x:x%2==0,input_list) return list(filter_even) if __name__ == "__main__": print(filter_list([1,2,3,4,5,6,7,8]))
[ "patrioticprerit@gmail.com" ]
patrioticprerit@gmail.com
8c8831e1d716cb7e2fcc15aa925671c1f75b71d1
d0467da06118bf3252dfd70ef3bec61b19eea907
/appomatic_redhogorg_import/management/commands/pyimport.py
c81c336525e6b63c6290c6af41f366bef4919255
[]
no_license
redhog/redhogorg
b775dbc3418e51ba8973aa54d3307f743a4bf0ce
7a811c9b28075b4974ce694b8c7816460dea79df
refs/heads/master
2021-01-23T02:59:59.999709
2014-04-25T09:54:49
2014-04-25T09:54:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,708
py
import django.db import django.core.management.base import appomatic_redhogorg_data.models import optparse import contextlib import datetime import os.path import datetime from django.conf import settings import django.core.files.storage import django.db.models.fields.files import appomatic_redhogorg_import.baseimport ...
[ "egil.moller@freecode.no" ]
egil.moller@freecode.no
8397f6025681afbbc13b34aa257bae272a77a03d
aa1bc249c902ddde3366a43c20208edaed51f68b
/parameters.py
da3a502d7054e9bbaa5487a3a133421a5e1afdf6
[]
no_license
mihirpurwar/Fighter-Plane---Reinforcement-Learning
2c356484dc385045d72c07d993ba58cf4c29d8dd
7ce8c49511791f575b20022612ac0103f1443bed
refs/heads/master
2020-04-11T07:31:11.502532
2018-12-13T09:14:43
2018-12-13T09:14:43
161,613,128
0
0
null
null
null
null
UTF-8
Python
false
false
466
py
class Parameters: iterationCount = 1000 enemyCount = 1 fighterCount = 20 obstacleNumber = 20 normalizeFactor = 200 # boundaries initialBoundaryX = 200 initialBoundaryY = 200 # visibleBoundaryX = 200 visibleBoundaryY = 200 # totalBoundaryX = 200 total...
[ "noreply@github.com" ]
mihirpurwar.noreply@github.com
b053f519ecfc843dcc42c0acc24af224145d8567
b1182238bf0d26451d567e3100cea940be771ff1
/hd-thrift-idl/hd-thrift-idl-social/src/main/python/SocialAdminService/ISocialAdminServiceDeletePostInformFromPostId.py
67cc09d3f968fa6e29526800b47b2554b119b5db
[]
no_license
ybg555/vue-tvBox
af6df0e07848efc1c2ac80ee8b7c16c65b790a40
57e3849e7f8272794e5a38d5e49bb68f7a44f286
refs/heads/master
2021-01-15T15:42:23.728423
2016-10-02T09:36:08
2016-10-02T09:36:08
55,936,790
1
0
null
2016-04-12T01:07:09
2016-04-11T02:52:05
Python
UTF-8
Python
false
true
7,026
py
#coding=utf-8 # # Autogenerated by Thrift Compiler (0.9.2) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # from thrift.Thrift import TType, TMessageType, TException, TApplicationException from ttypes import * from thrift.Thrift import TProcessor from thrift.transport imp...
[ "93745726@qq.com" ]
93745726@qq.com
f7fb68c8c273be90a9d36a2b295c17a1fe289ad0
5a1e1756025bacae88b619d388ebf61b330001ab
/1.Class/Class_Program_Excercises/Class16_Excercise_file/dic1.py
5dd6d91dd224cd29f8055566a9d1e3b9cfb1a3e2
[]
no_license
reshmaladi/Python
d1953497703aa15e163cd8ac27be23e3e5c3e947
8e9092af63476fef35d221e20acf418983957e53
refs/heads/master
2021-10-15T00:55:08.136039
2021-10-01T14:32:16
2021-10-01T14:32:16
165,836,823
0
0
null
null
null
null
UTF-8
Python
false
false
1,118
py
#!C:\Python34 def main(): fd = open("C:\\1.Class\\Class_Program_Excercises\\Class16_Excercise\\audio.conf") if fd != None: line = fd.readline() conf ={} conf1= {} key1=""; while line != "": line = fd.readline() if (line.startswith("#") or line.startswith("\n")): continue print (line) ...
[ "reshma.ladi@gmail.com" ]
reshma.ladi@gmail.com
cffc54829c25dbc6130f0651605f17cc4c624916
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02420/s861200212.py
e90a37b46cd90a1c6c27615b5a68075bbd6cec3e
[]
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
178
py
while True: ls = raw_input() if ls == '-': break m = int(raw_input()) for i in range(m): h = int(raw_input()) ls = ls[h:] + ls[:h] print ls
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
3d33d6c4e0475c5ede2a9176c2da5c3ad86f6deb
4010c0ad6eaf542f53af4a8ee69bd645f9bb9c18
/samples/helloworld/pages/urls.py
459bb96c706a43316953668cf95bb94abacefaa1
[]
no_license
ksnt/Django_sandbox
fbdc9e28e27607188132ae1316e42c70665b5d17
d8444ae1a4da1cb1e2c8baaf07091a88d14b3bdf
refs/heads/master
2020-05-16T07:07:41.763960
2019-04-25T16:50:44
2019-04-25T16:50:44
182,871,800
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
# pages/urls.py #from django.contrib import admin from django.urls import path from .views import homePageView urlpatterns = [ path('', homePageView, name='home'), ]
[ "ksn0215@gmail.com" ]
ksn0215@gmail.com
1c6cb4f0cb47738a56215ba8f65ff1593339dabe
46e57ccd746256fa4e471e53d8c24ce285635f50
/1.Array/medium/81. Search in Rotated Sorted Array II.py
6fc946ac79d72f43f2f6c3730b00ba7ed73c597c
[]
no_license
sandwu/leetcode_problems
6aea1f1837f5a8cfebc8f9c4cd8863081dfabb87
b99ef39268c5713fae3dbbf0a5548ec1f5a7e434
refs/heads/master
2021-08-16T15:48:05.412320
2020-04-26T07:04:10
2020-04-26T07:04:10
168,446,663
1
0
null
null
null
null
UTF-8
Python
false
false
1,598
py
class Solution(object): """ 英文注释写的比较清楚了,要注意的是代码核心是围绕分割成左边为有序序列或者右边为有序序列这条来实现的,那要达到左边是有序 序列的前提则左边一开始不能有等于nums[mid]的数,所以嵌套了while来解决,而右边是不需要的,因为右边即使等同于nums[mid], 则也一直都是有序序列,如果套上while,反而使原本是O(logN)变成了O(N) Runtime: 20 ms, faster than 99.76% of Python online submissions for Search in Rotated Sorted Array...
[ "wuxinlingwxl@163.com" ]
wuxinlingwxl@163.com
5cb6af6fe78a5134825df20e66d5972cec9c39e6
796eb13f733a28409c2cb282076cc32663bb0b79
/app/views.py
9bab05dc7093d00a1ff2b3565340877f06098786
[]
no_license
Marckhz/remember
b878db6b6618f944ac0d2711a236a9007893bd60
3acd09b061bf8de42676760e545285731d52ef9f
refs/heads/master
2020-05-05T11:36:05.934242
2019-04-21T23:52:44
2019-04-21T23:52:44
179,996,007
0
0
null
null
null
null
UTF-8
Python
false
false
4,662
py
from flask import Blueprint from flask import render_template, request, flash, session, redirect,url_for from flask import request, jsonify from pymongo import ReturnDocument from . import mongo from . import mail import os from io import BytesIO import re import pprint from flask_login import login_required, lo...
[ "marcohdes94i@gmail.com" ]
marcohdes94i@gmail.com
4f721cff5c991d3ca50190c7eb96c0cc1f7d37a6
32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd
/benchmark/goodweather/testcase/firstcases/testcase3_020.py
ee85ef3df5786aaf5ebc0773122e1ca1125a2638
[]
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
4,784
py
#coding=utf-8 import os import subprocess 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 Emulat...
[ "prefest2018@gmail.com" ]
prefest2018@gmail.com
c808f78055b52e056ea911d33e65bf0c771d3bc7
d2c4934325f5ddd567963e7bd2bdc0673f92bc40
/tests/artificial/transf_Fisher/trend_MovingAverage/cycle_12/ar_/test_artificial_128_Fisher_MovingAverage_12__20.py
e6af3535ad54da73ed54a859097e48e4a44626eb
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jmabry/pyaf
797acdd585842474ff4ae1d9db5606877252d9b8
afbc15a851a2445a7824bf255af612dc429265af
refs/heads/master
2020-03-20T02:14:12.597970
2018-12-17T22:08:11
2018-12-17T22:08:11
137,104,552
0
0
BSD-3-Clause
2018-12-17T22:08:12
2018-06-12T17:15:43
Python
UTF-8
Python
false
false
271
py
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "MovingAverage", cycle_length = 12, transform = "Fisher", sigma = 0.0, exog_count = 20, ar_order = 0);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
d0e261923e7772476c48d3aa7bf132d1dbccdfa0
2d5648035b8bd32b4a6ded311e48975e5ea100d4
/runs/snort/100KB/src2-tgt1/mysql-par-mysql-iter00200.cfg.py
992c615140b00bc9335886e09c5c7a05fb091dc5
[ "MIT" ]
permissive
Largio/broeval
3975e54a1eaead6686c53e5e99250a00becbe1e0
89e831d07f066100afdd1a5b220f9f08f1c10b3d
refs/heads/master
2021-05-08T08:54:06.498264
2017-11-10T17:09:02
2017-11-10T17:09:02
92,508,227
0
0
null
null
null
null
UTF-8
Python
false
false
675
py
# Write results to this file OUTFILE = 'runs/snort/100KB/src2-tgt1/mysql-par-mysql-iter00200.result.csv' # Source computers for the request SOURCE = ['10.0.0.1', '10.0.0.3'] # Target machines for the requests (aka server) TARGET = ['10.0.0.2'] # IDS Mode. (ATM: noids, min, max, http, ssl, ftp, icmp, mysql) IDSMODE ...
[ "larswiete@googlemail.com" ]
larswiete@googlemail.com
be74c3b264e7d9d3f6e930e025998063d05a7f02
1537873b83d1f3245ff60d2f95c366b163691f55
/target_offer/数组/数组中未出现的最小值正整数.py
12885c7100d8e7d5dfb5d686faa293e6dcab8641
[]
no_license
20130353/Leetcode
dc5c7fb08932abbf11e22e91b3edecac7f8753d5
488345a4713fae553559176c5bd3681e3bcac57d
refs/heads/master
2020-03-31T08:46:12.005167
2020-03-15T16:32:11
2020-03-15T16:32:11
152,071,790
2
2
null
null
null
null
UTF-8
Python
false
false
450
py
def solution(arr, n): # arr.sort() # for i in range(1, n): # if arr[i] - arr[i - 1] != 1: # return arr[i - 1] + 2 if arr[i - 1] + 1 <= 0 else arr[i - 1] + 1 # return arr[n - 1] + 1 for i in range(1, max(arr) + 2): if i not in arr: return i if __name__ == '__mai...
[ "739400043@qq.com" ]
739400043@qq.com
56814ab83cb69282f90f483ce181e2b6b17cdd6c
5afc3043b9b43a0e72bc94a90ed832a9576bb580
/hacker_home/penetration_test/05利用FTP与Web批量抓肉机.py
a08ffb15a39d21396761d015d4e5316ce916b9f5
[]
no_license
JR1QQ4/python
629e7ddec7a261fb8a59b834160ceea80239a0f7
a162a5121fdeeffbfdad9912472f2a790bb1ff53
refs/heads/main
2023-08-25T00:40:25.975915
2021-11-07T14:10:20
2021-11-07T14:10:20
311,769,673
0
0
null
null
null
null
UTF-8
Python
false
false
466
py
#!/usr/bin/python # -*- coding:utf-8 -*- import ftplib def anon_login(hostname): try: ftp = ftplib.FTP(hostname) ftp.login('anonymous', 'me@your.com') print('\n[*] ' + str(hostname) + ' FTP Anonymous Logon Succeeded.') ftp.quit() return True except Exception as e: ...
[ "chenjunrenyx@163.com" ]
chenjunrenyx@163.com
688841f5a3db2a29aa49013fe75df6cda2d7834d
5655d2f07c4dc49470b553337d84ec70bc4b605d
/my_training/pins_n_solder/detect_debug.py
073fd41debfe844bce534780d8173afeb9ade1b4
[ "Apache-2.0" ]
permissive
Trevol/keras-retinanet
0cc481590271892020079ecb87f1de0b45cf2646
4a52f16d009a92e588b39f51f7aa15b5ddf643d3
refs/heads/master
2020-04-30T01:58:33.280093
2019-07-16T09:00:16
2019-07-16T09:00:16
176,545,173
0
0
Apache-2.0
2019-07-16T09:00:18
2019-03-19T15:37:31
Python
UTF-8
Python
false
false
3,238
py
import keras import tensorflow as tf from keras_retinanet import models from keras_retinanet.utils.image import read_image_bgr, preprocess_image, resize_image from keras_retinanet.utils.visualization import draw_box, draw_caption from keras_retinanet.utils.colors import label_color # import miscellaneous modules # im...
[ "iam.vladimir.tretyak@gmail.com" ]
iam.vladimir.tretyak@gmail.com
82614375d1b2f0f0f1555e048b947972d3e80fd6
451eed723f5673030cc7842648dc40cf69c1bbd8
/configs/ocrnet/ocrnetplusv2_hr48_bs2x_512x1024_40k_cityscapes.py
7d464bb50c3276674208a7a66ee44b9598734ed6
[ "Apache-2.0" ]
permissive
pengsb/mmsegmentation
ce7a4ffdc3b8ea3df800acef2bf6779239b1af0e
6783bd21892007a31a1311d5663b46ff191280fb
refs/heads/master
2022-11-21T23:02:56.201825
2020-07-28T06:58:18
2020-07-28T06:58:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,708
py
_base_ = [ '../_base_/models/ocrnet_hr18.py', '../_base_/datasets/cityscapes_bs2x.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_40k_lr2x.py' ] norm_cfg = dict(type='SyncBN', requires_grad=True) model = dict( pretrained='open-mmlab://msra/hrnetv2_w48', backbone=dict( ...
[ "yhyuan@pku.edu.cn" ]
yhyuan@pku.edu.cn
49b7156320b7c7845c06254037a67f88daf41f54
e749e94163a0e20c551875583baef4e02e72de5e
/Github/UT-4/seq2seq-buggy/seq2seq/decoders/attention_decoder.py
d047d1acead578b27c25d6cd91bebad2ae43c0ac
[]
no_license
tritims/TensorFlow-Program-Bugs
3445200179f4b7f5cc4ac1c6f076468ec19e51bb
158ba0a23e0cb74e73dbab08571b05fc36848f2a
refs/heads/master
2022-07-08T16:33:38.511696
2020-05-20T14:20:47
2020-05-20T14:20:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,165
py
""" A basic sequence decoder that performs a softmax based on the RNN state. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from collections import namedtuple import tensorflow as tf from seq2seq.decoders import DecoderBase, DecoderStepOutput class A...
[ "zyhzyhzyh@pku.edu.cn" ]
zyhzyhzyh@pku.edu.cn
40c9a9e9a41c0ac25e2e60518d8ed49a5d93f12d
2af6a5c2d33e2046a1d25ae9dd66d349d3833940
/res/scripts/client/messenger/proto/bw/entities.py
9e914841fb1e140596aac002c37d17d6ac696010
[]
no_license
webiumsk/WOT-0.9.12-CT
e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2
2506e34bd6634ad500b6501f4ed4f04af3f43fa0
refs/heads/master
2021-01-10T01:38:38.080814
2015-11-11T00:08:04
2015-11-11T00:08:04
45,803,240
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
5,832
py
# 2015.11.10 21:30:30 Střední Evropa (běžný čas) # Embedded file name: scripts/client/messenger/proto/bw/entities.py import cgi import types import chat_shared from constants import PREBATTLE_TYPE from debug_utils import LOG_ERROR from gui.shared.utils import getPlayerDatabaseID from messenger.ext import passCensor fro...
[ "info@webium.sk" ]
info@webium.sk
b1312cc577d4c24d2062ee6af3b8c21c6280e3b1
9cd180fc7594eb018c41f0bf0b54548741fd33ba
/sdk/python/pulumi_azure_nextgen/apimanagement/v20170301/logger.py
baf80a6828be7af6a27db7c3db9c26e6c53f8be6
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
MisinformedDNA/pulumi-azure-nextgen
c71971359450d03f13a53645171f621e200fe82d
f0022686b655c2b0744a9f47915aadaa183eed3b
refs/heads/master
2022-12-17T22:27:37.916546
2020-09-28T16:03:59
2020-09-28T16:03:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,670
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 from ... import _utilities, _tables from...
[ "public@paulstack.co.uk" ]
public@paulstack.co.uk
569e7b990a71febf04e5a9fba0a8f511b22e4739
29f6b4804f06b8aabccd56fd122b54e4d556c59a
/CodeAnalysis/SourceMeter_Interface/SourceMeter-8.2.0-x64-linux/Python/Demo/ceilometer/ceilometer/notification.py
e63b1786760282c9cc264c63cf38049f43fc2cec
[ "Apache-2.0" ]
permissive
obahy/Susereum
6ef6ae331c7c8f91d64177db97e0c344f62783fa
56e20c1777e0c938ac42bd8056f84af9e0b76e46
refs/heads/master
2020-03-27T11:52:28.424277
2018-12-12T02:53:47
2018-12-12T02:53:47
146,511,286
3
2
Apache-2.0
2018-12-05T01:34:17
2018-08-28T21:57:59
HTML
UTF-8
Python
false
false
4,313
py
# # Copyright 2012-2013 eNovance <licensing@enovance.com> # # Author: Julien Danjou <julien@danjou.info> # # 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.or...
[ "abelgomezr45@gmail.com" ]
abelgomezr45@gmail.com
631e26fca3932c6383cdff6bba7c7d93f8cc22c4
fe19d2fac4580d463132e61509bd6e3cc2cf958d
/toontown/minigame/DistributedMinigameTemplateAI.py
20571b2517d4bac480cc48cc0fecd52030fb19f5
[]
no_license
t00nt0wn1dk/c0d3
3e6db6dd42c3aa36ad77709cf9016176a3f3a44f
7de105d7f3de0f8704b020e32fd063ee2fad8d0d
refs/heads/master
2021-01-01T16:00:15.367822
2015-03-21T21:25:52
2015-03-21T21:25:55
32,647,654
3
5
null
null
null
null
UTF-8
Python
false
false
2,461
py
# 2013.08.22 22:21:29 Pacific Daylight Time # Embedded file name: toontown.minigame.DistributedMinigameTemplateAI from DistributedMinigameAI import * from direct.fsm import ClassicFSM, State from direct.fsm import State class DistributedMinigameTemplateAI(DistributedMinigameAI): __module__ = __name__ def __in...
[ "anonymoustoontown@gmail.com" ]
anonymoustoontown@gmail.com
a7d76c6044048cf5775dc5b92e90536fa3acfbac
51e77e985d9b6c6bb0972ccee14b867e289aae61
/fundamentalsOfComputing/interactiveProgramming/notes_variables.py
8a4ad37a20339c195224cb9d4924d7df045913a2
[]
no_license
ErhardMenker/MOOC_Stuff
7c397059f62ba39f21a877c7fcf71a97751dda4b
7cdd581e9f9dcdd0b0c27dbbb9216bc76df8fff5
refs/heads/master
2021-01-17T10:38:06.805197
2017-03-29T23:50:18
2017-03-29T23:50:18
84,018,124
0
0
null
null
null
null
UTF-8
Python
false
false
1,070
py
# variables - placeholders for important values # used to avoid recomputing values and to # give values names that help reader understand code # valid variable names - consists of letters, numbers, underscore (_) # starts with letter or underscore # case sensitive (capitalization matters) # legal names - ninja, Ninj...
[ "ejmenker@gmail.com" ]
ejmenker@gmail.com
74ba7087755761c2c2faa46fe5f5cc70a454dff4
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/DaVinci_v39r1/tuplemaking/partreco/joboptionstest.py
02d88a6b39a8b67f6a212f35f81aa52c36d53c46
[]
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
2,510
py
myJobName = 'B23pimuwithallvariables' myApplication = DaVinci(version="v39r1") #myApplication = DaVinci(version="v36r7p4") ### Define job-options file myApplication.optsfile = ['/home/hep/ss4314/cmtuser/DaVinci_v39r1/tuplemaking/partreco/B23pimutest.py'] #myApplication.optsfile = ['/home/hep/th1011/Documents/B2KmumuAn...
[ "slavomirastefkova@b2pcx39016.desy.de" ]
slavomirastefkova@b2pcx39016.desy.de
d967d1d52463718ab465fd77eae1a23efe5243ee
b2cefb7a2a83aa93ee1b15a780b5ddf6c498215b
/tests/nemo_text_processing/en/test_word.py
2a1ddcff5049393f0b920faf881f400ddf895f41
[ "Apache-2.0" ]
permissive
VahidooX/NeMo
bfde8c9b48c818342a9c6290fb9dee62fafeca38
866cc3f66fab3a796a6b74ef7a9e362c2282a976
refs/heads/main
2023-07-23T19:13:39.948228
2022-04-29T21:51:54
2022-04-29T21:51:54
227,733,473
1
2
Apache-2.0
2022-09-15T15:30:13
2019-12-13T01:55:21
Jupyter Notebook
UTF-8
Python
false
false
2,765
py
# Copyright (c) 2021, NVIDIA CORPORATION. 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 appli...
[ "noreply@github.com" ]
VahidooX.noreply@github.com
66f1910ea8f823b13e0a8a25f7aadc6e1d6d9dce
d04d73bed28c366712103663d3e3be13622611b9
/pactools/dar_model/__init__.py
1ababe31615a2b39832606e03b7005a8f1b59811
[]
no_license
EtienneCmb/pactools
fcb13cde6f57a5c6abf4b033c24aec72c1201ca7
6e5a53deefc4dcede6a4a0293958e39a660dba97
refs/heads/master
2021-01-21T23:20:18.491959
2017-06-08T12:49:55
2017-06-08T12:49:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
240
py
from .stable_dar import StableDAR from .dar import DAR, AR from .har import HAR from .preprocess import extract_driver __all__ = ['DAR', 'HAR', 'AR', 'StableDAR', 'extract_driver', ]
[ "tom.dupre-la-tour@m4x.org" ]
tom.dupre-la-tour@m4x.org
119bdb078c6b59f63bb757012b3fe08d773735c4
205be8d429df36e27cdfc048bfca9212c5a62a87
/doctor/migrations/0032_auto_20190805_0300.py
01872b58a1a37153e985842e9ca8f7e3b9e8f5ee
[]
no_license
KennyChrisUmurundi/HOsto
16c8f926282fc48c981532447f1685fbbc2b457c
33fa31524a08934f3deb8f622a1b1554d8ef1af4
refs/heads/master
2022-04-01T02:42:39.146227
2020-01-07T11:44:08
2020-01-07T11:44:08
193,458,881
0
0
null
null
null
null
UTF-8
Python
false
false
469
py
# Generated by Django 2.2.1 on 2019-08-05 03:00 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('doctor', '0031_auto_20190805_0259'), ] operations = [ migrations.AlterField( model_name='prices...
[ "ndayikennysmuusic@gmail.com" ]
ndayikennysmuusic@gmail.com
1b59d54f80daf8a03632ab77d515d2665e247238
320357ec59d1a50a7ebb9219281eb2c7e73a9a89
/ptina/localarray.py
6b8743d19aedb7772921482c5859e30f0e62241b
[]
no_license
archibate/ptina
e61143d9a54f0dc98446aa581daa83086cbf57c7
3f1112cdfc8f71f6d0c49f4eb2ba7789b432c774
refs/heads/master
2023-06-27T17:46:52.896353
2021-08-03T06:20:32
2021-08-03T06:20:32
340,851,384
8
0
null
null
null
null
UTF-8
Python
false
false
1,565
py
''' thread-local array with the power of ti.asm (only works in OpenGL and CC backend) ''' from ptina.common import * @ti.data_oriented class LocalArray: is_taichi_class = True uniqid = 0 def __init__(self, dtype, size): assert ti.inside_kernel() self.uniqid += 1 self.name = f'tmp...
[ "1931127624@qq.com" ]
1931127624@qq.com
914991f5e4754e170dfebeef6ab286ad7f7b7a09
4a8f223ad4b5cb84616bf7897238abd90ad2ed40
/A/licl.py
4b23987c043da64925beb0ddf8c43cc7864f7647
[]
no_license
smc-het-challenge/6184572
51a36484abb5a701607bb708bd9bb07ae2313fcb
67d4c441203639bc94884d1e5b45a5a0629adc2c
refs/heads/main
2023-05-05T21:36:57.155080
2021-05-06T23:56:17
2021-05-06T23:56:17
365,068,372
0
0
null
null
null
null
UTF-8
Python
false
false
210
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import re import sys from licl import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "kellrott@gmail.com" ]
kellrott@gmail.com
76c562778aa0edf8658d544f6994e77ff1a64db4
715edc86ce50485133e2a65fd9eb68c7fea1f25e
/lessons/csv/gen.py
354e36b157b348fc71f2d4c1bff01e8ff6db82de
[ "MIT" ]
permissive
FlorianLudwig/learn-python
72eb6376f97b5a8c5491c7926fdf9173aa86dce1
d496709c3f7dfe61c25587456e0a6079cd19c2c0
refs/heads/master
2021-05-07T13:40:25.964889
2019-01-29T09:11:19
2019-01-29T09:11:19
109,603,747
1
1
MIT
2017-12-19T12:04:46
2017-11-05T18:13:23
Python
UTF-8
Python
false
false
1,190
py
import csv import random FIRST_NAMES = [ 'Jess', 'Rudy', 'Vergie', 'Shemika', 'Myong', 'Willis', 'Kurt', 'Guillermo', 'Melvina', 'Gavin', 'Elizebeth', 'Kandace', 'Holley', 'Voncile', 'Catina', 'Gaylene', 'Lashonda', 'Betsy', 'Conrad', 'Senaida', 'Benjamin', 'Domenica', 'Young', 'Ignacio', 'Nickie', 'Rosena', 'Maryann...
[ "f.ludwig@greyrook.com" ]
f.ludwig@greyrook.com
d944b286d6cfa3f7c46a5c098230506ddc783461
a14060d854f830b1c690039e8fb4b32418e7bc9f
/src/utils/eval/decoding/base.py
4e7abd13bbeacc45b907580c98da714bc8328b37
[ "MIT" ]
permissive
nimabte/StudyMaskedLMForQG
c8be171a0261cb24a5d6e16020d752fd0ddd3241
2c033994a7ed142b244619625b817552c6175bd0
refs/heads/main
2023-01-15T20:04:20.809317
2020-11-25T11:40:14
2020-11-25T11:42:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,048
py
import torch from torch import Tensor from typing import Dict from copy import copy from utils.logging import logging class BaseTokenDecoder: """ The base class for text generation decoding procedure """ def __init__(self, model=None, tokenizer=None, max_decode_len=50, ...
[ "chris4540@gmail.com" ]
chris4540@gmail.com
026f5f6de2b8eb51fff99c9d4ff5a0250c5ed5cc
9f02973cd0b8e7886085b7cff75b0f515ddf1a37
/SVM/src/kernels.py
0352532c3dba11684ea83bdea0708c5b8261e8cb
[]
no_license
damo894127201/MachineLearning
9c578628936ded8e4c26c232d6adabc58e09bf54
ca0d43c9ba8ff7d1353606ba893291e3bf10f9e7
refs/heads/master
2020-07-23T12:23:48.141435
2019-11-20T02:06:48
2019-11-20T02:06:48
207,554,934
4
1
null
null
null
null
UTF-8
Python
false
false
4,713
py
# -*- coding: utf-8 -*- # @Time : 2019/9/22 21:31 # @Author : Weiyang # @File : kernels.py #=================================================================================================================== # 核函数(Kernel Function) # 1. 概念:设X是输入空间,H为特征空间,如果存在一个从 X 到 H 的映射: # φ(x) : X ...
[ "894127201@qq.com" ]
894127201@qq.com
28ba1e05cf82fcb7807321a10126d5477f9f9265
d9ea94a6fc32e1a9010c64bd48b0d92ad5882221
/Siamese.py
b82cb288f9e9b3208499023450fb287e44faa80d
[]
no_license
migushu/Knife-RUL-Prediction
28f43576e2192525e16e6f6c07c374c79936e190
e757a86cf01c4c2645ba8f8555c2a724f5423b45
refs/heads/master
2020-08-26T12:38:06.041526
2018-12-10T01:48:16
2018-12-10T01:48:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,503
py
from keras.layers import Input, Conv2D, Lambda, merge, Dense, Flatten,MaxPooling2D from keras.models import Model, Sequential from keras.regularizers import l2 from keras import backend as K from keras.optimizers import SGD,Adam from keras.losses import binary_crossentropy import numpy.random as rng import numpy as np ...
[ "foxerlee1@gmail.com" ]
foxerlee1@gmail.com
afebdbad434d0f4f8052d144cfe95db1f30d2506
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/contrib/cv/detection/GFocalV2/configs/sabl/sabl_faster_rcnn_r101_fpn_1x_coco.py
f952963aa63643ab7127386f316d6e5ba3884d79
[ "GPL-1.0-or-later", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
1,884
py
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law or agreed to in ...
[ "wangjiangben@huawei.com" ]
wangjiangben@huawei.com
924b2c8595fc1dbb87ccf9be9af8efe57c99ef34
27b0c0c8bbd91581b260df3abe10e1109fd1a7ff
/mantle/xilinx/mantle6/MUX.py
80472c4d09a8bf9d001e9224c6fa2f399dc6b5e5
[ "MIT" ]
permissive
splhack/mantle
edb6b656c26fcceb516fc3b17a0ea3b846ff5538
42fe81df22f4556f891f77b9c9acfd7e8bbe648b
refs/heads/master
2021-07-13T03:14:16.307077
2019-01-08T16:54:08
2019-01-08T16:54:08
166,492,880
0
0
NOASSERTION
2019-01-19T01:20:22
2019-01-19T01:20:21
null
UTF-8
Python
false
false
4,643
py
from magma import * from magma.bitutils import lutinit from ..spartan6.CLB import * __all__ = ['Mux2', 'Mux4', 'Mux8', 'Mux16'] __all__ += ['DefineMux', 'Mux'] # """Construct a Mux with 2 1-bit inputs.""" class Mux2(Circuit): IO = ["I", In(Bits(2)), "S", In(Bit), "O", Out(Bit) ] @classmethod def defini...
[ "hanrahan@cs.stanford.edu" ]
hanrahan@cs.stanford.edu
6bcad700aa7201f04eb0340c5732f6f2fb1851eb
a11beef795d68812ac490b31844393cac2cb4b2f
/Glass Co Simple LP Model.py
470b2e1b6eb6954c518bbda65aaba926eb544657
[ "MIT" ]
permissive
rayjustinhuang/DataAnalysisandMachineLearning
aa95b9072868ca6bb6c3f90014b38eaff1ef16f6
469a6e96566b935dc71f6589d8f070fcc12e76ec
refs/heads/master
2021-07-13T09:06:04.738769
2021-04-02T04:18:51
2021-04-02T04:18:51
81,467,426
0
0
null
null
null
null
UTF-8
Python
false
false
688
py
# -*- coding: utf-8 -*- """ Created on Sat Mar 27 15:19:03 2021 @author: rjlo_ """ from pulp import * # Initialize Class model = LpProblem("Maximize_Glass_Co._Profits", LpMaximize) # Define Decision Variables wine = LpVariable('Wine', lowBound=0, upBound=None, cat='Integer') beer = LpVariable('Beer', lowBound=0, up...
[ "rayjustinhuang@gmail.com" ]
rayjustinhuang@gmail.com
4cf6aad1e877bbf5452b144123061953e2cf3f0c
ad7be9747546106783c3400b67a878eb1e968d0a
/pygrasp/Map.py
29a1220cdfef7ff5ad3aa73c24f715b330cc9b8e
[]
no_license
tnakaicode/pygrasp
251a27392c2fe93f940ff8a14ee37d9c84a977a9
a6f0ea839a456cc1c6799c739cfe53ca78541713
refs/heads/master
2020-07-17T05:45:38.313764
2019-12-20T05:34:17
2019-12-20T05:34:17
205,958,972
1
0
null
null
null
null
UTF-8
Python
false
false
6,362
py
from __future__ import division import os import numpy as np import matplotlib.pyplot as plt """ This is an abstract class that contains methods useful for maps. """ class Map(object): # Figure out if it's possible to get subclasses to read # their own shape and data_type class variables. def __init__(...
[ "tnakaicode@gmail.com" ]
tnakaicode@gmail.com
6f2740eb40028aca8ef96d8a17c5b716518bc41b
a8e6babc9fc2ff9870ef9ac49d73edd6439e92ca
/src/registration_backends/community_discussions/__init__.py
8d79c18b7463b84e21cf10f93b0f9b2e68c28df7
[]
no_license
jevy/community-discussions
fdb973ea5c9e5fb7dc7a50f2ccf7f5a14d253023
fe97179845263c7db855628187a9f7ba7a156d9a
refs/heads/master
2021-01-21T16:15:08.088930
2013-11-13T01:34:01
2013-11-13T01:34:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
300
py
from registration.backends.default import DefaultBackend from registration_backends.community_discussions.forms import CommunityDiscussionsRegistrationForm class CommunityDiscussionsBackend (DefaultBackend): def get_form_class(self, request): return CommunityDiscussionsRegistrationForm
[ "mjumbewu@gmail.com" ]
mjumbewu@gmail.com
9264c1fa7871090270edddd4e08b5b2169139bbb
c4f0a0215956ff0c29ae491a10416a72c1ce654d
/nails_project/tests/common/views/test_schedule_list_all_users_view.py
29646fc72afc90976bf1158437e6124701656fc5
[]
no_license
borislavstoychev/my_exam
1a2a499b2e6ac507641a9aad76576d49d4ac6a6d
9c756f76679ad85697ff123c478b765656d4ce2d
refs/heads/main
2023-07-13T12:49:40.116891
2021-08-25T08:54:44
2021-08-25T08:54:44
380,476,519
0
0
null
null
null
null
UTF-8
Python
false
false
3,455
py
from tests.base.mixins import UserTestUtils, ScheduleTestUtils from tests.base.tests import NailsProjectTestCase from django.urls import reverse class ScheduleListViewTests(NailsProjectTestCase, UserTestUtils, ScheduleTestUtils): def test_schedule_withUser_whenNoSchedule(self): self.client.force_login(se...
[ "stoy4ew@gmail.com" ]
stoy4ew@gmail.com
0bcf994a4a7a55ede627d1875f5594614e920386
171a89102edf10901e18a2c0f41c3313608d2324
/src-test/mc_unittest.py
af888def341d18efcd6e827e3d4044fd8e4e098c
[ "Apache-2.0" ]
permissive
gitter-badger/rogerthat-backend
7e9c12cdd236ef59c76a62ac644fcd0a7a712baf
ab92dc9334c24d1b166972b55f1c3a88abe2f00b
refs/heads/master
2021-01-18T06:08:11.435313
2016-05-11T08:50:20
2016-05-11T08:50:20
58,615,985
0
0
null
2016-05-12T06:54:07
2016-05-12T06:54:07
null
UTF-8
Python
false
false
7,505
py
# -*- coding: utf-8 -*- # Copyright 2016 Mobicage NV # # 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...
[ "bart@mobicage.com" ]
bart@mobicage.com
c699d2f5c4b6820d30dea4689cbd17f2dd6772b6
83e2fe88d4537403ee710b631d7d3e8c65415092
/services/web__china_kyodonews_jp.py
827c2c3f1dd7b7a52e56303e8ab630b74788b040
[]
no_license
ArchiveTeam/NewsGrabber-Services
b01f560b18bd5395673132321c16bcf7602608f1
2d52eb06a6ca767f4b1d1e623505fa427b6af459
refs/heads/master
2020-01-23T21:40:57.220775
2019-07-01T09:56:38
2019-07-01T09:56:38
74,690,301
3
8
null
2019-06-03T19:49:47
2016-11-24T16:41:59
Python
UTF-8
Python
false
false
208
py
refresh = 60 version = 20161106.01 urls = ['http://china.kyodonews.jp/', 'http://china.kyodonews.jp/rss/news_ch.xml'] regex = [r'^https?:\/\/[^\/]*china\.kyodonews\.jp\/'] videoregex = [] liveregex = []
[ "Arkiver@hotmail.com" ]
Arkiver@hotmail.com
d30f12e7c9adae4478b85e5a89e6eec232286eca
7f0ea2dc64b38b19f1f87a1f4fbff935ee435a4d
/cvpods/layers/masked_conv.py
7b8aec6211b31d4a99ecadb1d4ebdca5853c4bc4
[ "Apache-2.0" ]
permissive
yuexiemail/DynamicHead
ffba34f4b066c428228109048af30cc2d7f8a789
d62aa84e1d1c6a0c74d46258ad77b11413c10bef
refs/heads/main
2023-01-31T22:47:39.447369
2020-12-16T06:48:17
2020-12-16T06:48:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,847
py
import math import torch import torch.nn as nn from torch.autograd import Function from torch.autograd.function import once_differentiable from torch.nn.modules.utils import _pair from cvpods import _C class MaskedConv2dFunction(Function): @staticmethod def forward(ctx, features, mask, weight, bias, paddin...
[ "stevengrove@stu.xjtu.edu.cn" ]
stevengrove@stu.xjtu.edu.cn
e7a67817fccaff792771d75bcf1b39bc1e69a7a6
974e884ec655e14179c4434b82764aa3d05d3262
/src/0035.py
92a97968057326e0e5a2beddd2cf9a9fd4a060aa
[]
no_license
brickgao/ProjectEuler
13d842bf24f217a95ec9732bfb5d1d4b496b21a2
6ca88ff53feff744e64868a75c47a4783a7dc4e0
refs/heads/master
2020-12-24T06:58:25.682464
2016-04-10T08:33:49
2016-04-10T08:33:49
16,065,756
0
0
null
null
null
null
UTF-8
Python
false
false
626
py
# -*- coding: utf-8 -*- _is = [True for x in range(10 ** 6 + 1)] _is[0], _is[1] = False, False _p = [2] _e = int((10 ** 6 + 1) ** 0.5) + 1 for i in range(4, 10 ** 6 + 1, 2): _is[i] = False for i in range(3, _e, 2): if _is[i]: for j in range(i ** 2, 10 ** 6, i * 2): _is[j] = False for i in r...
[ "brickgao@gmail.com" ]
brickgao@gmail.com
dcf444d38b9eb1384bfe45dd491bf10de5386d37
70e685f15c099d166fd96d9b22004e96639d634e
/core/tests/test_app.py
a6ea8f0d908ac8a787f3520e17aa0e2e235c6aaf
[]
no_license
duda-joann/flask-mongo-blog
3186a682ad169ff087b03c25b260ffd4185578cd
ef3fced8020f2e208eef27154ba74172429c7ae1
refs/heads/main
2023-02-18T14:23:18.990061
2021-01-11T18:30:53
2021-01-11T18:30:53
323,744,410
0
0
null
null
null
null
UTF-8
Python
false
false
1,307
py
from flask import Flask url = 'http://127.0.0.5000' def test_app(app): assert isinstance(app, Flask) def test_render_main(client): results = client.get(url + '/') assert results.status_code == 200 assert results.get_data def test_posts_lists(client): results = client.get(url + '/posts/list/')...
[ "duda.joann@gmail.com" ]
duda.joann@gmail.com
3bb67d8d8727941812945f336ead4d4b387b9c7b
4577d8169613b1620d70e3c2f50b6f36e6c46993
/students/1532935/homework03/program02.py
2648b4ff5c6775f5361af32146c6a8f74dab0e78
[]
no_license
Fondamenti18/fondamenti-di-programmazione
cbaf31810a17b5bd2afaa430c4bf85d05b597bf0
031ec9761acb1a425fcc4a18b07884b45154516b
refs/heads/master
2020-03-24T03:25:58.222060
2018-08-01T17:52:06
2018-08-01T17:52:06
142,419,241
0
0
null
null
null
null
UTF-8
Python
false
false
4,300
py
''' Un robottino deve muoversi su di una scacchiera di 15 x 15 celle con celle bianche e nere ciascuna di lato 40. Per rendere il percorso accidentato alcune delle celle della scacchiera contengono ostacoli (queste celle sono colorate di rosso). Un esempio di scacchiera con ostacoli e' dato dall'immagine 'I1...
[ "a.sterbini@gmail.com" ]
a.sterbini@gmail.com
a186a14d42c1bf19d4fc8e2c318c2a642e9afe0e
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/rna-transcription/3fa3ea604637443f9d75395c08c407d2.py
d074767b6a28872e3b111f2e3e5dcbc5031c1f8b
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
196
py
def to_rna(dna_sequence): transcription = {'G':'C', 'C':'G', 'T':'A', 'A':'U'} rna_sequence = '' for i in dna_sequence: rna_sequence += transcription[i] return rna_sequence
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
89c35820d02d30605ed462d7a47ccf2cbd42cebf
26a5dbfbe98fdffd7fde9cfaeb2d466b178c2d58
/Week2/day2_data.py
234262f22e88133b32ffb93ff65f6e7e2d95f7c4
[]
no_license
sseaver/class_notes
76130ae3f4c5416bd60d48810cf34efd4b760dff
cce376a2eb178a2e42282e9e1785b0cff24fb1ad
refs/heads/master
2020-04-12T22:39:25.984909
2016-11-09T17:31:05
2016-11-09T17:31:05
68,213,547
0
0
null
null
null
null
UTF-8
Python
false
false
414
py
import csv with open("data.csv") as open_file: contents = open_file.readlines() # print (contents[2].split(",")[2]) # clean_data = [row.replace("\n", "").split(",") for row in contents] # print (clean_data[11][4]) # import csv with open("data.csv") as open_file: # contents = csv.reader(open_file, delimina...
[ "sseaver321@gmail.com" ]
sseaver321@gmail.com
0d05adc451ed148b9110e542fd50f19935f9f1de
1a639d185f9c883b7bebf33c577c58b22ac93c7e
/essential_training/Chap09/iterator.py
6687ae9fbb9205d87036bab90124a30420e0e908
[]
no_license
gofr1/python-learning
bd09da5b5850b1533a88b858690ed4380b55d33e
19343c985f368770dc01ce415506506d62a23285
refs/heads/master
2023-09-02T15:42:27.442735
2021-11-12T10:17:13
2021-11-12T10:17:13
237,828,887
0
0
null
2021-11-12T10:17:14
2020-02-02T20:03:42
Python
UTF-8
Python
false
false
1,139
py
#!/usr/bin/env python3 # an iterator is a class that provides a sequence of items, # generally used in a loop class inclusive_range: def __init__(self, *args): numargs = len(args) self._start = 0 self._step = 1 if numargs < 1: raise TypeError(f'expected at leas...
[ "gofr.one@gmail.com" ]
gofr.one@gmail.com
2fd4bbab32ff8ab03069722e5ff3f2a070a2d981
1000ef8a440424768e769416e7d2206dbf5e29a3
/PYOMO/examples/doc/pyomobook/overview-ch/wl_concrete.py
9e44ae03dd8f639edd5d1e359dd93b6900e6750e
[]
no_license
desarrollomarquez/Proyecto_Optimization
1c482cefd85d76720e9467ab4d249afb45965d84
07ee22f3c742fb74e9ba99e4eed21f97f0d7fefa
refs/heads/master
2020-03-21T10:15:42.301602
2018-11-01T02:23:35
2018-11-01T02:23:35
138,441,343
0
0
null
null
null
null
UTF-8
Python
false
false
1,326
py
# wl_concrete.py: ConcreteModel version of warehouse location determination problem from pyomo.environ import * model = ConcreteModel(name="(WL)") N = ['Harlingen', 'Memphis', 'Ashland'] M = ['NYC', 'LA', 'Chicago', 'Houston'] d = {('Harlingen', 'NYC'): 1956, \ ('Harlingen', 'LA'): 1606, \ ('Harlin...
[ "desarrollo.marquez@gmail.com" ]
desarrollo.marquez@gmail.com
674b8e4aca375e191850c7577f797d5ffaf9594f
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/contrib/cv/classification/csp_resnext50-mish/timm/models/__init__.py
aa13bbcc8846bc8e5c9f1b96bbf64d35f675f86e
[ "GPL-1.0-or-later", "BSD-3-Clause", "Apache-2.0", "BSD-2-Clause", "MIT", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
1,155
py
from .byobnet import * from .cspnet import * from .densenet import * from .dla import * from .dpn import * from .efficientnet import * from .gluon_resnet import * from .gluon_xception import * from .hrnet import * from .inception_resnet_v2 import * from .inception_v3 import * from .inception_v4 import * from .mobilenet...
[ "wangjiangben@huawei.com" ]
wangjiangben@huawei.com
1903a17d842dc7247402a1a5be7ba70cc1c8bd05
edf15a03e6d3baa7a9547f7cca9d2aa0a2770d7d
/week09/code_from_today/monday/mod.py
f54b78e7303fb9c4877033608cc30eaa3abff379
[]
no_license
Jepp0103/introduction-to-python
5e748bd4ba5647412b3b3d5e92bb3fdcbc2bb6f4
fba58eb40371989708c05a3a2a610dd72ffb8dcd
refs/heads/master
2021-01-16T02:28:40.433604
2020-04-21T10:45:50
2020-04-21T10:45:50
242,944,165
0
0
null
2020-02-25T08:06:54
2020-02-25T08:06:53
null
UTF-8
Python
false
false
267
py
# mod.py a = 'Hello world from mod.py file a variable' l = [1, 2, 3, 4] s = {5, 6, 7, 8} d = {'name': 'Claus'} t = ('name', 'Claus') def func(): return 'Hello from function in mod file' def main(): print(func()) if __name__ == '__main__': main()
[ "clbo@kea.dk" ]
clbo@kea.dk
a4aeb2485f8512711a60faffdd06490b4815bf85
0c733dd9520e8b488f2fa6edbab12dc9df4f0337
/airflow/providers/singularity/operators/singularity.py
a3c8c9676f3febd1ff3ca49014cf3a69f404a0b8
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
RikHeijdens/airflow
26aff28808d4e9e1ad23cd96c209ea9aea7083a3
bff213e07735d1ee45101f85b01b3d3a97cddbe5
refs/heads/main
2023-05-08T15:02:38.918037
2021-06-07T08:47:24
2021-06-07T08:47:24
318,246,723
3
0
Apache-2.0
2020-12-03T16:02:37
2020-12-03T16:02:36
null
UTF-8
Python
false
false
7,165
py
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
[ "noreply@github.com" ]
RikHeijdens.noreply@github.com
02dd98797b76e0ad230d9fba1bf363cbaa37b576
2e11878301315f390121e4db0f2bead1a7d6952c
/neviseh/persian/base.py
48fe8e1ed6e4a4fda01590389074bbe60c53bd22
[ "MIT" ]
permissive
meyt/neviseh
3ae625e3ed5098f8645954332d38c9b8307644ce
b39841e7a224d5abfd89a2265ea40cd651630429
refs/heads/master
2021-01-25T10:06:21.367736
2018-02-28T20:54:21
2018-02-28T20:54:21
123,339,091
0
0
null
null
null
null
UTF-8
Python
false
false
175
py
from .. import Text class PersianTextBase(Text): language = 'persian' iso_639_1_code = 'fa' def __repr__(self): return 'PersianText("%s")' % self.value
[ "pasd3000@gmail.com" ]
pasd3000@gmail.com
c7f3f3669d9d07ed480deb4c9c2a434c17db7570
51bbcf2c9e705363b8c1c8ff5b44d820dbc57bd4
/google-python-exercises/basic/string1.py
5065114b95e01d5304e5bba24ca13b10e98e1f11
[ "Apache-2.0" ]
permissive
Stenson00o/pythonStudy
cdb64deea5d7623582bef76c9288b668431b3e13
48134777af7e5eb39c218657d3642860e8328c0f
refs/heads/master
2021-01-01T05:25:51.520237
2016-06-03T08:28:53
2016-06-03T08:28:53
59,806,400
0
0
null
null
null
null
UTF-8
Python
false
false
3,580
py
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ # Basic string exercises # Fill in the code for the functions below. main() is already se...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
f9f86350daf214fe508345dd710e50b15270cf5d
d79f7b25f11af8c5185f10fb48042d0265666712
/problème 22 XIANG Alide.py
66ce7f1af0e907eb9aa7b41a6effd7d625d1c8ce
[]
no_license
mines-nancy-tcss5ac-2018/td1-Xianlide
e300ccf5b5a637badcb53c1c66986bea75e6316d
2948a9aee7566b42bfd981ee600c49e34b45d191
refs/heads/master
2020-03-30T23:58:04.015808
2018-10-09T13:54:02
2018-10-09T13:54:02
151,719,911
0
0
null
null
null
null
UTF-8
Python
false
false
547
py
def sousfonction(i): score1=0 for k in i[1:len(i)-1]: score1=score1 + (ord(k)-64) return(score1) def prob22(): f = open("p022_names.txt" , "r") L=[] for k in f: L=L+k.split(',') Lb=sorted(L) score=0 for k in range(len(Lb)): nom=...
[ "noreply@github.com" ]
mines-nancy-tcss5ac-2018.noreply@github.com
60d0c1f6d06503ae5dde25b5201cbcca77377d22
4da66858f5278af1b1c9e1d0099a9e422400dcfa
/python_spider/cc/cc/pipelines.py
6c1bca68e85dd29c27a3467f602604e1962c8f1a
[]
no_license
hi-noikiy/TestProject
62eb719a113b15be98a099e099afbb20f99d7062
e37617c9f1bee058c196f776451c1d81d9fd5f86
refs/heads/master
2022-01-05T03:00:05.498931
2018-09-26T09:28:10
2018-09-26T09:28:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
388
py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html class CcPipeline(object): def process_item(self, item, spider): file_path = 'xiezhen/'+item['title'] with ...
[ "401491197@qq.com" ]
401491197@qq.com
9f381dcf36a62eb080faff93774f8dab69b76f8d
73a1e22583d7db2aec260f87d6ce64478d675bba
/blog/models.py
375c6203a71f79664850d633c8de95c38a9e4072
[]
no_license
Mohamed-Kudratov/online_shop
eeca0de4a298d539363987f5b1512fa41959dc1c
a321fb55f1f8291e4dc7c17af8e9caf27c2c6434
refs/heads/master
2023-06-17T14:03:55.606234
2021-07-18T07:31:33
2021-07-18T07:31:33
385,886,776
0
0
null
null
null
null
UTF-8
Python
false
false
2,282
py
from django.db import models from django.utils.translation import gettext as _ class AuthorModel(models.Model): full_name = models.CharField(max_length=64, verbose_name=_('full name')) avatar = models.ImageField(upload_to='author-avatars', verbose_name=_('avatar')) created_at = models.DateTimeField(auto_n...
[ "you@example.com" ]
you@example.com
76c1d70d85aa5c9a299c2bec2ec621fbf500a7be
0ea5c9dbb7ba775d6b8d9d6a2ad7a9644073ca4b
/PRÁCTICA 3/3d/cuboOrtografico.py
61df4fdfb1b8863a97349b33df02d528457b88d4
[]
no_license
CarMoreno/PracticasPyOpengl
9d0954240238c5032da5772cc561d24921f4b3ed
82f2197279f17322eeb9ef20b61bd8876d0580b5
refs/heads/master
2021-01-18T16:32:26.129564
2015-09-10T00:43:27
2015-09-10T00:43:27
31,389,091
2
0
null
null
null
null
UTF-8
Python
false
false
4,353
py
import sys from OpenGL.GLUT import * from OpenGL.GL import * from OpenGL.GLU import * # ==================================================================== #Para el color de fondo de ventana realize una regla de 3 simple: #Si 255 ---> 1 entonces # 135 ---> x # x = 135/255 # x = 0.529 (aproximadamente) # =========...
[ "carlosandresmorenovelez@gmail.com" ]
carlosandresmorenovelez@gmail.com
0916df6b29d251783b7115b03228b5c6d5f5dd66
885d050a82e180b97eeb77cc6835fc69be20096b
/python/main.py
e1296a884f5562c493208bea8c8c81a41248daf9
[]
no_license
cristianiniguez/curso_programacion_orientada_objetos
0adb56c9a8c4a63ade40291c5386c87539b956d0
d2ce241338d0b6c7dbcb5f324b9e89c6878e6d66
refs/heads/main
2023-03-22T11:14:48.777527
2021-03-20T20:02:50
2021-03-20T20:02:50
349,272,282
0
0
null
null
null
null
UTF-8
Python
false
false
318
py
from car import Car from account import Account if __name__ == "__main__": car = Car("AMQ123", Account("Andres Herrera", "AND876")) car.passenger = 4 print(vars(car)) # {'license': 'AMQ123', 'driver': <...>, 'passenger': 4} print(vars(car.driver)) # {'name': 'Andres Herrera', 'document': 'AND876'}
[ "felizpc1@gmail.com" ]
felizpc1@gmail.com
f77f808ed006837c7e726d47e39790eeb7929563
12f18662719d04d2404396b9059b60525528f557
/findsportsordermanagement-master/suppliers/migrations/0001_initial.py
3480fcd88af010e8bcfc742d7d4e86f95d00386e
[]
no_license
ujjalgoswami/ordermanagementcustomdashboard
0bf4a5770d1913b257a43858d778e630e671a342
acd18510b0934601d30bd717ea4b3fbb61ecfb5c
refs/heads/master
2021-02-04T10:04:27.380674
2020-02-28T01:37:35
2020-02-28T01:37:35
243,653,613
0
0
null
null
null
null
UTF-8
Python
false
false
514
py
# Generated by Django 2.2.4 on 2019-10-07 14:33 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Supplier', fields=[ ('order_id', models.Cha...
[ "ujjalgoswami92@gmail.com" ]
ujjalgoswami92@gmail.com
3c89468c68111e8106d82898793fd3fd6fa1b39c
bd3c9bce46f3bafa4a07422a23e80a9a87583aec
/chapter4/practice/CalBMI.py
bd594196a168e56244f920fcac42f7af068d044c
[]
no_license
shilingzi/LearnPythonBIT
c717e2789c370c57f4e2842ffb436d4fc742558b
0cc70f51e17f2456159cb65a5b13f97e3e684cb0
refs/heads/master
2023-03-16T18:39:46.107023
2019-08-03T06:40:24
2019-08-03T06:40:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,835
py
""" 实例5:身体质量指数BMI ‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‮‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬ 描述 这是"实例"题,与课上讲解实例相同,请作答检验学习效果。‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‮‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬ BMI :Body Mass Index 国际上常用的衡量人体肥胖和健康程度重要标准,主要用于统计分析‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪...
[ "crazykuma@qq.com" ]
crazykuma@qq.com
4a7faf1cb4bafb8c853bce2d7b9e2797bdc80147
67b7e6d2c08f08403ec086c510622be48b8d26d8
/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/walrepl/run/test_gpinitsystem.py
97b625139cd0e0ebc7c7a47bf185117c1030e1ea
[ "Apache-2.0", "PostgreSQL", "LicenseRef-scancode-rsa-md4", "OLDAP-2.8", "HPND-sell-variant", "BSD-4-Clause-UC", "BSD-3-Clause", "Zlib", "LicenseRef-scancode-zeusbench", "LicenseRef-scancode-mit-modification-obligations", "OpenSSL", "MIT", "LicenseRef-scancode-other-copyleft", "bzip2-1.0.6"...
permissive
sshyran/gpdb
41012411d22b0294204dfb0fe67a1f4c8d1ecaf6
2d065ecdd2b5535cb42474f17a0ee6592b4e6837
refs/heads/master
2023-04-09T14:05:44.030212
2016-11-12T08:33:33
2016-11-12T08:34:36
73,544,159
0
0
Apache-2.0
2023-04-04T00:30:10
2016-11-12T09:43:54
PLpgSQL
UTF-8
Python
false
false
2,142
py
""" Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved. This program and the accompanying materials are made available under the terms of the 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 ...
[ "jyih@pivotal.io" ]
jyih@pivotal.io
26a51d95e3c24f9714b55901d30c05bde5bae8ef
01bc3ed77a9ad9f89594d464e8b60fc679bffdef
/HW_3_Search_algorithms/Task_4.py
d9409a014c3256b163e845744bedf6d666240955
[]
no_license
rchermanteev/made-algorithms-2020-hw
3492c080adf05217f8ec7e8a30378d6a53e8732b
613b00e98c2aef9e5892e4884a4a58434120c60f
refs/heads/master
2023-02-11T06:42:18.716557
2021-01-07T13:43:51
2021-01-07T13:43:51
313,722,563
0
0
null
null
null
null
UTF-8
Python
false
false
1,054
py
import sys from math import log2, ceil from typing import List def get_num_scraps(len_scrap: int, rps: List[int]) -> int: num_scraps = 0 for rp in rps: num_scraps += rp // len_scrap return num_scraps def get_max_piece_of_rope(_ropes: List[int], _num_houses: int) -> int: left_board = 0 ...
[ "rchermanteev@bk.ru" ]
rchermanteev@bk.ru
c04dc9cbb1fc3a59e1bc40e8c9289181afbfebd6
c1fb77fd5aa253cd77ea89522a7eab3ba5b2d66d
/distributed_rl/ape_x/replay.py
3fe4bfc6d538ee3aefd0b1534580b18ff877877a
[ "MIT" ]
permissive
neka-nat/distributed_rl
5191b320cc193ffc22c084af50b743c07ee27e3d
4a27094889c1e0dc3675e33566da1ea5c54d2590
refs/heads/master
2022-07-19T13:50:00.318736
2022-07-04T13:49:31
2022-07-04T14:09:00
154,700,187
79
10
null
2018-10-29T16:20:16
2018-10-25T16:06:24
Python
UTF-8
Python
false
false
1,658
py
# -*- coding: utf-8 -*- import threading import time import redis from ..libs import replay_memory, utils class Replay(threading.Thread): """Replay of Ape-X Args: size (int, optional): size of memory connect (redis.StrictRedis, optional): Redis client object use_compress (bool, opti...
[ "nekanat.stock@gmail.com" ]
nekanat.stock@gmail.com
c42c89d36240ad7998233ef840c09b4f5f454446
7e561a427a26d34c776c38af8ce98e6a0089c827
/speed/signals.py
65a75224425168bbc092af840c20342e6d93235f
[]
no_license
furkalokbu/reportpage
2772993858f16f287f069e2d2eefe0e42d2e569d
1f50612dede962f52ecb06e0fafbf1a73733afeb
refs/heads/master
2023-07-22T00:22:04.942273
2021-09-03T06:35:49
2021-09-03T06:35:49
401,259,028
0
0
null
null
null
null
UTF-8
Python
false
false
1,177
py
from django.db.models.signals import pre_save from django.dispatch import receiver from django.utils.text import slugify from speed.models import UserData from speed.models import SpeedUserData from core.utils import generate_random_string from core.average_speed import AverageSpeed @receiver(pre_save, sender=UserD...
[ "furkalokbu@gmail.com" ]
furkalokbu@gmail.com
3248e09a6acc68aec328700bade73766159c8658
7f4886802e83352f37d35509b7775c93c2756105
/festival/urls.py
e987f5033e969a4daaa0782d5dedab00b2562cea
[]
no_license
JihyeKim0923/lion10
c23a019c3725de2d9f70556993db1ed3e8d6ae2e
2b76dc9290bec6f4d827a625b2f0b1e92c85ed53
refs/heads/master
2020-06-19T02:56:24.746341
2019-07-11T15:40:17
2019-07-11T15:40:17
196,539,639
0
0
null
null
null
null
UTF-8
Python
false
false
512
py
from django.urls import path from . import views urlpatterns = [ path('home/',views.home, name='home'), path('post/<int:post_id>/', views.detail, name='detail'), path('post/new/', views.new,name='new'), path('post/<int:post_id>/edit/',views.edit,name='edit'), path('post/<int:post_id>/delete',views....
[ "sos13313@naver.com" ]
sos13313@naver.com
99564ebe60605f96e00028c107e49f376d83163d
5ad47fbd962190ade47dcf286e0f522862583992
/sblog/myblog/migrations/0002_post_title_tag.py
a369ba9f9af630581333c8a775f64cde1003a6f7
[]
no_license
henryfrstr/blogapp-djando
29c83b1ee86e886b4c384576079011c57165f169
8a5a3f89c1bef2b011b4cdc9f7740fdd551c71ad
refs/heads/master
2022-12-30T07:22:13.939897
2020-10-19T11:30:29
2020-10-19T11:30:29
297,430,874
0
0
null
null
null
null
UTF-8
Python
false
false
392
py
# Generated by Django 3.1.1 on 2020-09-22 03:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('myblog', '0001_initial'), ] operations = [ migrations.AddField( model_name='post', name='title_tag', fie...
[ "63148122+henryfrstr@users.noreply.github.com" ]
63148122+henryfrstr@users.noreply.github.com
672931bd55b71762a573215c358dfc75e7892d14
64c3e2545604df60812fbd2327761ad987bc3c92
/jax/experimental/x64_context.py
b2d7a4eb68e9998d28a1b5a52681f4c3a6ef7b97
[ "Apache-2.0" ]
permissive
ashutoshvarma/jax
6f364ff18670351f340f8cb19b5c63f581dd9cac
2fabc5345dc3a0c779f229c844506355b44688ac
refs/heads/master
2023-04-07T13:33:06.369754
2021-02-06T05:40:52
2021-02-06T05:40:52
336,528,422
0
0
Apache-2.0
2023-04-03T23:55:55
2021-02-06T12:06:31
null
UTF-8
Python
false
false
1,672
py
# Copyright 2021 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ "jakevdp@google.com" ]
jakevdp@google.com
2b9761f1c03f368849bfc3c597355d2e128b0885
182c63ffa3ea6d8b20c6f92670d95b143910a2db
/tests/migrations/test_migration_handler.py
1182289b21648872ac35e086b20776071609b004
[ "MIT" ]
permissive
ephreal/rollbot
ad6f074a4d576d734866f50ecd422c34777e6637
b6947b225e789497eeb5e2375130e24f61c9d60a
refs/heads/master
2023-08-03T00:09:41.827697
2023-07-20T15:57:06
2023-07-20T15:57:06
156,770,105
2
1
MIT
2023-07-20T15:57:07
2018-11-08T21:17:43
Python
UTF-8
Python
false
false
2,019
py
# -*- coding: utf-8 -*- """ This software is licensed under the License (MIT) located at https://github.com/ephreal/rollbot/Licence Please see the license for any restrictions or rights granted to you by the License. """ import sqlite3 import os import unittest from utils.db import db_migration_handler class TestDB...
[ "tjannx@hotmail.com" ]
tjannx@hotmail.com
21f0adb5454ec7c285929844b0710f048f41ae62
c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd
/google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/services/services/customer_user_access_service/transports/base.py
5cc698fa24835e0587811374c1bc7872238f8fdf
[ "Apache-2.0" ]
permissive
dizcology/googleapis-gen
74a72b655fba2565233e5a289cfaea6dc7b91e1a
478f36572d7bcf1dc66038d0e76b9b3fa2abae63
refs/heads/master
2023-06-04T15:51:18.380826
2021-06-16T20:42:38
2021-06-16T20:42:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,287
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
643c3d54e8efe4c954086089303be44105ada21f
90f52d0348aa0f82dc1f9013faeb7041c8f04cf8
/wxPython3.0 Docs and Demos/wxPython/samples/wxPIA_book/Chapter-06/example4.py
9c4c1f63364719d0b8385b430222ee8a6d64355f
[]
no_license
resource-jason-org/python-wxPythonTool
93a25ad93c768ca8b69ba783543cddf7deaf396b
fab6ec3155e6c1ae08ea30a23310006a32d08c36
refs/heads/master
2021-06-15T10:58:35.924543
2017-04-14T03:39:27
2017-04-14T03:39:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,208
py
import wx from example1 import SketchWindow class SketchFrame(wx.Frame): def __init__(self, parent): wx.Frame.__init__(self, parent, -1, "Sketch Frame", size=(800,600)) self.sketch = SketchWindow(self, -1) self.sketch.Bind(wx.EVT_MOTION, self.OnSketchMotion) ...
[ "869999860@qq.com" ]
869999860@qq.com
bed17644664b9f2c7435972ba883be6c2c8c1c6e
9b59f76f3b312951519a15651290476c34a54174
/EXAMPLE/test_backtest/backtest_debug.py
a0637a8dc4e42f87328671b3224cc3a2d63dc87e
[ "MIT" ]
permissive
sjtututu/QUANTAXIS
b8d9ba35d20159680f25cd3e583ebcfc7ff34c75
e9e20cdeda8b8d132433037b639a7e60f286a190
refs/heads/master
2020-08-16T11:19:19.689925
2020-02-22T01:21:57
2020-02-22T01:21:57
215,495,655
1
0
MIT
2019-12-28T08:13:57
2019-10-16T08:22:54
Python
UTF-8
Python
false
false
3,804
py
# coding=utf-8 # # The MIT License (MIT) # # Copyright (c) 2016-2019 yutiansut/QUANTAXIS # # 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 limit...
[ "415496929@qq.com" ]
415496929@qq.com
1dea04888ca75802bcfc47ef91f57058582c8489
520baeba0e86b0bab3c5590f40b868ca4306dc7e
/hazelcast/protocol/codec/multi_map_contains_key_codec.py
afbd502e4a344127afd7d176ac6a862672e932d1
[ "Apache-2.0" ]
permissive
mustafaiman/hazelcast-python-client
69f27367162045bbfa4e66e7adadcfd254dfab21
85f29f975c91520075d0461327e38ab93c2e78c2
refs/heads/master
2021-01-18T04:23:10.740371
2015-12-11T14:26:06
2015-12-11T14:26:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,233
py
from hazelcast.serialization.data import * from hazelcast.serialization.bits import * from hazelcast.protocol.client_message import ClientMessage from hazelcast.protocol.custom_codec import * from hazelcast.protocol.codec.multi_map_message_type import * REQUEST_TYPE = MULTIMAP_CONTAINSKEY RESPONSE_TYPE = 101 RETRYABLE...
[ "arslanasim@gmail.com" ]
arslanasim@gmail.com
73c3624907e00a0d42cf65a782a95f57f8561374
61c099aeaac57260ef17c30582a015aa853df94e
/sakila/views.py
64a62994f7c862bd262b71d9d40d98d0babf9d33
[]
no_license
hirokiky/aggregating_sakila
fe15a5d6157c791b1bc2f50811d9ca5fb9b78516
4576d8be24a68cd9b5a7a1dfb2f9e2de1ea30e05
refs/heads/master
2020-06-13T21:27:20.924891
2013-05-20T12:05:31
2013-05-20T12:05:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
355
py
#! -*- coding:utf-8 -*- from pyramid.httpexceptions import HTTPNotFound from pyramid.view import notfound_view_config, view_config @notfound_view_config(append_slash=True) def notfound(request): return HTTPNotFound('Not found, bro.') @view_config( route_name='home', renderer='sakila:templates/home.mako'...
[ "hirokiky@gmail.com" ]
hirokiky@gmail.com
ebd473166e89ac30920f50739fd849c810820925
a829617f9ad158df80a569dd02a99c53639fa2c6
/test/hep/cernlib/binned1d.py
36a9e8c0b78a7509a3efc0cb7fc40c6adbeeb15c
[]
no_license
alexhsamuel/pyhep
6db5edd03522553c54c8745a0e7fe98d96d2b7ae
c685756e9065a230e2e84c311a1c89239c5d94de
refs/heads/master
2021-01-10T14:24:08.648081
2015-10-22T13:18:50
2015-10-22T13:18:50
44,745,881
1
0
null
null
null
null
UTF-8
Python
false
false
1,439
py
#----------------------------------------------------------------------- # imports #----------------------------------------------------------------------- from hep.hist import Histogram1D from hep.cernlib import hbook from hep.test import compare #---------------------------------------------------------------...
[ "alex@alexsamuel.net" ]
alex@alexsamuel.net
21fe508f0719f78a2aa47dcb6ae757a446f508b9
df126574e5fae32aa6ba8ae927942208107897b5
/tests/tree/test_sentencetree.py
4a8deaafa7db5f19f3a0aeaa66c96794b33f5da0
[ "MIT" ]
permissive
ZmeiGorynych/pyconll
865781a9ac2b5c0b9fe2a26d7d14fce60d4454a7
6784295db5fde769754e2b1ac46d6100484e45cc
refs/heads/master
2020-04-14T11:38:14.167823
2018-12-28T22:12:38
2018-12-28T22:12:38
163,819,354
0
0
null
2019-01-02T09:15:40
2019-01-02T09:15:40
null
UTF-8
Python
false
false
4,746
py
import pytest from pyconll.tree import SentenceTree from pyconll.unit import Sentence def assert_tree_structure(sentence, tree, root_token, children_paths): """ Assert a tree structure from tree node paths to sentence tokens. Args: sentence: The sentence that the tree is created from. tr...
[ "matgrioni@gmail.com" ]
matgrioni@gmail.com
43ce27e07f1cca06f9af225ff8f91cfffbea1fa9
c266d942da6da24812abf8a8dbe0292e63b16fa8
/pipeline/0x04-data_augmentation/2-rotate.py
4737851e597f8bae7cea1ac0cf8113c4d0fd72af
[]
no_license
Viiic98/holbertonschool-machine_learning
447be16c096bb6f3c8983c9479cc5fada7bf0945
fe8fe88a43b7a86f0c4b05540751847e7c1c418b
refs/heads/master
2023-03-28T16:03:15.429720
2021-03-31T01:11:36
2021-03-31T01:11:36
279,635,527
0
0
null
null
null
null
UTF-8
Python
false
false
292
py
#!/usr/bin/env python3 """ Rotate """ import tensorflow as tf def rotate_image(image): """ rotates an image by 90 degrees counter-clockwise - image is a 3D tf.Tensor containing the image to rotate Returns the rotated image """ return tf.image.rot90(image, k=1)
[ "xathovic@gmail.com" ]
xathovic@gmail.com
237f253adaa34ee9758fc6c6ccfd2f745e6f0d63
331fca39c99354bb96f9f07a2309c59c34a9fb15
/lib/python2.6/site-packages/tg/wsgiapp.py
1fa8da9e294625e47f035de5a38b1d8ce7d5c0da
[]
no_license
rudyvallejos/GestionItems
d368a940a63cae9a2e5845cdf50db6b232aa9871
1eb56b582f0539c883a4914ad48291941b3c6c38
refs/heads/master
2016-09-06T08:37:46.582041
2011-07-09T18:39:02
2011-07-09T18:39:02
1,662,813
1
0
null
null
null
null
UTF-8
Python
false
false
1,833
py
import os import sys from pylons.wsgiapp import PylonsApp, class_name_from_module_name from pylons.util import class_name_from_module_name import logging log = logging.getLogger(__name__) class TGApp(PylonsApp): def find_controller(self, controller): """Locates a controller by attempting to import it then...
[ "rudy.vallejos@gmail.com" ]
rudy.vallejos@gmail.com
df97144b2fad596b46408eef7668da56655730aa
47471f599c2f78055bd1d265d5536dbd9c4918d6
/imdb.py
4a83b5fa72a2e2b3461813130d8c5e7890c5f9a5
[]
no_license
jingshuangliu22/semi-supervised-learning
cd4db4be61bdaa02100381f7a08a9a10c6bfd2dd
1ebe8358e73a8ada76e597df5969712ab2ce8c00
refs/heads/master
2020-06-29T09:19:47.259272
2017-02-11T05:11:30
2017-02-11T05:11:30
74,437,339
0
0
null
null
null
null
UTF-8
Python
false
false
5,316
py
#encoding=utf-8 import cPickle import gzip import os import numpy import theano def prepare_data(seqs, labels, maxlen=None): """Create the matrices from the datasets. This pad each sequence to the same lenght: the lenght of the longuest sequence or maxlen. if maxlen is set, we will cut all sequence...
[ "=" ]
=
205cb7ba8895aecbc0541644bd34528757422fc1
ee4542cc7e82d214e0384f5012196f39e08a08a6
/exercises/module4_2_tensorflow_regression_ex.py
0d36bc106615393543b9b66c6e5d378a578127df
[]
no_license
tertiarycourses/DeepLearningTensorflow
5fbbdbec86b0348c83b9b65febf7c5dcf67841ca
81d5457add70e398ee2ad9dc56a074bb0bca1b65
refs/heads/master
2021-05-08T18:41:38.503537
2020-12-20T03:33:57
2020-12-20T03:33:57
119,531,617
2
3
null
null
null
null
UTF-8
Python
false
false
1,226
py
# Module 4: Machine Learning using Tensorflow # Simple TF Model - Linear Regression Challenge # Author: Dr. Alfred Ang import tensorflow as tf import numpy as np # Step 1 Initial Setup # Generate fictitious data N=100 X_train = np.linspace(-10,10,N) c1 = np.random.normal(loc=2, scale=0.2, size=N) c2 = np.random.norm...
[ "angch@tertiaryinfotech.com" ]
angch@tertiaryinfotech.com
45a9293f6d290d2ee54c0651cc38f66ea66e87bc
e7c03b71f26c463b2670c52cd2fddbc198e3c8cb
/apps/groupapp/tests.py
6a799eff58eae54c86ceb50e35ac5f625bab761e
[]
no_license
nerosketch/djing2
71cc96f4829fc047d788dd7d8a94f1035e9740f9
1fbb0941f26389cbfdc8015527ab0d426c2e2c01
refs/heads/master
2023-01-13T15:12:50.492646
2022-11-18T11:24:21
2022-11-18T11:24:21
196,469,351
7
3
null
2020-02-29T19:38:37
2019-07-11T21:50:34
Python
UTF-8
Python
false
false
3,188
py
# from django.contrib.auth.models import Group as ProfileGroup, Permission # from rest_framework import status # from customers.tests.customer import CustomAPITestCase # # Test recursive permission assignment # class GroupAppTestCase(CustomAPITestCase): # def setUp(self): # super().setUp() # se...
[ "nerosketch@gmail.com" ]
nerosketch@gmail.com
7f9a93b835823acf30b7ec6e264783924296cda5
9305ddb471ad41d8298a21bc4025067555ac5c2a
/tests/test_sync_shows.py
34fcfe7cda60ae4ab690b66c15e0b6b5faa9ae33
[ "MIT" ]
permissive
lhuriguen/trakt.py
4210edc60d3e5dff9dbb7612827843cad14bd22e
be3a521a14cc7d2db37ca716c23f3359d140e2b7
refs/heads/master
2020-12-28T17:31:41.297508
2015-07-07T17:27:00
2015-07-07T17:27:00
38,701,776
0
0
null
2015-07-07T16:52:09
2015-07-07T16:52:09
null
UTF-8
Python
false
false
6,348
py
from tests.core.helpers import authenticated_response from datetime import datetime from trakt import Trakt import responses @responses.activate def test_playback(): responses.add_callback( responses.GET, 'http://mock/sync/playback/episodes', callback=authenticated_response('fixtures/sync/playbac...
[ "gardiner91@gmail.com" ]
gardiner91@gmail.com