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
8c98d2aa767bafa8ef8cf224690564287b4da0e3
c6abd5db21dbe5799754c8fd501e145da1d6e74f
/utils/utils_image.py
896aed2ff991f0f7d64e0020ee3a2fb46092c92f
[]
no_license
tomtirer/IDBP-python
1beb7dcdda7afa8b64c3f1c4e8b88ab554e732da
471062551264d2504acb1c489d8de303169c1814
refs/heads/main
2023-06-10T04:20:05.606928
2021-07-04T21:26:18
2021-07-04T21:26:18
382,945,112
2
0
null
null
null
null
UTF-8
Python
false
false
26,049
py
import os import math import random import numpy as np import torch import cv2 from torchvision.utils import make_grid from datetime import datetime # import torchvision.transforms as transforms import matplotlib.pyplot as plt import os os.environ["KMP_DUPLICATE_LIB_OK"] = "TRUE" ''' modified by Kai Zhang (github: ht...
[ "noreply@github.com" ]
noreply@github.com
2146132029e154c9162b74995f0cf34f0ef3342e
60654caf2633613021470d0285817343f76223e5
/daily_catch/public_update/config.py
566a37dc4796f6f4c390e00778aea0555a926b77
[]
no_license
whoiskx/com_code
79460ccee973d1dfe770af3780c273e4a0f466c9
388b5a055393ee7768cc8525c0484f19c3f97193
refs/heads/master
2020-04-09T23:14:28.228729
2018-12-06T07:10:25
2018-12-06T07:10:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
641
py
# -*- coding: utf-8 -*- import os read_ver_url = 'http://dispatch.yunrunyuqing.com:38082/resources/sourceVersion/weixin/version.txt' download_url = 'http://dispatch.yunrunyuqing.com:38082/resources/sourceVersion/weixin/public_update.zip' base_path = os.path.dirname(os.path.abspath(__file__)) core_spider_path = os.pa...
[ "574613576@qq.com" ]
574613576@qq.com
009c2f80f9980fd30b33b1b39d0b96a77e5c484a
2d0b009f8b8560a1348a9feca2fb78d1a3616b45
/pandair_application_final.py
8ffa629c568038f91a23360560e2b819d7c5f41a
[]
no_license
EvaChitul/pandair_app
03f4a66bb34ebf82d3cfd220f8ad9dbb81e86244
e37d4919ea38ae9d24b17307f25b2ede97fa2586
refs/heads/main
2023-03-10T15:47:46.195624
2021-02-21T14:55:52
2021-02-21T14:55:52
320,321,339
0
0
null
null
null
null
UTF-8
Python
false
false
11,193
py
import itertools import logging import time import datetime fleet_database_check = set() flights_log_database = {} regional_fleet = {} logging.basicConfig(level=logging.DEBUG, filename=f'{datetime.date.today()}_pandair_logging') log = logging.getLogger('Pandair Airline') class Aircraft: def __init__(self, manu...
[ "noreply@github.com" ]
noreply@github.com
0b313513a4e40c31df181c98f2e15203095458e5
9bfd93b93531c7d66335fffded2d00db0c1f8935
/blog_censurfridns_dk/blog/translation.py
9e8157edd7537f26fe16f55c391113b0d9039730
[]
no_license
mortensteenrasmussen/blog.censurfridns.dk
7d5da3961b6abf4124fddba7b1fdf5a4fc014c2c
53939dee90ad5028256aace4c876d38695ec9e07
refs/heads/master
2021-01-14T14:23:17.443442
2016-08-29T20:11:22
2016-08-29T20:11:22
65,412,684
0
0
null
2016-08-10T20:03:31
2016-08-10T20:03:31
null
UTF-8
Python
false
false
412
py
from modeltranslation.translator import register, TranslationOptions from .models import BlogPost from taggit.models import Tag @register(BlogPost) class BlogPostTranslationOptions(TranslationOptions): fields = ('title', 'body', 'slug') required_languages = ('en', 'da') @register(Tag) class TaggitTranslatio...
[ "thomas@gibfest.dk" ]
thomas@gibfest.dk
fe7908aeabd98e2aefcd834864ebcb28ee36506e
a1bbb55b0be9aa69f456256b2107dbf5b35b640b
/Machine Learning Engineer Nanodegree/Core Curricula/Unsupervised Learning/PCA Mini-Project/pca/eigenfaces.py
a75c577b9d31ce3cf689740de1b8892fd21f3fae
[]
no_license
theodoreguo/Udacity
bc7599ed3f6b7e3d7bc03263443fb4b419cc03f0
8312d5aa35126cc0f222c6b4ae26b2bde6d9ae22
refs/heads/master
2021-07-05T12:17:51.412698
2018-01-27T08:07:12
2018-01-27T08:07:12
96,605,467
0
0
null
null
null
null
UTF-8
Python
false
false
5,237
py
""" =================================================== Faces recognition example using eigenfaces and SVMs =================================================== The dataset used in this example is a preprocessed excerpt of the "Labeled Faces in the Wild", aka LFW_: http://vis-www.cs.umass.edu/lfw/lfw-funneled.tgz (2...
[ "jsguozitong@gmail.com" ]
jsguozitong@gmail.com
e43dc1c4687a848c69bf66702ed69a995ab3c08f
1291b1974904918accf29f87c2d303e679297e03
/038comp2dates.py
8f57b80d77fd8950587bb9796dea50f4a02bffb6
[]
no_license
utkarsh192000/PythonAdvance
853a594ed678c462d9604a8bd6300aa0449dd610
e2e5f3059050b94f2e89ba681ddd6e3f01091b97
refs/heads/master
2023-04-05T09:42:34.942443
2021-04-04T19:07:18
2021-04-04T19:07:18
354,625,582
0
0
null
null
null
null
UTF-8
Python
false
false
101
py
from datetime import * d1=date(2021,3,23) d2=date(2010,3,23) print(d1<d2) print(d1>d2) print(d1==d2)
[ "iutkarshyadav192000@gmail.com" ]
iutkarshyadav192000@gmail.com
7314a4d9d557e3691daec59e8b9e46b80d2baa04
3b000b60a40f40764714b1ef0165ef551c4e4ba2
/tests/test_django_get_forms.py
cffed78d9d5fd8958cbba7c82584cddc56f590e3
[ "BSD-3-Clause" ]
permissive
estebistec/django-get-forms
7d765830faac297b07484f6a7cab9c08ac6e8d38
dd97951766e2275c8b2b3155973192cbf465e968
refs/heads/master
2021-01-25T07:34:47.957983
2014-04-07T03:11:32
2014-04-07T03:11:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
427
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_django_get_forms ---------------------------------- Tests for `django_get_forms` module. """ import unittest from django_get_forms import django_get_forms class TestDjango_get_forms(unittest.TestCase): def setUp(self): pass def test_somethin...
[ "estebistec@gmail.com" ]
estebistec@gmail.com
8cb138171fb97a6c77d5430f0173327daaf88d9e
67f1620411d959781c1e9e349a00a885cc3031c6
/Pandas_session (2).txt
8b08d7d6ef81c768c3009f4690462db533121980
[]
no_license
Jyoti-27/Python_Study_Materials
9e9bef5b589ea2875834a9c4fb50816ec2413f6e
364d5b66540e12d9787cfd106e4c00b2ff7c84d8
refs/heads/main
2023-02-25T16:10:50.982517
2021-02-04T19:08:17
2021-02-04T19:08:17
336,055,362
1
0
null
null
null
null
UTF-8
Python
false
false
36,494
txt
#!/usr/bin/env python # coding: utf-8 # In[3]: import numpy as np import pandas as pd # In[3]: print(pd.__version__) get_ipython().run_line_magic('pinfo', 'pd') # # Creation of Pandas Series # In[4]: series = pd.Series([0.2, 0.5, 0.75, 1.6]) #call the constructor and send the values...
[ "noreply@github.com" ]
noreply@github.com
ad595cf02acfda9585e683c5ef2199d598f30910
c7d354658353e20f46432b9c1a40744224365f4c
/test_moby.py
3d5c95b8f6eefd32217f42923f9c7042db653033
[]
no_license
c11z/or-the-whale
baf35db79621d06e1da5ee15f4a64ba2701cff90
d76036aaa03ea5497a6fa3d61efb58de096b43ef
refs/heads/master
2022-09-14T10:30:28.942779
2020-03-23T01:26:19
2020-03-23T01:26:19
152,700,060
0
0
null
2022-08-22T23:42:27
2018-10-12T05:48:18
HTML
UTF-8
Python
false
false
397
py
from moby import Moby TEST_PATH = "/script/data/test.txt" def test_init_no_limit(): t = Moby("testbook", TEST_PATH) assert len(t.ch_text.keys()) == 2 assert len(t.ch_doc["chapter_1"]) == 12 assert len(t.ch_doc["chapter_2"]) == 12 def test_init_w_limit(): t = Moby("testbook", TEST_PATH, 1) a...
[ "corydominguez@gmail.com" ]
corydominguez@gmail.com
5a8c7b455587292892a64bea88f4dad7baa836f6
271e44ac22fc2778bcbf1d25f6e593864cac1a28
/10_1/textread.py
7803e9638d3b72e78b3e684a60a520be8d04f59f
[]
no_license
yinhao5969/Python-study
d018bbc639922f6259bcb999dbee991adc4687bc
2316f487d817f3474a43bcafd2c23195d0bb39d3
refs/heads/master
2020-09-17T01:34:16.018193
2019-12-14T05:47:23
2019-12-14T05:47:23
223,948,231
0
0
null
null
null
null
UTF-8
Python
false
false
972
py
#10-1 file_name = 'python do what.txt' with open(file_name) as file_object: file = file_object.read() print(file) with open(file_name) as file_object: lines = file_object.readlines() for line in lines: print(line) with open(file_name) as file_object: for item in file_object: print(item) #10-2...
[ "yinhao5969@icloud.com" ]
yinhao5969@icloud.com
0282baa646e2c48a49c37b3d4c7c57ce6221be3e
8712509880af7544115733099861ac3bb9e818cf
/DeepLearning_AndrewNg_coursera/1neural-network-deep-learning/assignment1/test2.1.py
5cbecc7f8c8daf2293ddfc4a919e4cde7fc62f55
[]
no_license
most-corner/deeplearning
94152b111ccefeaa4317093f62e2616cad90d4af
aefe5542cc46f285b4ff34e90212a0e29cc2f5c5
refs/heads/master
2020-06-11T22:30:44.216540
2019-07-01T14:21:10
2019-07-01T14:21:10
194,107,559
0
0
null
null
null
null
UTF-8
Python
false
false
716
py
# L1 import numpy as np def L1(yhat, y): """ Arguments: yhat -- vector of size m (predicted labels) y -- vector of size m (true labels) Returns: loss -- the value of the L1 loss function defined above """ loss = np.sum(np.abs(yhat-y)) return loss yhat = np.array([.9, ...
[ "750315795@qq.com" ]
750315795@qq.com
53cc948a777e59d5aae918f523f52b94ac11c8e3
edab237d44998a3671beac415bedd97f870bafd9
/scribeui_pyramid/static/lib/proj4js/tools/pjjs.py
5b79d585fd0ab9aa110d1cf09e1d59ba904e193f
[ "MIT" ]
permissive
mapgears/scribeui
ede35bfe4f2e41d9eb42f88242a9839c30fa53d8
f7e917236c088cad265a94210a0031f7d7be4a71
refs/heads/master
2023-08-07T03:03:34.017894
2020-03-26T20:27:33
2020-03-26T20:27:33
10,671,138
12
7
MIT
2023-02-02T07:14:59
2013-06-13T17:04:40
JavaScript
UTF-8
Python
false
false
3,061
py
#!/usr/bin/env python # # TODO explain # # -- Copyright 2007 IGN France / Geoportail project -- # import sys import os import re SUFFIX_JAVASCRIPT = ".js" def _pjcat2js_remove(rezDirectory,catName,targetDirectory): pjCatFilename = os.path.join(rezDirectory, catName) pjCat = open(pjCatFilename,'r') commen...
[ "cbourget@mapgears.com" ]
cbourget@mapgears.com
6d776f7423961968bb562001dd0866a7c64ecf22
d0e94f036e780ed8b1d34871dd6956f7f25dcfca
/game/migrations/0001_initial.py
b899b4c5bd81562a3c33abce797aa05f4350646f
[]
no_license
kikiyuyu/datavisual_django2
59b689ee1e6c7cacc56fabe4174a7824131a74d5
a840530d1416a4aa8ff75523b9145b0d08a61166
refs/heads/master
2020-04-04T23:21:41.290294
2018-11-08T09:00:43
2018-11-08T09:00:43
156,356,042
0
0
null
null
null
null
UTF-8
Python
false
false
517
py
# Generated by Django 2.1.3 on 2018-11-08 01:27 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Game', fields=[ ('id', models.AutoField(aut...
[ "yu.wang@fanyoy.com" ]
yu.wang@fanyoy.com
56355f3875195391f7293db4127fc87bb679e048
55aa8fd35ffb28da8d834e8f0ac1470ffa9bcd4d
/arithmetic.py
22dc261b12820a3345bacd318540903c108692bc
[]
no_license
paszczureKk/Elliptic-Curve-Digital-Signature-Algorithm
430800476720763a0c5aa185a5c1194723894c4c
3cec29591b8f89f49399b07032b79c2f7825898e
refs/heads/master
2020-05-30T07:35:00.902771
2019-05-31T13:49:40
2019-05-31T13:49:40
189,601,415
0
0
null
null
null
null
UTF-8
Python
false
false
545
py
#!/usr/bin/python import sys result = 0 var1 = int(sys.argv[2],16) var2 = int(sys.argv[3],16) if sys.argv[1] == "sum": result = var1 + var2 elif sys.argv[1] == "sub": result = var1 - var2 elif sys.argv[1] == "div": result = var1 / var2 elif sys.argv[1] == "fdiv": result = var1 // var2 elif sys.argv[...
[ "dszynszecki@wp.pl" ]
dszynszecki@wp.pl
bf1ede23da3e02e00b2cf1c77c17765bc71ab71a
b39d72ba5de9d4683041e6b4413f8483c817f821
/GeneVisualization/ass1/Lib/site-packages/itk/itkAggregateLabelMapFilterPython.py
0dbdcf699057bdee2b4e73071db281a38799bb72
[]
no_license
ssalmaan/DataVisualization
d93a0afe1290e4ea46c3be5718d503c71a6f99a7
eff072f11337f124681ce08742e1a092033680cc
refs/heads/master
2021-03-13T05:40:23.679095
2020-03-11T21:37:45
2020-03-11T21:37:45
246,642,979
0
0
null
null
null
null
UTF-8
Python
false
false
11,395
py
# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.8 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (3, 0, 0): new_instancemethod = lambda func, inst, cls: _itkA...
[ "44883043+ssalmaan@users.noreply.github.com" ]
44883043+ssalmaan@users.noreply.github.com
d7c0d7693181b79f9f44abbeaedd2d8e7988f5ff
caa14cf78fe15affc96acc3de6f4fb1b54bcdf70
/sap/sap/saplib/tests/test_saputils.py
6eec437d874842f6cbed599b9adb923e141e3f69
[]
no_license
jesstherobot/Sycamore_FPGA
2e3f0dea21482de87ea444506ae2af3f58b5a344
d1096e15f07b17a8dcb2276e312c5ba3e0006632
refs/heads/master
2021-01-18T07:57:14.268157
2011-10-19T22:46:28
2011-10-19T22:46:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,689
py
import unittest import sys import os class Test (unittest.TestCase): """Unit test for saputils""" def setUp(self): os.environ["SAPLIB_BASE"] = sys.path[0] + "/saplib" #print "SAPLIB_BASE: " + os.getenv("SAPLIB_BASE") def test_create_dir(self): """create a directory""" import saputils result = saputil...
[ "cospan@gmail.com" ]
cospan@gmail.com
b6ab8185b53278fef56ffa3e54f21c192f66c2c4
9071ca80e487ab7084059ea92a8a0ded2b70a2cd
/api/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/cloudidentity/v1alpha1/cloudidentity_v1alpha1_messages.py
a815beaf99d8e57d32b09f5d804022b8f4b070a9
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
anishnuni/Hearo-WebApp
d1065be46e5736bb565f738f789afa099601231c
ead2faa234e876e717bedd727537e9666acb8b79
refs/heads/master
2022-07-09T12:59:57.823491
2019-11-22T04:18:05
2019-11-22T04:18:05
218,857,650
0
1
null
2022-06-21T23:20:04
2019-10-31T20:38:24
Python
UTF-8
Python
false
false
29,832
py
"""Generated message classes for cloudidentity version v1alpha1. API for provisioning and managing identity resources. """ # NOTE: This file is autogenerated and should not be edited by hand. from apitools.base.protorpclite import messages as _messages from apitools.base.py import encoding from apitools.base.py impor...
[ "billhuang0916@gmail.com" ]
billhuang0916@gmail.com
b02ad13a170a0375b85c0f5765f94655c17bb902
c144f32b20e63da289b40b8fa0488254822e8115
/accounts/migrations/0002_userprofile.py
49d6c25a35c56716c8d4d336983b1ff09497b7f0
[]
no_license
emna-malek/shop
9d1a40476d11f90d9a25513c29fe1b62633cfe18
5275291e3589fec2380d81d16152aca5623358d5
refs/heads/master
2022-06-02T23:09:24.471225
2020-05-03T14:35:34
2020-05-03T14:35:34
260,722,454
0
0
null
null
null
null
UTF-8
Python
false
false
1,266
py
# Generated by Django 3.0.3 on 2020-04-19 22:47 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), ('accounts', '0...
[ "noreply@github.com" ]
noreply@github.com
f7ecbb6e60d58f81414014d4eb23c770a0e6acd9
c4a8e44b171bbfcce4773fbd5820be40d991afab
/dispatcher_sample.fcgi
299c4ad0e1726445c0909f317429f2fd66a4824f
[ "MIT" ]
permissive
sveetch/DjangoSveetchies
a2462c29839d60736077f647b3014396ce700f42
0fd4f23d601287dbfb5a93b4f9baa33481466a25
refs/heads/master
2021-01-01T20:48:08.824288
2013-03-10T12:14:56
2013-03-10T12:14:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
638
fcgi
#!/usr/bin/python # -*- coding: utf-8 -*- """ FastCGI dispatcher for development environment """ import sys, os sys.path.insert(0, '/home/django/py_libs') # An optionnal path where is installed some Python libs sys.path.insert(0, '/home/django/gits/') # Path to the directory which contains 'DjangoSveetchies' # Specif...
[ "sveetch@gmail.com" ]
sveetch@gmail.com
6843650bcdbb47de6fea60445c591ac5a3354c45
16c2d6ab5f4d8d453b48c50e82cfcf57c86bd9b5
/CT-GANs/Theano_classifier/CT_CIFAR-10_TE.py
d439631fb881c372fd75b5e4475419e123b147a3
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
jason096/CT-GAN
221e5c3f475b6a132a3a48995b1482d23e4bc82f
5ebc7e135307b77856926b5c8e0849aacf75c3c4
refs/heads/master
2020-10-02T08:40:43.955040
2018-04-28T23:59:19
2018-04-28T23:59:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,581
py
import argparse import time import numpy as np import theano as th import theano.tensor as T from theano.sandbox.rng_mrg import MRG_RandomStreams import lasagne import lasagne.layers as ll from lasagne.init import Normal from lasagne.layers import dnn import nn import sys import plotting import cifar10_data from scipy...
[ "Bing@DESKTOP-U3JQ8RQ.localdomain" ]
Bing@DESKTOP-U3JQ8RQ.localdomain
032e5734a831e772bdfff32f11217686a1c04444
2c851851595c45bb74dc3ee54c6fcb8930cced70
/soojuspump.py
122dc37e5bdf2ad6eb970199c31cd9f3c834fca4
[]
no_license
RaivoKasepuu/UTpythonProject
790c4c2f8f33c61959e37575ea734f08b1263671
67f63ae58421fada8689f9597090990e4bb01aae
refs/heads/master
2023-01-30T19:49:24.414271
2020-12-16T12:10:34
2020-12-16T12:10:34
321,965,067
0
0
null
null
null
null
UTF-8
Python
false
false
1,425
py
import json import time from inputimeout import inputimeout, TimeoutOccurred # NB! sisesta käsureal pip install inputimeout # soojuspump on vaikimisi sisselülitatud. # Raspberry puhul tähendab see et, konkreetse soojuspumba tööd # juhtiva pin-i tase on "1": deviceOn = True try: fileName = inputimeout('Sisesta and...
[ "raivokasepuu@gmail.com" ]
raivokasepuu@gmail.com
fd89ac55a8ee527c7f1559161412d97ed0ce200e
1fd00dfd486f9b184eb5d7b3578ab5b182b3742e
/end2you/training/end2you/end2you/tfrecord_generator/generator.py
d94de92149c035b31d093695613a8e390fa7772f
[]
no_license
dntai/MuSe2020
a607dc33875d6eace092287882515cd7766c016a
25be7fa868e6db40563161dc9ede200b5806fc48
refs/heads/master
2023-05-14T15:07:17.466731
2021-02-11T07:54:00
2021-02-11T07:54:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,619
py
import csv import os import numpy as np import tensorflow as tf import copy import sys import re sys.path.append("..") from pathlib import Path from io import BytesIO from abc import ABCMeta, abstractmethod from moviepy.editor import VideoFileClip, AudioFileClip from ..rw.file_reader import FileReader from functools i...
[ "stappen@ieee.org" ]
stappen@ieee.org
62da721bc8ad43f04b7a9be6e96b270824ae74eb
0b6a08b596bdceb97b64b69d3ea98ace038bf329
/projects/migrations/0014_auto_20191027_0659.py
8f511d4c7848e82d454ab5a93c1f01b518e88f61
[]
no_license
sammydowds/projectautomation
5806a3f1ca2cb9604433f658e90b41198f08322d
caec4774c2ae350f66a8e525729547bcc2cc9c97
refs/heads/master
2022-09-30T16:13:42.677455
2020-05-26T21:51:07
2020-05-26T21:51:07
167,870,654
0
0
null
2020-06-05T21:43:48
2019-01-27T23:26:50
HTML
UTF-8
Python
false
false
2,110
py
# Generated by Django 2.2.3 on 2019-10-27 11:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('projects', '0013_auto_20191017_0425'), ] operations = [ migrations.RenameField( model_name='project', old_name='sche...
[ "sammydowds1993@gmail.com" ]
sammydowds1993@gmail.com
fd3e5143b59240a71c1e3b8480a1b3ee447bf8b6
c16c67a4f94490b60de17afd6a82237650d8a08a
/henry/environments.py
1e5e4b4fba2415c63b84c09aaa90a40dd96895f1
[]
no_license
kailIII/HenryFACTService
fc4305a992323139c14fd4c235ea8fea061fd6e7
328a47020099bd31631211c8662ee149fb853e4a
refs/heads/master
2021-01-20T04:16:27.028413
2016-04-06T20:10:34
2016-04-06T20:10:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
951
py
import datetime import os from jinja2 import Environment, FileSystemLoader from henry.invoice.dao import PaymentFormat from henry.misc import id_type, fix_id, abs_string, value_from_cents, get_total def my_finalize(x): return '' if x is None else x def fix_path(x): return os.path.split(x)[1] def display_d...
[ "Han Qi" ]
Han Qi
524a64d718c9a87331dcd95f4b5511761a102a97
3e397609ebd59d50ed0f9928e6bd039030e35f9a
/contract_api/lambda_handler.py
4757ef1411c05ce3dff3425d4a41156dd03276bb
[]
no_license
prashantramangupta/marketplace
d8f64462668f1bb15c37fd52c17236d7565e5ae5
acae91d90ec8626bc79ae46168c37a4d8bbab46a
refs/heads/master
2020-06-05T15:48:19.063615
2019-06-26T05:28:16
2019-06-26T05:28:16
159,120,771
0
0
null
null
null
null
UTF-8
Python
false
false
4,511
py
import json import logging import re import traceback from schema import Schema, And from common.constant import NETWORKS from common.repository import Repository from mpe import MPE from registry import Registry NETWORKS_NAME = dict((NETWORKS[netId]['name'], netId) for netId in NETWORKS.keys()) db = dict((netId, Rep...
[ "you@example.com" ]
you@example.com
2085077660f03d47cd34ea2f24d5b600d7736f19
b7661f8e74e6aec15a9eba85f90cf351005295dc
/plot_class.py
5ed3353e25c4fde9f2dfe2624c30cfb9290648a1
[ "MIT" ]
permissive
tabsa/P2P_market_MAD
5f983e2961e6466c8d9756d4e7bab5bbbe9ee940
ed54015a8dfd345e8b8de24928c408a01e63ff06
refs/heads/main
2023-07-13T05:40:00.684866
2021-08-28T17:52:29
2021-08-28T17:52:29
364,288,301
1
0
null
null
null
null
UTF-8
Python
false
false
3,684
py
## Class for the plots # This files contains the plots (as class) used in this repository. # They are used in the P2P_market_sim.file or in the Jupyter notebooks #%% Import packages import numpy as np import matplotlib.pyplot as plt import seaborn as sns import pandas as pd import plotly.graph_objs as go import plotly...
[ "tas.tiago.sousa@gmail.com" ]
tas.tiago.sousa@gmail.com
699bfc4d77e051f4b0b9b95cde59fbb62b5cf72d
4edbeb3e2d3263897810a358d8c95854a468c3ca
/python3/version/python_version.py
dec52afee6ab14dce005f6ae31bb0e544017de89
[ "MIT" ]
permissive
jtraver/dev
f505d15d45b67a59d11306cc7252114c265f388b
2197e3443c7619b856470558b737d85fe1f77a5a
refs/heads/master
2023-08-06T02:17:58.601861
2023-08-01T16:58:44
2023-08-01T16:58:44
14,509,952
0
1
MIT
2020-10-14T18:32:48
2013-11-19T00:51:19
Python
UTF-8
Python
false
false
672
py
#!/usr/bin/env python3 #!/usr/bin/python import os import platform import sys import aerospike def main(): print("\nos") print("os.name = %s" % str(os.name)) print("sys.platform = %s" % str(sys.platform)) print("platform.platform() = %s" % str(platform.platform())) print("\npython") print("sy...
[ "john@aeropsike.com" ]
john@aeropsike.com
ee4db2ca88503d29c70e9cbeb5e52c9f5bdaf050
c22ed655a42ca61fc1212c493fc099c05e81c0c3
/ray_dqn_agent.py
34d8d16321e8c8db00da6292077d9126fcfc0188
[ "MIT" ]
permissive
xiawenwen49/Multi-Commander
89b5e969b0dfa4a9936f1c0c0dba2f9607a48d6f
88d1e10f593f0a3edfcdd196e2142020487ce736
refs/heads/master
2020-06-25T17:09:46.124740
2019-08-12T12:00:55
2019-08-12T12:00:55
199,373,782
6
1
null
null
null
null
UTF-8
Python
false
false
3,615
py
import ray import ray.rllib.agents.dqn as dqn from ray.rllib.agents.dqn import DQNTrainer from ray.tune.logger import pretty_print import gym import gym_cityflow from gym_cityflow.envs.cityflow_env import CityflowGymEnv from utility import parse_roadnet import logging from datetime import datetime from tqdm import tqdm...
[ "xiawenwen49@gmail.com" ]
xiawenwen49@gmail.com
ec204e589862d7db078962cf5fe0c41711f5cbcb
d2c4934325f5ddd567963e7bd2bdc0673f92bc40
/tests/artificial/transf_Logit/trend_Lag1Trend/cycle_30/ar_12/test_artificial_32_Logit_Lag1Trend_30_12_20.py
b308b4cbc07f69e3c5a3e07412703d09b5786f7b
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jmabry/pyaf
797acdd585842474ff4ae1d9db5606877252d9b8
afbc15a851a2445a7824bf255af612dc429265af
refs/heads/master
2020-03-20T02:14:12.597970
2018-12-17T22:08:11
2018-12-17T22:08:11
137,104,552
0
0
BSD-3-Clause
2018-12-17T22:08:12
2018-06-12T17:15:43
Python
UTF-8
Python
false
false
266
py
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 30, transform = "Logit", sigma = 0.0, exog_count = 20, ar_order = 12);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
44bbd220a867b475b17b953f3f8b931f279851a6
76f55428277f1a951f648b202d5c6757bf9c446a
/utils/command_utils.py
34d854f5bc8847615a2080e9a952c9a3bd523ee3
[]
no_license
zdenekhynek/browser_snapshots
5003378e01d73dbb877771097ad5ddb0a9aec997
b63937032a0620f47b1f49fdd8e87ffd3a45a2d2
refs/heads/master
2023-01-30T14:10:48.321789
2018-12-02T22:39:32
2018-12-02T23:19:21
113,761,833
0
0
null
2023-01-12T23:55:40
2017-12-10T15:39:13
Python
UTF-8
Python
false
false
1,091
py
from races.models import RaceTask from snapshots.models import Snapshot def add_arguments(parser): parser.add_argument('--limit', type=int) parser.add_argument('--offset', type=int) parser.add_argument('--override', type=bool) parser.add_argument('--pk', type=int) parser.add_argument('--race_id', t...
[ "zdenek@signal-noise.co.uk" ]
zdenek@signal-noise.co.uk
ec158af26b75ab0538218f360d8b6e41684761a2
4fe6a2c93d0895ea6e9e531d00d3eaec5fae6e41
/affineCipher.py
f51c2da30e0b0d5083a3c0da70bcb0e43546dd16
[]
no_license
thesrikarpaida/Few-Cryptography-Algorithms
fd10d21bf151ef34bb1cf1ce3c89392fc511a1d6
9f2a3c9b55b6b0a796b097dd6565f320adab3a1a
refs/heads/main
2023-05-14T21:18:25.127188
2021-06-10T09:01:56
2021-06-10T09:01:56
375,634,436
0
0
null
null
null
null
UTF-8
Python
false
false
1,164
py
# Affine Cipher encryption is the process of encrypting the data by multiplying each character # with a key in Zn* and then adding a key in Zn. print("--------------------\n--------------------\n--------------------\n") print("In this program, we will encrypt the plain text using Affine Cipher.\n") print("-------...
[ "noreply@github.com" ]
noreply@github.com
4c95071a51fe02bb18a1115c68728b88ea01fed9
bcf3ef8d1c22efbce5d60b5824a084fb72ad9fbf
/mysite/blog/models.py
c71d46206a813d9558698fe44491cf59247e4800
[]
no_license
wzpchris/djangotest
2c1295b394acd782c637823d1ac0efb018a47ff1
b8e5fa0d02fd746c1d6aa61bf53b6cb211173c6a
refs/heads/master
2021-04-06T02:34:26.148195
2018-03-09T15:26:47
2018-03-09T15:26:47
124,557,576
0
0
null
null
null
null
UTF-8
Python
false
false
355
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models # Create your models here. class Article(models.Model): title = models.CharField(max_length=32, default="title") content = models.TextField(null=True) pub_time = models.DateTimeField(null=True) def __unicode_...
[ "271737050@qq.com" ]
271737050@qq.com
c16433c538e011662ea8eceff59a1b1c276665c8
8200911f29e15c30ead299c5eaf78a0181a95098
/swiper/migrations/0016_userprofile_receive_email.py
3cd3c06aff93ea1a0afce9b17ed0385c5aca8d67
[ "MIT" ]
permissive
GFynbo/GoudaTime
a1a02ff0063e76ff47bcde1953a1ed7d68a823bd
add6723fd42f01be8ca12eee0f86c99f5600d8b9
refs/heads/master
2021-09-07T08:17:10.422540
2018-02-20T03:31:49
2018-02-20T03:31:49
108,687,629
2
5
null
2017-10-31T22:55:17
2017-10-28T22:05:46
Python
UTF-8
Python
false
false
450
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.9 on 2018-02-11 00:03 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('swiper', '0015_group'), ] operations = [ migrations.AddField( m...
[ "gavfynbo@gmail.com" ]
gavfynbo@gmail.com
712043d3b7115696d5bdd6313d0f7f1a528b8ed5
5aa93fb40c2b5f3f041094be5c67db72a38a8fe5
/manage.py
064aee261e8f6d7af01a257af05dfa810a644ef3
[]
no_license
silviuz07/WebAtivLPC
87dfee677493a1b40a908a29db9ac1260bccbde3
712ed5f70cdc981c409ea8d6a92294579dc3d303
refs/heads/master
2020-07-30T03:55:22.915936
2019-09-22T02:26:04
2019-09-22T02:26:04
210,071,567
0
0
null
null
null
null
UTF-8
Python
false
false
630
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'WebAtivLPC.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Imp...
[ "silviojrcarvalho@hotmail.com" ]
silviojrcarvalho@hotmail.com
6fe4034060a6c7f766c9209cbf574bfaa93f0ddc
e321bf75e536df3565240e032caf812ed9467d59
/main.py
1d0f473df93d5d7e9069272555960e702901477b
[]
no_license
numaan0/Ping-pong-game-using-Kivy-python
8e678c557679c4a72ee09c688e3bf0345fbe14f9
62479de34987a31526905e057c91c0b126772373
refs/heads/master
2023-03-20T18:25:50.277836
2021-03-07T08:24:39
2021-03-07T08:24:39
345,293,421
0
0
null
null
null
null
UTF-8
Python
false
false
1,870
py
from kivy.app import App from kivy.uix.widget import Widget from kivy.properties import NumericProperty,ReferenceListProperty,ObjectProperty from kivy.vector import Vector from kivy.clock import Clock from random import randint class PongPaddle(Widget): score = NumericProperty(0) def bounce_ball(self,ball): ...
[ "syed07nomi@gmail.com" ]
syed07nomi@gmail.com
125dfc3862cdc8ffda88fc4ac3b297c82fab1791
b2f887a5590eada2a3914af12673211278c2941d
/hw2/multiAgents.py
3dc28a3dcb557237bde3307b87a1bd4ec2adf67a
[]
no_license
anurag6/CSE537
7c269d08ef109556a9b1a704d70f58cfab137c13
2a82e86965ce031749dd3ec414a24fe39c906b2e
refs/heads/master
2021-07-08T17:30:09.418956
2017-10-04T04:50:08
2017-10-04T04:50:08
105,730,317
0
0
null
null
null
null
UTF-8
Python
false
false
16,264
py
# multiAgents.py # -------------- # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to http://ai.berkeley.e...
[ "anurag.porripireddi@stonybrook.edu" ]
anurag.porripireddi@stonybrook.edu
bffc4998a73a001af96ff4d89986c7f07ba844b4
65f94b2fe3794b6fd682e52c7f4047a737cae6c7
/env/bin/symilar
f88c0874a96d9c0b5e2366b5b1482cc352a5092d
[]
no_license
udoyen/vgg-project-challenge
47e7e0c5352437f3df00aff9ac055dbadaadebb5
76a005edec6e77f9467b67bda20002c58abef7a9
refs/heads/master
2022-10-04T14:42:46.267458
2020-02-11T10:47:22
2020-02-11T10:47:22
238,899,753
0
1
null
2022-09-16T18:17:10
2020-02-07T10:45:53
Python
UTF-8
Python
false
false
276
#!/home/george/Documents/vgg-docs/vgg-project-challenge/env/bin/python3 # -*- coding: utf-8 -*- import re import sys from pylint import run_symilar if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(run_symilar())
[ "datameshprojects@gmail.com" ]
datameshprojects@gmail.com
2d9f94c5939c209e95cd90f452b218045cd65527
373c43096384a2ea7f351fdedc64312660a1c344
/src/cli.py
f3ccd5fb4c85d42a6d92d16f6863a85c68bacb64
[ "MIT" ]
permissive
VanirLab/weever
7ad69c76227ac0981b1dd0570e3dbae4dd67de21
b602e90ddecb8e469a28e092da3ca7fec514e3dc
refs/heads/master
2020-05-27T20:57:48.320430
2019-05-27T09:02:33
2019-05-27T09:02:33
188,788,722
3
1
null
null
null
null
UTF-8
Python
false
false
49,577
py
""" Implementation of weever's command line interface. """ import sys import traceback import argparse import logging import getpass import typing as typ from src.wrapper.bad_cluster import BadClusterWrapper from src.wrapper.cluster_allocation import ClusterAllocation from src.fat.fat_filesystem.fat_wrapper ...
[ "noreply@github.com" ]
noreply@github.com
913b22b55b2b66dd81a565174d6e79ac4d9ded03
7398b8196c769af2bb84f0c1e3e079c7c9bf0c22
/Measurement Converter.py
4f4a50715d39e3462e94bb4454942a540ea80674
[]
no_license
Inglaciela/PastaPython
e15576da7d1f9fe45e361b7c6ab054982801160a
cc31d9f20c128c2ac5361e30ec6eb64bbdfa02d5
refs/heads/main
2023-08-27T10:18:53.959821
2021-10-25T16:09:08
2021-10-25T16:09:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
558
py
medida = float(input('Uma distancia em metros:')) cm = medida * 100 mm = medida *1000 print('A medida de {} m corresponde a {} cm e {} mm'.format(medida, cm, mm)) #NA PRIMEIRA E SEGUNDA {} PODE SER COLOCADO :.0f PARA NUM FLOAT SEM CASAS DECIMAS #PARA CALCULAR Quilómetro(km), Hectómetro(hm), Decametro(dam), Decím...
[ "noreply@github.com" ]
noreply@github.com
a7e437ece982cc2ec71e49e9dc3b0d2230b15089
2d2aaf6b93bca99443463046c2f391588533bf7c
/lesson_8/instagram/settings.py
903900de867961c74f12d01e24985226499ed577
[]
no_license
chernova-ann/Data-collection-and-processing-methods
db86739c6876edcf2bb4c241444d9525bf72e395
238d4528f5ea108925a39f2d64a0a05e42f719aa
refs/heads/master
2022-12-06T15:17:42.636713
2020-09-02T18:05:35
2020-09-02T18:05:35
282,038,579
0
0
null
null
null
null
UTF-8
Python
false
false
3,219
py
# Scrapy settings for instagram project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://docs.scrapy.org/en/latest/topics/settings.html # https://docs.scrapy.org/en/latest/topics/downloader-middlewa...
[ "noreply@github.com" ]
noreply@github.com
c4cbbf7636695a0ca4c879867e213c7d40e40e58
a4f3eeecaac5d1cd43954997d1faffb98103aa89
/topperProject/topperProject/topperApp/migrations/0003_addalbum_rating.py
90d7f6be6972977b7a61d63568bab4a93d2bb9ce
[]
no_license
Ben-Stevenson/DjangoFullStack
f99874ba01e95feff0b235af7414beab77a1809d
9b6425a38998c919d37087154fbb747aa6de08eb
refs/heads/master
2022-11-27T20:44:20.626933
2020-08-05T14:54:45
2020-08-05T14:54:45
285,320,566
0
0
null
null
null
null
UTF-8
Python
false
false
583
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-23 17:23 from __future__ import unicode_literals import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('topperApp', '0002_addreview_rating'), ] operations = ...
[ "bww.stevenson@btinternet.com" ]
bww.stevenson@btinternet.com
dae9dc485e3fb180f377368fb642b0eeeb1004c6
1640189b5bf78114e2749a8ed1216e099bae9814
/src/xmlsec/rsa_x509_pem/pyasn1/debug.py
5aa42ced36ef65aadacddb629cebd74977b9d1a4
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
hfalcic/pyXMLSecurity
fb69cce12c1b417928d85b91a4c3dc87f46935ec
b29a68e6d21a0485b9190be45d532b9042fdc918
refs/heads/master
2020-04-03T13:19:13.016532
2014-07-08T17:57:55
2014-07-08T17:57:55
21,471,398
0
1
null
null
null
null
UTF-8
Python
false
false
1,512
py
import sys from .compat.octets import octs2ints from . import error from . import __version__ flagNone = 0x0000 flagEncoder = 0x0001 flagDecoder = 0x0002 flagAll = 0xffff flagMap = { 'encoder': flagEncoder, 'decoder': flagDecoder, 'all': flagAll } class Debug: defaultPrinter = sys.stde...
[ "harvey.falcic@gmail.com" ]
harvey.falcic@gmail.com
1bab025bfdd198402464361de2c9ab6092f42c10
fb90c54f2b4f3d852a9380f23b837c9b79af9656
/sort_calendar_mar_15.py
babce2930d0e4bdcc46ba57e3584e804347f1746
[]
no_license
Daniel-Chin/airbnb
0cd05209049e123dba763b32e7c55ae7688ccef7
fddfd3861292fd6a191a76b969df533c67933119
refs/heads/master
2021-03-23T21:23:33.374301
2020-11-17T13:11:41
2020-11-17T13:11:41
247,485,164
0
0
null
null
null
null
UTF-8
Python
false
false
2,349
py
import csv import datetime def distribute(): with open('raw/calendar_mar_15.csv', 'r') as f: now_id = None outF = None all_id = set() try: c = csv.reader(f) head = next(c) for line in c: id = line[0] if id != now_id: if int(id) % 16 == 0: print(id) ...
[ "daniel_chin@yahoo.com" ]
daniel_chin@yahoo.com
c9cbfca3f4c84cb5e219730e43194e7238cda653
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/358/usersdata/296/102792/submittedfiles/estatistica.py
79ada402f0ec9ec03a71780b75717f4fa32662f5
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
1,036
py
# -*- coding: utf-8 -*- def media(lista): soma = 0 for i in range(0,len(lista),1): soma = soma + lista[i] resultado = soma/len(lista) return resultado def media(lista): media = sum(lista)/len(lista) return media def desvio_padrao(lista): somatorio = 0 for i in range (0,len...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
1dd263aa244648cfd3f1c586ba8b042eae7e4f39
cb1d888146c36d2be4517baf34ffaabe00082afa
/prog/__main__.py
fa47c9db6bcf5392c943e308a23795e4e62e16c3
[]
no_license
Cheeel666/BMSTU_CP_CG
37d555d654c8d77f1b863ad4a89856f85bab883d
0cde22840233f67d34d4ef0681c28e8f38205c61
refs/heads/master
2023-04-30T03:55:28.331290
2021-05-21T21:45:12
2021-05-21T21:45:12
320,270,779
0
0
null
null
null
null
UTF-8
Python
false
false
1,512
py
from src.model import NLM from tkinter import * class Window: def __init__(self): self.window = Tk() self.window.title("NLM") self.window.geometry('500x280') self.lbl = Label(self.window, text="Введите название изображения:") self.lbl.grid(column=0, row=0) self.entry...
[ "IChelyadinov" ]
IChelyadinov
60f59e3d60f1e9f3547b430a782fc7a3067456ac
582e74cace57aae609522f803776fc7c784fb203
/Crypto/Decrypt.py
6a202df9335c38485f11f4c4c46abe6819394c1c
[]
no_license
tirelesslearner-1901/MiniSpy
5d8691e1e0e62e22ddfd34617b2f4372132c93da
b74e393d339c75e39de28f8e2a8deb28f31e9d95
refs/heads/main
2023-08-22T20:31:02.295392
2021-10-16T08:36:19
2021-10-16T08:36:19
417,756,656
1
0
null
null
null
null
UTF-8
Python
false
false
515
py
from cryptography.fernet import Fernet key = " " system_info_e = "e_system.txt" clipboard_info_e = "e_clipboard.txt" keys_info_e = "e_keys_log.txt" encrypted_files = [system_info_e,clipboard_info_e,keys_info_e] count = 0 for decryption in encrypted_files: with open(encrypted_files[count], 'rb') ...
[ "noreply@github.com" ]
noreply@github.com
19b0f1f8a7c09dc649e0cad037b8f1d8ebb8b242
81579ecd0678d652bbb57ff97529631fcfb74b12
/corehq/motech/openmrs/tests/test_repeater_helpers.py
83282f2a7427ec1fa865d3dd1356587c444939b9
[ "BSD-3-Clause" ]
permissive
dungeonmaster51/commcare-hq
64fece73671b03c1bca48cb9d1a58764d92796ea
1c70ce416564efa496fb4ef6e9130c188aea0f40
refs/heads/master
2022-12-03T21:50:26.035495
2020-08-11T07:34:59
2020-08-11T07:34:59
279,546,551
1
0
BSD-3-Clause
2020-07-31T06:13:03
2020-07-14T09:51:32
Python
UTF-8
Python
false
false
1,089
py
from unittest import skip from nose.tools import assert_regexp_matches from corehq.motech.auth import BasicAuthManager from corehq.motech.openmrs.repeater_helpers import generate_identifier from corehq.motech.requests import Requests DOMAIN = 'openmrs-test' BASE_URL = 'https://demo.mybahmni.org/openmrs/' USERNAME = ...
[ "nhooper@dimagi.com" ]
nhooper@dimagi.com
d157dc7adafb7e4b11b40e1cb6df040e6aa52c00
b06f4dc6b1703f7e05026f2f3ff87ab776105b18
/google/cloud/logging_v2/services/logging_service_v2/transports/grpc_asyncio.py
1f33ad78a14fb422539ecb389430bec68882bee1
[ "Apache-2.0" ]
permissive
anilit99/python-logging
040eeb4eed7abe92757b285a1047db09242e89c9
9307ad72cb5a6d524ed79613a05858dbf88cc156
refs/heads/master
2023-06-01T04:49:38.975408
2021-06-17T10:52:15
2021-06-17T10:52:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,347
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "noreply@github.com" ]
noreply@github.com
585eae1b49fd2617ff07cd0c7343294fbf78333c
96d9dc3f29661b1fbc732d6ae054eccb97e18843
/ifind
a9971082afeb319cde78a1f9150a150dc3cc049c
[ "CC-BY-4.0", "CC-BY-3.0" ]
permissive
mtxstarship/mattutils
5ccd990fdb6252a9f318c6773f058a4dc763633b
703df7a464e047399b3915b77241b73148502a1b
refs/heads/master
2020-07-04T10:55:38.157363
2016-11-16T06:45:37
2016-11-16T06:45:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,937
#!/usr/bin/env python3 ''' An ncurses wrapper around `find`. ''' import curses, grp, os, pwd, random, shutil, stat, subprocess, sys, tempfile, time EDITOR = os.environ.get('EDITOR', 'vim') PDF_VIEWER = 'evince' VIEWER = os.environ.get('VIEWER', 'view') MPLAYABLE = ['.mp3', '.ogg', '.ogv', '.mp4', '.avi', '.flv', '.f...
[ "matthew.fernandez@gmail.com" ]
matthew.fernandez@gmail.com
080a6e7e8f5e0c897c92846f23df703ff1cf81f0
a8750439f200e4efc11715df797489f30e9828c6
/LeetCodeContests/87/845_longest_mountain.py
141d5018c884992b88f6afeddcd2fd5ae122f0db
[]
no_license
rajlath/rkl_codes
f657174305dc85c3fa07a6fff1c7c31cfe6e2f89
d4bcee3df2f501349feed7a26ef9828573aff873
refs/heads/master
2023-02-21T10:16:35.800612
2021-01-27T11:43:34
2021-01-27T11:43:34
110,989,354
0
0
null
null
null
null
UTF-8
Python
false
false
1,187
py
''' Let's call any (contiguous) subarray B (of A) a mountain if the following properties hold: B.length >= 3 There exists some 0 < i < B.length - 1 such that B[0] < B[1] < ... B[i-1] < B[i] > B[i+1] > ... > B[B.length - 1] (Note that B could be any subarray of A, including the entire array A.) Given an array A of int...
[ "raj.lath@gmail.com" ]
raj.lath@gmail.com
2821a21f0162a4a77a2f98f168a897b8996859f9
c75a22d65a2cc8afe905ef73ae9d5db7556ac2d6
/python/Binary Tree/bst_recursion.py
4a5f1db2e3ec076322b9a25f28e07ff267e431da
[ "MIT" ]
permissive
SoumyaMalgonde/AlgoBook
2956885fe69451a61f03c8efc1607d6d88926ac9
b21386e54a49d03c74f27eee9818b6d2a715371d
refs/heads/master
2023-01-05T01:14:39.054932
2020-10-29T09:45:43
2020-10-29T09:45:43
308,100,608
3
0
MIT
2020-10-28T18:18:06
2020-10-28T18:02:55
Jupyter Notebook
UTF-8
Python
false
false
2,248
py
class Node: def __init__(self,key): self.left = None self.right = None self.value = key def insert(root,key): if root is None: return Node(key) else: if root.value == key: print("Value already exists") return root eli...
[ "pranavkarnani@icloud.com" ]
pranavkarnani@icloud.com
56f61545798151002ae6430bfffe35590ecc58ae
72c411cb982de8289f50b3794968c33373e776c5
/requirements/area.py
f3c9a887aabc6dd64d864f58f8dcb48740b12020
[]
no_license
xDrone-DSL/flask-backend
3592b93d873732180fac7a7887b4593f7bdb072f
3f3a7bbf1f035beab76d2cfe603d9ee63c4705de
refs/heads/master
2022-08-26T03:10:25.143696
2021-04-02T02:53:16
2021-04-02T02:53:16
217,087,101
1
1
null
2022-08-06T05:36:44
2019-10-23T15:09:09
Python
UTF-8
Python
false
false
530
py
class Area: def __init__(self, z): self.x_low = min(z["x_low"], z["x_high"]) self.x_high = max(z["x_low"], z["x_high"]) self.y_low = min(z["y_low"], z["y_high"]) self.y_high = max(z["y_low"], z["y_high"]) self.z_low = min(z["z_low"], z["z_high"]) self.z_high = max...
[ "mb4617@ic.ac.uk" ]
mb4617@ic.ac.uk
883164030eb6e0bc556907b8b9b6df0a83a0820a
f67473326cda6fb53dfdf4a3bef851d395413a81
/build/lib/keras_rcnn/datasets/__init__.py
dce2be54a159b5b284e7c9611f0f5dffb41a10dd
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
jeffreysijuntan/MaskRCNN
e846f5b2ded8c8f389c9fc9dfa27052e3f98b948
a552e5958413f59d5c67bd7822a70b426c00b4a7
refs/heads/master
2020-03-06T20:59:04.326051
2018-03-28T18:42:37
2018-03-28T18:42:37
127,067,330
0
1
null
null
null
null
UTF-8
Python
false
false
1,472
py
# -*- coding: utf-8 -*- import json import os.path import keras.utils.data_utils def load_data(name): origin = "http://storage.googleapis.com/tsjbucket/{}.tar.gz".format(name) pathname = keras.utils.data_utils.get_file( fname=name, origin=origin, untar=True ) training_image...
[ "sijuntan@yeah.net" ]
sijuntan@yeah.net
426d140370b3d594e0a398fb1603285aa7ead675
0c212aa63d07e84fbad849d15f2ee6a72aea82d2
/11-格式化文件储存/p03.py
39a910a3f2badbfbeb222fdbbe1cf96c8e57ffde
[]
no_license
flyingtothe/Python
e55b54e1b646d391550c8ced12ee92055c902c63
064964cb30308a38eefa5dc3059c065fcb89dd9f
refs/heads/master
2021-08-06T19:44:42.137076
2018-12-03T12:15:15
2018-12-03T12:15:15
145,518,863
3
0
null
null
null
null
UTF-8
Python
false
false
495
py
import xml.etree.ElementTree as et tree = et.parse(r'to_edit.xml') root = tree.getroot() for e in root.iter('Name'): print(e.text) for stu in root.iter('Student'): name = stu.find('Name') if name != None: name.set( 'test', name.text * 2) stu = root.find('Student') #生成一个新的 元素 e = et.Element(...
[ "heidemeirenai@163.com" ]
heidemeirenai@163.com
9cab9dc37c46f3af6d44d688dd5c03fcf4425162
10c459a49cbc8ee2dc3bc2a8353c48b5a96f0c1d
/AI/nai_bayes.py
131804de264e30fc0df16076a4ac00543533cbaf
[]
no_license
alinzel/Demo
1a5d0e4596ab4c91d7b580da694b852495c4ddcc
cc22bbcdbd77190014e9c26e963abd7a9f4f0829
refs/heads/master
2020-03-10T22:26:30.247695
2018-04-15T15:37:28
2018-04-15T15:37:28
129,619,168
0
0
null
null
null
null
UTF-8
Python
false
false
3,994
py
import numpy as np from sklearn.naive_bayes import MultinomialNB, BernoulliNB from sklearn.datasets import fetch_20newsgroups from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.model_selection import GridSearchCV from sklearn import metrics from time import time from pprint import pprint import ma...
[ "944951481@qq.com" ]
944951481@qq.com
7782ae2cf530c772011e7e4dd7449946e8542ad0
959c5b935f4a039878a995ffa102b860ab0867fa
/hello/migrations/0001_initial.py
a9ab96cc6a3a3072da562e8286306f664344c8a5
[]
no_license
hari2014/test
b92d2eee83b1aed9ffa91e2edb5c4651a712b407
f4fb1109ac0665652a499292fb4cadaaa2191e3e
refs/heads/master
2021-01-22T12:35:31.339143
2017-09-04T16:40:30
2017-09-04T16:40:30
102,350,278
0
0
null
null
null
null
UTF-8
Python
false
false
1,204
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-09-04 09:48 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='detail...
[ "noreply@github.com" ]
noreply@github.com
8df2f07e84e4f4a4d53706f3fb37fdbd8c2be89b
237ac9cdbb5edcf84abc736efd5833bc077961b6
/bin/chardetect
b507bdb15b6d0f28815df91c67f821949496f79e
[ "MIT" ]
permissive
leonbroadbent/vmware-ansible
3a8427ca4dc84231619dee21270d21c7b287a1a1
8253dfcbe3bb44ed859b9084006c8d81e143ba12
refs/heads/main
2022-12-30T09:29:40.038125
2020-10-07T00:54:35
2020-10-07T00:54:35
301,825,278
0
0
null
null
null
null
UTF-8
Python
false
false
261
#!/home/leon/Documents/Projects/vmware-ansible/bin/python3 # -*- coding: utf-8 -*- import re import sys from chardet.cli.chardetect import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "leon@leonbroadbent.com" ]
leon@leonbroadbent.com
06f235fd1143199f8fbe874e8717f8ab7ab6aadd
9b524391b71abf948471d2c982fadcefc6f09c66
/day04.py
c1483ed086e687e992a55bea27d0cf691be6e67b
[]
no_license
chena/aoc-2018
a4d30cc3116e0e1e9f6fa54971c95c018a05f3ac
2300ac22a30b5c9b1d03dd479b14d77206b2186c
refs/heads/master
2020-04-09T05:16:32.015415
2019-02-23T02:22:24
2019-02-23T02:22:24
160,057,948
0
0
null
null
null
null
UTF-8
Python
false
false
1,770
py
from util import get_input from collections import defaultdict import datetime import re def process(): logs = [] guard_hrs = {} # sort the logs for log in get_input('day04.txt'): timestamp = datetime.datetime.strptime(log[1:17], '%Y-%m-%d %H:%M') content = 'sleep' pattern = re.compile('Guard #(.+) begins'...
[ "alice@perka.com" ]
alice@perka.com
7d084be3b90386de03a9247bbd700b449d4d3c35
1609e3853dd35a3bd7269ac909c487354dbd3307
/kpsinvo/core_app/migrations/0001_initial.py
ded6f2331b2e608d204058594ae6f461d47f26d8
[]
no_license
Hyrla/KPSInvo
33a477ee34df04ab6382b8a7790ae4aa95f87e10
674d90456ea52ce65245db3279d0888e7f970242
refs/heads/master
2023-01-02T06:47:08.048760
2020-10-15T14:35:47
2020-10-15T14:35:47
304,132,977
0
0
null
null
null
null
UTF-8
Python
false
false
686
py
# Generated by Django 3.1.2 on 2020-10-14 20:02 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Thing', fields=[ ('id', models.AutoField(au...
[ "fournier@et.esiea.fr" ]
fournier@et.esiea.fr
16b25ff5a3aed45017c060619a98e4dfce6a60d6
cbda89443b351bb2047180dad4e300c13dc3df7f
/Crystals/Morpurgo_sp_outer/Jobs/Pc/Pc_neut_neut_inner1_outer4/Pc_neut_neut_inner1_outer4.py
416385fcff412563b8446a40888f5125d9823323
[]
no_license
sheridanfew/pythonpolarisation
080f52979f98d26360a46412a10c8e3f51ee4549
178e2684e9a239a8e60af5f7b1eb414ac5f31e92
refs/heads/master
2021-07-10T01:07:40.978790
2021-03-11T16:56:37
2021-03-11T16:56:37
96,101,351
0
0
null
2017-07-03T13:37:06
2017-07-03T10:54:52
null
UTF-8
Python
false
false
5,279
py
import sys sys.path.append('../../../../../') from BasicElements import * from BasicElements.Register import GetRegister from BasicElements.MoleculeFactory import ReadMoleculeType from BasicElements.MoleculeFactory import GetMolecule from BasicElements.Crystal import * from Polarizability.GetDipoles import get_dipoles,...
[ "sheridan.few@gmail.com" ]
sheridan.few@gmail.com
3b6132e8675885d7b3c34747abc099bd39c9fcd5
59b7d65c84575aa6dd3e4831a9a3923a456b1be3
/query.py
09c22e65dfef71c3b90646aba398175bab6f9a1e
[]
no_license
leehelenah/Analyze-H1B-PW-data
84095b7809a8ed851aede5f1e1662d93b8f1b73a
75f71c7e57b7834fef0e0f5c20975d40f3ee394a
refs/heads/main
2023-08-31T11:05:49.149378
2021-09-26T02:53:07
2021-09-26T02:53:07
405,804,569
0
0
null
2021-09-25T05:37:07
2021-09-13T02:12:32
Jupyter Notebook
UTF-8
Python
false
false
561
py
LCA = """ SELECT *, CASE WHEN WAGE_UNIT_OF_PAY='Year' THEN WAGE_RATE_OF_PAY_FROM ELSE WAGE_RATE_OF_PAY_FROM*50000 END AS ANNUAL_INCOME, '{file_source}' AS FILE_SOURCE, UPPER(WORKSITE_COUNTY) AS WORKSITE_COUNTY_UPPER FROM {view} WHERE CASE_STATUS='Certified' AND FULL_TIME_POSITION='Y' AND WAGE_UNIT_OF_PAY in...
[ "noreply@github.com" ]
noreply@github.com
681440009127bf5750638d9a87a4155477b2fda3
43b34ed0be64771f236c086f716bc6a92ae3db32
/kt_ph_n.py
8073dcefb011746731594e8d83f99505915ad414
[]
no_license
elonca/LWB-benchmark-generator
ad5b6dc5e591941184056476db3ad13f01900879
7a7f28800f7574c98a3883f6edccad727dd509bc
refs/heads/main
2023-07-28T01:42:22.532324
2021-09-16T07:22:56
2021-09-16T07:22:56
407,061,367
0
0
null
2021-09-16T07:12:38
2021-09-16T07:12:37
null
UTF-8
Python
false
false
135
py
from k_ph_n import * def kt_ph_n(n): return str(kt_ph_n_f(n))[1:-1] def kt_ph_n_f(n): return left(n) |IMPLIES| Dia(right(n))
[ "u6427001@anu.edu.au" ]
u6427001@anu.edu.au
0daa3d13c4d74a0a76bdd1193d5124f2a006877e
ccda463cf6eb0ef6690f811e3c54c439d462019e
/Exercise 1_7_rps.py
75bd8fd9459f355771463912ee3d4a92ac8f291a
[]
no_license
ViralGor/Assignment-1
bae6e9fca993990a3afc50a294f55170a976e445
81d8184d962165398225d98f091adbfa1550a943
refs/heads/master
2021-08-26T08:12:20.412634
2017-11-22T11:37:03
2017-11-22T11:37:03
111,676,864
0
0
null
null
null
null
UTF-8
Python
false
false
740
py
player1 = input("Enter player1?: ") player2 = input("Enter player2?: ") if(player1=='rock' and player2=='scissors'): print("Player1 won") elif(player1=='rock' and player2=='paper'): print("Player2 won") elif(player1=='rock' and player2=='rock'): print("Tie") elif(player1=='paper' and player2=='rock'): ...
[ "33891077+ViralGor@users.noreply.github.com" ]
33891077+ViralGor@users.noreply.github.com
498bf8c8f040a41ab9c636bdd1e38a5376c813cc
fec70eda5a0833887632dbf5a2408b2cb67a98a3
/condicionales/main.py
84e565a71213a2238a2360fd0f264bf3d1a1b761
[]
no_license
jmav94/topicos-con-python-2021
d07dedd76a8375b94b7e03fe7a8dd4698b0feae4
72797f8d59101f7f45b7ca668ba733e898bf75ad
refs/heads/master
2023-05-23T23:17:16.427899
2021-06-14T05:10:27
2021-06-14T05:10:27
342,257,794
0
1
null
null
null
null
UTF-8
Python
false
false
3,458
py
""" IF SI se cumple esta condicion: Ejecutar estas instrucciones SI NO: Se ejecutan estas otras instrucciones if condicion: instrucciones else: otras instrucciones # Operadores de comparacion == igual != diferente < menor que > mayor que <= menor o igual que >= mayor o igual que # Operadores Logicos and Y o...
[ "juan.ahumada94@gmail.com" ]
juan.ahumada94@gmail.com
d13041f7c47daa9b42d651b0e7c12a895ce9ff78
41ecc22fe68d9849f956c282b03f9203c4c2dbe3
/main/admin.py
313fc75f2b07be72f8f4e2d55effb16426f71861
[]
no_license
awmleer/one-word-one-story
21e7dd5601b7457ffeb0fca528e2eb0017f7a3e2
28715f5e97da8772b5bc03e27613b67f67420543
refs/heads/master
2021-06-01T19:15:59.217416
2016-08-22T02:09:03
2016-08-22T02:09:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
167
py
from django.contrib import admin from .models import * # Register your models here. admin.site.register(Person) admin.site.register(Story) admin.site.register(Word)
[ "haoguangbo@yeah.net" ]
haoguangbo@yeah.net
54255480175da94416aaacaf9d2c55cbf4dbef26
2d68548aeb61dc2c66b4b600580db4e496202c4a
/manage.py
75ad49068f8a0d236bdf195daf97e02166ad5548
[]
no_license
liuyi0906/netshop
1bd0b1985ebe4b91271b70a51801bb70d80f4fdc
4a93f03b2c20a9e7cb312facd3fca498683cbeb1
refs/heads/master
2021-05-15T02:23:05.573881
2020-03-26T13:17:04
2020-03-26T13:17:04
250,262,996
2
0
null
null
null
null
UTF-8
Python
false
false
539
py
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'netshop.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are ...
[ "1776756669@qq.com" ]
1776756669@qq.com
a861c16f64b145bf95867c56ed01252b9a341a5e
0e412122a9967f6788b94f7ef6965eff7578a080
/Part 2/Py script vol/v1.0.2/__init__.py
0901d3795f7199c008053ea8383189f23fc7cc9e
[]
no_license
ibrahimkhalilmasud/-intrusion-detection-system-host-base-with-Python-port-and-SSH-server-scanner
be7ccdb956c2fdc832fdfba2a3f91427789e6974
1b0939f12e8cb89aab9011b6bd77e64a6b4bce53
refs/heads/master
2022-06-01T04:11:47.068095
2020-05-04T06:44:44
2020-05-04T06:44:44
250,737,122
1
0
null
null
null
null
UTF-8
Python
false
false
45
py
#__all__ = ["port", "Port2", "ssh_scanner_1"]
[ "36391855+ibrahimkhalilmasud@users.noreply.github.com" ]
36391855+ibrahimkhalilmasud@users.noreply.github.com
368c766224aa60b38f1fa2f175c3c59d12a092d9
16c8357d2df4c9fb02440db93881fa2c6f52d03b
/vst/urls.py
f6631b7cd7b3e04caa96bce7bf8076945b551303
[]
no_license
nikhilmuz/Bioinfo_molecule_sorting
09d458d2f21cc3145a5b316fbfc4cb68122ea216
ca17ef5699745d1d2ab6348bccd5441392581373
refs/heads/master
2020-03-21T14:20:55.211606
2019-01-27T17:14:14
2019-01-27T17:14:14
135,333,150
0
0
null
null
null
null
UTF-8
Python
false
false
773
py
"""vst URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based ...
[ "nikhil.nikhil.muz@gmail.com" ]
nikhil.nikhil.muz@gmail.com
b15ef0ce97a9d687f88f8fcbea3e7e4fa94065ff
db79787a8726e136e48b25133fbe6724d25ec5f2
/src/uikefutestcase/kefu_testcase02_myuserfeedback_alllist_noback.py
ed16c701208661bbe7f10597431d0d76fb24c159
[]
no_license
cash2one/edaixi_python_selenium
a1d51ada40788c550f3014bf62a44360781b27b9
ae63b323a46032dc3116c4515ee375ace67dddda
refs/heads/master
2020-05-22T16:55:53.137551
2016-11-26T15:31:52
2016-11-26T15:31:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,355
py
# -*- coding: utf-8 -*- from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import Select from selenium.common.exceptions import NoSuchElementException from selenium.common.exceptions import NoAlertPresentException...
[ "ibmcuijun2015@126.com" ]
ibmcuijun2015@126.com
c3b04dfc938039b9540e226bcf5b58bc739dc96d
42803b9b279991cdfe8978ecc9a01918e8ab174c
/examples/courier_example.py
c852e2fed233d70ff129aa10c2e28e453216c87b
[ "MIT" ]
permissive
AfterShip/aftership-sdk-python
0732159d0128dc0d7202343dba17cd7c4f3f5de7
32299e673cc859d1c7571240edd97aba98470418
refs/heads/master
2022-11-21T10:39:01.578286
2022-07-27T09:20:52
2022-07-27T09:20:52
20,640,069
43
20
MIT
2022-11-10T06:44:16
2014-06-09T08:50:12
Python
UTF-8
Python
false
false
536
py
import aftership aftership.api_key = 'PUT_YOUR_AFTERSHIP_KEY_HERE' def get_enabled_courier_names(): result = aftership.courier.list_couriers() courier_list = [courier['name'] for courier in result['couriers']] return courier_list def get_supported_courier_names(): result = aftership.courier.list_al...
[ "alvie.zhang@gmail.com" ]
alvie.zhang@gmail.com
2a62d0ce7d1490a12fab7d9049349edd7a6f7f38
d515e4ee65e064b8bfc8895d9b55fd7a23572649
/plugins/operators/dataflow_xcom_operator.py
aa9de87209b3ad0985391ba093f2d33481653527
[ "Apache-2.0" ]
permissive
HocLengChung/docker-airflow
a8c995534c3102559d41e76d04245471900b2757
b4b6f7e13d031fd40843884b27ae9e3f9a998afc
refs/heads/master
2020-07-19T06:28:06.662885
2019-09-05T19:20:22
2019-09-05T19:20:22
206,391,809
0
0
Apache-2.0
2019-09-04T18:58:11
2019-09-04T18:58:10
null
UTF-8
Python
false
false
10,591
py
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
[ "hoc.leng.chung@devoteam.com" ]
hoc.leng.chung@devoteam.com
5fbfc72f14ae2926b33488a6f8779cdf247fa0b7
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_397/ch12_2020_03_04_11_23_47_173814.py
6f4b82bd91b75fe7a2fadd6fbd05585a048320bf
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
61
py
def resolve_equacao_1o_grau (a, b): X=(0-b)/a return X
[ "you@example.com" ]
you@example.com
f6399a661fc91b6428b91b95ac912b34f0274bb8
6ad7f2266ce14e9556a98ae8a919c268d5ec2f01
/model_measuring/kamal/core/callbacks/logging.py
79c6119daaf1643b251c96f61f14d0cfac23e9e9
[ "Apache-2.0" ]
permissive
Gouzhong1223/Dubhe
3fc3fbb259e71013c2ddc12c27dbd39b98e56534
8959a51704410dc38b595a0926646b9928451c9a
refs/heads/master
2022-07-26T23:24:54.295338
2021-12-27T05:58:18
2021-12-27T05:58:18
442,334,231
2
1
null
null
null
null
UTF-8
Python
false
false
2,167
py
""" Copyright 2020 Tianshu AI Platform. 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 applicable law ...
[ "tianshu@zhejianglab.com" ]
tianshu@zhejianglab.com
60ac420c2fdafe2fef8b1cbd79cbee62bb4ae15b
bb05406a5abd415807d9f1a9fc8d47502657c7a8
/Test3(square tracking face and eyes)/final.py
f3b0d0e844697b6d295e9bcea748ebb68d989e77
[ "Apache-2.0" ]
permissive
spell1612/Face-Overlay-AR
fce26a9677f9f965af30e6807f5037bf4af018b1
7350d13999c2647412b34637a70c817cf5940350
refs/heads/master
2021-04-15T14:01:21.444735
2021-03-19T18:36:28
2021-03-19T18:36:28
126,498,107
6
3
null
2020-09-08T08:27:09
2018-03-23T14:40:59
Python
UTF-8
Python
false
false
986
py
import numpy as np import cv2 face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') eye_cascade = cv2.CascadeClassifier('haarcascade_eye.xml') cap = cv2.VideoCapture(0) count=1 while True: ret, img = cap.read() gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) faces = face_cascade.detect...
[ "spell1612@gmail.com" ]
spell1612@gmail.com
c0d4a1418c35fa87353788017933553e0217d445
0a1a0b8034d3f6cfc39dd756f0bdb1981ef0a990
/main.py
8edc314eef8c22d308a7d004e1b9b5d0d9f900a1
[]
no_license
dirac292/Password_Manager
e4638c4b902aaa7fb103c32a85812a0ccc9bd017
49e11121dab1d8f50e8283dc553e2f3c82bb9de7
refs/heads/main
2023-06-26T15:20:13.937690
2021-07-20T11:41:38
2021-07-20T11:41:38
368,448,145
0
0
null
null
null
null
UTF-8
Python
false
false
16,689
py
import json import re import base64 import random import os from cryptography.fernet import Fernet from tkinter import * from tkinter import messagebox from tkinter import simpledialog from tkinter import ttk from ttkthemes import ThemedTk import pyperclip from cryptography.hazmat.backends import default_backend from c...
[ "noreply@github.com" ]
noreply@github.com
d93a39b389a01a60c09bd2155e8c4f7003ac6379
67c849d4de48ed2ced0de758d2f19fb1b86663f9
/ledcontroller.py
cd3222b566e8d10777b199e68dc864b9a9fe0b42
[]
no_license
s-dasa/led-proj
66fdb84e45f8bb1fea3bc767a35d3ef2e43fda1a
465a547a4c167ee1f4c515931b1a4666c812f0d5
refs/heads/master
2020-06-12T14:39:05.404403
2019-07-04T20:01:44
2019-07-04T20:01:44
194,332,664
0
0
null
null
null
null
UTF-8
Python
false
false
1,855
py
from gpiozero import * import RPi.GPIO as GPIO from time import sleep from led_database import * #from tester import * class controller(): def __init__(self): self.led_obj = led_class() #self.my_tester = testing() self.color = "" self.times = 0 self.rate = 1 self.led_...
[ "noreply@github.com" ]
noreply@github.com
2eefca90d0978c3e073c76b1c622a1f5013e263f
e4f42366983ee0e08e22dfd305f1b161ca1173c4
/DesignPattern/proxy.py
cd0e860db878b04004fe232f37141dc402220f6e
[]
no_license
GhostZCH/python-examples
c949aba3d07993164474d21ebec902be6ad9a99a
383384c2769ccd1bf470c62c790236331d2dae37
refs/heads/master
2021-10-01T14:19:26.388354
2018-11-27T00:01:37
2018-11-27T00:01:37
40,755,376
0
0
null
null
null
null
UTF-8
Python
false
false
590
py
class FactorialProxy: def __init__(self, n): self.n = n def factorial(self): 'real computing' result = 1 for i in range(self.n): result *= i + 1 return result if __name__ == '__main__': item_list = ['100! = ', FactorialProxy(100),';' , '200! ...
[ "noreply@github.com" ]
noreply@github.com
eff8eacaddbcb5f0b247e7725566f85fd0320b10
4f7bb02e4fcba432f673615886e80dafdabb6942
/munges/creature_heatmap2_standard.py
6e84607bfd3ea2cdc70ed68b3da62354d0e42bf7
[]
no_license
robbintt/mtg-data-processing
ec0e31676d7785b51e5ce4bc1e697fd9cceec1ed
c2d386d0709e199bd43b9b255507ffea5b62d9e4
refs/heads/master
2016-09-10T17:16:29.582837
2015-07-20T06:44:10
2015-07-20T06:44:10
34,285,811
0
0
null
null
null
null
UTF-8
Python
false
false
3,474
py
""" Gather all the ability text for a provided sqlite db and generate a word frequency dict for it. """ import sqlite3 import re import utils.wordfreq import copy # This uses a symlink, may break in non posix. # use os.path.join here if you wish. sample_db = "../db/standard.sqlite" def clean_text(dirtytext): """ ...
[ "robbintt@gmail.com" ]
robbintt@gmail.com
fb50b6df0ff5b04d2d8eec90f3141572a7c00c53
822772bb8718e315658e6f9a6b3628d839f852a3
/venv/bin/pyi-makespec
40dfbe18d0f42732935edf35d2503912a75060e0
[]
no_license
tuhindewan/EDiaries
dff23ce72081fcfafc0b076cf733ba5e9427d319
2753be83c30379e1abd21e631a4ad1297a060681
refs/heads/master
2022-11-23T14:23:14.381225
2020-07-30T06:55:35
2020-07-30T06:55:35
277,780,141
0
0
null
null
null
null
UTF-8
Python
false
false
419
#!/home/tuhin/EDiaries/venv/bin/python3 # EASY-INSTALL-ENTRY-SCRIPT: 'PyInstaller==3.6','console_scripts','pyi-makespec' __requires__ = 'PyInstaller==3.6' 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]) ...
[ "tuhinsshadow@gmail.com" ]
tuhinsshadow@gmail.com
c483568c2315f978744b6101a583b3a86f7d31ca
8e6e3f7fc065548cb25825632c49d83964bf9f30
/Network/TelnetApplication.py
49defd5da817e2f396c626560ae3413f2b1f7161
[]
no_license
raviwithu/Scripts
1d13c9f368ed9ab966fda434d022acd9f71d3f1d
cba34cdceee121ce696bc1b30faf19a1fc126eda
refs/heads/master
2021-01-22T02:13:18.252626
2018-05-03T01:53:16
2018-05-03T01:53:16
92,339,767
0
0
null
null
null
null
UTF-8
Python
false
false
831
py
def open_telnet_conn(ip): try: connection = telnetlib.Telnet(ip, 23, 5) output = connection.read_until("name:", READ_TIMEOUT) connection.write(username + "\n") output = connection.read_until("word:", READ_TIMEOUT) connection.write(password + "\n") time.sleep(1) ...
[ "miravishankar@yahoo.co.in" ]
miravishankar@yahoo.co.in
ac7e69a00d6ae49d7a169955c6ba1228e4f0a064
85466f270dd3ebef93a80db7b6fe5227dd504c81
/lstm/nn-trajectory-prediction/train.py
af7824ca9f42e5a2631f4c680319950058e3e0f0
[]
no_license
vineetsk1/cs231a-project
e5bc20e713a58bbc42677bd2d1c6487ef06a60f1
f6adc7733144502fa891cabf21392a51534de306
refs/heads/master
2021-03-24T12:31:24.626838
2018-03-22T22:08:23
2018-03-22T22:08:23
122,318,431
10
0
null
null
null
null
UTF-8
Python
false
false
5,200
py
#training script for neural nets import numpy as np from pooling_gru import PoolingGRU from baseline.naive_gru import NaiveGRU from utils import * import pdb import argparse import math _id = 0 _position = 1 _class = 2 #hyperparameters __INPUT_DIM = 2 __OUTPUT_DIM = 2 __HIDDEN_DIM = 128 __NUM_EPOCHS = 2 # 100 __LEARN...
[ "vineetsk1@gmail.com" ]
vineetsk1@gmail.com
f040059ed129aa620990f466c803b2a2a026b103
00a3f91db1e0bd349a0a120d8980429363446d67
/api/migrations/0004_merge_20180805_1637.py
a0c874598dea406d580c4e4f2a4cf32728b0e65b
[]
no_license
junkluis/cenecu_web
59130894d0584479b352fcd7a119aa2c6185a5e5
078b59308a93e40514b63c130c4506f98f929be4
refs/heads/master
2020-03-25T09:08:02.327198
2018-08-05T21:42:21
2018-08-05T21:42:21
143,649,219
0
0
null
null
null
null
UTF-8
Python
false
false
330
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2018-08-05 21:37 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('api', '0003_auto_20180730_0141'), ('api', '0003_auto_20180729_2237'), ] operations ...
[ "lufezuro@gmail.com" ]
lufezuro@gmail.com
a8744d0bca6c674118b972ff9c176d33cf41a3a3
4207ab9e68a139a0dd9cc2c8ed2c6166946d4e54
/Py/cutsTest.py
ffac1bc92e75a920bb020947ab3117e1697b715e
[]
no_license
ThenukaDK/Windguard
da869038785e0504176118b6b3208f484c4b389a
4c600f7769b85767524cd7b7369317702894d61f
refs/heads/master
2021-06-06T22:18:56.162397
2016-08-25T16:08:47
2016-08-25T16:08:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
675
py
import os import cv2 import numpy as np cut_count = 0 i = 0 cut_cascade = cv2.CascadeClassifier("stage11.xml") for filename in os.listdir("../img/imagemap"): if filename.endswith("jpg"): img = cv2.imread("../img/imagemap/"+filename) gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) cuts...
[ "thenukaa@gmail.com" ]
thenukaa@gmail.com
125f3eca8985b6337481c57ecb01d50d4d12cd2f
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_25145.py
cc20ebccbcceb580e0202cead14e2afc85781e87
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
59
py
# How to find / import the win32security in python? import
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
6d3560c2179b9703d5955c377a9989b5a7a236c0
34d88082307281333ef4aeeec012a3ff5f8ec06e
/w3resource/basic/Q098.py
c3ed4f05918371d4d44df3cbbb34edc91b0fb439
[]
no_license
JKChang2015/Python
a6f8b56fa3f9943682470ae57e5ad3266feb47a7
adf3173263418aee5d32f96b9ea3bf416c43cc7b
refs/heads/master
2022-12-12T12:24:48.682712
2021-07-30T22:27:41
2021-07-30T22:27:41
80,747,432
1
8
null
2022-12-08T04:32:06
2017-02-02T17:05:19
HTML
UTF-8
Python
false
false
148
py
# -*- coding: UTF-8 -*- # Q098 # Created by JKChang # Wed, 31/05/2017, 15:34 # Tag: # Description: Write a Python program to get the system time.
[ "jkchang2015@gmail.com" ]
jkchang2015@gmail.com
894482ee3334014d91285e7f29af8f4772c1e0bf
dd80a584130ef1a0333429ba76c1cee0eb40df73
/external/chromium_org/tools/cr/main.py
dced8cd4069ceea9d47ee5b9b17ca6fc164b8c81
[ "MIT", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "GPL-2.0-only", "Apache-2.0", "LicenseRef-scancode-unknown" ]
permissive
karunmatharu/Android-4.4-Pay-by-Data
466f4e169ede13c5835424c78e8c30ce58f885c1
fcb778e92d4aad525ef7a995660580f948d40bc9
refs/heads/master
2021-03-24T13:33:01.721868
2017-02-18T17:48:49
2017-02-18T17:48:49
81,847,777
0
2
MIT
2020-03-09T00:02:12
2017-02-13T16:47:00
null
UTF-8
Python
false
false
3,092
py
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Chromium cr tool main module. Holds the main function and all it's support code. """ import os import sys import cr import cr.auto.user import cr.autoco...
[ "karun.matharu@gmail.com" ]
karun.matharu@gmail.com
d79019f5641bb3c85f070279e42ae59776f382d0
350a592c614f533833e8a0ac9afa37cef6d4d03d
/python2/exercise6/ex6.py
cb4c09c56cdcbd009ad545388bfde21f76d2e542
[]
no_license
jcclarke/learnpythonthehardwayJC
7a53f15c9e1cda2f56ce064b6cc08cdc32278746
88d2a10d4c04468ae31e29e82f78454b52e5743e
refs/heads/master
2023-01-19T01:52:01.067881
2020-11-28T06:28:19
2020-11-28T06:28:19
258,010,674
0
0
null
null
null
null
UTF-8
Python
false
false
436
py
#!/usr/bin/env python2 x = "There are %d types of people." % 10 binary = "binary" do_not = "don't" y = "Those who know %s and those who %s." % (binary, do_not) print x print y print "I said: %r" % x print "I also said: '%s'" % y hilarious = False joke_evaluation = "Isn't that joke so funny?! %r." print ...
[ "jeanclaudelclarke@gmail.com" ]
jeanclaudelclarke@gmail.com
8c136c45800c0ff8c2165c758acbdb6f43f14c3f
963b15e58ba6f769253af9ce80a83c2f003a5386
/pose_estimation/for_middle_feature_vis.py
d30694848b96b5900bbd465bda096466893b5ade
[]
no_license
hsk9767/pose
aa3100b6315065732e56aedabeeea472370627a3
8f0981219423e298554f0216235ed350d896acbe
refs/heads/main
2023-03-03T07:14:31.480532
2021-02-17T06:59:59
2021-02-17T06:59:59
339,636,770
0
0
null
null
null
null
UTF-8
Python
false
false
5,658
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import os import pprint import shutil import torch import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim import torch.utils.data import torch.utils.data.distributed i...
[ "noreply@github.com" ]
noreply@github.com
3c19759b050e380232f30dc447ee3888d2535db2
117d0dae50e628646c3603382e9c070a9f702cb6
/AliExp_OrderListParser/AliOrder.py
d2fc758e395f72846ebd7acf481ec42741aa4262
[]
no_license
kurtjcu/AliExpressHTMLOrderParser
58c708c18c37161fb025b0e999618e5d367cecbd
0e4d78a82fede17f883ecacf18fc6829832d4acb
refs/heads/master
2021-05-07T18:03:29.236901
2017-10-30T04:45:02
2017-10-30T04:45:02
108,781,262
1
0
null
null
null
null
UTF-8
Python
false
false
875
py
# # # class for storing an order details # # import time from AliExp_OrderListParser.AliItem import AliItem class AliOrder: def __init__(self): self.itemList = [] self.seller = "someones shop" self.orderNum = 666 self.datetime = time.strptime('1979-05-16', "%Y-%m-%d") se...
[ "Kurt@kurtsch.com.au" ]
Kurt@kurtsch.com.au
bfa68a39b7b3efae040c6b9329a4a337d7d01419
fa3f1e168efe701127c50a0aaa8d61c4757be286
/python5problemset1read.py
f5b00453fca0f3fab4ca5bfa640f28f559390cce
[]
no_license
bryandngo/PFB2017_problemsets
b0ecdca6a6e05f074a5a6056a857963ca26220da
f57da8decaf0976d16a9a4786d678f1aa1ed0f1c
refs/heads/master
2021-07-15T05:07:15.765951
2017-10-22T21:18:38
2017-10-22T21:18:38
107,168,894
0
0
null
null
null
null
UTF-8
Python
false
false
202
py
#!/usr/bin/env python3 file_object = open("/Users/admin/Python5ProblemSet/Python_05.txt","r") contents = file_object.read() print(contents) file.close() print("File Was Opened and Read 10-19-17")
[ "admin@pfb16.cshl.edu" ]
admin@pfb16.cshl.edu
2bfeb26827945a143da5f6f4a5afd5ac7c7c8f47
3dbe9d208e8fd03649fd8fbfeafd2f44e5d4165d
/bot.py
8032c0bb5285d6c60064d19864f9ad7d240c3641
[]
no_license
tylerlv3/project_poseidon
37438fe2daae000ba79edc2a4a5b375434f0e8b6
56132f8acd5f889f94d8a8ad3b6db6531b9fd396
refs/heads/master
2020-05-01T00:50:40.531047
2019-03-22T17:02:56
2019-03-22T17:02:56
177,179,478
0
0
null
null
null
null
UTF-8
Python
false
false
6,794
py
import discord from discord.ext import commands import random import asyncio from urllib.request import urlopen as uReq from bs4 import BeautifulSoup as soup import youtube_dl import time TOKEN = 'NTU1NTQ5ODQ3ODgxNzc3MTUz.D2tHxA.DY7FV9ULgEQoH2oUpsxQ69Q7wbY' extensions = ['rndfacts'] client = command...
[ "noreply@github.com" ]
noreply@github.com
a27bdc5dbe7caef23e65b8f108991616833d3a01
193a5d50b5dc12a16190fce1c95eb727717f8d50
/tutorials/Images Classifiers/vgg19.py
34350d7abea832d29740cabc1d07308c235d5536
[ "MIT" ]
permissive
AnkitmB125/tflearn
2ef2e07aa61bc69841ba5d4cf2d5ba132621bf26
19c29122a4b58d5c0718562039423b702c897fde
refs/heads/master
2020-04-25T18:02:13.201352
2019-02-27T19:23:22
2019-02-27T19:23:22
172,970,611
0
0
NOASSERTION
2019-02-27T18:47:34
2019-02-27T18:47:33
null
UTF-8
Python
false
false
2,916
py
""" Very Deep Convolutional Networks for Large-Scale Visual Recognition. Applying VGG 19-layers convolutional network to Imagenet classification task. References: Very Deep Convolutional Networks for Large-Scale Image Recognition. K. Simonyan, A. Zisserman. arXiv technical report, 2014. Links: http://arxiv....
[ "abhadage@gmail.com" ]
abhadage@gmail.com
032083abede80dbe6bb0ad327dfe57258ab046c1
30595788d5c3cd43eda9c06ee5783a2522d2b04f
/import json.py
cb5f0ef787abafe11079078c9619f344b2800178
[ "MIT" ]
permissive
OfficialPouya/SmartClock
603e7a5da89eefebff4a65d57b75e8498535d8b9
1b8cdcf5bc6c26eade41abc8d0ee9524431387bc
refs/heads/master
2020-12-19T05:07:27.630689
2020-08-16T13:34:16
2020-08-16T13:34:16
235,630,109
0
0
null
null
null
null
UTF-8
Python
false
false
179
py
import json # read file with open('city.list.json', 'r') as myfile: data=myfile.read() # parse file obj = json.loads(data) # show values print("Name: " + str(obj['name']))
[ "pouya.akbar@gmail.com" ]
pouya.akbar@gmail.com
0107bba8f664413fd57f0ac0e15ae23805251d21
8a6f2a6b5cf3be2bea2795f6a09c93e33f7a5909
/4 İşlem.py
e2cbcc7a3cef9e013ed0022b4175aa0506baaf7f
[]
no_license
SezaiAraplarli/4-islem
36c67bb6003d0c487a379d14784e4e71d7f7c915
4972a00fc6ece8b5f513105c9f4acadb1f3a0b59
refs/heads/master
2020-06-25T05:27:06.128626
2019-07-27T21:36:46
2019-07-27T21:36:46
199,215,105
0
0
null
null
null
null
UTF-8
Python
false
false
1,054
py
# Toplama İşlemi def topla(a,b): top=(a+b) print(a,"+",b,"=",(a+b)) # Çıkarma İşlemi def cikar(a,b): cik=(a-b) print(a,"-",b,"=",(a-b)) # Çarpma İşlemi def carp(a,b): car=(a*b) print(a,"x",b,"=",(a*b)) # Bölme İşlemi def bolme(a,b): bol=(a/b) print(a,"/",b,"=",(a/b))...
[ "noreply@github.com" ]
noreply@github.com
31ee5c556c25850ddd15704dede4c1ff0190e717
83e2824b060cea6290563a63dfc5a2caaddccc32
/problem019.py
3ab4e40b4de9a056bbdaac0afe9cb807e5089a42
[]
no_license
1tux/project_euler
b8f731155eb59c5cdb92efe68f0140695c5b6353
9a6c04d08a77d6e80eb15d203c8003870645415a
refs/heads/master
2021-01-09T20:17:35.502613
2016-10-03T16:19:50
2016-10-03T16:19:50
61,938,647
0
0
null
null
null
null
UTF-8
Python
false
false
137
py
import datetime c = 0 for x in xrange(1901, 2001): for y in xrange(1, 13): if datetime.date(x, y, 1).weekday() == 1: c+=1 print c
[ "root" ]
root
eead725f503c98b5e5286f15c4a5ef579502c793
a19f028c9bbbb2e0046c9d41267a4659f5e4a660
/venv/Scripts/easy_install-script.py
22cfdc9a6aefd0bbfe94f8adb485c88850b83481
[]
no_license
weni09/scrapyprograms
0d70d4ac63ed366052989b4960e10225d746ce8f
0a564d2543327b7427c2a655b6ee367a21136d45
refs/heads/master
2022-11-12T00:03:48.884181
2020-06-29T06:18:10
2020-06-29T06:18:10
275,747,364
0
0
null
null
null
null
UTF-8
Python
false
false
445
py
#!D:\PycharmProjects\scrapyprograms\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?...
[ "wenwei@163.com" ]
wenwei@163.com
29d48b41bbe62a669fe720e8989acc66a8f7c7bd
b51a9ff5685d522d99429b69df59c352fc34e99e
/test_model1.py
fd6dc3195acd7dd7b446d657720b6b20428f8a93
[ "MIT" ]
permissive
nvikramraj/Neural_Networks-cifar10
fba35b86cb3b6c6509150f2208b848b0bb205a0b
7d23541cb941dcdc6ab11f3f8a24dbc7c94929b1
refs/heads/master
2022-07-18T02:17:19.097053
2020-05-23T05:01:04
2020-05-23T05:01:04
266,134,090
1
1
null
null
null
null
UTF-8
Python
false
false
3,538
py
import os import cv2 import numpy as np from tqdm import tqdm import matplotlib.pyplot as plt import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import time #Neural Network # 2 conv layer with batch norm , 3 linear layer # Adam optimizer and MSELoss , one hot vector - labe...
[ "nvikramraj" ]
nvikramraj
df7cd173843e26f38510ef061189991744f18bb2
c4aece6955cb571e5a79c370d016ee191b84746b
/compliments.py
5c0cda2d878c2d853a92c0c5997ef278cf235e6f
[]
no_license
radikal95/goodwords_bot
de403fdb1273631764d23ffe8cb144db74eb9e59
00711612879af84362a3b72ac6ae09053a455d95
refs/heads/master
2020-03-28T20:04:22.347551
2018-09-16T21:01:48
2018-09-16T21:01:48
149,035,494
0
0
null
null
null
null
UTF-8
Python
false
false
3,270
py
import random compliment = ['Ты молодец, не расстраивайся!', 'У тебя всё получится!''Ты молодец', 'Ты умница', 'Ты герой', 'Ты отлично сегодня выглядишь', 'Ты отлично выглядишь, невозможно налюбоваться', 'Ты умеешь расположить к себе', 'Нет таких сложностей, с которыми ты не справишься! Ты же почти гений', 'Ты со всем...
[ "radushin.arseny@yandex.ru" ]
radushin.arseny@yandex.ru
7a2ac4da6b55db2ccc0c022304cb9443b0d99e2e
8ccca2a9b3a77ed2e65beccbe2c846d8c8355f77
/alipay/aop/api/domain/AlipayMarketingCampaignDrawcampTriggerModel.py
f2a5cd7fe99db5417ddbca73ef3ad59a258ae3df
[]
no_license
jkjkiiiii/KDFP-server
9d1887409641e26d0dcc491d2726b356e5955256
c196a6d9aa18b59917bfdc4ea1d452b32631c860
refs/heads/master
2020-04-26T04:45:55.400935
2019-04-01T08:51:40
2019-04-01T08:51:40
173,312,850
0
0
null
2019-03-01T14:10:59
2019-03-01T14:10:59
null
UTF-8
Python
false
false
4,316
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayMarketingCampaignDrawcampTriggerModel(object): def __init__(self): self._bind_mobile = None self._camp_id = None self._camp_source = None self._channel_info ...
[ "1056871944@qq.com" ]
1056871944@qq.com
e23d1e57cc1d9d0e903427af7e40d12428563d84
32d6473c5ea02315a8ab40641f0b3ac36c19ee52
/monerdnode/utils.py
10b04e8ebbccdee45deeeaeab7be29907183d6e7
[]
no_license
nkapashi/MDCLI
a496349d95bebbba6556112278a2e9c89c58421c
ad65d1a27c0a50785b6130b7581e69070b8fede7
refs/heads/master
2020-03-21T16:48:48.780447
2018-06-26T21:46:46
2018-06-26T21:46:46
138,787,352
0
0
null
null
null
null
UTF-8
Python
false
false
2,211
py
from datetime import datetime, timedelta import sys generalErrorText="""ERROR: Either no response was recevied by monerod or the resposne contained an error. Double check your connection details and any input data.""" def calcUptime(timestamp): """Function that returns uptime in day,hour,minute forma...
[ "nikolay.kapashikov@gmail.com" ]
nikolay.kapashikov@gmail.com