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
df1a74a93d70eac1ee3267de43c599eb5ef51076
fbbef702ad5494d8aa815ffe11cf4bc56d40b1d6
/maximum_sub_array.py
64faf232e435200455c33df6b4238efdef8dabb4
[]
no_license
sapanp007/python_scripts
383e8f4f2f177d1f997b60a6af5e00b63344adff
2069256a3fbdf101a043c1b1c7aeb6f9227d4a73
refs/heads/main
2023-05-26T09:00:38.899641
2021-06-01T06:10:55
2021-06-01T06:10:55
346,411,117
0
0
null
null
null
null
UTF-8
Python
false
false
1,238
py
# Find out the maximum sub-array of non negative numbers from an array. The sub-array should be continuous. That is, # a sub-array created by choosing the second and fourth element and skipping the third element is invalid. Maximum # sub-array is defined in terms of the sum of the elements in the sub-array. Sub-array A...
[ "sapanp007@gmail.com" ]
sapanp007@gmail.com
7e6aaaf4fd5029d462cd38b3cd0243cc32892df1
5f5aec2557d85b8c93868c4b83725ef541cb6646
/learning/train_mask_rcnn/mask_RCNN_master/mrcnn/utils.py
30033bc8951ba592ce8ff75ea8a7bdaef0e03d37
[]
no_license
xiamenwcy/ExplainablePR
ab06b624e7d75dc78d860703fe3617469191855b
759b795926807d355542a3860e4f1080a4c4ee77
refs/heads/main
2023-05-09T20:58:36.213013
2021-06-19T12:56:20
2021-06-19T12:56:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
34,273
py
""" Mask R-CNN Common utility functions and classes. Copyright (c) 2017 Matterport, Inc. Licensed under the MIT License (see LICENSE for details) Written by Waleed Abdulla """ import sys import os import logging import math import random import numpy as np import tensorflow as tf import scipy import skimage.color imp...
[ "joao.pedro.brito@ubi.pt" ]
joao.pedro.brito@ubi.pt
0c279e45341ed15a542b30b7c9517f1c6b235dc4
e6dab5aa1754ff13755a1f74a28a201681ab7e1c
/.parts/lib/PyAMF-0.6.1/pyamf/remoting/amf0.py
d3e90344ab10b0c668e00ae113df1b052165e4a5
[]
no_license
ronkagan/Euler_1
67679203a9510147320f7c6513eefd391630703e
022633cc298475c4f3fd0c6e2bde4f4728713995
refs/heads/master
2021-01-06T20:45:52.901025
2014-09-06T22:34:16
2014-09-06T22:34:16
23,744,842
0
1
null
null
null
null
UTF-8
Python
false
false
89
py
/home/action/.parts/packages/googleappengine/1.9.4/lib/PyAMF-0.6.1/pyamf/remoting/amf0.py
[ "ron.y.kagan@gmail.com" ]
ron.y.kagan@gmail.com
8e9d522a4bee0bcbaef63387c784c3826c71dc90
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p3BR/R1/benchmark/startQiskit_Class337.py
4a5caf7314c5b9433c1c0f9694093bc128700ae8
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
5,360
py
# qubit number=3 # total number=60 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collections import Counter from...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
60567d1fa526b9f96876073dc18939f56fe55711
7be4f595d555614a28f708c1ba7edda321f0cf30
/practice/algorithms/greedy/jim_and_the_orders/jim_and_the_orders.py
c2536053bea15992893c3f2b2b86f41f2c9beaa8
[]
no_license
orel1108/hackerrank
de31a2d31aaf8aeb58477d1f2738744bfe492555
55da1f3a94e8c28ed0f0dea3103e51774f0047de
refs/heads/master
2021-04-09T17:38:25.112356
2017-01-22T11:21:19
2017-01-22T11:21:19
50,198,159
3
0
null
null
null
null
UTF-8
Python
false
false
210
py
#!/usr/bin/env python n = int(raw_input().strip()) t = [] for CNT in range(n): ti, di = map(int, raw_input().strip().split()) t.append((ti + di, CNT + 1)) for VAL in sorted(t): print VAL[1],
[ "r.orlovskyi@gmail.com" ]
r.orlovskyi@gmail.com
0baa21980dcdcdf4d461c027cd92612e6436dde7
81980182b91b167ef313a4a141cf9819edb0e67d
/AngularApp/backend/python/shared_key_class.py
5ea19f8fbba7199853405e00419f795067655752
[]
no_license
WindMillCode/LawForLeaners
7d4d2641c7c0ff6e58585274264883f15e7a5395
3dd9f9fa829a5480b1b2f96523f3c3b74dbf8da0
refs/heads/master
2023-08-01T02:29:29.321216
2021-09-21T17:55:39
2021-09-21T17:55:39
395,694,835
1
0
null
null
null
null
UTF-8
Python
false
false
3,532
py
class SharedKeyCredentialPolicy(): def __init__(self, account_name, account_key): self.account_name = account_name self.account_key = account_key super(SharedKeyCredentialPolicy, self).__init__() @staticmethod def _get_headers(request, headers_to_sign): headers = dict((name...
[ "michaelodumosu57@gmail.com" ]
michaelodumosu57@gmail.com
92635679476bd6c1017ab2e83cf1bdb43720a62c
baf2f38a6d5578a3ab42e957a5a59b36a2eb1efb
/app.py
efdd1f979537bb9293a769f86e088e9e5ef75c0a
[]
no_license
NicholasBallard/morning-light
1145322ec6522191b3be2429680776871641df6b
02d5db9327e1f455bac90c6136529fc2f05997fb
refs/heads/main
2023-09-01T12:16:22.589658
2021-10-11T04:13:57
2021-10-11T04:13:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,562
py
from datetime import datetime, timedelta from functools import wraps import RPi.GPIO as GPIO from typing import Callable, ParamSpec, TypeVar import suntime import config # see: https://realpython.com/python310-new-features/#type-unions-aliases-and-guards P = ParamSpec("P") # Params R = TypeVar("R") # Return type ...
[ "nicholasericballard@gmail.com" ]
nicholasericballard@gmail.com
61e130e529c8c59df086179ffb48dbf8a1b39e36
15e2ea9b57124fa66bf45c5245600b567de3539a
/hottbox/datasets/tests/test_synthetic.py
1b9ca4312ef2f5a3fe72e9b968b77671dc73d9ad
[ "Apache-2.0" ]
permissive
divyanshmanocha/hottbox
3c42c3a90f5958f3398745751b8181d7b7ef2d81
967d5d522ea23992ed2076816dc3432d9e5b4d4e
refs/heads/master
2020-04-05T01:17:10.183065
2019-03-05T15:23:10
2019-03-05T15:23:10
156,430,465
1
0
null
2018-11-06T18:40:03
2018-11-06T18:40:03
null
UTF-8
Python
false
false
2,666
py
""" Tests for the rank estimation module """ import pytest import numpy as np from ..synthetic import * from ...core.structures import Tensor from ...utils import isToepTensor, isToepMatrix class TestbasicTensor(): """ Tests for basicTensor class """ def test_predefined_distr(self): true_shape = (4,3,...
[ "divyanshmanocha@gmail.com" ]
divyanshmanocha@gmail.com
acf5f3f8c41ffe2c340d87e431ce7c7df30ad01d
8e24e8bba2dd476f9fe612226d24891ef81429b7
/geeksforgeeks/python/python_all/70_1.py
ec22d692bf592f3d3a12f7546ec72edd733f712b
[]
no_license
qmnguyenw/python_py4e
fb56c6dc91c49149031a11ca52c9037dc80d5dcf
84f37412bd43a3b357a17df9ff8811eba16bba6e
refs/heads/master
2023-06-01T07:58:13.996965
2021-06-15T08:39:26
2021-06-15T08:39:26
349,059,725
1
1
null
null
null
null
UTF-8
Python
false
false
2,054
py
Python – Remove duplicate values across Dictionary Values Sometimes, while working with Python dictionaries, we can have a problem in which we need to remove all the duplicate values across all the dictionary value lists. This problem can have application in data domains and web development domains. Let’s dis...
[ "qmnguyenw@gmail.com" ]
qmnguyenw@gmail.com
bd2a21a4f75b5da0fc0ec97b0105e60c34e12c54
62d2a5f2ca359eeebc9d76daeca2b71b5c795c2e
/main/migrations/0006_auto_20141201_2242.py
776dddcdef9e7826ad6983bcb4f918b79daebd25
[]
no_license
wdfn/fruitful_minds
cb2a3d3330f5840f2a409ea5ac67d74288f25a75
e96048e547c51802ae6fbda4ec3cee5fed603614
refs/heads/master
2020-06-03T12:48:40.354520
2015-01-13T22:52:50
2015-01-13T22:52:50
26,841,852
0
0
null
null
null
null
UTF-8
Python
false
false
421
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('main', '0005_imageslideshow_attribution'), ] operations = [ migrations.AlterField( model_name='imageslideshow', ...
[ "reeselevine@yahoo.com" ]
reeselevine@yahoo.com
ff6b512c52c151282616d21997c984e6085785f8
c3d7b92af5b78b12092cdcd815220fd770d3a22f
/testCNN.py
4c6461a822d7933f23e708049f4d54f1e56725dd
[]
no_license
Malandril/TensorFlowTest
0e3630a3772e7692345e44b761e815faa0d09705
e85494eb591edc59e31f484448cd906456d8a03c
refs/heads/master
2021-05-14T07:11:56.368878
2018-01-04T12:50:06
2018-01-04T12:50:06
116,259,538
0
0
null
null
null
null
UTF-8
Python
false
false
5,986
py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
[ "canava.thomas@gmail.com" ]
canava.thomas@gmail.com
826d86feef447bbcaf0c88fb8486ce7082c636b2
b7cca7830aa1f21ea2441728b2373feb67575940
/app/users/__init__.py
1c6fc36136ae01e1e9f82e67113272c50ce00e37
[ "MIT" ]
permissive
prem-narain/IssueTrackerV2.0
5bdbcf646fc46673993359ab1485979686df09ff
c65e43d06e8323153d620f408c14af3c7ef5af09
refs/heads/master
2021-01-12T01:30:06.662037
2017-01-11T06:24:39
2017-01-11T06:24:39
78,394,653
0
0
null
null
null
null
UTF-8
Python
false
false
53
py
from .UserModels import User from .UserForms import *
[ "prem.n@3mdigital.co.in" ]
prem.n@3mdigital.co.in
704fb763542b4f83156675bb47bbc0f2e3f69b65
4c2cec3702ae68a694a6100eba1da4c4eb5cfcbc
/Utils.py
b07216cec41545bda40ccbcc7b97c205469b5932
[]
no_license
diegoasanz/IPADiamondCCD
f27b417c6f2709e9f81deda705ccfec04bd68719
2199e9e02b0de3764654eb2a588bce1458b3a2a7
refs/heads/master
2021-08-06T19:39:13.235276
2021-06-17T16:25:57
2021-06-17T16:25:57
140,624,791
0
0
null
null
null
null
UTF-8
Python
false
false
8,672
py
#!/usr/bin/env python import visa import csv import numpy as np from struct import unpack import time, os, sys from optparse import OptionParser import progressbar import ipdb from pykeyboard import PyKeyboard from ConfigParser import ConfigParser import subprocess as subp import struct import ROOT as ro import shutil ...
[ "diegoasanz@gmail.com" ]
diegoasanz@gmail.com
ef6e31cf1ee34575fe9a8110458a4b71ff5f2aef
6994917b9d22e9e15e578a0e5c75dcf4ce3cb022
/formularios/migrations/0002_auto_20200629_1106.py
ec722847b976eba1bbb468b1210f95fa3a236b6e
[]
no_license
linikerunk/rh-ticket
59ad6411a3d08c90c2704b37ba9bba67ea7f7754
bd8edd3eb1ea6cfe04fee03a4f41049a84c1e14a
refs/heads/master
2023-01-06T21:25:06.851369
2020-10-29T20:32:53
2020-10-29T20:32:53
250,346,547
0
0
null
null
null
null
UTF-8
Python
false
false
568
py
# Generated by Django 2.2.9 on 2020-06-29 14:06 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('formularios', '0001_initial'), ] operations = [ migrations.AlterField( model_name='justificativ...
[ "linikerenem@gmail.com" ]
linikerenem@gmail.com
d576110ecd23c07acd4b33cab5b13a7230b6cca4
bd05b22c7570707c4d347a9bae989cbb558dedf3
/general_analyse.py
051e7be7aecf993e3b8e2e3e9a13f99cc1148c83
[]
no_license
Jancy1072/pycoverage
d860c7e24e8845ba5e86edf7560955f3bb500d89
936d41b88d6c09ec3bc2ce9c5b3cb22ab2ef8bc7
refs/heads/master
2020-04-16T22:42:14.952299
2019-01-16T05:35:06
2019-01-16T05:35:06
165,979,829
10
1
null
null
null
null
UTF-8
Python
false
false
6,913
py
# encoding: utf-8 import marshal, types, os, sys import linecache import re # pyc文件的处理 class PycFile: # 读取pyc文件 def read(self, f): f = open(f, "rb") self.magic = f.read(4) # 标识此pyc的版本信息 self.modtime = f.read(4) # pyc产生的时间 self.code = marshal.load(f) # 序列化了的PyCode...
[ "noreply@github.com" ]
noreply@github.com
401f0cd308467770e0ff7f8227d87ee7700302c2
8bfa6b9ff80df67f21f1a44efc82cbe2710677a6
/MissingNumber.py
a4ffcaa540f04c03dd28b57b086e336c2385a9ed
[]
no_license
amguenoun/Code-Challenges
07e014c3c965d4bdfd3a8d83991b04d2c0aa4cb1
0b9007d1847e686473ec37032698fcc49880e8f0
refs/heads/master
2022-12-13T16:42:30.403147
2020-08-31T21:39:49
2020-08-31T21:39:49
261,568,081
0
0
null
null
null
null
UTF-8
Python
false
false
394
py
''' Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. Example 1: Input: [3,0,1] Output: 2 Example 2: Input: [9,6,4,2,3,5,7,0,1] Output: 8 ''' class Solution: def missingNumber(self, nums: List[int]) -> int: res = len(nums) for...
[ "amguenoun@gmail.com" ]
amguenoun@gmail.com
bedda5201e8709d0bee28aa1fadd7bd39ea7b648
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/sieve-big-4869.py
e198d69d1cf2a1db2fc927fc579a2edee3123d55
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
31,741
py
# A resizable list of integers class Vector(object): items: [int] = None size: int = 0 def __init__(self:"Vector"): self.items = [0] # Returns current capacity def capacity(self:"Vector") -> int: return len(self.items) # Increases capacity of vector by one element def incr...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
56bd73038144047a9dc694cee2fda792c2c7b14f
8c667957c024b5a73108761245db5c9125531f60
/core/compare_order_by_fixation.py
58b1bb229bbe4f3b30c5776ecaf76d64ffce1541
[]
no_license
CPP-HAPII/EyeTrackerAnalysis
4bdbf7a572a01137f513bae9708150b21093d9e8
f063663b0707630f901162ef2ab176ec3b38439b
refs/heads/master
2020-12-18T16:49:38.170573
2020-06-13T22:45:17
2020-06-13T22:45:17
235,450,532
3
0
null
null
null
null
UTF-8
Python
false
false
2,411
py
import pandas as pd import math import os import time from core import utils def compare_order_by_fixation(file): aoi_df = pd.read_csv(file, sep=",", index_col=False) selected_aoi_df = aoi_df[['userID','Page','Total_Fixation_Duration','AOILanguage']] dirlist = [item for item in os.listdir("user_study_...
[ "wilsenkosasih@Wilsens-MacBook-Pro.local" ]
wilsenkosasih@Wilsens-MacBook-Pro.local
6e0fb05fbe38e8dde3113d46c61d0c9224b97be6
c1e0e1232118493c7180f4acb36147663e92704b
/twitter_auth/migrations/0005_post_creator.py
e12dd5d6b0f2cb926a52cd9ddb68b8accb9b6192
[]
no_license
alitoufighi/soc-django-tweepy-python-telegram-bot
901e997e1d63019682188a2feaf2eb9621ab88b1
9c9d6978be128debd23ac181d0323ee3fc48207f
refs/heads/master
2021-01-23T18:22:50.529262
2017-11-21T21:15:08
2017-11-21T21:15:08
102,790,895
0
0
null
null
null
null
UTF-8
Python
false
false
667
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-11-01 13:59 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependenc...
[ "alitoumob@gmailcom" ]
alitoumob@gmailcom
940d221bad8a27c761381f7108dec944565b9b49
2c47c2357ab3e64f25ea1c3a587947049615cb02
/conversational/migrations/0005_remove_conversation_datetime.py
ff942b47b8bbb2dba83f36a3cf2db1e797ac31a3
[]
no_license
MiraRose/conversations
9a36a9019c59a531d778137960ba9e8788a891ff
54854c90cc45468abd34e9aff37a7d8789ba3c0b
refs/heads/master
2023-05-15T07:32:33.424816
2021-06-11T11:40:48
2021-06-11T11:40:48
375,561,294
1
0
null
null
null
null
UTF-8
Python
false
false
332
py
# Generated by Django 3.2.4 on 2021-06-10 20:20 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('conversational', '0004_thought'), ] operations = [ migrations.RemoveField( model_name='conversation', name='datetime', ...
[ "miraastar@gmail.com" ]
miraastar@gmail.com
a8b96c7b27d1dbfe2e93e7bbff79ed1bef1672d6
e06f110ec269c58bc63823416b7ec0c10b032018
/py_helper/backend/DiMorSC.py
5bcf65a1fe6fb201dafc5b42e56312ca2d62d96f
[]
no_license
SuyiWang/DiMorSC
c1bb7232511848c7d2e5c1ad742a359fec7bae7d
df93bd8e43080945c3ce62bf1d93513a79ab34ad
HEAD
2018-11-14T12:02:42.810515
2018-11-13T22:10:44
2018-11-13T22:10:44
61,718,422
9
1
null
null
null
null
UTF-8
Python
false
false
8,564
py
''' DiMorSC Pipeline Methods: public methods: (list) pipeline(Data_Pointer data_ptr, json-like parameters, string workpath) (string) merge(Data_Pointer data_ptr, string workpath) private methods: (string) _Gsmooth(numpy.ndimage data, double sigma, double thd, string filename): smoo...
[ "swtpeanut@gmail.com" ]
swtpeanut@gmail.com
e1d91aa5b3c900c13a088f8ee4122aaf06052e0e
b8cc547717b5a12b72287ea175ea8db891dde466
/projects/3D-ARNet/training/functions_for_training.py
32a1362f1d7dc38ac8beae0b0dc8e9b292894c94
[]
no_license
UniLauX/AINet
6635b37cdc5606c8edd2d2a3bc466869871082c3
e9168b4af46cf54db2a6cd7bd55cb3d0a9c62508
refs/heads/master
2022-09-02T08:53:00.877277
2022-08-09T23:06:41
2022-08-09T23:06:41
239,686,823
8
4
null
null
null
null
UTF-8
Python
false
false
4,650
py
import os # import gpustat import torch import numpy as np import matplotlib.pyplot as plt import torch.utils.data as data import torch.nn.functional as F from glob import glob from torch.autograd import Variable import torchvision.transforms plt.switch_backend('agg') def show_memusage(device=0): gpu_stats = gpu...
[ "UniLau13@gmail.com" ]
UniLau13@gmail.com
13e937be240dd26fbde79d21036161296f33c930
65f1f8de09ce56f97167b9d680e2778e522c0a82
/apps/home/models.py
61f261d9801118ffb18fe8df6ec07e29edca707e
[]
no_license
yinyaonot/django_shop
f89e6c136f98676dbfa692ed5fb2c3cbb1c8841f
7160129c647915f21e341451143feef9eba03381
refs/heads/master
2020-03-29T01:56:53.164968
2018-09-19T13:18:43
2018-09-19T13:18:43
149,414,646
2
0
null
null
null
null
UTF-8
Python
false
false
5,558
py
from __future__ import unicode_literals from django.db import models class AuthUser(models.Model): password = models.CharField(max_length=128) last_login = models.DateTimeField(blank=True, null=True) is_superuser = models.IntegerField() username = models.CharField(unique=True, max_length=150) fir...
[ "yinyaowhy@163.com" ]
yinyaowhy@163.com
a02189b517ca704e4853f64fde2b7ae09f9c04ca
66700a0a1dd368607d177c05b7396b025d63b495
/DimensionReduction-Autoencoders/RBM.py
1c30aec18c00efb2cf6dcd5eabc4af1a4f1443bd
[]
no_license
Subbu636/Kaggle
d68af21de606168fa55bef52899371a63f738e3a
04e8253849cb40db1e97c0efd54cda7004b67fc2
refs/heads/main
2023-01-29T20:36:38.268500
2020-12-11T15:14:39
2020-12-11T15:14:39
306,122,115
0
0
null
null
null
null
UTF-8
Python
false
false
1,838
py
class BB_RBM(nn.Module): def __init__(self, n_vis, n_hid, k): super(BB_RBM, self).__init__() self.v_bias = nn.Parameter(torch.zeros(1, n_vis)) self.h_bias = nn.Parameter(torch.zeros(1, n_hid)) self.weights = nn.Parameter(torch.randn(n_hid, n_vis)) self.k = k def sample_...
[ "59171525+Subbu636@users.noreply.github.com" ]
59171525+Subbu636@users.noreply.github.com
5963b4a661c1148072369f3660060d29b87102e3
7e548e52e5e7a9b0e2313c63fe6e17bca5d9e5ac
/Books/nlpia_manning/src/chapter5.py
0f3bf70c89e47ef215d8086db1930b5864f412d8
[]
no_license
webclinic017/cheatsheets
b01b4b57a69669a98387da7fe466dcce9caa831d
ade8745a844169acebd6285c89308c4860524685
refs/heads/master
2023-07-26T11:08:41.588373
2021-03-08T20:55:29
2021-03-08T20:55:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
193
py
######################################################################################### # Chapter 5 #########################################################################################
[ "mayankvadsola1996@gmail.com" ]
mayankvadsola1996@gmail.com
f0e6b37a43bd1ea858410f6ba4b4fe48e721a8e9
d55870b6a5986bdc59f6f2cae7e462fff3354ed1
/convolution/python/gray_image.py
85ec9eae1fbe4b1542519dfbb2f57d5ce5b31a7c
[]
no_license
gouarin/formation_python2017
10e3a538220fa8a8dd250db9d5faee7ceda1a0dc
8de643bd07bbf1be17a715f1ef95ca7a87c2a54c
refs/heads/master
2021-01-21T18:33:19.222674
2017-12-01T16:14:07
2017-12-01T16:14:07
92,056,732
6
9
null
2020-11-28T22:57:41
2017-05-22T13:28:13
Python
UTF-8
Python
false
false
694
py
# """ Gray level image """ from scipy import misc import numpy as np import image as img class gray_image(img.image): """ """ def __init__(self, w = 0, h = 0, fileName = None): """ Construction d'une image de width x height pixels """ if None == fileName : img.im...
[ "loic.gouarin@gmail.com" ]
loic.gouarin@gmail.com
bbe22d08ce0fd3520ada682b93c60cbf7c385d52
3ece565ee98975a56aef9093b19b015718a1eb7f
/build/pick_objects/catkin_generated/pkg.installspace.context.pc.py
eed09e2dee244ba14bde2bb7afb05d437d3b525e
[]
no_license
Cesaire-Njietche/Home-Service-Robot
0054c4079d0e9c00ddfeea8fdd52c51c5ef145d4
161d8418a357285d2332d37106f071ebcece30d2
refs/heads/master
2020-07-03T08:35:56.296515
2019-08-12T03:50:32
2019-08-12T03:50:32
201,853,156
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "pick_objects" PROJECT_SPACE_DIR = "/h...
[ "zecdnc2014@gmail.com" ]
zecdnc2014@gmail.com
dfb005108b9c8c2d7a4a9d48000c13da618c7428
46bac6e233eca8a2fc55bd6a52a86e8e05d419a8
/code/q3-5.py
d54e9e62b1b25c327059f473014997e7ba0d87ba
[ "MIT" ]
permissive
nagaokayuji/workshop-complexity
252bb7a80c111b8a8099a90ab7d0b940bbb06282
404681fa235c1e551695bfc1481a445c268dff8e
refs/heads/main
2023-07-15T08:30:36.935832
2021-08-27T13:39:29
2021-08-27T13:39:29
397,814,090
0
0
null
null
null
null
UTF-8
Python
false
false
547
py
from random import randint N = 10000 def guess_number(N: int): target = randint(0, N) # 1以上N 以下の適当な数字(整数)を選んでもらう sum = 0 # 当てるまでに質問した回数 # 開始時の範囲は [1, N+1) (半開区間) low = 1 high = N+1 while True: mid = (low + high) // 2 # 中間を選ぶ sum += 1 if mid == target: ...
[ "nagaokayuji@team-lab.com" ]
nagaokayuji@team-lab.com
0e2eae513dca547791fbedea008e887c86f7689a
3d9c7d046674c0fca73df7dd0d0281be7600d6c3
/bases/renderers/rect_renderer.py
c179c4649b1253a742b051642c1cfb8baf202a22
[]
no_license
qhuydtvt/micro-war
9a5fef988ca229278e0b93319fd2be10a0b758b0
7151905277089b12c7312368ff85aba040e6fe5d
refs/heads/master
2020-03-09T20:36:43.280626
2018-06-18T22:55:12
2018-06-18T22:55:12
128,989,368
0
0
null
null
null
null
UTF-8
Python
false
false
433
py
from bases.renderers.colors import RED import pygame class RectRenderer: def __init__(self, width, height): self.width = width self.height = height self.color = RED self.line_width = 1 def draw(self, screen, position): rect = (position.x - self.width / 2, position.y...
[ "qhuydtvt@gmail.com" ]
qhuydtvt@gmail.com
4e495b6e02d7d980aa75cd37a2ef5fe4a49fca2f
686578a34cbddf8907c8bfcdbf3384175079abae
/inicial/PyLadies/settings.py
784d3ee4dd736acfb749abba1c83c1135bb4ba3f
[]
no_license
pyladies-bcn/django2
9d157537c7dd6d202b0eb27f23ff70f2aad29013
e709ab5a367a953d087e65f7c72b897a44b64ab6
refs/heads/master
2021-01-21T13:30:16.821911
2016-05-31T10:00:01
2016-05-31T10:00:01
51,360,083
0
0
null
null
null
null
UTF-8
Python
false
false
2,956
py
""" Django settings for PyLadies project. Generated by 'django-admin startproject' using Django 1.8.9. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build pat...
[ "elena.he@idi.gencat.cat" ]
elena.he@idi.gencat.cat
cb66456d1a9e537540c4c7099dff269a2b48c2b9
9e4e654fc91e7fa09fe12809b14ed7e8d302b2b1
/config/settings/development.py
40405c4c014a76fddf63693ee2aa7c443efa16be
[ "MIT" ]
permissive
pablo-moreno/shitter-back
9689a7d20c75304590b8ff59aa880aa48371f220
33c0eb0e0bdff370b68148308ac08ab63b9e6e54
refs/heads/master
2023-08-03T20:50:44.239125
2021-03-19T09:31:12
2021-03-19T09:31:12
286,229,991
0
0
MIT
2021-09-23T06:57:07
2020-08-09T12:10:52
Python
UTF-8
Python
false
false
197
py
from .base import * EMAIL_BACKEND = 'django.core.mail.backends.filebased.EmailBackend' DEV_MIDDLEWARE = [ 'corsheaders.middleware.CorsMiddleware', ] MIDDLEWARE = DEV_MIDDLEWARE + MIDDLEWARE
[ "pablomoreno.inf@gmail.com" ]
pablomoreno.inf@gmail.com
a3e97506187107587ac8370858eaf1c540252cc0
70f1535e1f1683b16c848d97764fe50724b3e157
/pythonProject/Curso Em Video Python/Mundo 2/ex052.py
9aa39999472ce29e5194e298d8b2bf1be848520f
[]
no_license
DanielMoscardini-zz/python
f2ce0e84290a70b3be2ec804b96b3bbaf6b9f9d0
5be5254e8c6e701cc9bb9ffafb29f220edde99bf
refs/heads/main
2023-01-25T04:41:53.638423
2020-12-08T20:14:15
2020-12-08T20:14:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,057
py
""" Leia um numero inteiro, e diga se ele eh ou nao um numero primo """ num = int(input("Digite um número: ")) contador = 0 for c in range(1, num + 1): if num % c == 0: contador += 1 print("O número {} foi divisível {} vezes!".format(num, contador)) if contador == 2: print("O número é primo") else: ...
[ "moscardinibdaniel@gmail.com" ]
moscardinibdaniel@gmail.com
eaa43f6111fef04e541cc57c0e88380f7b5acd1b
4142c5a61242f3f1c0c86c36b67a39738de67602
/dlvi/vp/structured_gmm.py
40d44a4fc4b3b5f2c601ff5ebb54a4c8fe7ef956
[ "MIT" ]
permissive
llefolgo/dlvi
49aaba620afc2188d9346c69aaa26676dad77808
2301a04a68668ab9eacc8196d90ea2a001486796
refs/heads/main
2023-08-29T02:17:21.413473
2021-10-13T20:03:54
2021-10-13T20:03:54
414,311,238
5
0
null
null
null
null
UTF-8
Python
false
false
15,729
py
from collections import namedtuple import numpy as np import torch import torch.nn as nn from torch.nn.functional import softmax, log_softmax from torch.nn.parameter import Parameter from torch import Tensor from .base import VariationalParameters class GMMVariationalParameters(VariationalParameters): """ d...
[ "loic@lefolgoc.net" ]
loic@lefolgoc.net
a71ffd05c7ed8da0004a6643f8113a36555edba1
915a2ff8665d9b9556e4724cb3f87d5e0758f89a
/clan_icon_scraper.py
1f7e1af8f6a349352d8cded29b2404096e4bd4bb
[]
no_license
chalamka/clan-icon-scraper
0310ed95d64951381a542cd087be490bf1b44dae
c4ba6f8197fbaa8e291fc730e7296f9cba2484d1
refs/heads/master
2021-01-10T13:37:46.801983
2016-03-11T21:49:03
2016-03-11T21:49:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,497
py
from urllib.request import urlretrieve from requests import get from time import sleep def format_download_url(base, clan_id): return base.format(clan_id[-3:], clan_id) def download_icon_from_url(url, filename): img = urlretrieve(url, filename) def get_clan_tag(url, clan_id, api_key): response = get(ur...
[ "chalamka@gmail.com" ]
chalamka@gmail.com
275298dbcc2062a287cc460d58f2bea31d356bf3
040a5a212996e93943ec4f28c0e5b73b02637bde
/plugins/plugin_pipeline/__init__.py
fcd9bc1f96c8cab9fceeab804716458872d8cfbe
[]
no_license
dtzWill/wdtz
1e72f83e57b8818cab21e499365c165ef9f0c625
99d7cce3ef8835af617a33a076dcc94cc451eca6
refs/heads/master
2022-02-20T19:46:55.852841
2022-01-25T01:48:43
2022-01-25T01:48:43
12,216,759
4
0
null
null
null
null
UTF-8
Python
false
false
31
py
from .plugin_pipeline import *
[ "w@wdtz.org" ]
w@wdtz.org
8a9b6f39c3cb3b176e2cdb0d2ac802eecdc204a3
933b576f9c3ab4031e7787b815cc083e66c21e7d
/day18-turtle-gui/colorgram_app.py
c4bd43748b2a9206665781641cfc1deab44564d6
[ "Unlicense" ]
permissive
frnkvsk/python100days
7e3571c14fece3a13330b236252b302137823324
70d607ca58a526f0d66544ed65405b2425718108
refs/heads/main
2023-05-06T10:29:13.104472
2021-05-25T21:06:37
2021-05-25T21:06:37
363,694,362
0
0
null
null
null
null
UTF-8
Python
false
false
233
py
import colorgram # Extract 6 colors from an image. colors = colorgram.extract('image.jpg', 6) def get_rgb_colors(): c = [(colors[i].rgb.r, colors[i].rgb.g, colors[i].rgb.b) for i in range(len(colors))] return c
[ "frnk05vas@zoho.com" ]
frnk05vas@zoho.com
d2286f9a2ec7051b95f0462cfd5d39613dfeda7c
2b1a7e6f82c47928a43d000da15d71ebfa04e923
/easy_win.py
d494a5589d254207713443a0b641098b4a0505a1
[]
no_license
Fremont28/march_madness_models-
999681b20af06e67cd4ed8c08d2bbb688041709a
f4b8f0a5789f36aa2788daf85bec30220a30be1e
refs/heads/master
2020-04-27T16:02:56.681500
2019-04-02T15:59:52
2019-04-02T15:59:52
174,470,221
0
0
null
null
null
null
UTF-8
Python
false
false
2,872
py
#march madness random forest modeling? import numpy as np import pandas as pd import sklearn from sklearn import preprocessing from sklearn.model_selection import train_test_split from sklearn.ensemble import RandomForestClassifier from sklearn.linear_model import LogisticRegression import matplotlib.pyplot as plt ...
[ "noreply@github.com" ]
noreply@github.com
17799a78f0806d845d7ca476553f2742e8883ef7
45f1edb05575ef2d49b2b6d1c3e4a2a1e6e3a9a4
/Python/crear un clase/Excercie_4_1.py
e9c495710740b3077e1a73e48f112d36f0d0aa83
[]
no_license
vkslogan/IPN
933a3c2c84e2d253502ae9b127415fe5b104485f
98c2ae1a59923ba8ed64360d49213428484f43d6
refs/heads/main
2023-08-25T10:51:24.960958
2021-10-20T02:44:21
2021-10-20T02:44:21
409,922,191
0
0
null
null
null
null
UTF-8
Python
false
false
910
py
class Car(): """Clase tipo coche""" def __init__(self, make, model, year): """Inicializacion de los atributos""" self.make = make self.model = model self.year = year self.odometer_reading = 0 def get_descriptive_name(self): """ Imprime las caract...
[ "noreply@github.com" ]
noreply@github.com
aadbdd113e9ac3d93dad203d5549f454104cb73f
3bb662400dcd168c66f0ccf7b76c086508721408
/Nuisances/LeptonScale/samples.py
ae70a5614295d55d982f987dd2d34af9ece27c7d
[]
no_license
amassiro/PlotsConfigurationsCMSDAS2019Beijing
4dea76368e2af18e40b9342f2d9863518993be3a
04733d5429c93f073294a942828811891984a2de
refs/heads/master
2020-09-16T12:40:39.425764
2019-12-09T03:13:21
2019-12-09T03:13:21
223,772,812
0
0
null
null
null
null
UTF-8
Python
false
false
8,858
py
import os from LatinoAnalysis.Tools.commonTools import getSampleFiles, getBaseW, addSampleWeight # # function to simplify the life later ... # def nanoGetSampleFiles(inputDir, sample): return getSampleFiles(inputDir, sample, True, 'nanoLatino_') # samples try: len(samples) except NameError: import coll...
[ "massironi.andrea@gmail.com" ]
massironi.andrea@gmail.com
a6905bbe780e3ec516da09e904dd666c96b4f4ff
3782a0412ac48c4ff383f443a4d537fa9b4e627d
/euler029l.py
6318edb8d58d378d9d0629592a63970ae299d24b
[]
no_license
MonsieurGalois/monsieurEuler
495a6eb39c7ccfeab761356f9dd80537404b0bb9
31f3622b4641762ad88a2a73a55cd737e8456658
refs/heads/master
2020-06-07T23:05:26.103838
2014-06-09T04:01:16
2014-06-09T04:01:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
66
py
print len(set([a**b for a in range(2,101) for b in range(2,101)]))
[ "antoniogf0710@gmail.com" ]
antoniogf0710@gmail.com
179b004ace92d1a013bb3734818d7fd450343c23
5fdb8e1c62ad28aed309fcd3a968ff0ffb2f06c5
/codeforces/313A.py
6e1480bb8725e4f7291dff06066112391bb73556
[]
no_license
zero1hac/cp-practice
5fd054a9058f313d20e7615d4bc708cb929f40bc
7b518055418dc6ea29d056cd2b020ebec658616a
refs/heads/master
2020-06-02T19:19:34.285853
2018-01-10T18:15:18
2018-01-10T18:15:18
94,103,860
0
0
null
null
null
null
UTF-8
Python
false
false
189
py
n = int(raw_input().strip()) max_ = n if -1*(abs(n)/10) > max_: max_ = -1*(abs(n)/10) if (-1*(abs(n)%10) + int(n/100.0)*10) > max_: max_ = (-1*(abs(n)%10) + int(n/100.0)*10) print max_
[ "6dushyantmishra20101@gmail.com" ]
6dushyantmishra20101@gmail.com
3be1cc1cbe3da3822f1507033315a0b55fd4c5ac
04b1803adb6653ecb7cb827c4f4aa616afacf629
/third_party/blink/web_tests/external/wpt/fetch/content-type/resources/content-type.py
0b5e93b937c293250b33ae2cb2e5cbe43e381a86
[ "LGPL-2.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-1.0-or-later", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "MIT", "Apache-2.0", "BSD-3-Clause" ]
permissive
Samsung/Castanets
240d9338e097b75b3f669604315b06f7cf129d64
4896f732fc747dfdcfcbac3d442f2d2d42df264a
refs/heads/castanets_76_dev
2023-08-31T09:01:04.744346
2021-07-30T04:56:25
2021-08-11T05:45:21
125,484,161
58
49
BSD-3-Clause
2022-10-16T19:31:26
2018-03-16T08:07:37
null
UTF-8
Python
false
false
591
py
def main(request, response): values = request.GET.get_list("value") content = request.GET.first("content", "<b>hi</b>\n") output = "HTTP/1.1 200 OK\r\n" output += "X-Content-Type-Options: nosniff\r\n" if "single_header" in request.GET: output += "Content-Type: " + ",".join(values) + "\r\n" ...
[ "sunny.nam@samsung.com" ]
sunny.nam@samsung.com
59984b1081ab61b5439d11277aa89ee3dc7f1f3c
f0e483c64ef6fe9b2834b61ac5709847bbe0664a
/method/pca.py
2c34c97d7a1de021d0df608094a3c76ab123cd47
[]
no_license
ZCHILLAXY/Car_Insurance_Risk
5d45aef4fb895b1d8facae07e5758b92e3e395e3
c4a55db38cb83dc2a97d538c7bb6f600a84125d3
refs/heads/master
2020-09-14T16:07:55.387279
2019-11-21T13:31:49
2019-11-21T13:31:49
223,178,554
1
0
null
null
null
null
UTF-8
Python
false
false
1,162
py
'''================================================= @Project -> File :car_insurance_risk -> pca @Author :Zhuang Yi @Date :2019/11/19 20:07 ==================================================''' from sklearn.decomposition import PCA from sklearn.preprocessing import MinMaxScaler import numpy as np import pandas as ...
[ "521178260@qq.com" ]
521178260@qq.com
9845ddb1b07729b8bf5d45cf74b655b89566a365
94d043275792c6f72ff69610c3b8d4d1dd56f096
/lib/python2.7/site-packages/cpe/__meta__.py
0f16b701ca09118469a7aa77c6a330cbfea12c59
[]
no_license
luckyjd/python2.7_venv_tempv3
d83e79a7cf27e00c0fa3f10b455f1337c8fa6d98
c87af1131591063039cd1c588003d23ea532ec74
refs/heads/master
2020-03-08T19:38:27.441475
2018-04-07T10:51:58
2018-04-07T10:51:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,199
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from collections import namedtuple # Developer definition. # AFAIK: A human being capable of turn pizza & coke into code. Developer = namedtuple("Developer", ("name", "email")) __all__ = [ "__packagename__", "__version__", "__summary__", ...
[ "narusunday@gmail.com" ]
narusunday@gmail.com
cf20454e79615e13442f661c55ac68676eded721
7542a76c337fd18d83a717c55ef5d31e16609571
/approaches/LAUR.py
43630eebbc8864da577c1b88a98b70285fd32a3b
[]
no_license
kiujhytgtrfd2021/LAUR
1d4b5e36079d11267b5b758d0f631f5c5f247156
5298aa8f31e9d2fef7e965b36cb2f9d2952db734
refs/heads/master
2023-04-18T12:30:07.536815
2021-05-01T05:33:18
2021-05-01T05:33:18
331,555,177
0
0
null
null
null
null
UTF-8
Python
false
false
8,962
py
import sys, time, os import numpy as np import random import torch from copy import deepcopy import utils from utils import * import torch.nn.functional as F import torch.nn as nn from torchvision import models from torchvision.models.resnet import * import math sys.path.append('..') from arguments import get_args ar...
[ "kiujhytgtrfd2021" ]
kiujhytgtrfd2021
43ce7b09dc7802c83f10a9e13d4c6bbc4079408b
9b0c5ee86dbd8c9fdbe671f9e930bca13fd8ba68
/core/text_search/tests/text_search_test.py
4d251a183ffad7e1449c8a36472dc12412d6ccf0
[ "MIT" ]
permissive
echim/pySteps
80813fbd4061968f5cb6afc266fea084f920a769
c33ac3446593b545aece475062d140527dcb443c
refs/heads/master
2021-01-25T13:36:52.929830
2018-08-23T13:32:31
2018-08-23T13:32:31
123,597,946
10
2
null
null
null
null
UTF-8
Python
false
false
686
py
import pytest from pyautogui import typewrite, hotkey from core.enums.tesseract_language_code import LanguageCode from core.helpers.app_manager import AppManager from core.screen.screen import Screen def check_ocr_for_word(word: str): typewrite('%s ' % word) screen_text = Screen.get_text(LanguageCode.ENGLISH...
[ "george.echim@gmail.com" ]
george.echim@gmail.com
be522adbb7e1f87c5dc75b3f2012ab9aba4576af
bd1dfd2ab5ea71bd0fde2d6d40b2a7a44c4353b5
/core/migrations/0001_initial.py
6a5a0a270133bf31695bbb6be5f105643444c72b
[]
no_license
onurguler/siparisver
8734c6dae4f24aa7608329c8817133dc6ecb5dbf
54afe33e90d20faf0d3132b6f99a25dd6658cbb6
refs/heads/master
2023-03-30T21:45:31.049233
2020-03-31T13:32:38
2020-03-31T13:32:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,063
py
# Generated by Django 3.0.4 on 2020-03-23 12:41 from django.conf import settings import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True ...
[ "guleronurosman@gmail.com" ]
guleronurosman@gmail.com
2f270483a4ee5cbb61087a7c2d5bed458ca4ab99
0f0558065c3c1743d5fd72373ecf4bd0a1b62877
/Classifier/generate-reports.py
9c071099de5beba70a20e24fd352a1058da6b972
[ "Apache-2.0" ]
permissive
leonardoads/RecSys-cariris
47b7fbd6c765ddf23581f07b07a0b897addb050c
98098bb072d3ab8f1faed248f350472c62cb199b
refs/heads/master
2021-05-28T21:03:07.592365
2015-05-23T01:14:40
2015-05-23T01:14:40
33,254,116
0
0
null
null
null
null
UTF-8
Python
false
false
892
py
import os from os import listdir from os.path import isfile, join import sys rep_dir = sys.argv[1] def get_files_in_dir(dir_path): return [ f for f in listdir(dir_path) if isfile(join(dir_path,f)) ] dir_path = os.path.dirname(os.path.realpath(__file__)) + "/" + rep_dir + "/" file_paths = get_files_in_dir(dir_pat...
[ "talestsp@users.noreply.github.com" ]
talestsp@users.noreply.github.com
a3c16eda272ef3f85077c06a0313d77336a7145b
c6d0537be8966a5560dff53b2edf177dd55c2fa7
/assignment_4.py
d01e362c248e6271b3c434fd05828e7f54693815
[]
no_license
kensk8er/udacity
a21ce120f3a997d0da9875de702fa1d3cb6649af
681f104e79e5b2a105f63bec85af580f74c7224c
refs/heads/master
2021-01-10T08:20:30.804914
2016-03-20T15:12:16
2016-03-20T15:12:16
50,887,275
3
1
null
null
null
null
UTF-8
Python
false
false
8,046
py
# -*- coding: UTF-8 -*- """ Script for assignment 4. """ from __future__ import print_function import os import numpy as np import tensorflow as tf import cPickle as pickle PROJECT_ROOT = '/Users/kensk8er/PycharmProjects/udacity' PICKLE_FILE = os.path.join(PROJECT_ROOT, 'notMNIST.pickle') # assignment parameters I...
[ "kensk8er1017@gmail.com" ]
kensk8er1017@gmail.com
197f64970d1347c324c7e7f3d9ad25dc1449b71f
b6587f254ca8aed839174826b691632cb14d8d06
/main.py
92e2b48f131532396b3c6c2fec5a418fe5324f6c
[ "MIT" ]
permissive
wy-ei/text-classification
9084925b990a7d9a01141e3f31a9af505979e260
383254773854d8939cd7fcd5100acc10148c0e12
refs/heads/master
2021-07-04T11:26:11.366408
2019-05-26T05:47:28
2019-05-26T05:47:28
188,428,573
11
0
null
null
null
null
UTF-8
Python
false
false
2,289
py
import os import logging import torch import torch.optim as optim import torch.nn.functional as F from torch.utils.data import DataLoader logging.basicConfig(level = logging.INFO, format = "%(asctime)s - %(message)s") logger = logging.getLogger(__name__) from cnn.model import TextCNN from rcnn.model import TextRCNN ...
[ "wangyu_it@yeah.net" ]
wangyu_it@yeah.net
0617798605ed6dcfcc55fb89ecc78c4b66089205
f0db15abbfa7af9d26a77f851d8a9c598ea4dc65
/Revogreen-Technologies-Private-Limited-Assignment/revogreenAssignment/assignmentapp/migrations/0005_inputdata.py
c670a89efc6fb3ce357c67a617b3c697be0c9233
[]
no_license
rajutges/Python-Input-and-Output-UI
adeeb284f01f43c74e553377dfabff65d3d066b2
653af1c5a02b410cef310d2ac997ff61c2d54e8d
refs/heads/main
2023-05-13T06:05:31.709520
2021-06-04T18:33:11
2021-06-04T18:33:11
354,269,208
0
0
null
null
null
null
UTF-8
Python
false
false
530
py
# Generated by Django 3.1.7 on 2021-04-03 04:55 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('assignmentapp', '0004_delete_inputdata'), ] operations = [ migrations.CreateModel( name='Inputdata', ...
[ "rajutges@gmail.com" ]
rajutges@gmail.com
7f7b017d2b6d812018f24c2aa3d1a7c4f61a0e3d
7d2daf2e5cb120bf1bda2d2b86bbb8e6df7651b4
/docs/0.7/_static/notebooks/first_steps.py
2f1dd5a8b25a78e76f18263a5ce8ff7575987954
[ "MIT" ]
permissive
contrera/gammapy-docs
d99a6c3fcd6946a58e9e0dfc976fbf0b924444f6
1bab4b3be807462449631363571c59d457a6b27f
refs/heads/master
2020-03-31T03:16:01.956605
2018-10-05T07:59:08
2018-10-05T07:59:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,639
py
# coding: utf-8 # # Getting started with Gammapy # # ## Introduction # # This is a getting started tutorial for [Gammapy](http://docs.gammapy.org/). # # In this tutorial we will use the [Second Fermi-LAT Catalog of High-Energy Sources (2FHL) catalog](http://fermi.gsfc.nasa.gov/ssc/data/access/lat/2FHL/), correspon...
[ "Deil.Christoph@gmail.com" ]
Deil.Christoph@gmail.com
32473ce729fccc6e0b67e307e604207b6a731331
b27913c7372eabc5d736bcec58fd162056c575aa
/venv/Scripts/pip-script.py
e80ef915ca35c04d775fbf5a7fb3365ead6dfc31
[]
no_license
bazhenov4job/soft_test
b39847e3483d45d34b99bf9302bcd2a360a48eb5
556a7b0e8dd9d4068a3227b83952c748d7e444e7
refs/heads/master
2020-12-22T21:30:17.133067
2020-02-02T16:56:44
2020-02-02T16:56:44
236,934,414
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
#!E:\SoftLogic\soft_test\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(...
[ "bazhenov4job@gmail.com" ]
bazhenov4job@gmail.com
05073029ccc857378309cc8e9d2f50defc40c4d1
5a77b5092acf817ac37a5fafd006feea434dd0d6
/terminatorlib/prefseditor.py
b63c5cf0119b062c6162a6b55d55650506d71ba1
[]
no_license
shihyu/MyTool
dfc94f507b848fb112483a635ef95e6a196c1969
3bfd1667ad86b3db63d82424cb4fa447cbe515af
refs/heads/master
2023-05-27T19:09:10.538570
2023-05-17T15:58:18
2023-05-17T15:58:18
14,722,815
33
21
null
null
null
null
UTF-8
Python
false
false
66,362
py
#!/usr/bin/env python2 """Preferences Editor for Terminator. Load a UIBuilder config file, display it, populate it with our current config, then optionally read that back out and write it to a config file """ import os from gi.repository import GObject, Gtk, Gdk from .util import dbg, err from . import config from...
[ "yaoshihyu@gmail.com" ]
yaoshihyu@gmail.com
81cbc6533647d5a0e6e578c584381c6e9044307f
413b05adc23ed37d499b764a378f4f827e37e084
/mysite/blog/forms.py
82582d87d19670961975eddb376ac3da2f278c3f
[]
no_license
daMichaelB/django-demo
746d1f1b17fd5624f716abe0541ec4f59c37b1e4
34ee9bb14eb426cbcf6acb9afc8d81959d9a742b
refs/heads/master
2022-07-23T04:13:49.590761
2020-05-16T20:33:29
2020-05-16T20:33:29
255,151,140
1
0
null
null
null
null
UTF-8
Python
false
false
577
py
""" Forms can reside anywhere in your Django project. The convention is to place them inside a forms.py file for each application. """ from django import forms from .models import Comment class EmailPostForm(forms.Form): name = forms.CharField(max_length=25) email = forms.EmailField() to = forms.EmailFiel...
[ "michael.boesl@t-online.de" ]
michael.boesl@t-online.de
03e695bf3468a037ec087ba0362505eba18c5c69
c292c54b612e8eb7fa5710868fb3dc689ee8245a
/hangman.py
81c86e29c6bef86f9e21b01a2a68965975c2cfa6
[]
no_license
MatanBakva/Hangman
a8b2d9e95c14ad4354b65ef51c5cb0e2761f13f0
6abf5a47b91460f361a54d30016f91b383e14bb5
refs/heads/main
2023-05-13T00:13:24.249974
2021-06-04T10:38:09
2021-06-04T10:38:09
373,805,063
0
0
null
null
null
null
UTF-8
Python
false
false
1,826
py
import os def createEmptyWord(word): emptyWord = "" for i in range(len(word)): emptyWord += "_" return emptyWord def updateFoundLetters(word, letter, found): myword = list(found) for i in range(len(word)): if word[i] == letter: myword[i] = letter re...
[ "noreply@github.com" ]
noreply@github.com
8cfce97e1d57c3a59f1770fd204e848d6bae7536
93092ee9f65e872ccb2826291cfdcaf3c3ae72c9
/store/views.py
3f7dde607142fabbe221fa82813c2e2d4497af20
[]
no_license
SergioRodas/Django-ecommerce
5893d791a6d8d9c953ed4d3389ce277c23b14001
258710dde069ddc9058d9f75d8218e4e14e9899d
refs/heads/main
2023-08-15T18:09:36.431537
2021-10-24T23:52:33
2021-10-24T23:52:33
403,732,841
1
0
null
null
null
null
UTF-8
Python
false
false
2,807
py
from django.shortcuts import render from django.http import JsonResponse import json import datetime from .models import * from .utils import cookieCart, cartData, guestOrder def store(request): data = cartData(request) cartItems = data['cartItems'] order = data['order'] items = data['items'] products = Produc...
[ "sergiorodasbj@hotmail.com" ]
sergiorodasbj@hotmail.com
5168198c9bfd71064c01239f1e8e5af8cd8b8706
33f752e601866b2fe7649a471fa8fd9d47830ee2
/abundances.py
5b55c3ccd351c80390bd3e356efb05b5cbc39738
[]
no_license
aceilers/spectroscopic_parallax
7ad4cbdfb8d5a5052f39eb212e311744245cd6a2
2e324b2e669503a4b55618ab217f12247ec6aff1
refs/heads/master
2020-03-20T05:10:39.499717
2019-07-31T08:35:53
2019-07-31T08:35:53
137,205,830
7
3
null
2019-07-31T08:35:54
2018-06-13T11:23:51
Python
UTF-8
Python
false
false
9,351
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Aug 8 11:55:49 2018 @author: eilers """ import numpy as np import matplotlib.pyplot as plt import matplotlib import scipy.optimize as op import time import pickle from astropy.table import Column, Table, join, vstack, hstack import sys from astropy.io...
[ "eilers@Christinas-MacBook-Pro.local" ]
eilers@Christinas-MacBook-Pro.local
13f5b7dd1c8917cdf7aade9b6ea9ee975608d31b
15978aacf0e44a890e36ff94c305aca5a056e5e8
/10day--周六补/04-getpid和getppid.py
ec53cc565bba6bd0c33838ef3262a68ca235a100
[]
no_license
ittoyou/1805_python_2
ffbe613d893208b2454ef4f25cc2b8a9951ff047
1d6331a83598863042912bb26205d34417abed73
refs/heads/master
2020-03-24T13:58:12.276827
2018-07-27T07:58:57
2018-07-27T07:58:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
287
py
import os pid = os.fork() if pid == 0: print("老王") print("我是子进程进程号是%d 我的父亲进程是%d"%(os.getpid(),os.getppid())) else: print("我是父进程我的进程号是%d 我的父亲的进程号是%d"%(os.getpid(),os.getppid())) print("老宋")
[ "qingyuan@geekniu.com" ]
qingyuan@geekniu.com
d983595b39374208caf878802431bbde31485a9f
7c900764f98df8af60af4267c05586e567d9c261
/Data Visualization/lutter_dice.py
c5a88d4bf46eccf7d93ecc317becafc3305b1eaf
[]
no_license
thomas5566/Python-Crash-Course
ed3516a7e022da330b9a0dfc43f8425635d5d441
770f3739864e32a4bfb36394a8686d73a869a924
refs/heads/master
2022-11-27T05:29:19.362593
2020-07-23T07:05:54
2020-07-23T07:05:54
281,876,147
0
0
null
null
null
null
UTF-8
Python
false
false
807
py
from die import Die import pygal # Create a D6 die = Die(48) # Make some rolls, and store results in a list results = [] for roll_num in range(500000): result = die.roll() results.append(result) # Analyze the results frequencies = [] for value in range(1, die.num_sides + 1): frequency = re...
[ "noreply@github.com" ]
noreply@github.com
90457b3947a5e982ae8dcd396dc96c36cf585290
7529e44d6472b73be5ec6815f08037a62214b58a
/converter/forms.py
d5721523b31508900df2d30980d929cef8989e2c
[]
no_license
spacebra/basproj
63275bf8fd9129271743650a18e0c58caae28c6a
498d7a8dd5223949db08fda82a7238d2f7ba74e3
refs/heads/master
2020-05-28T10:13:11.350793
2012-05-10T08:59:00
2012-05-10T08:59:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
672
py
from django import forms from django.db import connection from converter.models import Student class DropDownList(forms.Form): tables = connection.introspection.table_names() seen_models = connection.introspection.installed_models(tables) choice = [] for model in seen_models: if "converter" i...
[ "pianooooooooo@gmail.com" ]
pianooooooooo@gmail.com
9f7ea893f084e1877c45b0c221294487922000dd
1688cf63a2513238f3afdccdbb080aa0cca4004e
/learn python without code knowledge-- Craig Richardson/code 标准答案/adventure4/clickSpeed.py
07d706e08fe17a6f4cc037e0c136ff96f6c9588d
[]
no_license
denotepython/pythonbook
34910dd1379e5b5b9dce07c2126d02363af1ac0a
885179a8ca67262c4db7fcb9b2673a3313a3ec92
refs/heads/master
2021-01-22T03:39:21.549355
2016-07-31T07:30:25
2016-07-31T07:30:25
58,024,965
0
0
null
null
null
null
UTF-8
Python
false
false
605
py
import Tkinter as tk import time window = tk.Tk() clicks = 0 start = 0 goal = 10 def buttonClick(): global clicks global start if clicks == 0: start = time.time() clicks = clicks + 1 elif clicks + 1 >= goal: score = time.time() - start label.config(text="Time: " + st...
[ "1134568611@qq.com" ]
1134568611@qq.com
7ab3918aa5cf40b78153f5ca1a7c537f0d13521d
646ba5ab18f09a27be7666097974a46efbcda57d
/cf.py
41dcb6725a4e4b4635f17590ec73e7c5799ef71b
[]
no_license
ivy12138/cf
9b1b8c01364d1acafda4c62f18ae7d4d76e836bb
69476bb57cbc5dcb442968f9f46cb731fef6f00a
refs/heads/master
2020-12-18T09:31:26.255317
2020-01-21T11:59:46
2020-01-21T11:59:46
235,330,440
0
0
null
null
null
null
UTF-8
Python
false
false
66
py
c=input('enter the C:') c=float(c) f=c*9/5+32 print('the F is:',f)
[ "ivylinan12138@gmail.com" ]
ivylinan12138@gmail.com
d5dd57aa2a662b0eb2e43ccd25888c2557a13288
d3b6c811daa758088fbbbcefd802ad4066722c0a
/Heuristic.py
705838d59df3934c727159a833c239afbabaf68e
[]
no_license
ancelinSerre/INF4230_IA_TP1
f08619464b1beef1a04f5392a8968fa0325b9705
5de06d60cd44fe29f2d45a5b5c690b09d41496a9
refs/heads/master
2022-04-05T17:10:31.292845
2020-02-11T22:32:23
2020-02-11T22:32:23
238,564,265
0
0
null
null
null
null
UTF-8
Python
false
false
775
py
import math class Heuristic: def manhattan(src, dest): """ Méthode permettant de calculer l'heuristique de Manhattan entre deux cellules. :param Cell src: Cellule d'origine. :param Cell dest: Cellule destination. :return: La distance de Manhattan entre les deux cellules. :r...
[ "ancelin.serre@outlook.com" ]
ancelin.serre@outlook.com
85d65a51d9f79ae5964d3d25847c06d70bf6cadd
9a169f7ed6ce3b3809c6fc2f081b52f589bb42f7
/Tieba/spiders/tieba.py
fab366ea4ca6af5bb2256340f436aba77c8de355
[]
no_license
ErDangJia0/tieba
0bdc32c735c53f4ac36209a7b5cf2a93d8530bcf
f4254a01d9a74449811445478ed8480baa9f0b5d
refs/heads/master
2020-04-29T10:17:45.523448
2019-03-18T05:49:43
2019-03-18T05:49:43
176,056,984
0
0
null
null
null
null
UTF-8
Python
false
false
1,177
py
import scrapy from Tieba.items import TiebaItem from bs4 import BeautifulSoup import re class TiebaSpider(scrapy.Spider): tName = input("请输入你要爬取的贴吧:") page = int(input("请输入要爬取的页数:")) name = 'tieba' pn = 0 url = 'http://tieba.baidu.com/f?kw=' + tName + '&pn=' start_urls = [url + str(pn)] ba...
[ "568310613@qq.com" ]
568310613@qq.com
cf2b0a6d9feae8b7f1b6a38df7293315e0383914
c7d6ec972b29979aed50ae33151b0d89ef4fde0f
/leetcode/909-snake and ladders.py
c0a84b65c4b24e06952144744b33dab2c0458dc2
[]
no_license
harvey103565/OI-Algorithm-wareh
ad38381f775f404c69c3cd2da12eb0cd724c61c9
84c81fd17c652141d3d194da3481a7241c2accf6
refs/heads/master
2020-03-31T17:43:25.957737
2019-01-11T02:34:47
2019-01-11T02:34:47
152,432,296
0
0
null
null
null
null
UTF-8
Python
false
false
1,768
py
class Solution: def snakesAndLadders(self, board): """ :type board: List[List[int]] :rtype: int """ n = len(board) limit = n * n - 1 routine = [board[i][j] if (i % 2 != n % 2) else board[i][n - 1 - j] for i in range(n - 1, -1, -1) for j in range(n)...
[ "harvey103565@gmail.com" ]
harvey103565@gmail.com
167fa9bdddf2e6faa889f3a340d373c7578eab82
2dd2684655ebca201bffc8b4e311abc92928b624
/practical2/methods/xgboost/util.py
9f6235bf7ce1eaf739eaa74a6f794c62edbbcec1
[]
no_license
victordomene/cs181-practicals
1cf9c9ad8a3433b7b0facd06248bfec5d7baab06
14aff2a09cd4a9d58c759c532f5247541857b5ce
refs/heads/master
2020-12-11T22:18:17.483754
2016-04-29T21:40:28
2016-04-29T21:40:28
51,220,732
0
0
null
null
null
null
UTF-8
Python
false
false
3,452
py
# sets of syscalls all_syscalls = ['processes', 'process', 'thread', 'all_section', 'load_image', 'load_dll', 'open_file', 'get_windows_directory', 'check_for_debugger', 'get_system_directory', 'open_key', 'query_value', 'create_mutex', 'set_windows_hook', 'create_window', 'find_window', 'enum_window', 'show_window', '...
[ "victordomene@college.harvard.edu" ]
victordomene@college.harvard.edu
475e75b8f8bfdc3e3814285a38b122eab525e30d
47ba931b8f96a0e3fe109b6a2c31b96a5db8235d
/nvgd/src/nets.py
911f51b4350a8ede5b6d148f7a454df74ff3a14b
[]
no_license
langosco/neural-variational-gradient-descent
b54f51a125c1fb6e5a1e790942d85c7edc008298
ee4acfde3858be21de25ec13f2a0db5c3fd3bce1
refs/heads/master
2023-06-26T02:42:11.361454
2021-07-29T10:41:16
2021-07-29T10:41:16
390,678,429
7
1
null
null
null
null
UTF-8
Python
false
false
12,386
py
import jax.numpy as jnp from jax import vmap, grad, random import jax import haiku as hk from . import kernels from collections import Mapping def bandwidth_init(shape, dtype=jnp.float32): """Init for bandwith matrix""" d = shape[0] return jnp.identity(d, dtype) def debug_layer(debug=False, out: str = '...
[ "langosco.lauro@gmail.com" ]
langosco.lauro@gmail.com
ca067eaa51836220f003ce78cf9daf86f51621d1
9c93dde4ece0b44b9d8f174390c9a50dc4da1b7d
/selfintro/urls.py
b9605baf010981c6c535e4b54bb956d5d457d905
[]
no_license
hkchy7890/Self-Intro-2020-09-09
2469f1c517c2bb184d5d9af493a16029695a38ad
5090c2729c1e5ea98ae69af55f00a833033576f9
refs/heads/main
2023-01-27T11:14:11.026700
2020-12-05T13:15:53
2020-12-05T13:15:53
294,081,440
0
0
null
null
null
null
UTF-8
Python
false
false
797
py
"""selfintro URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
[ "hkchy7890@hotmail.com" ]
hkchy7890@hotmail.com
d17035de6b5911c40b4cb3b07529449ea464fef3
ab5dfb7e6d14996b8340c5202ad49024d1f1ef02
/grpclib/__init__.py
0a3588e68466cf743000d59ab82de19a532ce2ce
[ "BSD-3-Clause" ]
permissive
SupperSpiderMan/grpclib
f4352fbbfcfc5a286e2174e964f51d0e7428d2ae
89fbfd514f1f377a16d64c5a9732cf71090e0a7a
refs/heads/master
2021-04-23T15:32:45.354275
2020-03-20T12:41:14
2020-03-20T13:05:19
249,936,393
1
0
BSD-3-Clause
2020-03-25T09:27:41
2020-03-25T09:27:40
null
UTF-8
Python
false
false
132
py
from .const import Status from .exceptions import GRPCError __version__ = '0.3.2rc1' __all__ = ( 'Status', 'GRPCError', )
[ "vladimir@magamedov.com" ]
vladimir@magamedov.com
f2c2fc5b94a20fe8435aa2f84d5980f48a479787
43ec3b32735efd0ca251cac5ac4abc44b9c7a3a0
/username.py
bfb5eb27b3a19b6534485c836d0ef99bd44681b9
[]
no_license
SchneizelX/oop_practice
8d2b94152777fa5304d792b5bed3ab8178ea7e98
170fd4dfeb46123526781f6b15b2910e3f8c3303
refs/heads/master
2021-02-08T05:23:07.993717
2020-03-01T11:56:10
2020-03-01T11:56:10
244,113,676
0
0
null
null
null
null
UTF-8
Python
false
false
343
py
class UserName: def __init__(self, name): if not (4 <= len(name) <= 20): raise ValueError(f'{name}は文字数のルール違反です') self.name = name def screen_name(self): return self.name.upper() hibiki = UserName(name='hibiki') # print(hibiki) # print(type(hibiki)) sho = UserName('sho')
[ "endress_victory@icloud.com" ]
endress_victory@icloud.com
b6b5adee388877c577fa79310e071e94f001f166
cdfc590bf6b020d10106c0994609ca3c1797b01a
/project/urls.py
71a43d98a6befb635bd27af465f2d61dbf1fc216
[]
no_license
prashantkhanal/Django
48093494f1389d08a9a60308fe1a26e9e3acf722
72ef0cd5387be3b9526ae342a074f63496b9c3ba
refs/heads/main
2023-05-27T00:31:59.046516
2021-06-18T20:21:23
2021-06-18T20:21:23
378,257,246
1
0
null
null
null
null
UTF-8
Python
false
false
379
py
from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('', include("Books.urls", namespace="Books")), path('', include("Student.urls", namespace="student")), # path('', include("Teacher.urls", namespace="Teacher")) path('', inclu...
[ "prashantkhanal32@gmail.com" ]
prashantkhanal32@gmail.com
6e0a95d6840dcda00e9a642853559b9ab7d733c3
19212b49da22232c1380b2da8cb89992daf2e640
/tests/context.py
bd79bd1ec8194448e3012f1010cbcfb09febddb8
[ "MIT" ]
permissive
sasaki77/pvarpc2web
a92a0fbe06ea49e1b068e4c2828819a8fcb19293
819fdbfdea4651fa4661c693ec38551f8c3a71e8
refs/heads/master
2020-05-20T02:10:23.894282
2019-05-16T05:58:27
2019-05-16T05:58:27
185,325,924
0
0
null
null
null
null
UTF-8
Python
false
false
303
py
import os import sys import pvarpc2web from pvarpc2web import create_app from pvarpc2web import config from pvarpc2web.pvaapi import pvaapi from pvarpc2web.accessctrl import accessctrl sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) )
[ "shinya.sasaki@kek.jp" ]
shinya.sasaki@kek.jp
6ed912496e1cc79cb24ded7571998866efe6d956
181796564d0e8ab53384ff1b93119a3fdad2a6b8
/resnet/seresnet18.py
aea722d23a7209fce39bfc4c656497008a082188
[]
no_license
Hong-Bo/hands-on-pytorch
fa9822b39847e2cf4cd2ca751e0ae7a28389a163
b8ce367cfe1754b69d03a2f78082e04d2cc7f5a7
refs/heads/master
2021-07-12T04:40:48.258060
2019-01-29T09:06:44
2019-01-29T09:06:44
147,145,705
3
0
null
2018-09-17T13:03:55
2018-09-03T03:15:10
Python
UTF-8
Python
false
false
11,883
py
"""An implementation of SEResNet-18 to classify CIFAR-10 dataset The model is slightly tailored in several ways. The original network was designed for dataset with much higher resolution while images in CIFAR-10 only have resolution of 32 * 32. Due to resolution discrepancy, this version of SEResNet-18 has smaller ker...
[ "hongbo@univer.ai" ]
hongbo@univer.ai
dff9daf648c21e002474f1f59dd0ee3c59e0a75d
b620331c9876e09cde7c51e7e6cfd097799b76b7
/Amazon Price Tracker/main.py
1fadaf1f0ca33d46c7b63cc4496deffb139a04ae
[]
no_license
Gupta731/Python-Bootcamp
c785c7a23bdd64e913439fbaf97a34fdd017a5e6
1af7cde93ff377541acdc0befe5d832436aa24f9
refs/heads/main
2023-07-25T21:39:43.973652
2021-09-08T11:09:07
2021-09-08T11:09:07
382,221,905
0
0
null
null
null
null
UTF-8
Python
false
false
1,625
py
import os import requests from bs4 import BeautifulSoup import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText AMAZON_PRODUCT_URL = 'https://www.amazon.in/Dell-inch-60-96cm-Full-Monitor/dp/B07FDNTS33' EXPECTED_PRICE = 16000.00 AMAZON_HEADERS = { 'User-Agent': '...
[ "noreply@github.com" ]
noreply@github.com
8ac3a44f6b6bec67bac5320465fb81c6316968c2
63768dc92cde5515a96d774a32facb461a3bf6e9
/jacket/api/compute/openstack/compute/schemas/migrate_server.py
b71561ae9ff7c244124debe5f8a8438ca30924d7
[ "Apache-2.0" ]
permissive
ljZM33nd/jacket
6fe9156f6f5789e5c24425afa7ce9237c302673d
d7ad3147fcb43131098c2a5210847634ff5fb325
refs/heads/master
2023-04-16T11:02:01.153751
2016-11-15T02:48:12
2016-11-15T02:48:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,752
py
# Copyright 2014 NEC 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 ...
[ "nkapotoxin@gmail.com" ]
nkapotoxin@gmail.com
c5e3c38906d2ddb8424939b5993df5bef18264d1
5c5242f97d583402ed50a058dfc65c3716201f23
/import one/fib.py
6975f9f1fb45870be64ca09d1d83cc6f399ec345
[]
no_license
LinLetLetLwin/SFUpython
5d633d5f286a76e7ab3d4df7a9c8460144a8104d
c0a61abbd02c62ec9e0be32dec1ed9d4dc29b3a7
refs/heads/master
2020-12-14T07:50:35.903388
2020-03-07T03:24:47
2020-03-07T03:24:47
234,679,493
0
0
null
null
null
null
UTF-8
Python
false
false
452
py
import fibonacci # f = fibonacci.fib # f(200) # fibonacci.fib(10000) # -------------- # from fibonacci import fib, fib2 # f = fib2(500) # print(f) # ------------ # from fibonacci import * # fib(500) # print(fib2(500)) # -------------- import fibonacci as fi fi.fib(500) # -------------- # #from fibonacci im...
[ "linletlet2002@gmail.com" ]
linletlet2002@gmail.com
5e17c8ee9007d4d99d9bfa522931c8810c00e8f9
e1a9a44b5447a4d7087f1346ab32a0203a687d57
/accounts/urls.py
d2216ca5f2d1c7c5859f42417942ff4190db9e11
[]
no_license
iam-lama/django-boards
f64c10fe9c3bc9ecc51c01c1f3ec4458a81213c8
b8e93ba2f1ce387abd9f2aa300c1e23fec5f5ef6
refs/heads/master
2020-04-06T16:27:11.442317
2018-11-15T17:12:35
2018-11-15T17:12:35
157,620,429
0
0
null
null
null
null
UTF-8
Python
false
false
263
py
from django.urls import path from django.conf.urls import url from django.contrib import admin from boards import views from accounts import views as accounts_views app_name = 'accounts' urlpatterns = [ url('', accounts_views.signup, name='signup'), ]
[ "lama.m.ghool@gmail.com" ]
lama.m.ghool@gmail.com
0934c88cdcd78b708e90bf330ee920b6020e6cd6
41a63e5826f95a092135eeb9977d398ed4bcc102
/day5/day5.py
3957a7f5ae6666467fb86a3d8b3165ae0a66002a
[]
no_license
leej11/advent_of_code_2019
9c49a910c2307aa5b252d22a3b9935f62d2cb15c
a22e2e5cb848f98416dee19a81e77804ce9eb0af
refs/heads/master
2020-09-23T09:19:48.037219
2019-12-16T16:18:37
2019-12-16T16:18:37
225,464,122
1
0
null
null
null
null
UTF-8
Python
false
false
5,139
py
# 1202 Program Alarm # An intcode program # First Number: "Opcode" [1,2,99], indicates what to do test_list = [3,9,8,9,10,9,4,9,99,-1,8] def intcode_computer(input, test_list): x = 0 # This while loop performs the value re-assignment described in the challenge while x < len(test_list) - 1: ####...
[ "lee.gower17@gmail.com" ]
lee.gower17@gmail.com
cc579df82cb3f26f3a1f4a2158732c21de8be6e7
f4dfaa03afe2630fa03619cad7299be98be913e7
/before_2021/Q7.py
309d079b29bb57ebd528177b73decd6f28999605
[]
no_license
Jung-Woo-sik/mailprograming_problem
396cd2789bce2ae2c72791326945bd95aada49b7
4ead01e353b30911a24122fe6c7aee3eaac40412
refs/heads/master
2021-11-05T02:47:24.116450
2021-11-04T07:41:27
2021-11-04T07:41:27
152,204,290
2
0
null
null
null
null
UTF-8
Python
false
false
582
py
from collections import defaultdict import heapq def rearrange(string): frequencies = defaultdict(int) for letter in string: frequencies[letter] += 1 heap = [] for char, count in frequencies.items(): heapq.heappush(heap, (-count, char)) count, char = heapq.heappop(heap) result = [char] while heap: last...
[ "o0o0@cs-cnu.org" ]
o0o0@cs-cnu.org
e5787ad9acf58585924c86ca9994a3c142f6c94b
060ce17de7b5cdbd5f7064d1fceb4ded17a23649
/fn_cisco_umbrella_inv/fn_cisco_umbrella_inv/components/umbrella_dns_rr_hist.py
e69d2201b06fc738b42f948cd0c24e135de5bb51
[ "MIT" ]
permissive
ibmresilient/resilient-community-apps
74bbd770062a22801cef585d4415c29cbb4d34e2
6878c78b94eeca407998a41ce8db2cc00f2b6758
refs/heads/main
2023-06-26T20:47:15.059297
2023-06-23T16:33:58
2023-06-23T16:33:58
101,410,006
81
107
MIT
2023-03-29T20:40:31
2017-08-25T14:07:33
Python
UTF-8
Python
false
false
7,764
py
# -*- coding: utf-8 -*- # pragma pylint: disable=unused-argument, no-self-use # (c) Copyright IBM Corp. 2010, 2018. All Rights Reserved. """ Resilient functions component to run an Umbrella investigate Query - DNS RR History for an IP Address or domain against a Cisco Umbrella server """ # Set up: # Destination: a Q...
[ "travis@example.org" ]
travis@example.org
5b6e7e4d826eb1bf806cb0106ebabe5bb37d2894
0eb03c06419a8119cae168091b3faa4ac1917a47
/ch04/function.py
9ffb91e6cf5582768d59b2ca8754de989f9c561b
[ "MIT" ]
permissive
AngelLiang/python3-stduy-notes-book-one
15bd7052b25f500cb3d5be9ebc896671261964aa
6bd62707aaba4f20dec5c622a35f55a8870ff82d
refs/heads/master
2020-12-03T03:19:07.233983
2020-01-03T03:35:37
2020-01-03T03:35:37
231,194,900
0
0
null
null
null
null
UTF-8
Python
false
false
2,901
py
"""函数 # 创建 函数由两部分组成:代码对象持有字节码和指令元数据,负责执行; 函数对象则为上下文提供调用实例,并管理所需的状态数据。 >>> def test(x, y = 10): ... x += 100 ... print(x ,y) ... >>> test # 函数对象 <function test at 0x...> >>> test.__code__ # 代码对象 <code object test at 0x..., file "...", line 1> 代码对象的相关属性由编译器生成,为只读模式。 存储指令运行所需的相关信息,诸如源码行、指令操作数,以及参数和变量名等。 >>> ...
[ "E7EE477C11C98D403F318118733EAA5C@i-search.com.cn" ]
E7EE477C11C98D403F318118733EAA5C@i-search.com.cn
ac55f935824cc589ef7c983338bce064e6b98063
c4d32f9e2b93546da52d7b2a694b6cabd439b390
/code/0540_Single_Element_in_a_Sorted_Array.py
133c3d4a71c5344f2ee9d926601c8e86c25d525e
[]
no_license
LuLu0616/LeetCode-Notes
a8be0298e4b70e27ffc4f24c3f86db9776ffb1a2
cbe4bfeaff3e28c9006a7955a7e05badd5f6311f
refs/heads/master
2020-04-30T14:13:45.703029
2019-03-28T08:20:05
2019-03-28T08:20:05
176,884,214
2
0
null
null
null
null
UTF-8
Python
false
false
490
py
if __name__ == "__main__": nums = [3, 3, 7, 7, 10, 11, 11] p = 0 q = len(nums) - 1 m = 0 while p < q: m = p + int((q - p) / 2) if nums[m] == nums[m-1]: if (m - p) % 2 == 0: q = m - 2 else: p = m + 1 elif nums[m] == nums[...
[ "noreply@github.com" ]
noreply@github.com
ce523f2e4b163a30d2d9e69e29cd875ce9510f18
260efd3f9de19675c92259e78ee2ed2a4a3b733a
/实验/oTree/my_expriments/models.py
ca055f5f877fea9ea21b9d2a6a46f70336e1c849
[]
no_license
TrinityWei/PycharmProjects
0d719986ee81e28e129277d4308299c82b1e1b4d
c13ad1e13ab0b87e7a85062a13b804ccf0c8bc72
refs/heads/master
2020-06-26T09:41:48.850777
2019-07-30T07:30:10
2019-07-30T07:30:10
199,598,818
0
0
null
null
null
null
UTF-8
Python
false
false
856
py
from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) author = 'Your name here' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'my_expriments' players_per_group = 3 num_rounds = 1 end...
[ "243315792@qq.com" ]
243315792@qq.com
898c7fdc35cdd2140eb84969221780ce35fd9f7a
b64926b053b9d58e4ad8caca65338429d2d90bdb
/test/test_fax.py
a3f437a0160db4770e4922a3e359cbc0f5646570
[ "MIT" ]
permissive
vyshakhbabji/ringcentral-python
569a88406cce00c86c3a1969d518ee5eac082569
cecc28c432e79a4df8ae8e4f82aeef01379970b3
refs/heads/master
2021-01-22T10:14:12.303122
2017-02-07T05:58:29
2017-02-07T05:58:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,022
py
from .test_base import BaseTestCase import json import os class FaxTestCase(BaseTestCase): def test_send_fax(self): with open(os.path.join(os.path.dirname(__file__), 'test.png'), 'rb') as image_file: files = [ ('json', ('request.json', json.dumps({ 'to': [{ 'phoneNumber': self.r...
[ "tyler4long@gmail.com" ]
tyler4long@gmail.com
1df2600d8c656c173d057730d0e60c60b14002b5
25b8fc45ef868e0adf743f184f4b4592b45e4896
/app/decorators.py
1a63b0508fc3a251cec9ed1505a694b5532bdde2
[]
no_license
klimpie94/flask-social-blog-app
db909b75fb817935bbaa25a8704ca0ac290b6c19
03d4273b1428533a8d0f57248504fa6f5d901b74
refs/heads/master
2023-03-24T01:33:39.844366
2021-03-20T19:23:11
2021-03-20T19:23:11
328,805,632
0
0
null
null
null
null
UTF-8
Python
false
false
638
py
from functools import wraps from flask import abort from flask_login import current_user from .models import Permission # https://stackoverflow.com/questions/5929107/decorators-with-parameters def permission_required(permission): def decorator(f): @wraps(f) #https://stackoverflow.com/questions/308999/what-...
[ "anis_arsenal@hotmail.com" ]
anis_arsenal@hotmail.com
489bcb93be6187df718facdbb8397383188b4e5d
024b434652c3e329bc7740c7b0c1776c7d6da54f
/cli/connect.py
0c1a53603414dd086019f90c68d2b9f84431d230
[ "MIT" ]
permissive
Barski-lab/cwl-airflow-cli
3bffa85b519bc7ad645a798327af19fafb570639
ede2928fb1cb161ae985d11a365ae2e6da4afa97
refs/heads/master
2021-01-20T22:05:42.415130
2017-09-16T19:38:25
2017-09-16T19:38:25
101,799,674
1
0
null
null
null
null
UTF-8
Python
false
false
816
py
#! /usr/bin/env python import MySQLdb import urlparse class DbConnect: """Class to get access to DB""" def __init__(self, conf): self.sql_conn_url=urlparse.urlparse(conf.get('core', 'sql_alchemy_conn')) self.connect() def connect(self): self.conn = MySQLdb.connect (host = self.sq...
[ "misha.kotliar@gmail.com" ]
misha.kotliar@gmail.com
c70ba4a760d383cbe9f83c83caa406e0a58dbc48
cc15af2ccc401b2d1d8fcfd219295121c1cece5d
/ROAR/utilities_module/module.py
1ca90b65b5f5f492aaf34919218b5ed8d633b876
[ "Apache-2.0" ]
permissive
moonwonlee/ROAR
755277c5f79df67a78896e2739764eac6b7e0e7e
1e189d895ac34197b8c8fc3017970cb706feb3e6
refs/heads/main
2023-06-15T22:35:29.796573
2021-07-02T20:27:39
2021-07-02T20:27:39
359,383,030
1
0
Apache-2.0
2021-07-02T20:27:40
2021-04-19T08:23:58
Python
UTF-8
Python
false
false
1,297
py
from abc import ABC, abstractmethod import time from pathlib import Path class Module(ABC): def __init__(self, threaded=False, update_interval: float = 0.5, should_save: bool = False, name: str = "module", **kwargs): self.threaded = threaded self.update_interval = update_interval ...
[ "wuxiaohua1011@berkeley.edu" ]
wuxiaohua1011@berkeley.edu
31abb7b87b93f49726bc25433e42ba9fde6be85e
0e3e05cfc5c2d4d604d5429bb63c28525cfd9c7b
/Sothern_Ocean_Conv_Str_1.py
985d01e7164bf6faf89ac0c4cc9689d727dbf389
[]
no_license
behzadcodes/pen
d98f887bf042ce8354a55046eb21ad93c3bab022
926ab7ee7ce44b656b175085fea5fde682863ea9
refs/heads/main
2023-02-22T16:27:08.329419
2021-01-27T17:56:31
2021-01-27T17:56:31
333,512,083
0
0
null
null
null
null
UTF-8
Python
false
false
98,097
py
### IMPORTANT: The following path needs to be appended so that the neccessary codes can be read from that directory ### import sys sys.path.append('/data1/home/basadieh/behzadcodes/behzadlibrary') #from Behzadlib import * ### This is loaded from '/data1/home/basadieh/behzadcodes/behzadlibrary' #from CMIP5lib import * ...
[ "noreply@github.com" ]
noreply@github.com
dbb36061f2cfc9b091523703c3902175d4a421b9
093c8a23448ff847649e9507a061457793f43813
/Admin UI/SSH.py
7e7820d1d32bd893b90f8e4df9aec33a26c2ec3f
[]
no_license
alexperkins/Senior-Design
080ada61d359da48452a99fe442028a620981b83
5aee83efc369b69d5a8d4212877a617d1bf6dd8f
refs/heads/master
2020-07-31T13:49:42.727902
2020-04-24T17:04:16
2020-04-24T17:04:16
210,623,827
0
1
null
null
null
null
UTF-8
Python
false
false
955
py
import os import paramiko from datetime import datetime import Authorization def getLog(sourcePath,destinationPath,fileString): currentDate = datetime.today().strftime('%Y-%m-%d') newLogFile = fileString + currentDate + '.log' localPath = destinationPath + newLogFile #destination path remote...
[ "noreply@github.com" ]
noreply@github.com
b31b060f47b19518a9e6260ac1453f7ea19a6dda
4249ac094475c753ad0714b0967663320ba076f5
/musicdir.py
9e1d7d20a273ba661c4433f429e43857fce6ce1d
[ "MIT" ]
permissive
fxnn/musicdir
4f3ab033f5aa07a204023a3bacbd5f9397dc2a67
b4dfb33457031cd464b11a4e2d39a53cf829cca6
refs/heads/master
2022-04-20T22:35:47.857906
2020-04-19T13:09:28
2020-04-19T13:09:28
256,725,517
0
0
null
null
null
null
UTF-8
Python
false
false
853
py
#!/bin/env python import os known_music_extensions={'mp3', 'flac', 'ogg', 'wav', 'wma', '3gp', 'aac', 'aiff', 'au', 'dss', 'm4a', 'oga', 'opus', 'webm'} class MusicDir: def __init__(self, abspath): self.abspath=abspath self.dirs=set() self.files=set() self.extensions=set() def...
[ "dev@fxnn.de" ]
dev@fxnn.de
fb5b8741a7f3ab1b0292653c1e456d52c6fbf297
27acd9eeb0d2b9b6326cc0477e7dbb84341e265c
/test/vraag4/src/warmste-week/44.py
d719315393ffa6bef0b3edfc9fb3c08bf9786cf3
[]
no_license
VerstraeteBert/algos-ds
e0fe35bc3c5b7d8276c07250f56d3719ecc617de
d9215f11cdfa1a12a3b19ade3b95fa73848a636c
refs/heads/master
2021-07-15T13:46:58.790446
2021-02-28T23:28:36
2021-02-28T23:28:36
240,883,220
1
1
null
null
null
null
UTF-8
Python
false
false
249
py
def gift_inschrijven(tup,woordenboek): klas=tup[0] bedrag=tup[1] if klas in woordenboek: geld=woordenboek[klas] geld+=bedrag woordenboek[klas]=geld else: woordenboek[klas]=bedrag return woordenboek
[ "bertverstraete22@gmail.com" ]
bertverstraete22@gmail.com
cae2e7c61f3fc891c4c22b2035e652a02bcedaaa
680dc4419a1f01d2f10faa373bfcf7b678f4ec30
/Semana02/prog021.py
47af2b60637561f8718c40fb978484d5f157f0b5
[]
no_license
G1998P/SEII-GuilhermePeresSilva
db643e06b64214c6fba7fb5e32813e46b872d816
a3dfc51cfb1dd2792c2f8e29c7f51ed1f345784c
refs/heads/main
2023-08-24T08:41:33.780123
2021-10-07T00:49:47
2021-10-07T00:49:47
389,200,079
0
0
null
null
null
null
UTF-8
Python
false
false
565
py
import matplotlib.pyplot as plt import numpy as np import pandas as pd # grafico x = list(range(5)) y = list(range(0, 9, 2)) # plt.plot(x, y,label='2x',color='red',linewidth=2,marker='.',markersize=10,markeredgecolor='blue') # modo curto plt.figure(figsize=(5,3),dpi=300) plt.plot(x, y,'b.:',label='2x') x2 = np.aran...
[ "noreply@github.com" ]
noreply@github.com
9a6217ba903db15ce55d5932ce3d99f2f47eda1e
1466a922155c26e5cf759956aee2aaf4f78b132b
/rpyc/utils/zerodeploy.py
27ebcc8388dca28618ec6a03386db1a9869af8e2
[ "MIT" ]
permissive
timharley/rpyc
b8d5f33ed54bb55f132ec06949bd53b7b38db727
367c0d4d2551ab0ba468f81356cd834ab443ea60
refs/heads/master
2021-01-16T00:36:32.173965
2013-05-07T18:15:52
2013-05-07T18:15:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,145
py
""" .. versionadded:: 3.3 """ from __future__ import with_statement import rpyc import socket from contextlib import contextmanager try: from plumbum import local, ProcessExecutionError from plumbum.utils import copy, delete from rpyc.core.service import VoidService except ImportError: import inspect ...
[ "tomerfiliba@gmail.com" ]
tomerfiliba@gmail.com
2df5fd4f9660284d61d121fa8971197b1d211389
95e97eb3d18ce25239d57e2d9de95c61c5fbdbf3
/Tutorials/venv/Inheritance_Chef_App.py
2019db8e094159755509cf40534825dcf2ea1b00
[]
no_license
jackG97/PythonUdemyCourse
f65bfbbf88cc6d32dc3125133f3633c6cc20661c
a2e5a635d316d87b658d7071d86c716057875ae0
refs/heads/main
2023-04-22T17:50:13.237745
2021-04-27T13:31:13
2021-04-27T13:31:13
351,476,395
0
0
null
null
null
null
UTF-8
Python
false
false
213
py
from Inheritance_Chef import Chef from Inheritance_Chef_Chinese import ChineseChef myChef = Chef() myChef.make_chicken() myChef.make_special_dish() myChineseChef = ChineseChef() myChineseChef.make_special_dish()
[ "jackgallaher36@gmail.com" ]
jackgallaher36@gmail.com
879fa828d2c4d7e15baf0248e85789f9420bdfab
6434db6451e2782cdfbf24894de828d0c07bc0ff
/blog/migrations/0001_initial.py
e7689e180f67ca8e25be12d809867d736dcdebe6
[ "MIT" ]
permissive
fullst4ckcode/blog-django3
06e19aa8693cc4198e71818a2dbf5767ec2dbb64
bd9aba68a5bf24dee5067256ed5f21b27b0b4de4
refs/heads/master
2023-02-28T01:49:35.473395
2021-01-29T18:34:36
2021-01-29T18:34:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,304
py
# Generated by Django 3.1.5 on 2021-01-28 12:34 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUT...
[ "freetechcode@yahoo.com" ]
freetechcode@yahoo.com
c61bf4d6adf3b35f23f36c4289ff8dbde9af81bb
a8d615cb0d6495cc0800d74d8adcae71e54c94ed
/bhand/cli.py
0171f2f337879a6d44ea2e70857ccf4e921b2f7e
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0", "LicenseRef-scancode-dco-1.1" ]
permissive
rerobots/brunel_hand_cli
55fc04911c928fbe4d2e64fa1e3837f5664b8e42
1834d06fade2afeeab8a5ad4bbe2b1c1eb086a68
refs/heads/main
2023-02-08T08:59:08.093855
2023-01-30T01:37:27
2023-01-30T01:37:27
87,656,536
1
0
null
null
null
null
UTF-8
Python
false
false
7,147
py
#!/usr/bin/env python # Copyright (C) 2017 rerobots, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
[ "scott@rerobots.net" ]
scott@rerobots.net
613b84d02fa522b2ef58e39899aff174cccde373
8695c635ce7d8dc15c6f36429e57705e44545a16
/Bot/Bot/pipelines.py
a4852cafd0978d155d16db77ae0238930da08deb
[]
no_license
zhuyingqin/Jpider
95d00413cbd66e32e6ac2dcd68c67263aa7f4c41
4c31147b6ff9b17455d4c906840d651c29f1a7b2
refs/heads/master
2021-05-10T12:14:33.944908
2018-01-23T10:34:23
2018-01-23T10:34:23
118,434,486
7
1
null
null
null
null
UTF-8
Python
false
false
303
py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html class ExPipeline(object): def process_item(self, item, spider): item.save() return ite
[ "1781484849@qq.com" ]
1781484849@qq.com
946c2fb4e2993f80551423a844becf5b6d7fdf81
add077a907a8adf4ef384f037f223506bd25850a
/train.py
9278a98cf801ea08c53a5803a605e426ba61e866
[ "MIT" ]
permissive
qwzhong1988/DeepIQA-1
f144067ed595df01772095847533c9e52dfadbc7
8c11a2a20bfe15ac26362a67bed6591ba98836fd
refs/heads/master
2021-06-18T05:10:36.899483
2017-06-20T05:03:21
2017-06-20T05:03:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,668
py
# -*- coding: utf-8 -*- """ Created on Tue Feb 28 15:49:24 2017 @author: justjay """ import numpy as np import random import argparse from iterator import SerialIterator import chainer from chainer import cuda from chainer import serializers from chainer import optimizers from chainer import datasets from chainer imp...
[ "995020655@qq.com" ]
995020655@qq.com
dc6434ce3543373aa719ed06e1edac3d7d983e6c
16b79777a3b627cafc240c237de9acb4eb948883
/option.py
9576f0d0c6a8f04e488ce8e230b720e1214e21f8
[]
no_license
smiler96/Image-Super-Resolution
e8394a5b5b46cb1139b69d21bdf9996b9e0deb66
3d4eb98b4643802f31601f3edf2fe35e8812ab78
refs/heads/master
2022-12-28T09:06:56.038298
2020-10-21T08:09:43
2020-10-21T08:09:43
303,711,401
5
1
null
null
null
null
UTF-8
Python
false
false
7,279
py
import argparse parser = argparse.ArgumentParser(description='Image Super Resolution') # Train or Test parser.add_argument('--phase', type=str, default='train', help='chose the phase for the model, train or test', choices=['train', 'test']) # Hardware specifications parser.add...
[ "wanqian_hust@163.com" ]
wanqian_hust@163.com