blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c4a71d58b51d50f238a0fcfefb454888e76cbac3 | c3cf442e56969e98fbd392ee89bd85b3e22d5cd2 | /python/Spider/github_login2.py | ddd07e038a2e21d86bbac1715e399e0fe3d6860d | [] | no_license | Eacaen/diff_Code_Learn | bd4bd409f0027ab3d606ef029de9ae4a3af09775 | e55619c5736181fd50666b61d06e6ed7cafc4394 | refs/heads/master | 2021-01-12T07:55:54.127018 | 2019-11-07T10:42:05 | 2019-11-07T10:42:05 | 77,052,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,942 | py | # -*- coding:utf-8 -*-
import requests
import re
session = requests.Session()
# header = {
# "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
# "Accept-Encoding": "gzip, deflate, sdch, br",
# "Accept-Language": "zh-CN,zh;q=0.8",
# "Cache-Control": "max-age=0",
# ... | [
"501556184@qq.com"
] | 501556184@qq.com |
040cbdae9cb32f20d660ed89b576062e5458c73b | 141e73826ed5bed9caab23e7a2a5a49cfa184715 | /LearningBornschein/mca-genmodel-test/rf-learning/params-20x20-dog/bsc_test16overcompleteDOG.py | cd901b502f932c3a537eafd17f59f5d500680004 | [] | no_license | haefnerlab/LIF_Sampling_Project | d407a8e8dac73d82da4f46d1ae204f033ffdb876 | e6092f6c7539564f68826d689c4170633956f5dc | refs/heads/master | 2023-05-07T11:09:56.605722 | 2021-05-27T03:51:41 | 2021-05-27T03:51:41 | 371,237,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | # -*- coding: utf-8
#
# LinCA run for the MCA/BSC Journal Paper
#
# import numpy as np
from __future__ import division
# Training-data
data_factor = 1.
datafile = "../data/patches-16-dog-norm.h5"
N = 100000
# to initialize W
# mat = np.load('weights64_0.00.npy')
# mat = np.squeeze(mat[-1,:,:,:])
# shp = np.array(mat.... | [
"ankanichattoraj91@gmail.com"
] | ankanichattoraj91@gmail.com |
2e7b9dada3d2c6d1f5775277b7fedd5aaa57321b | c29b838371729ac04744b40d486f0b55212990b6 | /Spider-Learn/Spider/chapter4_analyse_library_pyquery.py | 5ec6b154f29be6291fe4c1e9b4b48b87708a9f36 | [] | no_license | Sugarsugarzz/PyPractice | 93c3155a94d162c9eabf0d1a641d28bc6d639c22 | d91b7d6ca996792fe409c08862fa9da5b1dc319b | refs/heads/master | 2023-02-13T01:51:24.909947 | 2021-01-20T02:57:22 | 2021-01-20T02:57:22 | 163,177,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,717 | py |
#****** 4.3 使用pyquery ******
# 适合于用CSS选择器较多的情况
# 1、安装
# pip3 install pyquery
import pyquery
# 引入PyQuery,别名py
from pyquery import PyQuery as pq
# 2、初始化
# 传入一个参数来初始化Pyquery
# *字符串初始化
html = '''
<div>
<ul>
<li class="item-0">first item</li>
<li class="item-1"><a href="link2.html">second item</a></li>
<li cla... | [
"406857586@qq.com"
] | 406857586@qq.com |
a1142e9a06fc7a46de9d07c6041a198cf107c9f2 | 3cd947cf99923b750390e813e462eacfb20ebe32 | /mokaplayer/ui/gtk/controls/__init__.py | 50fae0af2806b78fd10070715e5029915550acea | [
"MIT"
] | permissive | vedard/MokaPlayer | 73123b7d49f855ce2638139ada0894332ee578ca | cffc16ebb1372ad8916d62c4dc1215298eddc75d | refs/heads/master | 2021-01-16T20:04:10.503297 | 2019-11-16T18:01:50 | 2019-11-16T18:01:50 | 100,195,781 | 7 | 0 | null | 2017-11-02T03:24:53 | 2017-08-13T18:15:09 | Python | UTF-8 | Python | false | false | 122 | py | from mokaplayer.ui.gtk.controls.album_view import AlbumView
from mokaplayer.ui.gtk.controls.artist_view import ArtistView
| [
"vedard@gmail.com"
] | vedard@gmail.com |
1398e623bda3de7457a8facb24ce021d71388697 | 8ffdaa2d183ba34a146705c8b5a331c10eff2562 | /wikienergy/proto/pylearn2/concatenate_datasets.py | 714b9d2709e6ae079218f5176268d5c630e52b7b | [
"MIT"
] | permissive | Tell1/dataset-utils | 2cec7ad50b67014fda209ff35f1670059e545aad | 57ff14eef49f8b98f7f64f54cab8c0442c58bd9b | refs/heads/master | 2016-09-06T07:10:58.585015 | 2014-11-22T06:18:57 | 2014-11-22T06:18:57 | 26,990,672 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,460 | py | import pylearn2
import pylearn2.datasets as ds
import pickle
import numpy as np
train_sets = []
valid_sets = []
test_sets = []
for i in range(5):
with open("../../data/pylearn2/train_car_{:02d}.pkl".format(i),'r') as f:
train_sets.append(pickle.load(f))
with open("../../data/pylearn2/valid_ca... | [
"mueller_pettenpohl@me.com"
] | mueller_pettenpohl@me.com |
3de6bc01973c2868396b06f5e10c7cb5054ff5da | 29d8149dc97e6d2c5da29cc9f203e5d5f29e0875 | /metrics/migrations/0001_initial.py | 4cb687c1be97d09fccafca0cb40f0f8e5b5dfe81 | [] | no_license | ptera-py/hlaf | cda401ae72ed36e00c83871afd560ffa92735566 | b3120bc022be2bf6481d4dce777077a686d3b5c5 | refs/heads/master | 2021-01-01T15:39:13.961964 | 2018-02-25T18:37:07 | 2018-02-25T18:37:07 | 97,666,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-15 13:14
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('index', '0001_initial'),
]
ope... | [
"kurzy@yandex.ru"
] | kurzy@yandex.ru |
d1e8cd9c11133e0edc56a026f895b0b105b5ec2b | 781db0f4722304fea8b63dc1c03d5d7251b787a6 | /eventoL/device/migrations/0001_initial.py | ec6220a8f9b9bab27e61119d1925e912420d21a6 | [] | no_license | GNUtn/eventoL-api | bbbbef875f6a5900305b1d20c2fa80053aa86e72 | 0076712aae1f891b0c4e93a367426643fc6e19e8 | refs/heads/master | 2016-08-12T22:47:59.676791 | 2016-02-25T23:35:47 | 2016-02-25T23:35:47 | 46,392,013 | 2 | 0 | null | 2016-02-25T23:35:47 | 2015-11-18T03:14:40 | Python | UTF-8 | Python | false | false | 2,318 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2015-12-26 02:43
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateM... | [
"federicog@exo.com.ar"
] | federicog@exo.com.ar |
9012a4c3c7502633f1df59574ab7602af3edaaeb | 533c298a21e865d190e69b0c95a0f9ecd9dd8d8b | /reviewboard/__init__.py | 016a72ad23705cdef9d791d57c91bf2bda9806f0 | [
"MIT"
] | permissive | djs/reviewboard | cb78573890b821cbc228fb43a1bdb8e337d5e9d5 | 813158fbb31d7889e224f3fc1350fd4a791874ec | refs/heads/master | 2021-01-15T22:41:24.101928 | 2009-09-23T09:54:41 | 2009-09-23T09:54:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,573 | py | # The version of Review Board.
#
# This is in the format of:
#
# (Major, Minor, Micro, alpha/beta/rc/final, Release Number, Released)
#
VERSION = (1, 1, 0, 'alpha', 2, False)
def get_version_string():
version = '%s.%s' % (VERSION[0], VERSION[1])
if VERSION[2]:
version += ".%s" % VERSION[2]
if ... | [
"chipx86@chipx86.com"
] | chipx86@chipx86.com |
7031626a2ee2e88a1cf11e2fbdc644de8c247d72 | d87cfd9d615ea324f029c762bc9d833324155e2c | /week_04/django_test/venv/bin/easy_install | ebc19d22956452a3fdfe0ee19ec955fae13d136e | [] | no_license | vlad-kraf/diving_in_to_web | 015df83789e997a1a82452a5624c83b0f40ebde6 | 36ba3f4107bfc5c1034aa4422632aaba83a23532 | refs/heads/master | 2022-12-10T20:03:51.139933 | 2020-03-28T16:50:09 | 2020-03-28T16:50:09 | 243,045,474 | 0 | 0 | null | 2021-06-10T22:41:33 | 2020-02-25T16:17:45 | Python | UTF-8 | Python | false | false | 311 | #!/Users/mariiabocheva/Documents/dev_projects/diving_in_to_web/week_04/django_test/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == "__main__":
sys.argv[0] = re.sub(r"(-script.pyw?|.exe)?$", "", sys.argv[0])
sys.exit(main())
| [
"vladkravchenkomail@gmail.com"
] | vladkravchenkomail@gmail.com | |
2bab1d0844bc29be52c635ca8f54d60151774377 | 2bd580923d04408927f1369c677f63c195ca0155 | /notifications_api/notifications/serializers.py | 3de4c1ba9f89b00a930090377215fa81a8477034 | [] | no_license | ethanal/Notifications | 42a84bea8458443272dacf8bb7525a10f411d789 | 533c380e72012233c7e8bd0a365ea8e9b1bc94a1 | refs/heads/master | 2021-01-10T20:39:16.851196 | 2015-04-03T03:28:46 | 2015-04-03T03:28:46 | 13,577,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | from .models import Feed, Notification
from rest_framework import serializers
class FeedSerializer(serializers.ModelSerializer):
has_unread = serializers.SerializerMethodField("check_unread")
def check_unread(self, feed):
return Notification.objects.filter(feed=feed, viewed=False).count() != 0
c... | [
"ethan.l.527@gmail.com"
] | ethan.l.527@gmail.com |
65d4fd48b0115320e21728a258d31da8af3ee595 | 330e911ea95b752a06ca491a080074e411e78179 | /CalculateStringLength.py | bb3ccc6c664ed28f928b49e2db240252200553db | [] | no_license | ArifulSourov/Problem-solving | ac49d3606f6e4ef9eeab9e79aada471ca025793e | 09db3e574cc95c1fc0bb21c761ae024ea8666cfa | refs/heads/master | 2021-06-18T06:04:22.198877 | 2021-06-11T10:41:21 | 2021-06-11T10:41:21 | 215,904,250 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | def calculate_string_len_recursive(input_str, idx=0):
return calculate_string_len_recursive(input_str, idx+1)
input_str = "rrrrr"
print(calculate_string_len_recursive(input_str, 0))
| [
"sourov.ariful@gmail.com"
] | sourov.ariful@gmail.com |
c10a3eae2b13801108c7cec98eea31067dea78f0 | 98a51197e3feef6625bf661cb74dc7d392efe5d3 | /post/migrations/0001_initial.py | 3bae83aa4301cc0d0ee0fd0eab1b409de24d530e | [] | no_license | alfredocatano10/COMIDATRCPROYECTOU4 | 373a4f23b3b29d6e5b6afadcad79c414601ab761 | 53eb2fed887b331da19ff527f884bc7580798c5c | refs/heads/master | 2023-06-13T04:41:07.753554 | 2021-06-28T22:54:24 | 2021-06-28T22:54:24 | 381,179,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,092 | py | # Generated by Django 3.2.4 on 2021-06-24 21:48
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='gordas',
fields=[
('id', models.AutoField(a... | [
"fredo_10_@hotmail.com"
] | fredo_10_@hotmail.com |
8b2fb070f5bd9c5bfb41af82e806c1cdd09c1850 | e764c69d09cb69653817df8fa410ce7a31dd5d1d | /residuosWebapp/residuos/models.py | 95607856e983b103db5e578608aeadf61d6b7687 | [] | no_license | fafaschiavo/residuosWebbapp | 5620d60a933e3894864c89de232ebebf11df6a5f | f1915bc1f136801e96c5bf01bd7d5127eddb8551 | refs/heads/master | 2021-01-20T17:12:27.770482 | 2016-08-14T22:26:03 | 2016-08-14T22:26:03 | 65,656,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | from __future__ import unicode_literals
from django.db import models
# Create your models here.
class members(models.Model):
first_name = models.CharField(max_length=200)
last_name = models.CharField(max_length=200)
email = models.CharField(max_length=200)
phone = models.CharField(max_length=200)
created_at = mo... | [
"fayschiavo@gmail.com"
] | fayschiavo@gmail.com |
0c6a313f175fae0b84ab49d728b75441dcf2ea5f | 13b14c9c75143bf2eda87cb4a41006a52dd6f02b | /AOJ/ITP1_1_D/ITP1_1_D_p.py | a6acf7b75b82545eb6dc179dabcbd87b1719406f | [] | no_license | yutaka-watanobe/problem-solving | 2c311ac856c79c20aef631938140118eb3bc3835 | f0b92125494fbd3c8d203989ec9fef53f52ad4b4 | refs/heads/master | 2021-06-03T12:58:39.881107 | 2020-12-16T14:34:16 | 2020-12-16T14:34:16 | 94,963,754 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | s = int(input())
h = s // 3600
m = s % 3600 // 60
s = s % 60
print(str(h) +":" + str(m) +":" + str(s))
| [
"y.watanobe@gmail.com"
] | y.watanobe@gmail.com |
dab468facc509b0bc4a17bf71d78d2f64e565972 | 0689ad04900b45e6ffb85756e65e96f30781558b | /py44/数据/day06/demo03_vectorize.py | 53433c685f1e8058eb2bb0adb205b8acc6cb2766 | [] | no_license | lizhihui16/aaa | a5452b5d0de4c2ad6342fce1b8aef278d2d2943e | e8c38e012f6aa0bc05ac6481d6c3e2b4e9013b56 | refs/heads/master | 2020-04-24T01:05:19.266060 | 2019-02-20T01:43:51 | 2019-02-20T01:43:51 | 171,586,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
'''
vectorize矢量化案例
'''
import numpy as np
import math as m
def foo(x, y):
return m.sqrt(x**2 + y**2)
x, y = 3, 4
print(foo(x, y))
x = np.array([3, 4, 5, 6])
y = np.array([4, 5, 6, 7])
# z = foo(x, y) 错误
# 把foo函数矢量化处理
foo_v = np.ve... | [
"tarena@tedu.cn"
] | tarena@tedu.cn |
4e0e82716584b6f00ebb5773c0e041000aa55a11 | 1d9138d777744fa2d9d6e3b629a43041f2358d06 | /real_time/abc/118/B.py | 0cbaafe88c142600626cc3f11fe6341f0d44f97f | [] | no_license | Yuyats/AtCoderAnswers | f1956b790ee64a4d0b3b48b98791a91679a30244 | fac7e3eb74a888e77ba7a6b6a15d836c589baa3e | refs/heads/master | 2021-06-24T16:19:45.848524 | 2021-06-13T03:51:07 | 2021-06-13T03:51:07 | 198,857,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | import math, string, itertools, fractions, heapq, collections, re, array, bisect, sys, random, time, copy, functools
sys.setrecursionlimit(10**7)
inf = 10 ** 20
eps = 1.0 / 10**10
mod = 10**9+7
dd = [(-1, 0), (0, 1), (1, 0), (0, -1)]
ddn = [(-1, 0), (-1, 1), (0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-1, -1)]
def ... | [
"unitednum@gmail.com"
] | unitednum@gmail.com |
8852efe48ed5742a168509d552e466c46eb78e76 | 10b52942b36de7f53ff795243336a40926d0dc3c | /src/Ch9/06.py | 80cf702df990314f8079fcee086b2148a2aabbda | [] | no_license | kou466/Python | 292364ff578e0e31729b1bcf2e0728581ccfa57f | ec6b9dc2359ce971e90989a11d99f90d80aede4b | refs/heads/master | 2020-05-04T15:13:24.829545 | 2019-06-12T06:51:11 | 2019-06-12T06:51:11 | 179,230,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | data = [21, 7, 43, 65, 2, 8, 72, 52, 9]
for i in range(len(data)):
print(str(data[i]) + " ", end='')
| [
"1226hajing@gmail.com"
] | 1226hajing@gmail.com |
f5a8c989e65546942db6eb04c553e6eccd86bdf4 | 387d39b6be636d7a0c119882e055ee527f727e1a | /python/ccxt/bybit.py | 928a39f843ac70f3ebdf5da08cf566799862c092 | [
"MIT"
] | permissive | lobatt/ccxt | 30b30fa08d55538fe7dad4380aa1842a28ce06a3 | 9faec08330ca2565f63c7c2b11c99161883e2bdd | refs/heads/master | 2023-07-19T19:57:29.110899 | 2021-09-04T00:26:51 | 2021-09-04T00:26:51 | 228,749,714 | 4 | 4 | MIT | 2021-08-01T01:15:51 | 2019-12-18T03:25:20 | JavaScript | UTF-8 | Python | false | false | 88,075 | py | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.base.exchange import Exchange
from ccxt.base.errors import ExchangeError
from ccxt.base.errors import AuthenticationError
from cc... | [
"travis@travis-ci.org"
] | travis@travis-ci.org |
1873c2fde31886a19a5120e61f3bd4f454db7918 | f90008eb04cb13ba042ce6ebebd9950f58e42380 | /pythoncode/animal/animals.py | e8b49018240fe0782dbf66f3bc9e6f04efadaf93 | [] | no_license | 977189600/PythonTest | 58b75143b90f127ec65e594a99029e92204028c7 | a44015a5c491c5482ec50494f4230028d1fec2b4 | refs/heads/master | 2023-07-19T19:23:07.418085 | 2021-08-19T01:52:02 | 2021-08-19T01:52:02 | 349,044,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,773 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"@time:2021/3/22 9:57 下午"
"@author:lydia_liu"
#比如创建一个类(Animal)【动物类】,类里有属性(名称,颜色,年龄,性别),类方法(会叫,会跑)
class Animal:
name:str
color:str
age:int
gender:str
def __init__(self,name,color,age,gender):
self.name = name
self.color = color
... | [
"977189600@qq.com"
] | 977189600@qq.com |
ddad171c85a6685c38fa722ee29446ee9c397d3f | 89979db397259660e28ee33fed9b2266be7b88f5 | /src/benchmarks/gc/src/commonlib/document.py | bd94b64be5c53b687df0aef40e022ca76d472818 | [
"MIT"
] | permissive | Maoni0/performance | 0c32a1d738a762ed291e1bad241f122910d6c550 | 8e4baf8b59a68be9f074d7449906a796e7329ef1 | refs/heads/master | 2020-08-27T12:53:55.833177 | 2019-11-26T14:18:58 | 2019-11-26T14:18:58 | 217,375,513 | 1 | 0 | MIT | 2019-10-24T19:13:34 | 2019-10-24T19:13:34 | null | UTF-8 | Python | false | false | 20,928 | py | # Licensed to the .NET Foundation under one or more agreements.
# The .NET Foundation licenses this file to you under the MIT license.
# See the LICENSE file in the project root for more information.
from collections.abc import Sequence as ABCSequence
from dataclasses import dataclass
from enum import Enum
from io imp... | [
"billwert@microsoft.com"
] | billwert@microsoft.com |
4fa38384b9907108a49bc94d156660f190402266 | 76e34b77ea62fdb46c0bedc6108c9880c846901b | /ImagesPillow/main.py | d772648f2ca266f877dd3b54ce3b44a578a7ad7e | [] | no_license | goldrian10/Python_Developer_Course | d595c43c9bc1348ba934d1a189723ee2a37599da | 8a65a57d4ac4ec6bc64ef064a4ba1cf77f380b63 | refs/heads/master | 2023-06-01T12:33:52.344982 | 2021-06-14T05:40:44 | 2021-06-14T05:40:44 | 376,650,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | from PIL import Image, ImageFilter
# img = Image.open('./static/pikachu.jpg')
#
# filtered_img = img.filter(ImageFilter.SMOOTH_MORE)
# filtered_img = img.convert('L')
# filtered_img.save('./static/greyPikachu.png', 'png')
# crooked = filtered_img.rotate(90)
# crooked.show()
# resize = filtered_img.resize((300, 300))... | [
"estebanaga10@gmail.com"
] | estebanaga10@gmail.com |
f8b8cd1b62a4cfebccf9215fb97276a86a57399c | bf1cd54620d29b68478f5efaadffdebad241ea61 | /virtual/lib/python3.6/locale.py | 9a6a9f3bd67d303881d3ea4afc72c64fc68028c4 | [] | no_license | rachelpoole/first-web-app | 840f22044a6d60055cd19f25633453d16b9152a1 | 53c0d46b9bfa86119f6814a4d99e39944e7779fd | refs/heads/master | 2020-05-19T04:31:22.301271 | 2019-05-06T20:45:03 | 2019-05-06T20:45:03 | 184,827,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | /Users/Rachel/anaconda3/lib/python3.6/locale.py | [
"rachelpoole@hotmail.com"
] | rachelpoole@hotmail.com |
9c9906c95677de656af5f17db4463a999e018b6c | 04e243da7d6835eb325cd37a83c9297a91018567 | /htmlGen.py | 82c4bb7ac2eadccd2c0d6eac821e1bac4df4c30d | [] | no_license | magxTz/htmlGenerator | b3a680dd4ccad54aab36a3718af1020f09a9d615 | 1b4eac5512a62aa680be5e503aad5aeb2fdd9762 | refs/heads/main | 2023-08-22T12:19:19.289436 | 2021-10-19T19:43:39 | 2021-10-19T19:43:39 | 403,389,142 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,428 | py | class htmlGenerator:
tags = ['head', 'body', 'button', 'canvas', 'span', 'img', 'br', 'empty',
'div', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'input', 'table']
def __init__(self, string='example'):
self.inputString = string
self.lists = []
@staticmethod
def detect... | [
"noreply@github.com"
] | noreply@github.com |
8852a32425b784d58a28c227105fd5c46e0609cc | 63b956f4705db11ec81abf316bea013982526784 | /productApp1/settings.py | 4ca7556307d8d8c711fec782437ca7dcd1046e94 | [] | no_license | fabrice408/better-life | 1130b8ba06410f6bea9dde024e7f7963befba24f | 6e9f185e2b8328192622354268e25a4244923110 | refs/heads/master | 2023-05-02T13:58:09.011106 | 2019-11-27T12:09:07 | 2019-11-27T12:09:07 | 224,416,806 | 0 | 0 | null | 2023-04-21T20:41:42 | 2019-11-27T11:37:59 | Python | UTF-8 | Python | false | false | 3,447 | py | """
Django settings for productApp1 project.
Generated by 'django-admin startproject' using Django 2.2.7.
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 o... | [
"ufitumukizafabrice@gmail.com"
] | ufitumukizafabrice@gmail.com |
33c85c8bf476a439d5dacd0afbbd365c0df5f844 | fb65b7c000642dca68c93ee85a87795b3f30fe21 | /Advance_Python/Quantifiers/Rule4.py | 2c441191c03a5512a02d8b5f8398a98bb93e4222 | [] | no_license | toncysara17/luminarpythonprograms | f41b446251feba641e117d87ce235dc556086f8f | 17bc37c3f83c0e9792aaa8bccd901371a6413f14 | refs/heads/master | 2023-04-17T18:51:31.493118 | 2021-04-20T05:25:02 | 2021-04-20T05:25:02 | 358,550,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | #Quantifiers
import re
x = "a{3}" #no of a position
r="aaa abc aaaa cga"
matcher=re.finditer(x,r)
for match in matcher:
print(match.start())
print(match.group()) | [
"toncysara12@gmail.com"
] | toncysara12@gmail.com |
f795c4a1f2c99f98b9804c9081f6db2aa4bbea32 | d6bbd18b958881e5661ad35289a3966dee333715 | /week1/Informatics/Array/C.py | aeded9413d937f9d805b4e4f4d7c4f8332882346 | [] | no_license | Iseke/BFDjango | 4a5ffd5d676f64342855c612b74aad1dbc70ab3b | 6122b0791d2cea245700051b654784eb0e1f9136 | refs/heads/master | 2020-12-10T05:32:18.993605 | 2020-04-20T03:45:51 | 2020-04-20T03:45:51 | 233,513,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | n = int(input())
ls = input().split()
cnt = 0
for i in range(0,n):
if int(ls[i])>0:
cnt+=1
print(cnt)
| [
"islamabdukarimov1999@mail.ru"
] | islamabdukarimov1999@mail.ru |
20aed6156cab0fb01197eb7232f5d902cc34d1ae | 5023f3f6f493a6cf3a6e4acf7ee742fdecc2a558 | /ScopeFoundryHW/newport_esp300/esp300_xyz_stage_hw.py | ea5170c66505e93c87a73e26db3c8a6b14c200da | [
"BSD-3-Clause"
] | permissive | erictang000/stackbot | 1a0de1a30c0b17a67808cbb7f084149f0c744070 | e9a20930d790c995163192b29394a266af54a3d0 | refs/heads/master | 2022-04-10T06:48:25.785204 | 2020-03-18T23:08:57 | 2020-03-18T23:08:57 | 248,362,086 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,673 | py | from ScopeFoundry.hardware import HardwareComponent
class ESP300XYZStageHW(HardwareComponent):
name = 'esp300_xyz_stage'
def __init__(self, app, debug=False, name=None, ax_names='xyz'):
"""
ax_names defines the names of the three axes connected to the stage.
if an "_" un... | [
"esbarnard@lbl.gov"
] | esbarnard@lbl.gov |
b4f30a8dd730c80e2da41cf00f50bc2624ed2e71 | 3ed1b87a1345dd286159bc8908efecf140b8c685 | /algorithm/Divide_and_Conquer/二分搜索.py | fec78b7bc3d2fb15075024e631c425177c4d363d | [] | no_license | duoduo3369/exercise | 290449f64df6c2d26fd0d4aae7e13ede173f6c1c | 49a7e8454e3f4bd257a4b641bcaa0a3e844b72a5 | refs/heads/master | 2016-09-06T09:42:44.125549 | 2013-06-11T09:02:55 | 2013-06-11T09:02:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | def binary_search(L,key):
low,high = 0,len(L)
while low <= high:
mid = (low + high)/ 2
if L[mid] is key:
return mid
elif L[mid] < key:
low = mid + 1
else:
high = mid - 1
return None
L = range(500)
print L
for i in xrange(100)... | [
"duoduo3_69@163.com"
] | duoduo3_69@163.com |
32b7caf3923c201c0c20c721db7d23035b254486 | ab4e0d7ce928ad22b108d73d07d774d732df94da | /store/models.py | d87e3f222af936098129031cfbeeef294b9b5d8d | [] | no_license | Mahbub20/Django-Ecommerce-Application | d9cc5aa38791ca08edc8fc5b7ed2242dfa188ad7 | b018ab2d24f81de87687ca6d0d4f66d0691e8edf | refs/heads/master | 2022-11-13T08:29:11.989230 | 2020-07-12T05:55:18 | 2020-07-12T05:55:18 | 278,301,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,813 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Customer(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE, null = True, blank = True)
name = models.CharField(max_length=200,null=True)
email = models.CharField(max_length=200,... | [
"mmahbub569@gmail.com"
] | mmahbub569@gmail.com |
01ab8150373b59558c3261deb6a29cbd23eba629 | 3e654ea7dab713e0e9285b3bf5defaccefcd884e | /env/bin/runxlrd.py | 7c7c003038c373ed35450f7e3b38aa9c16937e3b | [] | no_license | crayonseater/INZ-KIO | 5999f1051bfc49614a1dcd9d6d0f5141adc8e522 | cf9902b829a1c922be47f1d5a00b8aaa6fd53339 | refs/heads/master | 2021-01-19T11:08:31.505452 | 2017-07-03T18:03:38 | 2017-07-03T18:03:38 | 95,696,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,326 | py | #!/home/mada/CODE/INZ/KIO/env/bin/python3.5
# Copyright (c) 2005-2012 Stephen John Machin, Lingfo Pty Ltd
# This script is part of the xlrd package, which is released under a
# BSD-style licence.
from __future__ import print_function
cmd_doc = """
Commands:
2rows Print the contents of first and last row in... | [
"212794@student.pwr.edu.pl"
] | 212794@student.pwr.edu.pl |
501adfacd2381a4a47ae967d02150da5f6057d7a | b7d5aba24dce7aaf18bee7cafbb8093bf7290c89 | /junk/get_ami.py | 047c2c1599bf03d4e739f4c4440f186b44eecbcb | [] | no_license | AH0HA/boto3 | c36e3a983fb939ad12f8213e658094f84bf8817d | a686647c3972694032cad90dca6025b71bd23da9 | refs/heads/master | 2020-04-02T21:02:43.311939 | 2016-07-21T19:06:03 | 2016-07-21T19:06:03 | 63,644,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,089 | py | #!/home/makayo/.virtualenvs/boto3/bin/python
#import boto3
#from datetime import datetime
#s = boto3.Session()
#ec2 = s.resource('ec2')
#images = ec2.images.filter( Filters=[{'id' : 'Owners', 'Values': ['557612902255']}])
#for i in images.all():
#print(i);
#def get_latest(items): latest = max(items, key=i... | [
"kayama818@gmail.com"
] | kayama818@gmail.com |
02ca81936a9bbc323cdc7593087daf093dfe7a6a | dc0d7e49eafe40f1c41f631621a6ccdefdcbbf7c | /press/log.py | fd7a77624aba7893cf089a1fce44ac9a436ccd5f | [] | no_license | jr0d/press | b2314b319da5b44d23110036064775796246c5c1 | 477b78700b644b2d333f4d9289f319a52fc54100 | refs/heads/master | 2021-06-15T20:44:18.061919 | 2019-04-24T17:01:37 | 2019-04-24T17:01:37 | 80,559,927 | 7 | 3 | null | 2021-03-25T21:49:09 | 2017-01-31T20:38:44 | Python | UTF-8 | Python | false | false | 830 | py | import logging
FORMAT = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
def setup_logging(log_level=logging.ERROR,
console_logging=True,
log_file=None,
cli_debug=False):
press_logger = logging.getLogger('press')
press_cli_logger = logging.getLogge... | [
"jared.rodriguez@rackspace.com"
] | jared.rodriguez@rackspace.com |
5a9c07053f256cb8360b535a35fb9b97ed2bcae8 | c652797f5303bb7102967fc6603e5704025afb36 | /gamelayer/uitools/textline.py | 179db7b1680cae5dd59791572dfc2579cff6863c | [
"MIT"
] | permissive | Windspar/Gamelayer | fc1ce499cccb6530a4dcd446f9d86fd44026e564 | 65e1cf11548bc02bc49348eb265c209172c14844 | refs/heads/master | 2022-06-13T08:06:37.828771 | 2020-05-07T17:17:59 | 2020-05-07T17:17:59 | 258,047,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,569 | py | import string
from pygame import KMOD_CTRL, Rect, KEYDOWN, MOUSEMOTION, MOUSEBUTTONDOWN
from .label import Label
from .ui_base import UI_Base
from .textline_core import *
class TextLine(UI_Base):
def __init__(self, font, color, callback, rect, allowed_keys=None, *groups):
UI_Base.__init__(self, rect, (0, 0... | [
"kdrakemagi@gmail.com"
] | kdrakemagi@gmail.com |
6ab505a1ac637cbf578adba0cb1b1eb19c59b563 | 4ad94b71e30883d6df07a3277265bd6fb7457ba7 | /python/examples/doc_examples/plot/axis_title_3d.py | e81c6c337eadf7fd0d7458a698deea9e1388cc48 | [
"MIT"
] | permissive | Tecplot/handyscripts | 7cb1d4c80f323c785d06b0c8d37aeb0acb67f58c | 84a89bfecff5479a0319f08eb8aa9df465283830 | refs/heads/master | 2023-08-22T15:29:22.629644 | 2023-08-12T01:19:59 | 2023-08-12T01:19:59 | 149,826,165 | 89 | 64 | MIT | 2022-01-13T01:11:02 | 2018-09-21T22:47:23 | Jupyter Notebook | UTF-8 | Python | false | false | 1,345 | py | from os import path
import tecplot as tp
from tecplot.constant import PlotType, SurfacesToPlot, Color, AxisTitleMode
examples_dir = tp.session.tecplot_examples_directory()
infile = path.join(examples_dir, 'SimpleData', 'F18.plt')
dataset = tp.data.load_tecplot(infile)
plot = tp.active_frame().plot(PlotType.Ca... | [
"55457608+brandonmarkham@users.noreply.github.com"
] | 55457608+brandonmarkham@users.noreply.github.com |
bc493ddf020e8a1d23628370e725cfd658835cf4 | 7f2c63edd8fbd946a3d289fdc11283876dc03ab7 | /multiple.py | 08c92db9c0ed1a30c2e4350bbc8a69de86d18008 | [] | no_license | dibyadas91/4th-year-design | 9079b4bb2fa62ff65e6c41820aafc3d9fae45470 | 28b218b1831d779d424d9f14cd70db542769cb69 | refs/heads/master | 2021-01-25T05:27:49.944869 | 2014-10-10T03:24:07 | 2014-10-10T03:24:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,641 | py | from bottle import route, run, debug, template, request
from operator import itemgetter
import os
import preprocessing1
from math import log
import string
import sentence
import word_freq
import tfidf
import math
@route('/', method='GET')
@route('/upload')
def upload():
return '''
<body style="background... | [
"ddas@stjosephcontent.com"
] | ddas@stjosephcontent.com |
5a9e5a7dac6ba7dfbe7314d9c874d497fdb1b1de | d69b87fa6aa94777a629f85fe26bc190ab47b22a | /tutorial/myenv/bin/nosetests-3.4 | e7d5057217ff2206216dcd75ced82b20b6374b8c | [] | no_license | kxnaylorCLE216/djangoTutorial | d2c8fd3051fdc408bce6b7a703a76ea30f8c1000 | 6b622ac905d661a16ee9f910ec7c84bc6ee6e083 | refs/heads/master | 2020-06-01T14:24:27.101103 | 2019-06-13T23:32:59 | 2019-06-13T23:32:59 | 190,811,441 | 0 | 0 | null | 2019-06-13T23:33:01 | 2019-06-07T21:34:59 | Python | UTF-8 | Python | false | false | 254 | 4 | #!/home/kxn/Repos/djangoTutorial/tutorial/myenv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from nose import run_exit
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_exit())
| [
"naylorkx@gmail.com"
] | naylorkx@gmail.com |
0b15edf2a5424f1b2c838db99de17e2be872976c | 7e68a797e3a99bf0d6d57d558dd2b074b9497ea3 | /src/SpectralAnalysis/powerspectrum.py | c42a6890f87161f2fd2c7b625a97d7637bb9a460 | [
"MIT"
] | permissive | axr6077/Black-Hole-X-ray-binary-Evolution | dc67018cdd94fda33ccd78b782e72a9ff7e1e1ba | cdfa5f780b8fbf8f2efd3d2962f57a41399de602 | refs/heads/master | 2022-12-07T10:08:53.154317 | 2022-11-20T23:26:48 | 2022-11-20T23:26:48 | 179,014,969 | 5 | 0 | MIT | 2019-04-04T08:01:10 | 2019-04-02T06:40:43 | Python | UTF-8 | Python | false | false | 4,494 | py | import numpy as np
import math
import scipy
import scipy.optimize
import scipy.fftpack
import LightCurve
def add_ps(psall, method='avg'):
pssum = np.zeros(len(psall[0].ps))
for x in psall:
pssum = pssum + x.ps
if method.lower() in ['average', 'avg', 'mean']:
pssum = pssum / len(psall)
... | [
"axr6077@rit.edu"
] | axr6077@rit.edu |
937408b99de27b0829a1fc18755c72b774527b69 | ad1fdc444330d7d1d359a29c997d72c0a82da11c | /test.py | 35ebdf1824822a952835c297e31e5bd70118a489 | [] | no_license | alinapopa06/Licenta | 5bb76e92741ca144291382cac6ef69b81e0efbfc | e5d2bad13a1903d58faa0dd100ec0cbedda29f35 | refs/heads/main | 2023-06-04T20:00:37.319869 | 2021-06-21T12:31:16 | 2021-06-21T12:31:16 | 321,763,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,998 | py | import numpy as np
# Decision stump used as weak classifier
class DecisionStump:
def __init__(self):
self.polarity = 1
self.feature_idx = None
self.threshold = None
self.alpha = None
def predict(self, X):
n_samples = X.shape[0]
x_column = X[:, self... | [
"noreply@github.com"
] | noreply@github.com |
35f9829ac7fb5b0179fe39a06722edb6f58bedf0 | 29160bceadb796575fb160307721c0c5f178b97a | /Become Member.py | 3da2b7f084967dbdd3325d7c8b8257286047c2bd | [] | no_license | okanrnt/LIBRARY-EXERCISE | 3fe76eb3a96939ff924aa00348a67caa8c79e425 | 5a6a8224272d6104417920eef1da4bbc625abf6d | refs/heads/main | 2023-09-04T04:14:10.199915 | 2021-10-26T16:45:36 | 2021-10-26T16:45:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,650 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 25 18:16:59 2021
@author: okanr
"""
class UyeOl:
def become_member():
yakut = True
while yakut:
member_IDDD = int(input("Enter an ID: ... | [
"noreply@github.com"
] | noreply@github.com |
3167185550f9aaab4deb0e81667237df1fe09366 | 3acd3bae5f8a9bdb3cd9409dd69022bb113b6ee9 | /p2p_train.py | beb5bf4b4c818929048b29d03d43a922a6655c9d | [] | no_license | eliver8801/mthesis-denoise | 7eba16f5b24ca9204897108b95e4198dc0a71d31 | fff4f8afd5e4b8b1b5d4d4ddcb128b766faac002 | refs/heads/master | 2023-02-28T19:23:01.866720 | 2019-06-03T22:16:01 | 2019-06-03T22:16:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,130 | py | from __future__ import print_function
import argparse
import os
from dataset_torch_3 import DenoisingDataset
import time
import datetime
import sys
import torch
import torch.nn as nn
import torch.optim as optim
from torch.utils.data import DataLoader
import torch.backends.cudnn as cudnn
import random
from lib import p... | [
"trougnouf@gmail.com"
] | trougnouf@gmail.com |
4e95a20641c3e22a0dc6256ea6c700edf8f2f1da | 992e1e5977289158691f38c455374c9527e74dfd | /code/TEST_WEARING.py | e21ec2bf1807700fcc8d60400d97d2dbbd8e3dc6 | [
"MIT"
] | permissive | nlkim0817/WEARING | 12ea828c4e866a0fb666e7644d1b3a040622d4da | 452b91c0c26e9848e1bbd7bd8da262a734a02354 | refs/heads/master | 2021-01-10T06:23:32.174668 | 2016-04-08T06:05:17 | 2016-04-08T06:05:17 | 55,754,188 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,342 | py | import sys
import os
from time import time
import numpy as np
import theano
import theano.tensor as T
from skimage import color
from theano.sandbox.cuda.dnn import dnn_conv
sys.path.append( '..' )
from lib import activations, updates, inits
from lib.vis import color_grid_vis
from lib.ops import batchnorm, conv_cond_con... | [
"nlkim0817@gmail.com"
] | nlkim0817@gmail.com |
296fd2075ce8daacb36ce0905c97a848a4a226d1 | 7be91f37f972235460b1f336bce339bfd95b15a5 | /ch4_1123.py | 78b9e4dd6074abfb9cecee399d27d2aad231b79f | [] | no_license | hskyblue22/Algorithm | 99355de9e4c626ff5127e41ffbc0ea22e835d36c | b5ecf77dcab86104dffc03b6e24c3a0e96549459 | refs/heads/master | 2023-02-01T20:31:24.462894 | 2020-12-08T13:40:26 | 2020-12-08T13:40:26 | 308,323,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,068 | py | # 예제 4-10
# with open('판별대상.txt',"r",encoding='utf8') as file1:
# while True:
# scores = file1.readline()
# if scores =='':
# break
# score = scores.rstrip('\n').split()
# for i in range(1,4):
# score[i] = int(score[i])
# if score[1]+score[2]+score[3]... | [
"hskyblue22@naver.com"
] | hskyblue22@naver.com |
27271a29a712f3796fc34d68a70239a8a06ae221 | 83cefe71ca043749bdab5cd2c5aab9d4ec58a353 | /Code For Data Pre-Processing/filterLabels.py | e7fcdf0f4c7e5d59baf7545b4ff7ab7dc185229d | [] | no_license | OwenHoffend/eecs504_project | e4f8dfc7aa22deb4f1bce90c5c19f91da5477805 | 3e4fe6e22de1ade32147407d472fe4e6741c4518 | refs/heads/main | 2023-04-10T04:18:26.360285 | 2021-04-29T01:05:04 | 2021-04-29T01:05:04 | 353,874,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,311 | py | import os
import json
import shutil, os
def filterLabels():
categories = ['car', 'truck', 'bus']
labelsDirectory = '/Users/keerthanakolisetty/Desktop/DrivingDataSubsetResized/labels/validation'
labelsJsons = os.listdir(labelsDirectory)
l = []
for jsonLabel in labelsJsons:
with open(os.path.join(labelsDirect... | [
"kkoliset@umich.edu"
] | kkoliset@umich.edu |
794d48a187f2769cfa5157c367ec2a5ec053d1f8 | 9bf4215c2c3637b7e0d6c241a01199ae43dfaed3 | /quicksort.py | 643365204043ed8d9c21f8402dcb65431d8f45ea | [] | no_license | nicole-malaquias/ED | b444c79c4863f789e9b3c1f2a1872b1dc6d26f85 | 1bdb64987d00d9fdde472288f966d3bec0b723be | refs/heads/master | 2023-01-04T12:15:47.777560 | 2020-11-07T17:30:22 | 2020-11-07T17:30:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | ##from memory_profiler import profile
##@profile
def quicksort(v):
if len(v) <= 1: return v
pivô = v[0]
iguais = [x for x in v if x == pivô]
menores = [x for x in v if x < pivô]
maiores = [x for x in v if x > pivô]
return quicksort(menores) + iguais + quicksort(maiores)
from time import ti... | [
"noreply@github.com"
] | noreply@github.com |
246b4b6980e36c4d727179b1d10101ca1e22ddce | 4570913fe40b1081f6d826b21a7828549f8ed9e3 | /binary-tree-postorder-traversal/binary-tree-postorder-traversal.py | c05c26ba122853f5660408615733a6c9d312d8e6 | [] | no_license | SrishtiToora/Leetcode-solutions | e49b66a311e9ee16022d88b9b4f4c7946834d20b | e45134a6a8e810ba7edacfec8a40405f11ec4942 | refs/heads/main | 2023-09-03T18:07:59.870127 | 2021-10-25T09:19:57 | 2021-10-25T09:19:57 | 345,296,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def postorderTraversal(self, root: Optional[TreeNode]) -> List[int]:
res=[]
self.helper(root... | [
"77147148+SrishtiToora@users.noreply.github.com"
] | 77147148+SrishtiToora@users.noreply.github.com |
45e6307c967d84dc40b613481fda0a35a11e15fb | 1c485fa3d93f0412c0974615cec24591de86ae4f | /day00/ex05/kata04.py | 2ac705fb944449d55f4112c6e0efabf56548e941 | [] | no_license | Hbuisser/Python_bootcamp | 1995bb5ccdba5f826eb2059129522bc726d8ddd1 | 61e63ab0a9d3a733a16e5118c2f38cf51032c451 | refs/heads/master | 2022-04-17T15:36:18.440713 | 2020-04-18T16:22:20 | 2020-04-18T16:22:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | t = ( 0, 4, 132.42222, 10000, 12345.67)
print("day_{:02d}, ex_{:02d} : {:.2f}, {:.2e}. {:.2e}".format(*t))
#e = ecriture scientifique
| [
"henrybuisseret@gmail.com"
] | henrybuisseret@gmail.com |
a5fe2e779f3cc7699df2e96d111394bbfa33d02c | d71b8b865bce19d9b7b2006c06587753bd6405b1 | /project/guru/migrations/0010_auto_20190518_2207.py | 4650838a8ed0e443b5e702866e74629a15e0d21c | [] | no_license | asialea/guru | 7ba1744d2121710ce21adaf8f82731a0acd22f2a | 145974e94cd40e4fc8f0b577b6b6f9879449e7c6 | refs/heads/master | 2022-12-09T12:25:17.234320 | 2019-06-26T20:40:42 | 2019-06-26T20:40:42 | 171,702,767 | 2 | 0 | null | 2022-12-08T05:16:02 | 2019-02-20T15:54:48 | JavaScript | UTF-8 | Python | false | false | 802 | py | # Generated by Django 2.1.4 on 2019-05-18 22:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('guru', '0009_auto_20190518_2107'),
]
operations = [
migrations.AlterField(
model_name='userskills',
name='level',
... | [
"asialea8@gmail.com"
] | asialea8@gmail.com |
6beefd682d3440dad8cde77bade7e5b1f322cb9e | 46317603c8a595e1dc914e2a3260f52f05dd673d | /utils.py | 978751bb71e4f01e749c0d4b7780946fd9fd8eec | [] | no_license | collector-m/simplest_FasterRcnn_pytorch | b7ea6096eb7133a2e3d34b893f47faab36817cfa | 499fe7c5826e918a3ef711f4089b281d8fa078eb | refs/heads/master | 2022-01-09T03:38:55.318103 | 2019-07-10T11:52:48 | 2019-07-10T11:52:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,471 | py | import numpy as np
import torch
from config import opt
def tonumpy(data):
if isinstance(data, np.ndarray):
return data
if isinstance(data, torch.Tensor):
return data.cpu().numpy()
def totensor(data,):
if isinstance(data, float):
tensor = torch.FloatTensor([data])
if isinstanc... | [
"344927747@qq.com"
] | 344927747@qq.com |
acd12b20bbc981f3628738a07c3616f26bb3484b | b3ea809567d33644e3a781178b8e204c089104e6 | /modules/catalog/migrations/0024_auto_20200813_1817.py | 9fefcf1a41bac489402cfa691c5b6979ad63588c | [] | no_license | chukreev-alexey/pst | 89ca22d2a5792b2585bd0f655f5c1ad021ec2d50 | fc7e511fbdc08d215d511aeb0e55c144986a3ca9 | refs/heads/master | 2023-07-15T12:31:32.369383 | 2021-08-27T08:20:58 | 2021-08-27T08:20:58 | 383,816,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,193 | py | # Generated by Django 2.1.15 on 2020-08-13 13:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('catalog', '0023_category_other_template'),
]
operations = [
migrations.AddField(
model_name='product',
name='seo_de... | [
"whatzalogin@gmail.com"
] | whatzalogin@gmail.com |
3018cb142859c293aff1682a78f7b0ee70274478 | ddf0f14eecc1f11a9e610662169618e20f0124f1 | /venv/lib/python2.7/types.py | 4c31be20ffe0ad736c22221b5a8b58cc6c125bd0 | [] | no_license | jainpranj/bitcoin-network-web-app | 7d3801f4136cc7bb98ac7fb7ffbef78c41fb4e81 | 793ffee09dc5de1b8438c2e8d5473c0561592a61 | refs/heads/master | 2022-06-26T05:16:14.199500 | 2017-05-08T18:56:42 | 2017-05-08T18:56:42 | 86,951,546 | 1 | 0 | null | 2022-06-21T21:15:58 | 2017-04-02T00:20:42 | Python | UTF-8 | Python | false | false | 46 | py | /Users/pranjal/anaconda/lib/python2.7/types.py | [
"jainpranj@gmail.com"
] | jainpranj@gmail.com |
3c0131083a60fb763983a55bf200afeda89e798d | 1e7e3e7ea24642eaf39432cc132a4501f5a076fd | /App/src_code/User_manager.spec | 9f81b55ccfc1fddecf6a7923c2242947607222a0 | [] | no_license | daovanngochoang/Karaoke_app | 7324e0b00e3a786a612753642a77b7b0e3194628 | d574494c1ea8606ce35938871eb966d7bc00f209 | refs/heads/master | 2023-05-29T03:49:24.534426 | 2021-06-11T14:57:13 | 2021-06-11T14:57:13 | 373,468,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['User_manager.py'],
pathex=['C:\\Users\\LENOVO\\Desktop\\App\\dist'],
binaries=[],
datas=[],
hiddenimports=['mysql.connector', 'openpyxl'],
hookspath=[],
runtime_hoo... | [
"hoang.dao23062001@gmail.com"
] | hoang.dao23062001@gmail.com |
761694d396861a5c422b785015b5680bb34787ac | 81f6fd135813f3727576bd5d74acaf0469b53615 | /test/test_variables_api.py | 92de66d295e33ba672eaac9f15c6edcb303a029b | [] | no_license | rlisowski/phrase-python | cb65ded1e80d1985aa95a4403c7aa3f012bd33b4 | cbd6bf580a74140928b7536bb9b466d43276cc29 | refs/heads/master | 2023-06-18T09:24:43.916142 | 2021-07-15T14:21:58 | 2021-07-15T14:21:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,350 | py | # coding: utf-8
"""
Phrase API Reference
The version of the OpenAPI document: 2.0.0
Contact: support@phrase.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import phrase_api
from phrase_api.api.variables_api import VariablesApi # noqa: E... | [
"support@phrase.com"
] | support@phrase.com |
54c19211474a30c647f66b552119c40e1d770108 | 32b1e7ad31be02fd70ea8aec551a60933e5d4946 | /Lab_Assignment_1/Source/part2.py | 0587f9914b3aeccdf6162a429166d3cf33c6bfe0 | [] | no_license | maturivinay/python_lee | 4a026b99ac5f151cfc5552fc9e62e3cbfbcad736 | 2cb223fe331616aba66f7a78acc6c4fe31389746 | refs/heads/master | 2021-07-22T04:05:39.246068 | 2018-12-11T00:31:05 | 2018-12-11T00:31:05 | 146,038,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | #consider first file as from a.txt
#consider second file as from b.txt
a = "a.txt"
b = "b.txt"
# first file list
aWordsList = []
# second file list
bWordsList = []
# Open the File and then split it and read each word
#first file words list in an array
with open(a) as f:
aWordsList = f.read().split()
#second file... | [
"31376403+maturivinay@users.noreply.github.com"
] | 31376403+maturivinay@users.noreply.github.com |
8dcaf89963c84a095a1acb34f71b6907a54146be | 2ad1aebc3fe766812244052cc6222862ae58ef90 | /HW8/dp.py | 784bd584c8041a5cf9e2c735d0ced9c8f8e37f49 | [] | no_license | dosarudaniel/ISP | f65d4737995816ef8cd7635b16677041901b2f50 | 06e1aabda36d692bb5396c4d6b1b807c9ae42e47 | refs/heads/master | 2020-08-17T00:02:41.861949 | 2019-12-06T20:19:13 | 2019-12-06T20:19:13 | 215,575,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,822 | py | import csv
import attr
import numpy
class BudgetDepletedError(Exception):
pass
@attr.s
class Rating:
"""Movie rating."""
user = attr.ib()
movie = attr.ib()
date = attr.ib()
stars = attr.ib()
# Unsure what Rating this? It is a convenient alternative to namedtuple.
class DpQuerySession:
"... | [
"dosarudaniel@gmail.com"
] | dosarudaniel@gmail.com |
775f0397e77495a482e25bb5302915aea8b07942 | c470539bd165a71ca1079fb182113db91d3c5499 | /product_shop/shop_version_two/order.py | 5b2f38262ea835ca7642b8367767ccf7e4b256e5 | [] | no_license | DmitriyLepihin/python_project_study | 371458c5981f8f21f1f72d9907eb96ff11207829 | d83b8cf99888d276dd3e91f7c5738cba0f273c05 | refs/heads/master | 2023-06-01T08:20:19.097063 | 2023-04-28T20:02:08 | 2023-04-28T20:02:08 | 311,388,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | class Order:
order = str
def __init__(self):
self.type_product = str
self.count = int
def create_order(self):
self.order = input().lower().split()
self.type_product = self.order[0]
self.count = self.order[1]
return self.type_product, self.count | [
"dmitrijlepihin1991@gmail.com"
] | dmitrijlepihin1991@gmail.com |
8f1f54f57be3f69955773393466d44e3201a48ae | b7ff33d4383480f386d1953a74e575541c178a27 | /spec/fixtures/handins/adder.py | a5d963c9289f2cfbd749ed2e0cc6d83067a2837b | [
"Apache-2.0"
] | permissive | autolab/Autolab | 6651b97a54a7093ddd43b3139d7d31e8490f2a57 | 286fb0a59da8a6882cd4200897ec56f90891d488 | refs/heads/master | 2023-09-04T05:05:04.657465 | 2023-08-20T02:02:23 | 2023-08-20T02:02:23 | 25,742,807 | 741 | 207 | Apache-2.0 | 2023-09-14T04:28:13 | 2014-10-25T18:58:53 | Ruby | UTF-8 | Python | false | false | 28 | py | def adder(x,y):
return x+y | [
"noreply@github.com"
] | noreply@github.com |
1528d5d514d660e6036cfb9360960d214131501a | cc6b5a1f2610e13393db882455792aba2b060cb4 | /shortener/forms.py | 559cb1fdd6fd96ab0e195ff80caee3fb2091447c | [
"MIT"
] | permissive | jafarzadeh-1998/UrlShortener | be2f23f6a0a0106fc9a2e448417cacfee2782ecd | 71ede2345194eab5b591b0234e46e70884193c2c | refs/heads/master | 2022-12-10T07:05:26.734493 | 2020-08-16T05:27:46 | 2020-08-16T05:27:46 | 287,722,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,365 | py | from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from django import forms
from django.core.exceptions import ValidationError
from django.contrib.auth import authenticate
from . import models
class SignupForm(UserCreationForm):
email = forms.EmailField(required=Tru... | [
"a.jafarzadeh1998@gmail.com"
] | a.jafarzadeh1998@gmail.com |
61131eb081dbad41413ba3f86ddd8c75cc5f0a71 | 88a23e6993946bd7e66de9fa4a6901b86608c66b | /carDetector.py | 5340bf1a6973b600ea87a0664528938d86804f7e | [] | no_license | JakubRN/rawfiles | 0fa73ac7490ea2b5acdcfb54de1847d973032cad | bf8a444e28021fc8a61e82c482953257b7e9bd30 | refs/heads/master | 2021-06-11T08:42:36.946251 | 2021-05-18T19:36:22 | 2021-05-18T19:36:22 | 187,994,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | import cv2
def readLicensePlate(img):
# capture frames from a video
cap = cv2.VideoCapture('video.avi')
# Trained XML classifiers describes some features of some object we want to detect
car_cascade = cv2.CascadeClassifier('cars.xml')
# loop runs if capturing has been initialized.
while True:
... | [
"jakub1niedzwiedzki@gmail.com"
] | jakub1niedzwiedzki@gmail.com |
52795c1e22fe84897402fc0420080b2919718e89 | 8f074f481b345c09908c0adca56d9f7a793223ae | /tools/pyRootExample_trackHist.py | 1584539d8522fac398cf23ea8656fb6a6416598c | [] | no_license | BrieucF/bTag-trackSel-optimisation | a2b43714142208f5e44a33350f5e6a1f183a0c18 | 2a9b284ad226685051ed52111782ea921e4a7825 | refs/heads/master | 2016-09-01T05:06:32.839669 | 2016-04-19T12:33:31 | 2016-04-19T12:33:31 | 36,143,712 | 0 | 2 | null | 2016-04-19T12:33:31 | 2015-05-23T21:40:45 | Python | UTF-8 | Python | false | false | 3,592 | py | import ROOT
from drawCanvas import *
import copy
from array import array
import math
def isSelectedTrack(HitPix=2, HitAll=8, IP2D=0.2, Pt=1, Chi2=5, dz=17, Length=5, Dist=0.07): #default values are the value requested for selectedTrack in bTag code
return HitPix >= 2 and HitAll >= 8 and abs(IP2D) < 0.2 and Pt > ... | [
"brieucfrancois@hotmail.com"
] | brieucfrancois@hotmail.com |
4f28d7d59dc1d9f4034d92f4d006d6ba9610d3b3 | 96a0421d3bf70a808418970165660e0c3340c8b0 | /Server/integrations/basic.multi_auth_conf/BasicMultiAuthConfExternalAuthenticator.py | d45850996174e0708bf01334d7a32c6c5617f248 | [
"MIT"
] | permissive | VilledeMontreal/oxAuth | 47af612489f641cf3cc2a383598d457098397f05 | 113fa3e8a3b5b99dd8e4bd9a97cd5575cc97fb9e | refs/heads/master | 2023-01-11T03:45:01.944184 | 2019-11-07T14:10:58 | 2019-11-07T14:10:58 | 220,313,182 | 0 | 0 | MIT | 2023-01-02T22:02:10 | 2019-11-07T19:26:50 | null | UTF-8 | Python | false | false | 11,801 | py | # oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
# Copyright (c) 2016, Gluu
#
# Author: Yuriy Movchan
#
from org.gluu.service.cdi.util import CdiUtil
from org.gluu.oxauth.security import Identity
from org.gluu.model.custom.script.type.auth import PersonAuthentic... | [
"Yuriy.Movchan@gmail.com"
] | Yuriy.Movchan@gmail.com |
885fcdb5b706b531780cc9c10ded02a70b814362 | beb9b4ecd1204225881141adcc7d5279519f34ba | /app/config.py | e62a9469be06f5dfaad84d6d23c34c147174bb66 | [] | no_license | Kludex/fastapi-arq-redis-postgresql | 485c92be028a3ce90e7845125201a1f21c9ab811 | c08fb7e6db6d83574a3e10736f3d9360908ee556 | refs/heads/main | 2023-02-28T16:43:14.715064 | 2021-02-14T00:41:25 | 2021-02-14T00:42:53 | 338,165,596 | 0 | 0 | null | 2021-02-14T00:42:53 | 2021-02-11T22:09:48 | null | UTF-8 | Python | false | false | 810 | py | from typing import Any, Dict, Optional
from pydantic import BaseSettings, validator
from pydantic.networks import PostgresDsn
class Settings(BaseSettings):
PROJECT_NAME: str
POSTGRES_SERVER: str
POSTGRES_USER: str
POSTGRES_PASSWORD: str
POSTGRES_DB: str
POSTGRES_URI: Optional[PostgresDsn] = ... | [
"marcelotryle@gmail.com"
] | marcelotryle@gmail.com |
557f4e24a91e5350402f984ad9661318626ba2f9 | 1990b34250caaa7c0570773af55a4c077a534dcb | /Courses/OOP/3_week/pattern_observer.py | 769a643452a8e744a0756d90f9fe8c99daa89fcb | [] | no_license | Muilton/sandbox | c15c0cea899a91652d76c0bcadeaa2a9120b5633 | ee618848a3a3f0b39c7959fc2da36f5761000311 | refs/heads/master | 2020-04-27T23:56:13.326107 | 2020-02-28T06:21:57 | 2020-02-28T06:21:57 | 174,797,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | from abc import ABC, abstractmethod
class Engine:
pass
class ObservableEngine(Engine):
def __init__(self):
self.subscribers = set()
def subscribe(self, subscriber):
self.subscribers.add(subscriber)
def unsubscribe(self, subscriber):
self.subscribers.remove(subscriber)
... | [
"igorpus93@gmail.com"
] | igorpus93@gmail.com |
f5f4e340a7e021d7d00afccd77e67b2548864c7f | 5664250ab72ed62e24815664924430d7e70d6874 | /app/view/product.py | c1fce7c42e20060efcc361666ae957f43b85d630 | [] | no_license | BubbleK2m/PyeonSooni-Server | 0313337e2132389dd2cc2563bad359041c2c882b | c21c71b1fc55fda0ba74947fa13e06fcfe7a61c1 | refs/heads/master | 2022-06-14T12:02:00.009176 | 2018-06-29T11:19:19 | 2018-06-29T11:19:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py | from flask import Blueprint, request
from flask_restful import Api, Resource
from flasgger import swag_from
from app.doc.product import PRODUCT_GET_SPEC
from app.view.support import api_helper, response_helper
from app.model.support import mongo_helper
api = Api(Blueprint('product-api', __name__))
@api.resource('/p... | [
"gdh0608@naver.com"
] | gdh0608@naver.com |
343433fa54a55d40a00b4f1cfad31252e3f8a579 | 6fafefe20c1ce5936677cf40e0b77becfe91323d | /KfSaver/SpecialEffect/FiveEffect/res-converter.py | 695bcf831e9863da9772aed56a206d931e5c9e70 | [] | no_license | kaifengz/candy | e019d821f93b161226d08315c1c256dc2c97f4a3 | b5c45f2c7c90f2b0dc999912ae993708b099679c | refs/heads/master | 2021-01-24T16:10:25.066386 | 2015-09-30T16:51:45 | 2015-10-04T08:04:26 | 27,036,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,056 | py |
import re
def converter(verbose_file_name, tidy_file_name):
vfile = open(verbose_file_name, "r")
tfile = open(tidy_file_name, "w")
for line in vfile:
line = re.compile(r"#.*$").sub("", line)
line = re.compile(r"[ \t\r\n]*", re.S).sub("", line)
if line.upper() == "END":
tfile.write("\n")
elif ... | [
"kaifengz@outlook.com"
] | kaifengz@outlook.com |
aa94f2a5beb0b786f90536824232dccead006413 | 53dd5d2cfb79edc87f6c606bbfb7d0bedcf6da61 | /.history/EMR/zhzd_3_20190605095859.py | fff25287104a8fd3c22d7bf52709955151761a05 | [] | no_license | cyc19950621/python | 4add54894dc81187211aa8d45e5115903b69a182 | d184b83e73334a37d413306d3694e14a19580cb0 | refs/heads/master | 2020-04-11T20:39:34.641303 | 2019-07-02T12:54:49 | 2019-07-02T12:54:49 | 162,078,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,295 | py | import time
import math
import os
import sys
import os, os.path,shutil
import codecs
import EMRdef
import re
import pandas as pd
emrtxts = EMRdef.txttq(u'D:\DeepLearning ER\EHRzhzd')#txt目录提取
dis = open(r'C:\Users\Administrator\Desktop\ICD-10.txt',errors='ignore')
ds=dis.readlines()
ds_cs = []
for line in ds:
line ... | [
"1044801968@qq.com"
] | 1044801968@qq.com |
d8de9d970574f81cfd2bd27796c459f27aefb242 | dbb88121a0f8dd1217428be7d0f8dd4ce1f588ec | /omcor/items/admin.py | 0daa0285a3fffeecb3d19c9d2c5bea79390f2c0c | [] | no_license | elektrodx/omcor-beta-v01 | 91e6c7557e18d0e9bacf5c9c4ef09dcace9f6444 | 78ed4244bd4a66a1e54762cc9abd5bd1b9a837e2 | refs/heads/master | 2020-12-19T19:20:35.817966 | 2016-10-26T02:37:26 | 2016-10-26T02:37:26 | 21,919,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | from django.contrib import admin
from .models import *
@admin.register(Item)
class ItemAdmin(admin.ModelAdmin):
list_display = ('description', 'brand', 'code', 'picture', 'price', 'weight')
| [
"elektrodx@gmail.com"
] | elektrodx@gmail.com |
7833d7797a6b5113083a1ad533689b2df420ee3a | 237db66d8eca509d453686749f1f07c00972ce31 | /2d_arrays/islandPerimeter.py | 08afb6e12396422af81beb7dcb64510d15900ef0 | [] | no_license | w7089/python_short_solutions | bb953a7608153af49e35f731a6b9dcaba7306834 | bec0c16f7d099fede8cb2a5d26ec8408a29f69d6 | refs/heads/main | 2023-08-04T01:48:23.607117 | 2021-10-08T08:46:09 | 2021-10-08T08:46:09 | 408,488,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | # need to count number of neighbouring different cells in rows and columns
import operator
# oneliner
def islandPerimeterOneLine(grid):
return sum(sum(map(operator.ne, [0] + row, row + [0])) for row in grid + list(map(list, zip(grid))))
# clarifying multiliners
def num_of_diff_neighbour_cells_in_a_row(row):
... | [
"warrior7089@gmail.com"
] | warrior7089@gmail.com |
36e76dcb3732230740ae113deefc19b4e2a6d793 | fac4c2fa64e6a22d0a80eec7b65c93d7a6236b7f | /original-modules/text-to-text-transfer-transformer-master/t5/data/utils.py | 99bc9b12ed3388a6db2db6e2ca7b57fef107517b | [
"Apache-2.0"
] | permissive | zouning68/nlp-transfer-learning | ec2b9e91f4b3bb9d77bf88dd78282f6ff5aaa4fd | e9b1544b55905ceb2235471f036abc1d7c4160db | refs/heads/master | 2023-04-13T18:25:22.206475 | 2020-01-15T02:36:19 | 2020-01-15T02:36:19 | 228,514,893 | 2 | 0 | Apache-2.0 | 2023-03-24T23:36:35 | 2019-12-17T02:21:15 | Python | UTF-8 | Python | false | false | 38,608 | py | # Copyright 2019 The T5 Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | [
"noreply@github.com"
] | noreply@github.com |
f49632f690748cb93ebae4d884c337c97c6298ca | 15ba1cb0e213a61591ebe08ab0767cb01b5d84d5 | /profile/migrations/0006_auto_20190316_0821.py | 9a6099a97e357d248412a0bb16a4ab7246e6d5d0 | [] | no_license | v-sht/project_web_avito | a7e4c8379422fc669d89864af4ba6b9f36b5f4b2 | 17e695ead4ca73abbfe3c1741a856687faaa4a24 | refs/heads/master | 2020-04-29T07:41:51.721835 | 2019-03-16T09:57:28 | 2019-03-16T09:57:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | # Generated by Django 2.1.7 on 2019-03-16 08:21
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('profile', '0005_auto_20190315_1658'),
]
operations = [
migrations.AlterField(
model_name='profi... | [
"aliaska-92@mail.ru"
] | aliaska-92@mail.ru |
c11e6a346845ee4977c7c6b9fee0033790a44c21 | 5bc6b927d3960c9f79d680a775f030863b803587 | /Q 2.py | 747866701bc96bfad023a47a97cf8546fbefb66a | [] | no_license | Dalvi1997/Assignment-no-6 | 240b4b7a97e308e8a105c29d754f341bc3c51d1c | 98c0716beb33b069e13cb5c190e61f9e19ceb50e | refs/heads/master | 2020-03-28T17:51:53.425448 | 2018-09-14T18:57:55 | 2018-09-14T18:57:55 | 148,830,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | d1={'Python':3,'Java':6,'Perl':2}
d2={'C++':5,'AngularJs':3,'Python':5}
d={}
d['Python']=d1['Python']+d2['Python']
d1.update(d)
for each in d1:
if each not in d2:
d2.update(d1)
print(d2)
| [
"noreply@github.com"
] | noreply@github.com |
126540682323b8920233618c89b5a178cf80cb7d | bccd661c26d037afc7b17f8a51e587ee5b2a646d | /src/rit/core/security/bruteforce/decorators.py | 44f19fd056d65030e892012856b2e2844540b85a | [] | no_license | sergeyglazyrindev/ritcore | d40ffa071054d54bb85e297d628925aa537c58fe | dc0707421c4ff80be969c4d001c54bf9de0bd20b | refs/heads/master | 2021-01-21T13:21:06.780960 | 2016-05-14T19:36:09 | 2016-05-14T19:36:09 | 46,940,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,078 | py | import json
from .triggers import RudenessTrigger
from .registry import BruteForceClient
from wheezy.http import HTTPResponse
from restea.errors import ForbiddenError
ERROR_STATUS_CODE = 403
def bruteforce_protected_restea(resource, threshold, period, cooldown, *dec_args,
threshold_in... | [
"sergey.glazyrin.dev@gmail.com"
] | sergey.glazyrin.dev@gmail.com |
f25a62b621331ffbb01cb7d174dcc64601a12e56 | 032a1ad3c94e1126729417a16e2a95743d121244 | /cell_fitting/optimization/evaluation/plot_sine_stimulus/when_doublet_start.py | d9a7d6b7ffa9710e6429e0347cd53e945c59af5e | [] | no_license | cafischer/cell_fitting | 0fd928f5ae59488e12c77648c2e6227c1911d0e9 | 75a81987e1b455f43b5abdc8a9baf6b8f863bee2 | refs/heads/master | 2021-01-23T19:27:30.635173 | 2019-09-14T08:46:57 | 2019-09-14T08:46:57 | 44,301,986 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,321 | py | from __future__ import division
import matplotlib.pyplot as pl
from matplotlib.patches import Rectangle
from matplotlib.colors import Normalize
import numpy as np
import os
from nrn_wrapper import Cell
from cell_fitting.optimization.evaluation.plot_sine_stimulus import simulate_sine_stimulus
from cell_characteristics.a... | [
"coralinefischer@gmail.com"
] | coralinefischer@gmail.com |
673e7667066dc50650cfcf844997ca18b98537de | 4ba18540bfd8c523fe39bbe7d6c8fa29d4ec0947 | /atlas/testing/auth_acceptance/config.py | 8cd7cc13ffa195f811cd91010896c159bec16db3 | [
"BSD-3-Clause",
"MIT",
"CC0-1.0",
"Apache-2.0",
"BSD-2-Clause",
"MPL-2.0"
] | permissive | yottabytt/atlas | c9d8ef45a0921c9f46d3ed94d42342f11488a85e | b040e574fbc64c833039b003f8a90345dd98e0eb | refs/heads/master | 2022-10-14T11:12:12.311137 | 2020-06-13T13:19:35 | 2020-06-13T13:19:35 | 272,008,756 | 0 | 0 | Apache-2.0 | 2020-06-13T12:55:29 | 2020-06-13T12:55:28 | null | UTF-8 | Python | false | false | 1,381 | py |
# separates test runs
from uuid import uuid4
TEST_UUID = uuid4()
def set_foundations_home():
import os
os.environ["FOUNDATIONS_HOME"] = os.getcwd() + "/auth_acceptance/foundations_home"
os.environ["FOUNDATIONS_COMMAND_LINE"] = "True"
def _flattened_config_walk():
import os
import os.path as p... | [
"mislam@squareup.com"
] | mislam@squareup.com |
21aeb00a6d1844d6d7793bdc9d0a99c697d7e71a | 82f902d013a323d0cf1123b089a298fd502cd6f5 | /liangyun_app/migrations/0001_initial.py | f40cea32bf73c4c51090a3baa7c32deaff297377 | [] | no_license | SmallGaoX/liangyun | b976925ec57c5b08cb69c93517b60d664de7f68b | 4231d412228b177fb6d3a40dda33c843d77e117d | refs/heads/master | 2020-04-13T01:04:28.212958 | 2018-12-23T04:55:26 | 2018-12-23T04:55:26 | 162,863,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,636 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2018-12-17 09:21
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Machi... | [
"wadxf@live.com"
] | wadxf@live.com |
323deeb9e291fa7d9096c4ac9e8f776a652ef794 | f9569f06d6df7c7413758d8157837ab4e46f29bc | /labs/08/tagger_cle_cnn.py | 480957c4a503c62ac7288a5a6de39218369978c0 | [] | no_license | Z4HRA-S/npfl114 | 2f907b9e4bf8cf9869677ebd52c4e59617240515 | 37d45387c919a4b5a57d1d447df457de5aea14e1 | refs/heads/master | 2023-03-03T07:35:23.167567 | 2021-02-13T07:02:24 | 2021-02-13T07:02:24 | 262,737,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,909 | py | #!/usr/bin/env python3
import argparse
import datetime
import os
import re
import numpy as np
import tensorflow as tf
from morpho_dataset import MorphoDataset
class Network:
def __init__(self, args, num_words, num_tags, num_chars):
# TODO(we): Implement a one-layer RNN network. The input
# `word_... | [
"milan@strakovi.com"
] | milan@strakovi.com |
c07b7f285ec80bfd99c7e0ae25d8659d5ed00557 | 6888a176c8fb2e84b6273ebd0b1bccf5cd2e7b45 | /section2/max-temperatures.py | 9c4f7e088180bbc72d02125f8c97221600dbff03 | [] | no_license | jjauzion/spark_course | 1a81911e92fa688705a3383870aaa149cc0389dd | e1c0837a57168e56b7710337bb4d6264bbaa48b4 | refs/heads/master | 2020-03-28T10:47:25.526724 | 2018-09-14T08:17:16 | 2018-09-14T08:17:16 | 148,145,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | from pyspark import SparkConf, SparkContext
conf = SparkConf().setMaster("local").setAppName("MaxTemperatures")
sc = SparkContext(conf = conf)
def parseLine(line):
fields = line.split(',')
stationID = fields[0]
entryType = fields[2]
temperature = float(fields[3]) * 0.1 * (9.0 / 5.0) + 32.0
return ... | [
"jeremy.jauzion@gmail.com"
] | jeremy.jauzion@gmail.com |
1b97fb9779364f59470a8939371eab9f2991b786 | 7a9f06e180b5736d1b77ad4b1ebd5bf0386c6131 | /mnist/model.py | b38560c2bcabf165f25de34e1ec02c79d28c4253 | [] | no_license | TestBotHub/DemoVision | 152bc06bffb00c24f0957b0a11f0057b1437382e | fb8ddb6288aecd5317ef09b88cc4a752ee77b746 | refs/heads/master | 2020-12-30T23:36:05.442030 | 2017-03-31T08:32:41 | 2017-03-31T08:32:41 | 86,608,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,532 | py | import tensorflow as tf
# Multilayer Convolutional Network
def convolutional(x, keep_prob):
def conv2d(x, W):
return tf.nn.conv2d(x, W, strides=[1, 1, 1, 1], padding='SAME')
def max_pool_2x2(x):
return tf.nn.max_pool(x, ksize=[1, 2, 2, 1], strides=[1, 2, 2, 1], padding='SAME')
def weight... | [
"hashmup@gmail.com"
] | hashmup@gmail.com |
df74c510b2fa1f4bec7ac08c8ae445e9eb2ce365 | f259ca399ab33b5c2e66ae07921711ea5917ac9e | /pytorch/sphere20a.py | d4ce73637194c4236b20b4eb2bb1a4d6717c6d89 | [] | no_license | jizhuoran/HyperTea_Maker | 9a7930e1d6af995c8fdb9a15354eea5fc29f0806 | 2c3f8dfcb699495093165cd986eebedfb17a2433 | refs/heads/master | 2020-04-22T19:32:39.385611 | 2019-04-14T15:12:06 | 2019-04-14T15:12:48 | 170,610,900 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,046 | py | import torch.nn as nn
import torch
class sphere20a(nn.Module):
def __init__(self,classnum=10574,feature=False):
super(sphere20a, self).__init__()
self.classnum = classnum
self.feature = feature
#input = B*3*112*96
self.conv1_1 = nn.Conv2d(3,64,3,2,1) #=>B*64*56*48
s... | [
"jizr@connect.hku.hk"
] | jizr@connect.hku.hk |
ae693c82fb3f3e458efb2219390b2075276babc2 | 2f61740ce09e9f48d386ccc2dcc00b53cf769633 | /locators/personal_data_page_locators.py | c403f515f5a9bae388f724cb7e989cde68b22528 | [
"Apache-2.0"
] | permissive | KKashpovski/test_moodle_project | a4e50aee0801a19759d537251bec9cf4c911d575 | 8cd0a53fffe797c47d3b14cc3300c610467432e3 | refs/heads/master | 2023-08-21T18:49:15.734378 | 2021-09-29T14:36:49 | 2021-09-29T14:36:49 | 400,074,980 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,499 | py | """Локаторы страницы добавления/обновления личной информации пользователя."""
from selenium.webdriver.common.by import By
class PersonalDataPageLocators:
DOWNLOAD_FILE_SECTION = (
By.CSS_SELECTOR,
"div:nth-of-type(4) > .nav-link > .fp-repo-name",
)
EDIT_INFO = (By.CSS_SELECTOR, "a[href*=... | [
"kudimovaks@yandex.ru"
] | kudimovaks@yandex.ru |
27bcd31393028be373e64ee2a6894acebc03609b | 8b2849cb4d713da703320b4a034c7c2cd54ec0cb | /dataloaders/PairwiseImg_test.py | a929494af4f3ed8edb33898b1e9cbce63dd1f094 | [] | no_license | carrierlxk/AGNN | abd60dce4fbfb7b03f7251eb5a780ec4ce3f259b | adf9e9a56cece9cb1b98057568b771b5be2c3edd | refs/heads/master | 2022-09-15T00:37:03.070459 | 2022-08-27T03:03:31 | 2022-08-27T03:03:31 | 201,976,331 | 216 | 29 | null | null | null | null | UTF-8 | Python | false | false | 7,947 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 12 11:39:54 2018
@author: carri
"""
# for testing case
from __future__ import division
import os
import numpy as np
import cv2
from scipy.misc import imresize
import scipy.misc
import random
from dataloaders.helpers import *
from torch.utils.data impor... | [
"noreply@github.com"
] | noreply@github.com |
207279afe508604f94773dba1f05f89fb4da9e84 | 0ba9ec17646bf6ff97002744ffcf36d8cea74a18 | /it_english/apps.py | 7b977914457b37050a246d329e6b15e8287dfcb4 | [] | no_license | Rinasham/IT_English | 9b477069080630a7a3e36ab334b346228069c40a | 0aefdcff358f29f52a1f0c41c8c44b78432a699c | refs/heads/main | 2023-08-04T19:50:55.437405 | 2021-09-15T09:49:37 | 2021-09-15T09:49:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | from django.apps import AppConfig
class ItEnglishConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'it_english'
| [
"rinasham@gmail.com"
] | rinasham@gmail.com |
fbcaf350934baffe4edce18080d24c5ba9da5ee2 | 9c3756a2abf3e6ff2dde6c5574bd398e4d2cbc3d | /example/config.py | 7a485fa7f0d28e504170b62b237f504affe350f6 | [] | no_license | speakin/sdk_py | 327c5a2d57164f6f61fad5df66ea35bc1f487939 | 6cf64c6e19410ee2c8a9b45772702fef1af47bd1 | refs/heads/master | 2021-10-09T18:31:56.241287 | 2018-11-27T12:37:09 | 2018-11-27T12:37:09 | 108,108,162 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | config = {
"app": {
"name": "app-test",
"accessKey": "xxxxxxxxx",
"secretKey": "xxxxxxxxx",
},
"bucket": {
"name": "bucket-test",
"accessKey": "xxxxxxxxx",
"secretKey": "xxxxxxxx",
},
"unionID": "py_user1",
"registerFiles": ["../testdata/text/u1/01... | [
"lixianliang@speakin.mobi"
] | lixianliang@speakin.mobi |
95475efe91dbe6db671d398b1293903de8196830 | ebbb2730a4ec20ea3797434d08443c4b167a95b7 | /unitmanagement/templatetags/um_tags.py | 1185ae5f10ff8bc7821fdb5eb10c8205960b8b24 | [] | no_license | mikee1897/K9_MIS | 034b58721c2355d0cafb67d33544335a7fa69d15 | 01e88086450ff9141fb91d1fe757a09be7e195e0 | refs/heads/master | 2020-10-02T10:24:39.363187 | 2019-12-18T14:33:15 | 2019-12-18T14:33:15 | 227,756,293 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,795 | py | from django import template
# from planningandacquiring.models import Budget_allocation, Budget_medicine, Budget_equipment, Budget_food, Budget_vaccine, Budget_vet_supply
from inventory.models import Medicine, Miscellaneous, Food
from unitmanagement.forms import SelectUnitsForm
from deployment.models import Location, T... | [
"33421122+mikee1897@users.noreply.github.com"
] | 33421122+mikee1897@users.noreply.github.com |
a788991781c8eb93206f4011e0f1ebfe13e84578 | c655d2080004b9abfab0844f183e1b88c8fc7f17 | /venv/classes_and_methods.py | 07b2ef7a1bd6f7dae30dc46c6585d0ac7ec14b7b | [] | no_license | AHakeemSG/Data21Notes | 34d187193cc9f4be034e726ec5f6e4ca1215f6e1 | c11f3f705eb4c6d5e3ba8879f24494290a900c2b | refs/heads/main | 2023-04-18T07:18:57.390247 | 2021-05-05T19:10:52 | 2021-05-05T19:10:52 | 359,810,267 | 0 | 0 | null | 2021-04-28T14:12:07 | 2021-04-20T12:37:28 | Python | UTF-8 | Python | false | false | 4,145 | py | # Naming conventions for classes, use CamelCase
class Dog:
animal_kind = "canine"
def bark(self): # Method - this method is referring to he class of Dog
return "woof"
# Example class
class AmazingDog:
animal_kind = "canine"
def bark(self):
print(self.animal_kind) # If we create a c... | [
"82883718+AHakeemSG@users.noreply.github.com"
] | 82883718+AHakeemSG@users.noreply.github.com |
c8209e442322891c44866c9f56cfe2ff522e65ac | c2d2e32b421c57054821d264d46137d09fb85349 | /ekopsychologia/apps/cms/migrations/0009_site_url.py | 44b505603bcbb5740e0af416357c68f844ce16a2 | [] | no_license | JaPod993/ekopsychologia | dd2a993b6b33155de0f18ceb9d610195b97cef47 | 983942717f060c09288629c9d15bfb844eb1cebf | refs/heads/master | 2021-07-15T14:39:31.318933 | 2017-07-12T12:27:03 | 2017-07-12T12:27:03 | 106,857,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-05-15 10:23
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cms', '0008_founder_site'),
]
operations = [
migrations.AddField(
... | [
"j.pod.12@gmail.com"
] | j.pod.12@gmail.com |
526b576c3d31d0bb6ad21afde9b99a84a445a48d | 546475e12d7186579b3b433a38c504fc76e3e301 | /library_mgnt/library_mgnt/doctype/library_membership/library_membership.py | 54d41978d889f420af61c105bcea1e91123f0dc2 | [
"MIT"
] | permissive | patilruturaj/Library-Management | 15d516756c6e793a1e438848bc7b0885ec936a4a | 52c1d5a6b8a70fb6f2c124297f45ae1aeef4ff7b | refs/heads/master | 2023-04-18T04:13:01.703451 | 2021-05-04T11:47:26 | 2021-05-04T11:47:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2021, Monika Patil and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class LibraryMembership(Document):
def before_submit(self):
exists = frappe.db.exists(
"L... | [
"monika.p@indictrans.in"
] | monika.p@indictrans.in |
d0c9931e691e704b6c556340c506cac64843ae85 | 08966e05b74e20774ed9cdd4501e843fab0a3a86 | /capacitacion/views.py | 9cc93845a726d801555587f8fe78a07b320dc903 | [] | no_license | luisfarfan/capacitacion_v2 | 6a650ea3119ad7da65f26f146c7e5d9d5139e76d | 802ef6b4c1101153a1c77e1bdf41bfe1966f4bff | refs/heads/master | 2020-06-30T20:14:52.686006 | 2016-12-10T00:05:01 | 2016-12-10T00:05:01 | 74,354,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,455 | py | from rest_framework.views import APIView
from django.db.models import Count, Value
from django.http import JsonResponse
from django.http import HttpResponse
from django.template import loader
from serializer import *
from rest_framework import generics
from django.views.decorators.csrf import csrf_exempt
from django.db... | [
"lucho.farfan9@gmail.com"
] | lucho.farfan9@gmail.com |
99b50c770b86c9ae1e986661c12067c116f3cfb6 | 64028d04541079be6066f5adf4f5195ccf6d9cd5 | /com/obs/models/routing_rule.py | 4d06a83bfcf0873c59f010e52e702364224bc3b4 | [] | no_license | rho-data/otc-sdk-python | db88b25edd50fa6027f55a652ea912e24abcdb19 | 76b241da2fb67fc38859334f3911a93c33abd240 | refs/heads/master | 2022-04-21T14:50:55.661194 | 2020-04-22T13:54:00 | 2020-04-22T13:54:00 | 252,749,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
from com.obs.models.base_model import BaseModel
from com.obs.models.condition import Condition
from com.obs.models.redirect import Redirect
class RoutingRule(BaseModel):
allowedAttr = {'condition': Condition, 'redirect': Redirect}
def __init__(self, condition=None, ... | [
"milovanovic@rho-data.com"
] | milovanovic@rho-data.com |
806b0e0c698828f66481824d9027a7fa27c929b3 | 0b67c2df6a3bace817f9e09381174d884b55f33f | /tests/test_page_loader.py | 3dad814d2d2e86421d42df2109d285f362764194 | [] | no_license | sinist3rr/python-project-lvl3 | ca7594d7a3f9a39fe94d59fb90f93bbd552e5cf3 | 09329a650a923e876a849cf3fc1142bd7a15e16c | refs/heads/main | 2023-04-14T04:06:10.351430 | 2021-04-23T08:57:26 | 2021-04-23T08:57:26 | 340,290,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,225 | py | # -*- coding:utf-8 -*-
"""Various page_loader tests."""
import pytest
import os
import glob
import filecmp
import requests
import page_loader
from bs4 import BeautifulSoup
from page_loader.errors import FileError, NetworkError
@pytest.mark.parametrize(
'url,result',
[
(
'http://example.c... | [
"darkfloki@protonmail.com"
] | darkfloki@protonmail.com |
5167b35658d8683dcdc87706526961fa91545802 | 394cdd83a931b7b057f3ac5e3ec1cc25ef642e51 | /final_project/task_5_tester.py | 4f79088c21530e53b67143d8d9fd1c5b87576ad0 | [] | no_license | henryfw/ud120-projects | 2278665bded42155949247f0a555a030ffebae26 | baf7572e171b4de4a0b8fc06edccf1e3ad930959 | refs/heads/master | 2021-01-21T09:49:51.316606 | 2015-06-29T02:24:55 | 2015-06-29T02:24:55 | 37,779,381 | 0 | 0 | null | 2015-06-20T17:45:31 | 2015-06-20T17:45:31 | null | UTF-8 | Python | false | false | 2,612 | py | # this file has the same test_classifier function as tester.py, but returns the results
import pickle
import sys
from sklearn.metrics import precision_score
from sklearn.metrics import recall_score
from sklearn.cross_validation import StratifiedShuffleSplit
sys.path.append("../tools/")
from feature_format import feat... | [
"henryfw@gmail.com"
] | henryfw@gmail.com |
911cc2e89ede274ca301268c47572cdabee550d2 | 05b5ff5b41ac9399b759dcedbb3b055d87443b03 | /dataflowkit/datasets/S3.py | 3bb37ee0896380d366b9ddbd74920d9a721b80b9 | [] | no_license | AG4GitHub/dataflowkit | 8ef8e2f5070bb7f7c5b16baa165ac06db4b7a93f | 6290a1825591a4ee102d2e6e1a0cf8bd152650b4 | refs/heads/master | 2020-03-19T23:19:55.932197 | 2017-05-17T06:29:16 | 2017-05-17T06:29:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,244 | py | import tempfile
import pickle
from boto import s3
import os
from dataflowkit.datasets.BaseDataset import BaseDataset
class S3(BaseDataset):
is_checkpoint = True
def __init__(self, bucket, path):
BaseDataset.__init__(self)
self._bucket = bucket
self._path = path
self._data =... | [
"icarus.so.ch@gmail.com"
] | icarus.so.ch@gmail.com |
4a1cdd3e56c6eb1cae0c422e4e936a409ec9e8d0 | 096f97081182dab691a8c0e58d2d97a10080993a | /mysite/manage.py | 23830df5857b42ad6db71a15cc93248d900d8602 | [] | no_license | Robert-Vaccaro/PythonProjects | 6a4717a9ffb6ffbd537be67f2e9f7aaec04bf17a | 40127c06e3e49743b7003c9463af4be0e6fa21cc | refs/heads/master | 2020-04-25T18:13:09.270537 | 2019-06-28T04:17:50 | 2019-06-28T04:17:50 | 172,976,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py |
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it'... | [
"noreply@github.com"
] | noreply@github.com |
ead60febeb04e387de8528926f63dddb77c1025d | d27b030ce654d523b266821080acb246d71a85af | /PDB/clrender.py | b5283cb280bcb2552552a4dac8d1945ddc356746 | [] | no_license | amiller/graphicsii | 9b6d638591a8df3267865a1be83cb1591586f662 | da6cc6347d2b1f344056b71358a4b5b8efabdb77 | refs/heads/master | 2016-09-03T06:23:42.297039 | 2011-05-02T02:39:15 | 2011-05-02T02:39:15 | 1,689,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,923 | py | import pyglet.gl
from OpenGL.GL import *
from OpenGL.GLU import *
from molecule import Molecule
import pyopencl as cl
import numpy as np
def print_info(obj, info_cls):
for info_name in sorted(dir(info_cls)):
if not info_name.startswith("_") and info_name != "to_string":
info = getattr(info_cls... | [
"amiller@dappervision.com"
] | amiller@dappervision.com |
d76e3fe71205c5efbcddf98d6594c78ecf8f499f | 216239fe3d90850146441144c66fb96586a36fb4 | /predavanje-01/.venv/bin/pyreverse | a4e173d3a85b119fa9086552b6821589b79a4c18 | [] | no_license | Jovan-Popovic/django_developers_lab | af6b824c7be872e9c955dd50c6513239fbed0614 | c8df60d897ed8d6af609eaf5ba94e974b2706c6b | refs/heads/main | 2023-02-27T17:42:42.453523 | 2021-02-04T18:06:41 | 2021-02-04T18:06:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | #!/home/django/Documents/django-kurs/predavanje-01/.venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pyreverse
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_pyreverse())
| [
"kadicnikola3@gmail.com"
] | kadicnikola3@gmail.com | |
fd8f3643a7bf5f1b7d77d5a64cc1a7306e731334 | 4d15e449d3de6f402ce878a391de1ed38145bb3a | /section_04_03_03.py | 8a44da44084e68f0bb3c3313fa7cc41893a23a1c | [] | no_license | dustanlevenstein/StatisticalMachineLearning | cbff6d72d664245bc5c33167b646d97b07d77162 | d699022942137a30e58f9aa17d9bbbcae51df123 | refs/heads/master | 2022-04-20T18:00:43.127153 | 2020-04-20T23:14:19 | 2020-04-20T23:14:19 | 254,761,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,393 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Apr 10 19:43:50 2020
@author: dustan
"""
import warnings
warnings.filterwarnings("ignore")
##
import numpy as np
import matplotlib.pyplot as plt
import plot_utils
import seaborn as sns # nice color
np.random.seed(42)
colors = sns.color_palette()
n_s... | [
"dlevenstein@gmail.com"
] | dlevenstein@gmail.com |
dcacf702e7e0cd23bee4ef0252880105c8f5bce7 | 40022262f666bd13232e25c3aab382201eea480e | /restaurants/migrations/0004_auto_20200130_1328.py | 937562da64320ce977d58c13cba6ef1cdf98d1f1 | [] | no_license | Aishaalomar/task_10 | 93cf13be705679ca02118162ca9bba0b7a2026ff | 8fc9f550882c136f5eadeae7bcb394032d994e33 | refs/heads/master | 2020-12-23T14:04:39.669997 | 2020-01-30T10:43:08 | 2020-01-30T10:43:08 | 237,174,870 | 0 | 0 | null | 2020-01-30T09:00:23 | 2020-01-30T09:00:22 | null | UTF-8 | Python | false | false | 1,237 | py | # Generated by Django 2.1.5 on 2020-01-30 10:28
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('restaurants', '0003_auto... | [
"aisha.alomar@zain.com"
] | aisha.alomar@zain.com |
42978fcaa46628548561391c85f29c13b5e7dd6d | 44600adf1731a449ff2dd5c84ce92c7f8b567fa4 | /colour_down/examples/plotting/examples_volume_plots.py | 769af73894ba737a07e58c6c32c7848950048d7f | [] | no_license | ajun73/Work_Code | b6a3581c5be4ccde93bd4632d8aaaa9ecc782b43 | 017d12361f7f9419d4b45b23ed81f9856278e849 | refs/heads/master | 2020-04-11T23:16:43.994397 | 2019-12-28T07:48:44 | 2019-12-28T07:48:44 | 162,161,852 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,535 | py | # -*- coding: utf-8 -*-
"""
Showcases colour models volume and gamut plotting examples.
"""
import numpy as np
from colour.plotting import (RGB_colourspaces_gamuts_plot, RGB_scatter_plot,
colour_plotting_defaults)
from colour.utilities import message_box
message_box('Colour Models Volume... | [
"ajun73@gmail.com"
] | ajun73@gmail.com |
3f843cb8603e5c28104a9be0e34ef588e57262d3 | 8c5cfd1fc70d2c63181362d1d2c6e30f74285f12 | /v1/python/add-host-to-segment.py | 954b036b3f4b10495ca3d3de7e4063405539c19a | [
"Apache-2.0"
] | permissive | EdgewiseNetworks/api-examples | d8628ab5b90c62f12d86d5eb970a6760afe580aa | f6fb7b7335b0ceae0a997efeb9c17d3cc58cfb7e | refs/heads/master | 2022-05-18T05:08:59.720786 | 2022-03-28T18:31:01 | 2022-03-28T18:31:01 | 191,251,713 | 2 | 7 | Apache-2.0 | 2022-03-28T18:31:02 | 2019-06-10T22:01:10 | Python | UTF-8 | Python | false | false | 3,314 | py | #!/usr/bin/python
#
# Copyright 2020 Edgewise Networks
# SPDX-License-Identifier: Apache-2.0
#
import yaml
import argparse
from edgeutils import ApiSession
parser = argparse.ArgumentParser()
parser.add_argument('-s', '--segment_name', required=True,
help='Name of the host segment to modify.')
pars... | [
"dperkins@edgewise.net"
] | dperkins@edgewise.net |
a107cdc1d56413f2bf985c20d07919962c423dd9 | 356dc7f2bb904518f7c9def23a6d16041b6c256c | /aritmatika.py | ace357e24f54356a9edaf9e4fe18f6b8f8255af8 | [] | no_license | alfikoaditya/Latihan | d3d4e2ec50f5b8ab6049c4b31809bb80b8c6a0c9 | 4b3fb20ab4a8d875755ff0bfbfc3555199a74746 | refs/heads/master | 2023-03-28T23:57:33.402339 | 2021-03-18T16:17:37 | 2021-03-18T16:17:37 | 349,131,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | """ a = 10
b = 5
hasil = a + b
print(a,'+',b,'=',hasil) """ | [
"alfikoaditya@gmail.com"
] | alfikoaditya@gmail.com |
c6b0eceb8a28ed47af8345218bfeb7c17c6791c5 | 3a2853c9eda631c37da5f5b5c23aa282c7bf29cb | /SCN-generator/config_horse.py | e0bb033394b1178763b3d026b8974aba08b43894 | [] | no_license | MarziEd/SubSpace-Capsule-Network | 8c8ed71b3f6f5219c1c0c2b3a61a0f5bc0b3c264 | a9ccd529288f8d9cb15712e36b33214b0a612fc9 | refs/heads/master | 2020-09-14T22:20:37.409923 | 2020-02-07T16:39:40 | 2020-02-07T16:39:40 | 223,275,856 | 17 | 4 | null | null | null | null | UTF-8 | Python | false | false | 18,458 | py | # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# This work is licensed under the Creative Commons Attribution-NonCommercial
# 4.0 International License. To view a copy of this license, visit
# http://creativecommons.org/licenses/by-nc/4.0/ or send a letter to
# Creative Commons, PO Box 1866, Mountain ... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.