blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
41
license_type
stringclasses
2 values
repo_name
stringlengths
7
96
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
58 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
12.7k
662M
star_events_count
int64
0
35.5k
fork_events_count
int64
0
20.6k
gha_license_id
stringclasses
11 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
43 values
src_encoding
stringclasses
9 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
7
5.88M
extension
stringclasses
30 values
content
stringlengths
7
5.88M
authors
listlengths
1
1
author
stringlengths
0
73
ea98b768baecabb185a4dec462e1d58d22c97517
405e8ba51ab7f177797a14bbbc619e033c5e9fcc
/metrics_utils.py
5ffc4e8672d8127ea826b90bc19898102248d67d
[]
no_license
htfhxx/metrics_python
6d801f49136c249979d5e6c1d7d3ed5ba1b3f710
c360353668cfbff335418921b67c3224ba182309
refs/heads/master
2022-12-15T20:51:33.211776
2020-09-13T11:53:01
2020-09-13T11:53:01
295,139,113
3
0
null
null
null
null
UTF-8
Python
false
false
7,220
py
def evaluate_2(y_true, y_pred): tp = sum(1 for a, b in zip(y_true, y_pred) if a == 1 and b == 1) fp = sum(1 for a, b in zip(y_true, y_pred) if a == 0 and b == 1) fn = sum(1 for a, b in zip(y_true, y_pred) if a == 1 and b == 0) # tp = ((y_true==1) & (y_pred==1)).sum() # fp = ((y_true==0) & (y_pred==...
[ "v_tfhuo@tencent.com" ]
v_tfhuo@tencent.com
112ff750125e7c5fb1438b5dcf7bcdaef7265187
a992a2bcea0e40a9cc3d947466a7eaafaf337280
/SocketPython/server.py
0e78bac2702be3473a62e6ef8bef95fec62d64df
[]
no_license
rodrigoferrazazevedo/dojo-python
6bcfb4bf27435b5e60fa1c992840e319fe2dbbb3
b3aebfae8b0dae2c2b898431ed747dd9236706e3
refs/heads/master
2022-12-24T10:25:10.692833
2022-06-22T02:12:18
2022-06-22T02:12:18
107,460,652
0
1
null
null
null
null
UTF-8
Python
false
false
284
py
import socket server = socket.socket() server.bind( ('localhost',8000)) server.listen(5) while True: conn, addr = server.accept() print "Connection established" print addr msg = conn.recv(1024) print msg conn.send("Connection established") conn.close()
[ "rodrigo.azevedo@sintesoft.com.br" ]
rodrigo.azevedo@sintesoft.com.br
095d3023a70bd06fac2923e3635efb9a4e247285
91e56cf5312223af9bef83538c4ccd50afa1ca27
/p024_LexicographicPermutations.py
b0136f3d7a929a64a7c07f3d98b8f9326cccab32
[]
no_license
fletcherw/projecteuler
18dedac2bd90186f7ea9320ff45892cdc838f082
6bc3094f816511ca10984ed58b6fb8e99594327a
refs/heads/master
2021-05-16T03:06:14.495177
2016-12-17T23:25:39
2016-12-17T23:25:39
18,919,808
2
0
null
null
null
null
UTF-8
Python
false
false
383
py
import math digits = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] digitsout = "" index = 999999 #the index of the permutation you're trying to calculate. Note that this is 0 indexed, so the 10th permutation would be 9, etc. etc. for n in range(len(digits) - 1, -1, -1): fact = math.factorial(n) digitsout += str(digits.pop(int(ma...
[ "fletcherwoodruff@gmail.com" ]
fletcherwoodruff@gmail.com
4a6c735916616d81dda3aa9ae347e5ab8ee1ef2c
4b2d75ba65d2a6838a0cbc70cdda0ae49bd4ae49
/testdata/api_endpoint.py
4a5691c2fcbfc737d822dd14c0db0fa80015d454
[]
no_license
mimqupspy/python_rest
32360d051f266f379165543aea9f7a7bf7252188
707ac2494752fd6772081f7afddfc7e9102ad12a
refs/heads/main
2023-08-29T12:41:39.738241
2021-10-12T04:44:29
2021-10-12T04:44:29
415,355,636
0
0
null
null
null
null
UTF-8
Python
false
false
724
py
# api endpoints list_user = "https://reqres.in/api/users?page=2" single_user = "https://reqres.in/api/users/2" single_user_not_found = "https://reqres.in/api/users/23" list_resource = "https://reqres.in/api/unknown" single_resource = "https://reqres.in/api/unknown/2" single_resource_not_found = "https://reqres.in/api/u...
[ "mim90@live.com" ]
mim90@live.com
a3531277a9a252270e45aa6e6fef912242833302
1588092ae5dc099be61cea76900ca5b0f01b8739
/exam_2020/order.py
031c694e024b5fdd873722a99f7fb446c0612724
[]
no_license
isakss/Forritun1_Python
e13fa19d90c7fba64dea3ef28853313e6a836ed8
9d9590126fbd80f1a5a8a440240fead03154ce91
refs/heads/master
2023-02-15T16:07:30.325561
2021-01-12T09:07:40
2021-01-12T09:07:40
292,535,583
0
0
null
null
null
null
UTF-8
Python
false
false
597
py
class Order(object): def __init__(self, item_str="", price=0.0): self.__item = item_str self.__price = price def item(self): return self.__item def price(self): return self.__price def __gt__(self, other): return self.__price > other.__price def __...
[ "isaksnaer@gmail.com" ]
isaksnaer@gmail.com
98bb88d68bcbb6950b2ada14bd90d249dbc4e630
9ac9e863da8831703e1d0322a0fe9d279c550fbf
/auctions/migrations/0002_category_listing.py
8c128798bf571a1448f073efd337bfe8e9352792
[]
no_license
eldocbrown/cs50w-project2-commerce
b247da79ff2563f59781c7bc13d1efabae0c5a29
48988ac8f510c15fcf41d4c13010efe5509b3aa4
refs/heads/master
2023-01-04T00:24:34.454410
2020-10-26T03:27:08
2020-10-26T03:27:08
305,499,319
0
0
null
null
null
null
UTF-8
Python
false
false
1,304
py
# Generated by Django 3.1.2 on 2020-10-20 18:06 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('auctions', '0001_initial'), ] operations = [ migrations.CreateModel( ...
[ "juandonato@gmail.com" ]
juandonato@gmail.com
71dfbd91d20000eec465c1c8fe2f2198fd8b1e9c
38d568d4a230aa7b8ace0957847e9b681223564f
/getSingleZoneCloudMain.py
399eff7450c8b4e45d3d065528d6bf9cd8da3506
[]
no_license
lifeisjustagame/Hello-World
03aa19c0fb8d77663439fb0de73780bbd8d9eeee
43e51d79cffdb90a89b3bf2f219b5e8c2bb1e52a
refs/heads/master
2021-01-23T06:54:26.110225
2017-04-06T07:44:21
2017-04-06T07:44:21
86,407,323
0
0
null
2017-03-28T03:01:34
2017-03-28T02:45:52
null
UTF-8
Python
false
false
399
py
if __name__ == '__main__': start = time.time() LOG.warning('PROGRAM START AT: %s' % TIME) try: mc = MainClass() mc.task_main() except Exception, e: LOG.error(e) raise except (SystemExit, keyboardInterrupt), e: error_str = 'Program killed by user, reason: %s' %e LOG.error(error_str) s...
[ "noreply@github.com" ]
noreply@github.com
6215b44a8f43d5aaf175a030c7c142759e405f83
747c76c186567d0fc1af2774f6bd732ce6b11198
/catkin_auefinals/build/auefinals/turtlebot3/turtlebot3_slam/catkin_generated/pkg.installspace.context.pc.py
8e5ea4bc2c9b2df68a1eb7a58dbe208672968976
[]
no_license
abhibhagwat/TurtleBot3_obstaclecourse
5bf9374b3f99f377f22f04304c65f10c0d5df0fd
4e213042e5da385d5086175de1dae3e345be4880
refs/heads/master
2023-03-12T09:59:50.178892
2021-03-04T08:46:20
2021-03-04T08:46:20
344,267,482
0
1
null
null
null
null
UTF-8
Python
false
false
443
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else [] PROJECT_CATKIN_DEPENDS = "roscpp;sensor_msgs".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] P...
[ "bhagwat@g.clemson.edu" ]
bhagwat@g.clemson.edu
cf0a8120c529928cdef0b3a7a81c713a31381216
72512fb3e6c3e5b38f55a5385411ed6a9873aa05
/examples/single_calculations/test_multiple_force_eval.py
333c996e81ad331042290003dde1ea948be3a9de
[ "MIT" ]
permissive
borellim/aiida-cp2k
e8750e5e514b98c34b6a604fe46d3c473f359d35
ea5cd54bd8419fefd24967f2c2569031cc28a592
refs/heads/master
2020-12-19T17:03:05.545681
2019-10-19T07:03:37
2019-10-19T07:03:37
235,795,066
0
0
MIT
2020-01-23T12:56:45
2020-01-23T12:56:44
null
UTF-8
Python
false
false
7,658
py
# -*- coding: utf-8 -*- # pylint: disable=invalid-name ############################################################################### # Copyright (c), The AiiDA-CP2K authors. # # SPDX-License-Identifier: MIT # # AiiDA-CP2K is hosted on...
[ "yakutovicha@gmail.com" ]
yakutovicha@gmail.com
575cc3c1e2ae6bca3bd38b5117cba86f4090d1a7
24b1bec9f2e2cb0ae1f7dd75527a2a1a01e08429
/py/neural_network.py
958d7c089c05fb3f4a18a2d601633bdb4edf7f2c
[]
no_license
lwierzb1/mgr-colorful-image-colorization
c370409f6690bb72c7c5651104a470373a427fe4
fe60cc06ce406d0ced75db36cb3755634216c019
refs/heads/main
2023-02-22T19:31:40.577761
2021-01-25T21:41:57
2021-01-25T21:41:57
332,080,742
0
0
null
null
null
null
UTF-8
Python
false
false
2,576
py
#!/usr/bin/env python import cv2 import numpy as np from config_reader import ConfigReader __author__ = "Lukasz Wierzbicki" __version__ = "1.0.0" __maintainer__ = "Lukasz Wierzbicki" __email__ = "01113202@pw.edu.pl" class NeuralNetwork: """ CNN neural network used to colorize grayscale image. [https://a...
[ "lukasz.wierzbicki26@gmail.com" ]
lukasz.wierzbicki26@gmail.com
cdbbd4c40b880cbbffc579c8ac2750e95e75bb71
649bd422025e421d86025743eac324c9b882a2e8
/exam/1_three-dimensional_atomic_system/dump/phasetrans/temp42_7000.py
7498f9768395d5a4d3115ae4ba0a49d57c335108
[]
no_license
scheuclu/atom_class
36ddee1f6a5995872e858add151c5942c109847c
0c9a8c63d9b38898c1869fe8983126cef17662cd
refs/heads/master
2021-01-21T10:52:28.448221
2017-03-07T23:04:41
2017-03-07T23:04:41
83,489,471
0
0
null
null
null
null
UTF-8
Python
false
false
68,978
py
ITEM: TIMESTEP 7000 ITEM: NUMBER OF ATOMS 2048 ITEM: BOX BOUNDS pp pp pp 7.2345940138227149e-01 4.6476540598614875e+01 7.2345940138227149e-01 4.6476540598614875e+01 7.2345940138227149e-01 4.6476540598614875e+01 ITEM: ATOMS id type xs ys zs 8 1 0.128552 0.0630246 0.0619357 35 1 0.0601396 0.125834 0.0579319 130 1 0.06202...
[ "scheuclu@gmail.com" ]
scheuclu@gmail.com
d7b8f8c2292943e3ede00ea4959fa4e0b8ea7ca8
fb4e9ddb628ae19634eb1d51f02fa33d093ca5d1
/tensorflow-master/tensorflow/contrib/learn/python/learn/estimators/head.py
952cdeb5ec1bc8907c36f26c32eb274254e15d8d
[ "Apache-2.0" ]
permissive
zhentaowang/machine-learning
68189bbc9bd052cecf068fb5fc7e88c04ec24e34
1dbba7bbe7f5c8c1449c312fb7e0c008581b90be
refs/heads/master
2021-06-14T14:08:51.889455
2017-03-20T02:10:43
2017-03-20T02:10:43
63,773,867
4
0
null
null
null
null
UTF-8
Python
false
false
67,051
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 applica...
[ "wangzhentao@zhiweicloud.com" ]
wangzhentao@zhiweicloud.com
3f06029ceb9f9184313732f15f1334894534e149
18375af374e91e721fb16e5415bc4fc7540e5ced
/currency_exchange/views.py
cf8a2101498baf62f88fd5a950b8ec6f7712a9a2
[]
no_license
youssefelmasry/tahweela_app_demo
64d802df33ad6361a714a3119b3380b9afe98e4e
ee55b23e601f5e6580e9f051f6da89acab37d3a1
refs/heads/master
2023-02-25T23:05:08.853738
2021-01-29T17:55:33
2021-01-29T17:55:33
334,214,124
0
0
null
null
null
null
UTF-8
Python
false
false
793
py
from rest_framework.generics import ListAPIView from rest_framework.views import APIView from currency_exchange.serializers import RateExchangeSerializer from rest_framework.response import Response from currency_exchange.models import BaseCurrencies class BaseCurrenciesListView(APIView): def get(self, request): ...
[ "yusufelmasry9@gmail.com" ]
yusufelmasry9@gmail.com
f0202c853270176392aa90efe01b29e5549434cc
80ef89008f34f3e52d3045db2ef158e9ad09832a
/homework/tf_regression.py
60fc3016ff551928bf8cf1548a2f35d3ed9675e5
[]
no_license
phantomamoeba/ast383
7836a24f28d4a2e0a110b04a72080f4e9bbfb1d5
c68bb8c053d4c4dec6093c4a0349539423db7e2a
refs/heads/master
2021-09-13T09:13:34.283002
2018-04-27T16:31:47
2018-04-27T16:31:47
118,023,850
0
0
null
null
null
null
UTF-8
Python
false
false
6,646
py
import os import numpy as np import tensorflow as tf __all__ = ['linear_regression'] def linear_regression(x, y, gamma_w, gamma_b, minibatch_size, learning_rate, training_epochs, architecture, method): assert x.shape[0] == y.shape[0] assert architecture in ['neural', 'explicit'] as...
[ "polonius@davistx.com" ]
polonius@davistx.com
b5aaf890a1d7e6c6702ed2586719bf9dd36d1ebb
fd9ad90be33b4875a954fe93d62a485e1a1abdfa
/category/migrations/0002_alter_category_slug.py
dd16eed4e8f0a212df21c7d42e6b33299445d7e5
[]
no_license
Elbek-Dalaboyev/greatkart-django
e25beba3e7e688fbcd8367b8f24e05069bf31d03
9ff1f1c37891efe4d5fc426e96d634eedf8b3ce2
refs/heads/main
2023-04-27T00:37:10.112281
2021-06-09T08:59:26
2021-06-09T08:59:26
373,591,851
1
1
null
2021-06-09T08:59:27
2021-06-03T17:36:04
JavaScript
UTF-8
Python
false
false
390
py
# Generated by Django 3.2.3 on 2021-05-26 15:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('category', '0001_initial'), ] operations = [ migrations.AlterField( model_name='category', name='slug', ...
[ "dalaboyeve@gmail.com" ]
dalaboyeve@gmail.com
bd559fbd2c336eb6d115472c556cf088f0332d40
daad090dd655bec07a9a6d54ade3e5ed7045f68a
/hw5/pi.py
2d9e4d5c546bac80db15c4d9248f20fd04f75110
[]
no_license
lukemvu/cs450
3482cac68cf4d080048fd015861318665985717e
e02a924052886302eb12519702cba980d0fa283b
refs/heads/master
2023-03-22T15:34:11.487946
2021-03-16T17:22:24
2021-03-16T17:22:24
348,432,607
0
1
null
null
null
null
UTF-8
Python
false
false
2,117
py
# -*- coding: utf-8 -*- # Copyright 2015 Sameer Suhas Marathe # # 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 re...
[ "luke.m.vu@gmail.com" ]
luke.m.vu@gmail.com
fda3a1030b55d55ed9191c6305d8643fcbda2aa8
f8f78541796303975df16e97b38d0903ba2e363e
/Lesson6.13_Pandas.py
35defc36b6d0a1ff794618e7a64ae895e74c9846
[]
no_license
cb1118/dataAnalyst
19537dab4b65dd068c6d626e1e2fda03eee6f914
65f54ef03c8a78586e7c64dd10f84ce65c467b70
refs/heads/master
2020-03-23T22:19:16.351054
2018-08-27T03:40:15
2018-08-27T03:40:15
142,168,420
0
0
null
null
null
null
UTF-8
Python
false
false
3,322
py
# -*- coding: utf-8 -*- """ Created on Sun Apr 1 18:59:47 2018 @author: CB1118 """ import pandas as pd countries = ['Albania', 'Algeria', 'Andorra', 'Angola', 'Antigua and Barbuda', 'Argentina', 'Armenia', 'Australia', 'Austria', 'Azerbaijan', 'Bahamas', 'Bahrain', 'Bangladesh', 'Barbados'...
[ "cb1118@att.com" ]
cb1118@att.com
3ee0b16a3fa268a4f70f364d9ab5bc3b4fed2794
6630694f401f6f475dd81bb01ff9368db844ccff
/configs/repvgg/repvgg-B2_8xb32_in1k.py
b9a7d4ca5570518f0c4d0b81951e0e97c46606f9
[ "Apache-2.0" ]
permissive
open-mmlab/mmpretrain
98a4d6b3bb747efc3d50decebf84fc3ffa41076a
d2ccc44a2c8e5d49bb26187aff42f2abc90aee28
refs/heads/main
2023-08-30T19:11:24.771498
2023-08-23T02:45:18
2023-08-23T02:45:18
278,415,292
652
186
Apache-2.0
2023-09-08T08:01:40
2020-07-09T16:25:04
Python
UTF-8
Python
false
false
106
py
_base_ = './repvgg-A0_8xb32_in1k.py' model = dict(backbone=dict(arch='B2'), head=dict(in_channels=2560))
[ "noreply@github.com" ]
noreply@github.com
270526ead40fed7395ab36a2f0e5538850c9fcd5
43575c1324dc0760958a110d7f056bce88422a03
/listing/arrayqueue.py
fe91f1bc669035d14da292523bec642ed81d0941
[]
no_license
nicolas4d/Data-Structures-and-Algorithms-Using-Python
1ffd74d26f09de2057bdc53998a56e56ed77c1de
a879ce6fd4033867783ee487d57d459b029eb5f8
refs/heads/master
2020-09-24T12:48:30.726766
2019-12-31T03:15:44
2019-12-31T03:15:44
225,761,970
1
0
null
null
null
null
UTF-8
Python
false
false
1,219
py
# Implementation of the Queue ADT using a circular array. from array import Array class Queue : # Creates an empty queue. def __init__( self, maxSize ) : self._count = 0 self._front = 0 self._back = maxSize - 1 self._qArray = Array( maxSize ) # Returns True if the queue is ...
[ "nicolas4d@foxmail.com" ]
nicolas4d@foxmail.com
1ced79828f6469f7bab445f3f426e7431206e4f3
ca5da7e25c0f4f96572dedf8831cb0f111490c28
/OK/Python/HackerRank/Practice/Loops.py
169f88823be1d26e6d51117e2eb78eb8634b3b7e
[]
no_license
317702550/THC
fecc44aa953f9f6b98cb7e1856ef12537f629393
f9fe9ddb2e55c5beab3eba8102915a7690524659
refs/heads/master
2020-07-05T08:53:11.087930
2019-12-10T15:54:35
2019-12-10T15:54:35
202,597,617
0
0
null
null
null
null
UTF-8
Python
false
false
182
py
#!/usr/bin/python3 # Maximiliano Proaño Bernal # 03/12/19 # Python 3.7.3 # Ciclos if __name__ == '__main__': n = int(input()) i = 0 while i != n: print(i**2) i = i + 1
[ "maxpbernal@ciencias.unam.mx" ]
maxpbernal@ciencias.unam.mx
331391003523c28eedd1e4d6b841574bbed2b7ce
d3eba05768f13fb77037f094c8cd5bee0a2ce920
/python/pyclaw/geotools/most2geoclaw.py
110907c350aefc6585d894e4ed02d90d25a31179
[ "BSD-3-Clause" ]
permissive
geoflows/geoclaw-4.x
cb262ffcc30b483e4e1bf0ba480f43408cb1b6fd
c8879d25405017b38392aa3b1ea422ff3e3604ea
refs/heads/master
2023-07-10T06:39:42.774585
2021-02-23T20:15:36
2021-02-23T20:15:36
6,094,587
1
2
BSD-3-Clause
2023-06-28T16:50:43
2012-10-05T18:18:31
Fortran
UTF-8
Python
false
false
3,350
py
""" Module for converting MOST data and output to GeoClaw format. """ import os, glob, re def most2tt3(fname): """ Converts MOST topo file to tt3 format. """ f = open(fname).readlines() mn = f[0].split() ncols = int(mn[0]) nrows = int(mn[1]) xll = float(f[1]) dx = float(f[2]) - xl...
[ "dave.jorge@gmail.com" ]
dave.jorge@gmail.com
2c78b769a6a36326247be3501afa66070e7edcc9
4a4e0cc6a1fb19404e9139b77e3c1cdeb7352ee6
/自动写诗2/write_poem.py
b86a9968067863ab8ff3af02946713525b8ad660
[]
no_license
zouhuigang/tensorflow
11193b4f38b24e5635bb155c81afc9e564d1adae
f9d9b4bbcb53e5eeb192740be8470dda31a34af5
refs/heads/master
2021-08-28T12:01:47.718920
2017-12-12T06:04:32
2017-12-12T06:04:32
113,291,005
10
5
null
null
null
null
UTF-8
Python
false
false
6,342
py
import json import os, sys,time import logging import math import numpy as np import tensorflow as tf from char_rnn_model import CharRNNLM,SampleType from config_poem import config_sample from word2vec_helper import Word2Vec from rhyme_helper import RhymeWords class WritePoem(): def __init__(self,args): ...
[ "952750120@qq.com" ]
952750120@qq.com
888b5fcafa91cb7b2ebdcb7e5c1c67b2ae52449b
ead27e8ab8433d7c15bf81f51c18029cee6d39ac
/neutron_diagnose/__init__.py
df9c144b676c044d7b1feeb4f6a93063a65e5059
[ "Apache-2.0" ]
permissive
zhuzhichaoTM/neutron-diagnose
7b42c1679cc648474c06919a6c16243dcf080d1c
223d0d5edaf77a8264ce06d68adaa1b329bb9f1b
refs/heads/master
2020-05-15T08:41:44.551121
2017-04-13T06:55:43
2017-04-13T06:55:43
182,163,864
0
0
null
null
null
null
UTF-8
Python
false
false
771
py
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distrib...
[ "shihz@fiberhome.com" ]
shihz@fiberhome.com
2a363433acaaec2e11b27accea62497c51739654
305369594545fca818bbb8e0254f97a3ec50ccfd
/32c09a6e325db19533e2e272caed35fd.py
d09d0f72a2fbc88aec3ddb22bb95fb0c3d343f56
[]
no_license
jkitchin/ACS-2016-data-sharing
c1950cf31f3bdb380e41427febb1888fb394a3ff
c23fc008d24aa637d2864d02533de2bf6bac7de7
refs/heads/master
2021-01-10T09:49:40.550918
2016-03-15T02:05:45
2016-03-15T02:05:45
53,690,308
0
1
null
null
null
null
UTF-8
Python
false
false
46
py
return [x for x in data if x[1] == 'anatase']
[ "jkitchin@andrew.cmu.edu" ]
jkitchin@andrew.cmu.edu
6333b09aba873b5e01d30fc103a78cbe1fe4e540
fa2d32a77ebd558ffe54eea67504308fa1ac2d2c
/learn.strings_lists_tuples_sets/convertstring2list.py
49f94079f5c63f303f9fb141816fcc83b042643f
[]
no_license
prpllrhd/morePYTHON
329362c18a447f913fa1f73c06fd0451b1a79009
739f64eb5462de532a8f1788ebe7631cb155f565
refs/heads/master
2021-06-05T19:59:43.276455
2019-01-20T19:53:34
2019-01-20T19:53:34
14,663,754
0
1
null
2015-07-08T06:12:08
2013-11-24T15:38:51
Python
UTF-8
Python
false
false
87
py
#!/usr/bin/env python3 a = "sameer rakhee yuvi avni aai" b = list(a.split()) print (b)
[ "samy@rakhees-Air.fios-router.home" ]
samy@rakhees-Air.fios-router.home
2d21df815a992618fea1b1c56a61c64f357a3169
cb75140ebed613adea538bad2b0de29c67db9213
/mundo3dicionario4.py
9fa3434ba392346299146c757d3c24be598229f0
[]
no_license
AndsuLucas/exercicios-python
bdbacda7144a38d0d4852a05b15dadac6c830a88
b78eceb1f7c73a02dfc3cd7175e851fee19bf972
refs/heads/master
2020-04-07T01:09:28.691794
2018-11-17T17:15:06
2018-11-17T17:15:06
157,932,756
0
0
null
null
null
null
UTF-8
Python
false
false
1,066
py
from time import sleep #quantas pessoas foram cadasradas,média de idade, quntas mulheres,pessoas acima da media f = 0 funcao = str contador = 0 cadastrototal = [] dc = dict() soma = 0 am = 0 while True: contador+=1 dc['nome'] = str(input('nome:')) while True: dc['sexo'] = str(input('sexo: [M/F]'))....
[ "a.lucassilvadeoliveira@gmail.com" ]
a.lucassilvadeoliveira@gmail.com
29bc3192a686ccae8db44c3e1d6e73ecf673b46d
6dbfd83c4641d798934a7eb1c5f45757d6504ebe
/cloud/fs/redis/user.py
d1e12468a7051964f76203be6c7100fdfca9d109
[]
no_license
xuanyuan1332/simple_cloud
015e5eba38e82b3e0c78f44e535fd5bc0ff441dc
ffbbaa22816d79ae45c3475e25e352129a70057d
refs/heads/master
2022-11-22T21:01:29.130241
2020-07-14T11:39:00
2020-07-14T11:39:00
280,647,428
0
0
null
2020-07-18T12:00:52
2020-07-18T12:00:52
null
UTF-8
Python
false
false
663
py
'''用户相关 ''' import json from .base import BaseRedis class UserRedis(BaseRedis): '''用户操作reids ''' user = '{username}' sign_in = 'sign-in-{project_id}' def get_sign_in(self, project_id): sign_in = self.sign_in.format(project_id=project_id) nums = self.redis.get(sign_in) if...
[ "l1328076914@gmail.com" ]
l1328076914@gmail.com
ac5953399a647183382fd235afa3078fcf3f2cf8
7c9f28e371e8dfa9290c05a48a9d924484b4b18c
/1.py
e742ff9920b98902a4a6413dc4ff9b62916929d0
[]
no_license
Pavithralakshmi/corekata
1f9d963da44a6fdcdedaf2e39452545f6cc52e9b
06d1c7bba25681ce12e2ab93ce461228afb6b984
refs/heads/master
2021-04-30T01:53:37.414318
2018-10-11T17:58:39
2018-10-11T17:58:39
121,491,600
0
0
null
null
null
null
UTF-8
Python
false
false
63
py
s1=input("eter anything") s2=input("enter somthing") print(s2)
[ "noreply@github.com" ]
noreply@github.com
1df2674dd840f1c05f994f93ddba2e65067ae23e
3c639c452fac96b882fe2c26b47545079dd174ec
/RunEventNumberFilter/test/RunEventNumberFilter.py
480e8087c369be7a4aee8a4529e23d65edb9612d
[]
no_license
cms-nd-user/RunEventNumberFilter
84825ffdee1cd6aee5a695b21b66d84043859b41
b47f4144a2e7a91baa726151319e090a45c5cd63
refs/heads/master
2021-01-21T13:08:39.958774
2013-08-20T16:15:36
2013-08-20T16:15:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,022
py
# Auto generated configuration file # using: # Revision: 1.168.2.1 # Source: /cvs_server/repositories/CMSSW/CMSSW/Configuration/PyReleaseValidation/python/ConfigBuilder.py,v # with command line options: SingleGammaPt35_cfi.py -s GEN,SIM,DIGI,DIGI2RAW,RAW2DIGI,RECO -n 2 --conditions FrontierConditions_GlobalTag,MC_36...
[ "slaunwhj@cern.ch" ]
slaunwhj@cern.ch
e1bfa27cf691a0b6ee3d8d8a074da682433cef02
f20931826a557f0d884f8b46de259840c29b7428
/meiduo_mall/meiduo_mall/utils/authenticate.py
2079f8c659a70dbebbb5291a0c6b7c9cbcc4867e
[]
no_license
zy723/meiduo_project
38ccecc2fa1d61f2eb848ebc572dd43d45a534c8
f50a8105c63554b57419cb3494c3d323bb343f9c
refs/heads/master
2022-12-15T02:34:42.578549
2020-05-20T16:56:27
2020-05-20T16:56:27
248,264,846
0
0
null
2022-12-12T20:28:41
2020-03-18T15:08:40
TSQL
UTF-8
Python
false
false
2,024
py
""" 增加支持管理员用户登录账号 JWT扩展的登录视图,在收到用户名与密码时,也是调用Django的认证系统中提供的authenticate()来检查用户名与密码是否正确。 我们可以通过修改Django认证系统的认证后端(主要是authenticate方法)来支持登录账号既可以是用户名也可以是手机号。 修改Django认证系统的认证后端需要继承django.contrib.auth.backends.ModelBackend,并重写authenticate方法。 authenticate(self, request, username=None, password=None, **kwargs)方法的参数说明: reque...
[ "zy723@vip.qq.com" ]
zy723@vip.qq.com
a582113ccd4d7aff4595ecaf83c5980d1e086ed2
ece386649b39403cbb23e4c4071178e178311343
/blog/admin.py
46814e609e37e1a6f18bc9b715de4f5ff9a253f8
[]
no_license
GadinganJayHarley06/my_first_blog
c743352178f570400aa2ba256c4bec9530eb0a76
b2e5921475c161565bc214290eacd47a237041de
refs/heads/master
2021-09-06T01:51:10.285943
2018-02-01T12:31:19
2018-02-01T12:31:19
119,833,353
0
0
null
null
null
null
UTF-8
Python
false
false
212
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin # Register your models here. from django.contrib import admin from .models import Post admin.site.register(Post)
[ "jayharleygadz@gmail.com" ]
jayharleygadz@gmail.com
6618cc7ee42d5c64ce1da566bff7ac57a6f4fe95
86317245051f5256751ca3ac186eaffccf55af52
/src/menu.py
9e2bc6d87931c718dff91cfadeb55fabe57dd88a
[]
no_license
SaulCastel/LFP_PROY1
aae34f98b2e784484fb284800515e6eb1d1857bf
f27d3d7c7c6c7ba13774b4dcaaa79370cfdf65f7
refs/heads/main
2023-03-31T01:33:19.910787
2021-03-22T07:48:05
2021-03-22T07:48:05
348,588,069
0
0
null
null
null
null
UTF-8
Python
false
false
692
py
class Item: def __init__(self, id:str, name:str, price:str,desc:str) -> None: self.id = id self.name = name self.price = price self.desc = desc class Section: def __init__(self, name:str) -> None: self.name = name self.items = [] def newItem(self,item:Item):...
[ "saulcastel016@gmail.com" ]
saulcastel016@gmail.com
c446ccc3868b590d3af20686969206a7817c1464
a3ff213f844fa494ba2ba06d26b4e7ba77fa7a58
/django_patterns/management/__init__.py
b9b47da6d3b268a3cc8c8f9d7cdfcbbc09ce161d
[]
no_license
monetizeio/django-patterns
f757771c46859b9157b48d0f875a397239706702
9b5567cbc0d4ed58a9ff074bccc9026982daf307
refs/heads/master
2021-01-13T01:50:56.949546
2013-03-19T23:23:18
2013-03-19T23:23:18
5,908,449
1
1
null
null
null
null
UTF-8
Python
false
false
2,044
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # === django_patterns.management ------------------------------------------=== # Copyright © 2011-2012, RokuSigma Inc. and contributors. See AUTHORS for more # details. # # Some rights reserved. # # Redistribution and use in source and binary forms of the software as well ...
[ "mark@roku-sigma.com" ]
mark@roku-sigma.com
ba287699cf45b5845e4ef5418bb4df38b2b91214
fb265f7443acf7c72e3a7d95e2be5a268ecd8443
/rcwa/test/fastRunner.py
68958164b6b599d0dc72f99e7be7ab2fdd7527df
[ "MIT" ]
permissive
itsjmj/rcwa
71f1bd6bfbff1bb2cc630b6b35a23d1f919c329d
a946c3819e5e52ad9c92a8a73c48360749b06196
refs/heads/master
2023-08-25T19:04:44.699749
2021-05-12T15:25:56
2021-05-12T15:25:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,190
py
""" Run all the core unit tests, not the lengthy and major integration tests """ import context import unittest import sys import testCrystal import testHarmonics import testLayer import testMaterial import testMatrices1x1Harmonics import testMatrices3x3Harmonics import testNetlistParser import testSolver1x1Harmonics ...
[ "jordan.e@berkeley.edu" ]
jordan.e@berkeley.edu
f17124384ece9a83dcb41df9bd0ab948cf7e0c16
8409cbba351dc3572949e933ea2e265c44452844
/hsn_v1/densecrf.py
ddc2fd145b1d2ef2d2d89d3e17d3ee796e8775df
[ "MIT" ]
permissive
Kitatine/hsn_v1
ffa239659745fc11083cbc61dd5d9e0c014c7a10
8cc524a7932deead6ff87fc5945522cf310b9fcd
refs/heads/master
2022-09-06T19:03:09.757180
2020-06-01T16:26:46
2020-06-01T16:26:46
268,572,420
0
0
MIT
2020-06-01T16:20:33
2020-06-01T16:20:32
null
UTF-8
Python
false
false
2,870
py
import os import numpy as np import pydensecrf.densecrf as dcrf from pydensecrf.utils import unary_from_softmax import matplotlib matplotlib.use("TkAgg") import matplotlib.pyplot as plt class DenseCRF: """Class for implementing a dense CRF""" def __init__(self): self.gauss_sxy = 3 self.gauss_c...
[ "ly.hc.chan@gmail.com" ]
ly.hc.chan@gmail.com
9a4a7f80301f045fa5e68ed1f5e0ef3af3e86480
00d4b8f0e974692af26da891a2ed0612d989abf0
/script/program.py
36fedeb83629aafae8369e4ff3dcb65972151391
[ "MIT" ]
permissive
meteorolog90/PROGRAM
a8697d6781fb935b2b3545ef10bd2aad11e6d9df
93ab22ef9c0cfb7cd0c833c08c5c7ed6318291ab
refs/heads/master
2021-07-16T07:22:50.436225
2019-02-19T20:52:19
2019-02-19T20:52:19
147,817,658
0
1
null
2018-11-05T21:53:32
2018-09-07T12:00:53
Python
UTF-8
Python
false
false
5,990
py
#! /home/martin/anaconda3/bin/python3.6 import pandas as pd import numpy as np import cartopy.crs as ccrs import cartopy.feature as cfeature from matplotlib.colors import BoundaryNorm import matplotlib.pyplot as plt from metpy.gridding.gridding_functions import interpolate, remove_nan_observations def main (): whi...
[ "meteorolog90@hotmail.com" ]
meteorolog90@hotmail.com
9e819a87ebc1032db2785b8533da9e1f29cd9fe5
f62e4c46fb0f98879fb63977fa29631b02e3928c
/16 задание/РекурсФункцСТекст_005.py
555d533ac95655abf5e3a748654d72868d9b32bc
[]
no_license
SeveralCamper/USE-2020-2021
c34f4d7a2c3e0f51529141781f523b63242a835d
ac1122649f2fd431a91af5dda5662492e2565109
refs/heads/master
2023-09-03T13:36:05.822568
2021-10-27T12:54:10
2021-10-27T12:54:10
392,303,515
0
0
null
null
null
null
UTF-8
Python
false
false
454
py
# Задание 16 № 9163 # Ниже на пяти языках программирования записан рекурсивный алгоритм F. # Чему равна сумма всех чисел, напечатанных на экране при выполнении вызова F(1)? count = 0 def F(n): global count count += n print(n) if n < 4: F(n + 1) F(n + 3) print(F(1), count) # Ответ: 25
[ "mikha.alkhimovich@mail.ru" ]
mikha.alkhimovich@mail.ru
38f7ec7f0bfb8a30bba8a7a34b7649c99e83b107
f91e85aaad8cbe48c819a15fc2f7d728a1ab50a1
/chapter21-case_study/pyimagesearch/utils/captchahelper.py
2a7163debbb6e4c4e3cb9bbbac24500607c290f8
[]
no_license
amuLee/StarterBundle
ac9c28cffc8494ac9957e014304bf2de8be5a6d1
861fe66d9bab55390c7faca5026769697fc51307
refs/heads/master
2020-05-23T14:05:18.849342
2019-05-15T09:42:34
2019-05-15T09:42:34
186,793,654
3
1
null
null
null
null
UTF-8
Python
false
false
984
py
# import the necessary packages import imutils import cv2 def preprocess(image, width, height): # grab the dimensions of the image, then initialize # the padding values (h, w) = image.shape[:2] # if the width is greater than the height then resize along # the width if w > h: image = im...
[ "leeamu340@gmail.com" ]
leeamu340@gmail.com
baf15faab8930e47cb6f8e16e1a1e395a3a4b8b9
2283ba3286f90d8ed8213050e18a11f57f84e320
/App/ToDoList/toDoAccess.py
24f6e9213db251923f859095cd65dc57de0fdcea
[]
no_license
Wills-Personal-Projects/LifeOrganizer
ab508861e7ed699d3c51b95ea85015eac0fe3a80
8b2a84912a41e72597d6d6bdce36ad841b3c8fc4
refs/heads/master
2023-03-06T08:14:37.576149
2021-02-11T21:55:56
2021-02-11T21:55:56
330,888,967
0
0
null
null
null
null
UTF-8
Python
false
false
1,839
py
#!/usr/bin/python3 from ..Path.filePaths import getScreenPath, getToDoPath, getBaseToDoPath, getNamesPath from ..Screen.screenAccess import getScreen,setScreen def getToDoListDim(n): tDListFile = open(getToDoPath(n), "r") dim = tDListFile.readline().rstrip().split() return dim def getToDoList(n): tDLi...
[ "wjett18@gmail.com" ]
wjett18@gmail.com
300d9ae15924aa6d8ac27e9aeaf6236d61811704
482f24b9eda8ca802ef6f04d9f3cf8c1a79a9af2
/dags/02_pemex_proveedores_contratos.py
d91735162881a333b7d6e5e856cecce044ceb361
[ "MIT" ]
permissive
erikriver/mixtli-etc
773896c831290a7b74374bc89983c87a033baac3
0c8e991cb6d92f0a3c87f41f7688a6a327e2472d
refs/heads/master
2020-03-07T12:53:11.506416
2018-04-05T12:59:44
2018-04-05T12:59:44
127,487,455
2
0
null
null
null
null
UTF-8
Python
false
false
2,935
py
# -*- coding: utf-8 -*- # # Copyright (c) 2018 Erik Rivera # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify...
[ "erik.river@gmail.com" ]
erik.river@gmail.com
a387bd8541f6ae4169b7b9ac79fbcd17e4dbf771
84153ccd9d502d1e086000d66e58eaf756f52ed1
/tweetme2-web/node_modules/watchpack-chokidar2/node_modules/fsevents/build/config.gypi
f499035769cb92132bf631e258809b1c8655ae7f
[ "MIT" ]
permissive
ezorfa/TweetMe
a86d6714595a1cd57054fadb62bd67d27448a995
ff7843d79ba685265f32cab7fabb7f2336122dcc
refs/heads/master
2022-12-14T14:57:37.897380
2020-08-23T21:52:08
2020-08-23T21:52:08
288,664,127
0
0
null
null
null
null
UTF-8
Python
false
false
5,654
gypi
# Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], "default_configuration": "Release", "defines": [], "include_dirs": [], "libraries": [] }, "variables": { "asan": 0, "build_v8_with_gn": "false", "coverage": "false", "dcheck_al...
[ "" ]
3a2ad1e33b7dc2a198f28492c836efb94a98b834
3562fa51db47b1b1e97785191f0c04644d47c283
/python/plat3/2152.py
62489943de0aeb7ac35dc6bf78cf5e4aa950e1b3
[]
no_license
seono/algorithm
c74181d564525e3a0214824c4a619c51cd52a042
78a252b29290eaa1ea076d76cd83e5dbbb7d8d89
refs/heads/master
2021-07-13T07:13:41.523888
2021-04-24T14:05:00
2021-04-24T14:05:00
244,609,427
0
0
null
null
null
null
UTF-8
Python
false
false
1,697
py
import sys from collections import deque sys.setrecursionlimit(100000) input = sys.stdin.readline N, M, S, T = map(int,input().split()) adj = [[] for _ in range(N+1)] for i in range(M): s,t = map(int,input().split()) adj[s].append(t) cnt,SN = 0,0 dfsn = [0]*(N+1) scc_arr = [] scc_num = [0]*(N+1) finished = [Fa...
[ "tjsh0111@gmail.com" ]
tjsh0111@gmail.com
ed2bd9596b3c087bafd28769728ffae53934a728
e12e1e738d06dbbcdb7f3d051614e7aa493f795d
/mysite/config/settings.py
41635b0505022517d3d2ca9886160f51f35e9721
[]
no_license
suhjohn/ec2-deploy-mysite
34c13e1ae3ff33ca14a6223ee8036432ea98d460
fb3c33cb64ecfa673f16da0385942f76bde748a1
refs/heads/master
2021-07-19T17:57:53.701059
2017-10-27T05:33:27
2017-10-27T05:33:27
108,366,401
0
0
null
null
null
null
UTF-8
Python
false
false
3,380
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 1.11.6. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os ...
[ "johnsuh94@gmail.com" ]
johnsuh94@gmail.com
9292b50897599760a3af3e865199ee693377afc0
bca910213912e3f74e28b3da920695eabf9bab1c
/sat/list_articles_test.py
7b6c3905d6be9e414f0bbc7044ab53b5d88b91b0
[]
no_license
francescobenintende/hub-blog
e9f2850ad030ea3af7051d15a9ee186b770391ee
f8960f229c3806fc1c6989f3ab7b6192f46c982f
refs/heads/master
2023-06-23T18:10:34.593326
2021-07-20T07:04:01
2021-07-20T07:04:01
387,029,336
0
0
null
null
null
null
UTF-8
Python
false
false
2,639
py
from hub_blog import app class TestListArticles: def test_list_articles_returns_articles_with_specified_tags(self): with app.test_client() as c: article_to_create_one = { 'title': 'Article One', 'content': 'Lots of interesting content.', 'tags': ...
[ "francescobenintende@icloud.com" ]
francescobenintende@icloud.com
ea8178226894384605a4056cb9263a40ae392b4f
eecd9cb2117aee5f8a41a38e07697524c5908003
/concourse/client/api.py
6364f9311bca6d38d5e26f4f165613ef1eb30a26
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
adracus/cc-utils
426608fb2c7184e5f68c9073da9e7f1535e025ce
dcd1ff544d8b18a391188903789d1cac929f50f9
refs/heads/master
2020-04-25T23:30:25.454654
2019-02-27T14:31:19
2019-02-27T14:31:19
173,148,221
0
0
Apache-2.0
2019-02-28T16:36:09
2019-02-28T16:36:09
null
UTF-8
Python
false
false
8,926
py
# Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed # under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Licens...
[ "christian.cwienk@sap.com" ]
christian.cwienk@sap.com
c663cfef1a695d5be22587d9ff42d87025c79fdc
9edaf93c833ba90ae9a903aa3c44c407a7e55198
/netex/models/destination_display_variant_ref.py
3255e0537fdd4c971133e232146768cd1aa74573
[]
no_license
tefra/xsdata-samples
c50aab4828b8c7c4448dbdab9c67d1ebc519e292
ef027fe02e6a075d8ed676c86a80e9647d944571
refs/heads/main
2023-08-14T10:31:12.152696
2023-07-25T18:01:22
2023-07-25T18:01:22
222,543,692
6
1
null
2023-06-25T07:21:04
2019-11-18T21:00:37
Python
UTF-8
Python
false
false
332
py
from dataclasses import dataclass from .destination_display_variant_ref_structure import DestinationDisplayVariantRefStructure __NAMESPACE__ = "http://www.netex.org.uk/netex" @dataclass class DestinationDisplayVariantRef(DestinationDisplayVariantRefStructure): class Meta: namespace = "http://www.netex.or...
[ "chris@komposta.net" ]
chris@komposta.net
0d038bc8a4bea84b0f0d51230a42d848d9d9ce14
5c1e5935129b4d0f5626f64bd62e3370b0553262
/vendor/deadline/custom/plugins/GlobalJobPreLoad.py
d1287dd2131f2cf667340d1bd133e38875f5b207
[ "MIT" ]
permissive
dangerstudios/OpenPype
c72f9d6d3a4a964697fa77712c116cfd2949b696
f82ed5e127340e852a7517ff1e13e2524ee6e704
refs/heads/main
2023-04-21T00:25:02.364398
2021-04-13T22:10:36
2021-04-13T22:10:36
362,811,887
0
0
null
2021-04-29T12:35:54
2021-04-29T12:35:53
null
UTF-8
Python
false
false
6,060
py
# -*- coding: utf-8 -*- import os import tempfile import time import subprocess import json import platform from Deadline.Scripting import RepositoryUtils, FileUtils def inject_openpype_environment(deadlinePlugin): job = deadlinePlugin.GetJob() job = RepositoryUtils.GetJob(job.JobId, True) # invalidates cach...
[ "petr.kalis@gmail.com" ]
petr.kalis@gmail.com
5e70589d8b5f904dfb860f482ccaa3caf4c7ec29
8685c7b28fcaf26505ec4210ff69f30ed0884d80
/tools/c7n_gcp/c7n_gcp/actions/cscc.py
32b0c5015f39db0b3979318624ad86139f3e2225
[ "Apache-2.0" ]
permissive
AnatoliiHromov/cloud-custodian
9026d490b1c8aabcdab07c5d95a3e7bdda11ce7b
54b48040c0de8a34cea4c48209ca7e395285465b
refs/heads/master
2022-10-13T15:56:48.654462
2020-06-04T16:32:25
2020-06-04T16:32:25
269,630,235
2
0
Apache-2.0
2020-06-05T12:35:17
2020-06-05T12:35:14
null
UTF-8
Python
false
false
8,032
py
# Copyright 2018-2019 Capital One Services, 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 agreed ...
[ "noreply@github.com" ]
noreply@github.com
51bc17d770c472514c34e571a0a26ef96a715551
f9235e935286e8b1b0d86957ebf843179ee1f733
/PasswordLocker/platform.py
38cabbd9ae56024350f327d77848bfab89a8fcab
[]
no_license
Oladunsi/automate_the_boring_stuff
4a37203dec24f4c898161e7e517dd02184e247ef
72963c38b42992c83826f141b0990c1aaf1abfac
refs/heads/master
2023-02-20T01:52:28.796959
2021-01-19T14:02:57
2021-01-19T14:02:57
282,612,632
0
0
null
null
null
null
UTF-8
Python
false
false
1,235
py
import csv import pandas as pd def platform(): UserLocker = {} Begin = True while Begin: platform = input("Enter the name of the platform You want to save its' username and password!!! ").upper() if platform != "": UserLocker["Platform"] = platform UserName = input(f"...
[ "noreply@github.com" ]
noreply@github.com
e27268bc22f9a86622a304e5caac2b5d7ec1d426
ac8b9ab24164f5f282e9eaad2b2453690e5871c7
/app.py
f54b84b37867cc222edf5c1d5bbfb3047cc0d0c7
[]
no_license
Akrosys/M1_Python_EDA
811cad373c49fea4a007db4213188162d1e199c9
7b17b05c5f2afc4da8042585fb385643cb288f18
refs/heads/master
2023-01-30T02:21:19.783569
2020-12-02T15:59:53
2020-12-02T15:59:53
313,864,238
0
0
null
null
null
null
UTF-8
Python
false
false
683
py
from flask import Flaskr import os import socket # Connect to Redis redis = Redis(host="redis", db=0, socket_connect_timeout=2, socket_timeout=2) app = Flask(__name__) @app.route("/") def hello(): try: visites = redis.incr("compteur") except RedisError: visites = "<i>Erreur de connection Redi...
[ "tumasgiu@users.noreply.github.com" ]
tumasgiu@users.noreply.github.com
beebfb738ee3a7772df0488cef9794e2a300da83
2a197966a829ceb02f240f85d70f1c276efd91a3
/MCP3008_VOC.py
adbd4db4c0f32e40230d0b0275e1e0704bd64273
[]
no_license
Tinymaxi/Luftmessdaten
16443a9e0276699569ff7a24942fa4538729a535
274859f0cc0758b40b2e8f0796a96699bf4ffa1e
refs/heads/master
2020-07-13T06:17:53.996156
2019-08-28T20:08:33
2019-08-28T20:08:33
205,014,194
0
0
null
null
null
null
UTF-8
Python
false
false
615
py
import busio import digitalio import board import adafruit_mcp3xxx.mcp3008 as MCP import time from time import sleep from adafruit_mcp3xxx.analog_in import AnalogIn #spi = busio.SPI(clock=board.SCK, MISO=board.MISO, MOSI=board.MOSI) spi = busio.SPI(clock=board.D21, MISO=board.D19, MOSI=board.D20) cs = digitalio.Digital...
[ "noreply@github.com" ]
noreply@github.com
b4819e1ec3e683284917e6a9291f28ae1220f9c7
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp-with-texts/DELL-NETWORKING-TC.py
a5184bbe6b70262343039230a6f6eb6c4efb5c16
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-unknown-license-reference" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
18,834
py
# # PySNMP MIB module DELL-NETWORKING-TC (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DELL-NETWORKING-TC # Produced by pysmi-0.3.4 at Wed May 1 12:37:51 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, ...
[ "dcwangmit01@gmail.com" ]
dcwangmit01@gmail.com
a32df99969cc2b00821ca9dfd9e146584b61aad7
ed63b9b615c0f1484746e87b54a0c0b233ddf5c2
/tests/test_parser.py
90b755aedee63b62e364f59f3cb3c53381aaf2e0
[ "MIT" ]
permissive
timofurrer/embedeval
ae02026da6cd5601b16afe1cbb543552cbf461ac
08a69c950c9a0ac59a8a0ca728af2627c7bcc43a
refs/heads/master
2020-07-29T10:41:56.322842
2020-01-20T10:32:46
2020-01-20T10:32:51
209,766,108
5
0
null
null
null
null
UTF-8
Python
false
false
2,581
py
""" embedeval ~~~~~~~~~ NLP Embedding Evaluation Tool :copyright: (c) 2019 by Timo Furrer <tuxtimo@gmail.com> :license: MIT, see LICENSE for more details. """ import textwrap import uuid import numpy as np import pytest from embedeval.parsers.word2vec_gensim import load_embedding as gensim_load_embedding from embe...
[ "tuxtimo@gmail.com" ]
tuxtimo@gmail.com
b4b13074223e847e9ab9ad0da398eb22f327322b
5b8325ad8ec8e87fe85a74ada8f064b0a3ed8b94
/main.py
3d1afd8c64df97b7e9f99d3584ece9b90c09f0ec
[]
no_license
Ilyaslat/teensinAI_equipe6
a9e48fe0a9d7ef5567c057dbf30b5fa88ed917db
4d60eb9fffe646f759d916579e2a1dce771a3e99
refs/heads/main
2023-08-13T18:31:11.203045
2021-10-11T19:53:09
2021-10-11T19:53:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,667
py
import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers # Define our training input and output data with type 16 bit float # Each input maps to an output X = tf.constant([[0, 0], [0, 1], [1, 0], [1, 1]], dtype=tf.float16) Y = tf.constant([[0], [1], [1], [0]], dtype=tf.float16) # Cr...
[ "noreply@github.com" ]
noreply@github.com
32b305acaf5f83143bcdae4ddd616f2adcd7642a
686248eaf40284ed593768057c58aeebaeae1497
/cg.py
9e0807e3b58cd3dd8e51a7fcd66bf9cd276a3220
[]
no_license
chyyuu/kernel-call-graph
76e6d3b4599886b3eac46083457fad472dc7d9a8
76fb610220bfae24f686f0bd37d8d806bf374548
refs/heads/master
2021-07-11T12:31:06.361565
2017-10-15T16:05:39
2017-10-15T16:05:39
106,992,794
3
0
null
null
null
null
UTF-8
Python
false
false
537
py
# -*- coding: utf-8 -*- """ Spyder Editor This is a temporary script file. """ import networkx as nx import matplotlib.pyplot as plt #G=nx.path_graph(4) #nx.write_adjlist(G, "/chycode/kernel-call-graph/g2.txt") #G=nx.read_adjlist("/chycode/kernel-call-graph/g2.txt", create_using=nx.DiGraph()) #nx.write_adjlist(G, "/ch...
[ "yuchen@tsinghua.edu.cn" ]
yuchen@tsinghua.edu.cn
7968b2e1e5caed24d71f1e3153d7880c5f146136
ea9704f1bddb32cc608525147f5d414184063de5
/app/api/tokens.py
a98a8df86f54b70cf34ef45c2a98af54f62b59ba
[]
no_license
bastienbeurier/partners-web
f7fbcdf473873c76fe1b487e788e5c0391aef6a5
2903ccacd89f1c699e35df07d093cd7219ffadaf
refs/heads/master
2022-12-13T07:52:38.645855
2018-12-25T10:52:03
2018-12-25T10:52:03
161,174,359
0
0
null
2022-12-08T01:28:19
2018-12-10T12:49:59
Python
UTF-8
Python
false
false
495
py
from flask import jsonify, g from app import db from app.api import bp from app.api.auth import basic_auth, token_auth @bp.route('/tokens', methods=['POST']) @basic_auth.login_required def get_token(): token = g.current_user.get_token() db.session.commit() return jsonify({'token': token}) @bp.route('/to...
[ "bastienbeurier@gmail.com" ]
bastienbeurier@gmail.com
813f053bea3bd35889f9553328b8c671b5afb626
f23959561944599f02943350429eb76d8ad4cf81
/hangman.py
b82bbc9228432b32684e559efabda769a60ab9bd
[]
no_license
yuuNishimura/hangman
822b7df229215c6c4462bf1db775553473606e0b
9b7f98cc6df93d9ce0fefd96916b5ed6f9ec9678
refs/heads/master
2023-06-17T18:11:22.030088
2021-07-13T09:26:07
2021-07-13T09:26:07
385,514,400
0
0
null
null
null
null
UTF-8
Python
false
false
1,138
py
import random def hangman(): a = ["cat", "dog"] n = random.randint(0, 1) word = a[n] wrong = 0 stages = ["", "________ ", "| | ", "| 0 ", "| /|\ ", "| | ", "| / \ ...
[ "westside020810@gmail.com" ]
westside020810@gmail.com
1e7fd967ad595fb9792cb574c9219de21724fb93
ac652ff7636d4c3336918d0f96aa8ea1bba3ab28
/fastvid/posts/serializers/postmodel.py
c0152d21e28e0e4c646800e2244e7b172f680400
[]
no_license
pn101/fastvid
eebff58e9dd6b967a52361713ed34462e0713d88
9f57c577c558906e3fd5c3ab44f112588ae84ed2
refs/heads/develop
2021-01-20T18:58:34.398325
2016-07-05T09:29:49
2016-07-05T09:29:49
61,545,668
0
0
null
2016-06-20T13:14:42
2016-06-20T12:22:08
null
UTF-8
Python
false
false
412
py
from rest_framework import serializers from posts.models import Post class PostModelSerializer(serializers.ModelSerializer): username = serializers.CharField(source='user.username') class Meta: model = Post fields = [ 'pk', 'username', 'title', ...
[ "philipnam101@gmail.com" ]
philipnam101@gmail.com
5dd69b1619ff38f19f642f1981ad84e205ad6583
49f6ecfbf4cf66b0867311ce7d4ba5f690410b2f
/greeter_client.py
bc93f9ed2c90fa240e53385b66881e941c070aaa
[]
no_license
jha8/grpc
b93d434d6c1c58517de52a4158092069cc29c900
0d24e265addfd25806b807c0457a275bc1805887
refs/heads/master
2021-09-24T15:27:00.380727
2018-10-10T22:25:00
2018-10-10T22:25:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,235
py
# Copyright 2015 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
[ "joeha909@gmail.com" ]
joeha909@gmail.com
b9744336db4592f260f93b389841d5b72c0fcc0d
960d14fb31f37adf70607e9cb0e986c7764a7bf8
/pizza.py
229035f4f512b90d84a0691b358e4a52b2c68c50
[]
no_license
alexcar/PythonExercises
7a33e47f7adbcbcb7239b138db1ef6ae04d57c2b
5f21089b8b9758da948496acc1420869361c58c4
refs/heads/master
2023-07-27T01:59:16.110629
2021-09-15T19:13:34
2021-09-15T19:13:34
406,729,057
0
0
null
null
null
null
UTF-8
Python
false
false
215
py
def make_pizza(size, *toppings): """Summarize the pizza we are about to make""" print(f"\nMaking a {size}-inch pizza with the following toppings:") for topping in toppings: print(f"- {topping}")
[ "alexandre.carvalho@live.com" ]
alexandre.carvalho@live.com
33b855bde50b1d0eaf72ec0bde4d3cd78ab60fc0
f2a97b4077d3988e2413ec7e6406ae6a5bc41ecb
/assignment 2/wormup-2/string_match.py
0f5e76cd9048ef3d343254ebd85a3ec18e6b6c74
[]
no_license
Sahyoun98/CS498
0cdc05add4faa061d6f88d7c6b270781ecf9d81f
073de710d75a241b021ff93c9da504c5d49b8469
refs/heads/master
2020-03-30T14:17:43.993681
2018-10-15T03:29:44
2018-10-15T03:29:44
151,308,452
0
0
null
null
null
null
UTF-8
Python
false
false
160
py
def string_match(a, b): length = len(a) if length > len(b): length = len(b) x = [1 for i in range(length - 1) if a[i:i+2] == b[i:i+2]] return len(x)
[ "hamzehsahyoun@yahoo.com" ]
hamzehsahyoun@yahoo.com
03f01b12540d4dda0403bbe2e399a4ae7b21bdfd
76caf7060397c9b697e61613a40bd4d27dd93128
/manage.py
9105de0fd8553cd0f7e1d10ee894681e49aaf073
[]
no_license
balaprasadmb/Eblogger
a0bb0f894e876ca86290bb70291271f43b64c5a3
115f931fb55914477db142909c755fc4cb431537
refs/heads/master
2022-12-02T19:10:22.442511
2020-02-25T12:27:55
2020-02-25T12:27:55
89,342,554
0
0
null
2022-11-22T04:28:20
2017-04-25T09:29:32
CSS
UTF-8
Python
false
false
260
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "eblogger.BootCamp.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
[ "noreply@github.com" ]
noreply@github.com
c35af357be8ae118dde3133aaaff753973cb786b
f756eedd0fd4cee9b369978d1e20287dd579e4da
/InmoovScript/services/7_Inmoov.py
ac1ef25dc0796c3cb41c2579757db642007edf0a
[]
no_license
linuxrodo/inmoov
cf02421443d6976f153a64c898e2c209e32cc246
fe8391d6d59ccdf6bdf5b382872fdf4bf77f4b09
refs/heads/master
2021-01-21T09:06:52.835689
2017-02-23T04:07:38
2017-02-23T04:07:38
82,861,443
0
0
null
2017-02-22T23:05:24
2017-02-22T23:05:24
null
UTF-8
Python
false
false
934
py
# ############################################################################## # INMOOV SERVICE # ############################################################################## # ############################################################################## # MRL SERVICE CALL # #############################...
[ "moz4r@free.fr" ]
moz4r@free.fr
427df9e17f2ecf2d62cae9972583d48410810886
46def0fe8f0c3106e7abd5675730ec1905dc3a29
/customer_transfer/models.py
3327a7c616316ce3f47c0e570c86c8bfa172087d
[]
no_license
PillaiManish/Bank-Website-Django-
23c88d4e694f8534918b58ed9cf31e246acaf020
dd63deb94b52f429a6ff3560a4d5f522e9a56c1c
refs/heads/master
2022-11-29T04:53:17.784472
2020-08-17T13:33:51
2020-08-17T13:33:51
245,742,928
0
0
null
null
null
null
UTF-8
Python
false
false
320
py
from django.db import models # Create your models here. class customer_transfer(models.Model): self_userid = models.IntegerField() to_userid = models.IntegerField() date = models.DateField(auto_now=True) to_amount = models.IntegerField() def __str__(self): return str(self.self_userid)
[ "pillaimanish00@gmail.com" ]
pillaimanish00@gmail.com
f5c2f6f667942466f986c459ee041e49ea69a197
c1975972f4ebf8ce40515a0f09a6cb4aca951d94
/venv/Scripts/easy_install-3.8-script.py
d2540252aaa23d2747328ccf4c55798dc84f918e
[]
no_license
anqier-lala/PO_001
e30eb77b9a4be2614831b32ec47b8aa75fde87f6
0f0a437b2b4d1d7b393d41af1a1afcef92975d41
refs/heads/master
2022-07-03T19:00:51.789440
2020-05-19T15:29:57
2020-05-19T15:29:57
259,664,322
0
0
null
null
null
null
UTF-8
Python
false
false
438
py
#!D:\Git_code\PO_001\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.8' __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)?$', '', sys...
[ "13077313846@163.com" ]
13077313846@163.com
1523aeb6c776c3d3f4d1591ad4e5cc42e0987fcf
fe149dc01dd185f43197038c97d6cc049fb6ba68
/blog/migrations/0004_auto_20190419_0845.py
7b8c4632fef3d25a4ea6ad97561f8a19c285b5b1
[]
no_license
LBarry97/mysite
eee6e0971d394cf20f75d99919e067944b5ec714
5715add5c362e90e731afc6544007aafdfa6e0a3
refs/heads/master
2020-05-02T23:10:37.837629
2019-04-19T09:21:36
2019-04-19T09:21:36
178,274,075
0
0
null
null
null
null
UTF-8
Python
false
false
1,273
py
# Generated by Django 2.1.7 on 2019-04-19 08:45 from django.db import migrations, models import django.db.models.deletion import modelcluster.contrib.taggit import modelcluster.fields class Migration(migrations.Migration): dependencies = [ ('taggit', '0002_auto_20150616_2121'), ('blog', '0003_bl...
[ "lansanabarry97@gmail.com" ]
lansanabarry97@gmail.com
a11834a8740c99d04887a515be714497458a6f92
33b3ab4ac3f1c4f8db6be538777a9d16c0c9045d
/textmine.py
8f197587fa7ca7523dfaaa48ba51603e19610c63
[ "MIT" ]
permissive
fredryce/stocker
fbe643d3406fbf63af6a13562afd8822e65e244a
041fbe8348f7a035a607a214477cf423c4259171
refs/heads/main
2023-07-12T20:00:54.328703
2021-08-03T22:13:33
2021-08-03T22:13:33
392,459,545
0
0
null
null
null
null
UTF-8
Python
false
false
5,964
py
import spacy import sqlite3 import pandas as pd import json import robin_stocks as r import yfinance as yf import re, string from os import makedirs, getcwd, path import threading from datetime import datetime, timedelta #for the user, associate the user with the most recent stock he/she disccussed about #we can use th...
[ "xwang2945@floridapoly.edu" ]
xwang2945@floridapoly.edu
1e3299112d0d4a422e71d7d55d2a4869b4e74dc6
917e376668f325c0452fe05fcf3f6348a6ac4336
/tests/xla_interpreter_test.py
d3b758aa0cb0e09d3959f3ad74c8e0192d75cc0a
[ "Apache-2.0" ]
permissive
wusixer/jax
5f8d78a89679db74d0d62806725cc820246d4b4e
66de981e1dfbe04a41b2c003f171fea7bb92585f
refs/heads/main
2023-06-15T09:10:45.599555
2021-07-06T01:58:11
2021-07-06T01:58:11
383,305,925
0
0
NOASSERTION
2021-07-06T01:32:55
2021-07-06T01:32:55
null
UTF-8
Python
false
false
1,252
py
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ "no-reply@google.com" ]
no-reply@google.com
6f47ad10c4d8add20d063805aae912c0a742a686
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/bd_-11162/sdB_bd_-11162_lc.py
b076fadab2c00cc4cf60f263d06b3a4df11907ba
[]
no_license
tboudreaux/SummerSTScICode
73b2e5839b10c0bf733808f4316d34be91c5a3bd
4dd1ffbb09e0a599257d21872f9d62b5420028b0
refs/heads/master
2021-01-20T18:07:44.723496
2016-08-08T16:49:53
2016-08-08T16:49:53
65,221,159
0
0
null
null
null
null
UTF-8
Python
false
false
341
py
from gPhoton.gAperture import gAperture def main(): gAperture(band="NUV", skypos=[13.062792,-10.662778], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_bd_-11162/sdB_bd_-11162_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3) if __name__ ==...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
90040b20dd66779595a0aa99340b7c09f6b8acaf
235da299e64f217d5fc581bbe20d2020b989ea45
/server/api/mongo/mongo.py
5c31178c466ab317e207089a97118722ec687a55
[]
no_license
DAWZayas-Projects/CORTINA-GUDE-JACOBO
5f902c225e3bf78ba74758abe1c92168bca5b561
10c9cfd10fbbdade3a2c048c985aa289b1aa826f
refs/heads/master
2021-01-12T01:40:13.236300
2017-06-19T19:38:36
2017-06-19T19:38:36
78,414,986
0
1
null
null
null
null
UTF-8
Python
false
false
215
py
from pymongo import MongoClient try: client = MongoClient() db = client.AIPowerDB print ("Connected successfully!!!") except Exception as ex: print ("Could not connect to MongoDB: %s" % ex) client
[ "jacobcg@gmail.com" ]
jacobcg@gmail.com
d67eb25ac2e4909f2eeb6a8ba705f13acca87cad
9ce6a0eaba9f82d536ca4348a1594f90f5d67638
/zException.py
33d0d6ef5a48bf8d56b71c83d909615745a662ae
[]
no_license
Jeevankv/LearnPython
028d57ac7b6b68d129e9769541ae509df8ef204d
504b96795b6ccd107f0b176adc142246f9a26094
refs/heads/master
2022-12-21T15:53:27.669206
2020-09-01T10:36:38
2020-09-01T10:36:38
279,399,567
0
0
null
null
null
null
UTF-8
Python
false
false
236
py
#Exception Handling a=int(input("Enter A\n")) b=int(input("Enter B\n")) def Divide(a,b): try: c=a/b return c except Exception as e: print(e) x = Divide(a, b) print(x)
[ "noreply@github.com" ]
noreply@github.com
8432bf99fe707d484f269c98c4d0077f351f625e
e931efb116e93cc2b92b472a7cf37bbf7be0598f
/DB_project/manage.py
16f16eb5e9813dc12720e594bb6ee70b08668355
[]
no_license
ghazalb76/DB_project
f4a2dd38c5e2be4a1ac5335ca468f0f541b08f88
ac1edafffcc40f2779cbd0180534a22dc586d4f8
refs/heads/master
2021-01-04T20:23:18.186963
2020-02-15T16:25:09
2020-02-15T16:25:09
240,747,130
1
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', 'DB_project.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Imp...
[ "ghazal.b93@gmail.com" ]
ghazal.b93@gmail.com
cfc2f2d584cba1ecced6cada0df5775d6baf7951
e8b23cacc1856e87319491200c2b24778fcd6699
/Blackjack/blackjack.py
1cfeddf18158a678cc2bc60cf68bcf08acc53d22
[]
no_license
ACNoonan/PythonMasterclass
69fa204fea1588458853172483b2b85075ac9829
479cfb4c1bc55e4c3480b214fa4028e0f1ed9f2a
refs/heads/master
2022-12-13T04:28:57.573020
2020-09-19T17:23:47
2020-09-19T17:23:47
263,746,150
0
0
null
null
null
null
UTF-8
Python
false
false
6,830
py
import random try: import tkinter except ImportError: # python 2 import Tkinter as tkinter player_hit_count = 0 def load_images(card_images): suits=['heart', 'club', 'diamond', 'spade'] face_cards = ['jack', 'queen', 'king'] if tkinter.TkVersion >= 8.6: extension = 'png' else: ...
[ "adamcnoonan@gmail.com" ]
adamcnoonan@gmail.com
2324633dffd51ed394a8b21d1ac6260a2f93d21b
598caea4a632c7fbf1598a341b192fe19329f5cc
/bi-gram/test-new.py
e6b18bf534aea2ca91c274d2e78d16ef4e51f2d9
[]
no_license
vijaym123/EECS-337-TweetAnalysis
c8917f6ab88413e9b9b67885e9d6d2db6b68cc09
3cba4c16b56832f2a91e81cc022c11ae3002622e
refs/heads/master
2020-05-22T14:34:28.410722
2014-02-25T19:10:13
2014-02-25T19:10:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,389
py
import re import json import nltk from nltk.corpus import wordnet as wn from collections import defaultdict import math from lxml import html import requests import sys import unicodedata year = raw_input("Golden Globes year: ") pagename = "http://www.goldenglobes.com/awards/" + year print "\n" page = requests.get(p...
[ "vijaym123@gmail.com" ]
vijaym123@gmail.com
9df31fb3505037651d94f77ee635edd5db359530
710c6104124e57f778701291d573e746bbc559f3
/teambuildingapp/env/bin/virtualenv
a574068755fad926eb2cb1903956c89cd0f2fa64
[]
no_license
ckjoon/teambuilding
711791952828529ac4c5a44d23a883ae66680836
ee49e95e1cd56f4e7d8efbb46ab1c38b200c08a6
refs/heads/master
2020-04-09T13:33:33.205704
2016-12-04T20:20:25
2016-12-04T20:20:25
68,007,148
2
0
null
2016-12-04T20:20:25
2016-09-12T12:31:40
HTML
UTF-8
Python
false
false
255
#!/Users/JChoi/teambuilding/teambuildingapp/env/bin/python3.4 # -*- coding: utf-8 -*- import re import sys from virtualenv import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "ychoi302@gatech.edu" ]
ychoi302@gatech.edu
7f574f502fc6e92a306eb7d28de67fe32e7f5549
3e3038c14e081bb110a702bcd385b54cd41a6261
/879/879.py
f9e5434cbee5596262fbd6fb2addf7800dec5024
[]
no_license
michael153/leetcode
0f1535ae511f74fd60f479ed644c677de7ece1cb
4be3b0d6892028f6abff1e0ec9c05e0b1e721c0b
refs/heads/master
2020-07-04T09:09:12.192768
2019-08-13T23:35:57
2019-08-13T23:35:57
202,235,595
0
0
null
null
null
null
UTF-8
Python
false
false
878
py
class Solution(object): def profitableSchemes(self, G, P, group, profit): """ :type G: int :type P: int :type group: List[int] :type profit: List[int] :rtype: int """ mod = (10**9 + 7) dp = [[0 for __ in range(G + 1)] for ___ in range(P+1)] ...
[ "m.wan@berkeley.edu" ]
m.wan@berkeley.edu
304cf36358cb78ff18c9f2fa5b28c3e25c49d023
8b3426e770056ae7d3d946dc2dc324bbaab4391c
/collatz.py
0b9ac12199daace07475c0a719d631f4fefff323
[]
no_license
ctrl101/journey
9743896ca64cf2a2913823ffab4213b4e1988b5e
893f8ce08005c5e89f4b5ccba870f8b726ae21f8
refs/heads/master
2023-01-13T15:08:14.346450
2020-11-17T01:12:54
2020-11-17T01:12:54
313,557,148
0
0
null
null
null
null
UTF-8
Python
false
false
297
py
def collatz(number): if number % 2 == 0: print(number // 2) elif number % 2 == 1: print(number += 1) try: number = int(input("Enter number :")) while number > 1: collatz(number) number = number // 2 except: print("must be an interger")
[ "wevans560@gmail.com" ]
wevans560@gmail.com
71626b5ee0ccfe0ba075fb9842f193a99eeca3fa
030b801cb9bed35be80bb305d60c155f806513a5
/regex/regex.py
ef3129779cd88011001158299266d448c4056e85
[]
no_license
Yerkonite/py4e
67dea6f2843266cf789cc05ae1c9ed7f96614fae
dfaf2a8c4eaf0575762a810b79bb332128bbdef9
refs/heads/main
2023-01-03T17:29:40.070949
2020-11-02T11:29:22
2020-11-02T11:29:22
306,399,198
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
# Search for lines that start with 'X' followed by any non # whitespace characters and ':' # followed by a space and any number. # The number can include a decimal. import re fname = input("Enter file:") hand = open(fname) y = [] for line in hand: line = line.rstrip() x = re.findall('[0-9]+', line) if len(x...
[ "47889623+blackstar17@users.noreply.github.com" ]
47889623+blackstar17@users.noreply.github.com
ea844bd080f216727d29578c7e83e37d9e5000c6
e949a970f404a501d54ec0ea5cce6a9d8b0abc3e
/10chapter13某城市财政收入影响因素分析及预测模型(未完成)/code/chapter13Adaptive_Lasso变量选择模型.py
6df38f606feb93dbacdf4287cdd433851b38653b
[]
no_license
xuhande/Data-analysis-and-mine-using-python
3b20a25b9fc2d88e1e29d71b38a9a7589a92ff12
34a97afdc60a52d4ef72c5edf6f715182ddb57f7
refs/heads/master
2023-09-06T06:52:05.505839
2019-03-31T08:32:04
2019-03-31T08:32:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,106
py
"""模型参数 x1:社会从业人数; x2: 在岗职工工资总额;x3: 社会消费品零售总额; x4: 城镇居民人均可支配收入 x5: 城镇居民人均消费性支出;x6: 年末总人口;x7: 全社会固定资产投资额; x8: 地区生产总值 x9: 第一产业产值; x10: 税收; x11: 居民消费价格指数;x12: 第三产业与第二产业产值比 x13:居民消费水平;y: 财政收入 """ import pandas as pd from sklearn.linear_model import Lasso import numpy as np data = pd.read_csv('../../data2/C13_data1.csv') ...
[ "bihua201402@sina.com" ]
bihua201402@sina.com
4c1f5b0e0a57e6c3f61c17a248587224aafe2656
9910a1e38dc02abd0e0684b83601c950598aa179
/Bookmarks/models.py
c2045fe8ca931b508736934afbd17c660fd23bfc
[]
no_license
crispad/Bookmark-app
2197b8bc25b927f02a7c61512203759e82e7e34b
4430240799a0b67d7f196cf256b2a2a1676d9829
refs/heads/master
2020-03-21T14:18:07.095404
2018-06-27T07:33:36
2018-06-27T07:33:36
138,650,471
0
0
null
null
null
null
UTF-8
Python
false
false
542
py
from django.db import models from uuid import uuid4 from django.contrib.auth.models import User class Bookmark(models.Model): id = models.UUIDField(primary_key=True, default=uuid4, editable=False) title = models.CharField(max_length=200) url = models.URLField(unique=True) created_at = models.DateTimeFi...
[ "crispad06@gmail.com" ]
crispad06@gmail.com
84d255ed685f170cc51fdbac351069866c092930
64740d39a04f00730ad078280ef30707bcba2129
/blog/migrations/0004_auto_20170210_1408.py
efc9de3c452c324f5d9cbcebedd10da9b56e16be
[ "MIT" ]
permissive
sighill/blog
1f4b4985146a7cf97ab186d23d8f14bd596e2c39
7ab126549398daf9dbf996a2ee9f96d7f3b44868
refs/heads/master
2021-01-13T17:12:00.540574
2017-02-20T13:18:58
2017-02-20T13:18:58
81,751,232
0
0
null
null
null
null
UTF-8
Python
false
false
1,559
py
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-02-10 13:08 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0003_auto_20170130_1440'), ] operations = [ migrations.CreateModel( ...
[ "voxclam.indes@gmail.com" ]
voxclam.indes@gmail.com
5d7a771e779f0b24d4bc1ae2bf01ac98e9d0c325
9423dd5312d6c05f61ec902a26ff627c6ef58f97
/Python/functions/get_middle_point.py
6d5bb3a5c5f3d271d454c9c6da74dc57df5a617c
[]
no_license
NehvedovichVlad/small_tasks
01c093b07d521da59c559591559d61e81829df0f
1c4085e3a2f0a4530c82f57b98f0f83b18e68567
refs/heads/main
2023-03-17T15:49:04.480092
2021-03-11T20:29:05
2021-03-11T20:29:05
308,935,905
0
0
null
null
null
null
UTF-8
Python
false
false
1,013
py
"""" Середина отрезка Напишите функцию get_middle_point(x1, y1, x2, y2), которая принимает в качестве аргументов координаты концов отрезка (x_1; \, y_1)(x 1;y1) и (x_2; \, y_2)(x2;y2) и возвращает координаты точки являющейся серединой данного отрезка. """ # -----------------------------------------------------------...
[ "vladislavnehvedovich@gmail.com" ]
vladislavnehvedovich@gmail.com
a092eb7078a59ea3dcfd2d364d4380b098066ba6
c6da89d2af85263fe73cdaa74735c95deae3e951
/not_used/mod_fair_stochastic_dominance.py
cf2721fadb06eef2fc9fb44c976063a54ae0e97e
[]
no_license
antonm94/Fairness_in_Bandits
7489fb97f94c1b2116756ab76f1ac705687e088d
f37960efd1ef84e5d21f9c402393851f6c050305
refs/heads/master
2021-09-10T21:48:21.001625
2018-04-02T21:46:39
2018-04-02T21:46:39
106,277,769
0
0
null
null
null
null
UTF-8
Python
false
false
7,165
py
import random import numpy as np from thompson_sampling.calc_c import c_alg2 from fairness_calc import smooth_fairness class ModFairStochasticDominance(object): def __init__(self, bandits, T, e1, e2, delta, lam, distance): self.k = bandits.k self.arm = bandits.arms self.r_theta = bandit...
[ "manton@student.ethz.ch" ]
manton@student.ethz.ch
2b2276e3dd8f08b1dbd9b020b05b911e0447b425
ec2a196f582effd10d1f1c80a99748597371294b
/2018/cyb_notify/models/model.py
21736203da773772afb38cd45f7f15213c62d7fc
[]
no_license
baiqianyi/starfish
71bffd4f2718a7b50c4ff7e6d66afd18dbccff4c
89e63a0dc06f4cb73b87fae44206cda275f12fbd
refs/heads/master
2020-03-25T13:48:10.978468
2018-08-26T00:27:48
2018-08-26T00:27:48
143,843,514
2
0
null
null
null
null
UTF-8
Python
false
false
6,878
py
import datetime import utils.email_notify as en import pymysql class model: def __init__(self,log=None): self.logger = log self.begin_delta_time = datetime.timedelta(seconds=360) self.std_buy = -0.826 self.std_sell = 0.37 # 0.34453064057819965, -0.58066720314595333 s...
[ "710697439@qq.com" ]
710697439@qq.com
acce8e1a21ccf28ffadc38b8002f50cdbcf6987b
afdda9b5185826747814dd82fdf74f809cfa62ef
/Python/tdw/librarian.py
ce2301ec287ecfd7eebbf45a81bb85c00ca3ed8d
[ "BSD-2-Clause" ]
permissive
lijin929/tdw
e011b831c650a383a22e7e16d934c7940416fcd0
957cff2b400fbd24e31bbae886c307ecb7a74cdb
refs/heads/master
2023-08-14T22:35:29.172322
2021-09-14T13:52:30
2021-09-14T13:52:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,269
py
import json from typing import List, Dict, TypeVar, Union, Generic, Optional, Tuple import pkg_resources from pathlib import Path import platform from secrets import token_hex class _Record: """ Abstract class for a metadata record. """ _PLATFORM = platform.system() def __init__(s...
[ "alters@mit.edu" ]
alters@mit.edu
01cfcefe303540943ca361d2cab65b79310ffdd5
fb7e69d5dfe309c90b7eba06e5cfef3ecaa141a7
/v2.0/exercise9.7.2.py
46f4e072ff6b6e30b2f25cfa775728f2170965da
[]
no_license
ajsaule/Python
9e74c46b8f804faaaa18c2506f01d9d09d6f7a8d
d3546001822e6a514411e5ed5369f6b2cc18cee4
refs/heads/master
2020-05-09T16:12:22.800696
2020-03-15T23:02:58
2020-03-15T23:02:58
181,262,464
0
0
null
null
null
null
UTF-8
Python
false
false
198
py
file = open(input('Please type filename to open: ')) read = file.read() count = dict() for line in read: if line.startswith('From'): select = dict(str(line[34:36])) print(count)
[ "noreply@github.com" ]
noreply@github.com
a6f533ee1a748cadb33dd88731d1d874b6732849
b138195f988aa6ce71ad35fc4d5707c2127739bb
/sesc_mate/wsgi.py
6b7c2401184455e99900682d72ae1d9ac59abd21
[]
no_license
WoodieDudy/SESC_MATE-backend
46866cf449ab9b7be2401088967d593b4db396e9
e46df5d9d6f8bca798965618963ba27a31e2dd23
refs/heads/master
2023-04-17T02:05:46.836769
2021-04-22T12:20:09
2021-04-22T12:20:09
359,822,475
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
""" WSGI config for sesc_mate project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SET...
[ "goshagks@yandex.ru" ]
goshagks@yandex.ru
26413742d0a2765fe4de84c03b8f3b80530d12a0
ba0e5bd46a81a0bbbaabc9f1bdb5ed08f04b5d1e
/boards/models.py
6cd9eba0dbbba05989ef57081d24a9ac4eadf5a2
[]
no_license
okok0415/Cheating_Detection
2bdecbae289d946723269cd3cf9e47c63f9b5f14
4bdf63e987f32b3b511f361c6e5224da5a682205
refs/heads/main
2023-04-24T18:59:27.406963
2021-05-04T10:23:37
2021-05-04T10:23:37
353,056,284
0
0
null
null
null
null
UTF-8
Python
false
false
400
py
from django.db import models from users import models as user_models class Board(models.Model): """ Board Model Definition """ title = models.CharField(max_length=200) content = models.TextField() user = models.ForeignKey( user_models.User, on_delete=models.SET_NULL, null=Tr...
[ "dlawjdals11@naver.com" ]
dlawjdals11@naver.com
681900145067710e4f147f7537e281b59275efcb
e1a0a211adfdeaac830607ef01922ad2d7c602b5
/cifar10.py
0072978dc078387e4f3e6a51c60651a0d7d019ca
[]
no_license
yixu34/tftest
7a0f294072ef491d3750917ce42afd09db561bf8
45efd9854faf217180350b4a9a42a2ad417e2c3d
refs/heads/master
2022-12-09T12:38:07.948849
2020-08-24T00:23:08
2020-08-24T00:23:08
289,611,252
0
0
null
null
null
null
UTF-8
Python
false
false
803
py
import tensorflow as tf from tensorflow.keras import layers (x_train, y_train), (x_test, y_test) = tf.keras.datasets.cifar10.load_data() x_train, x_test = x_train / 255.0, x_test / 255.0 model = tf.keras.models.Sequential([ layers.Conv2D( filters=32, kernel_size=(3, 3), activation='relu', in...
[ "yixu34@gmail.com" ]
yixu34@gmail.com
fa81b6f980eefe4e61b156f0138eb67cf63c9040
34ec71e93a70c951e02f54f764ab401b9f739a70
/FIEK-UDP/UDP_Klient.py
cab73eb248a6e06527dca912c336ca9003958618
[]
no_license
FortesaHysenaj/Socket-Programming
b2057e66c7250cbdd69fe0d7d9a51c15e193b2b5
753a2a9313ff9d3796d6a30d70a923fe69b94631
refs/heads/master
2020-05-05T08:49:31.819994
2019-04-29T23:57:30
2019-04-29T23:57:30
179,879,523
0
0
null
null
null
null
UTF-8
Python
false
false
1,054
py
import socket host = 'localhost' port = 12000 print("----------------------------UDP KLIENTI-----------------------") socketClient = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) print("Zgjedhni nje metode: \nIPADRESA\nNUMRIIPORTIT\nHOST\nBASHKETINGELLORE (+shkruaj nje fjale-fjali)\n" "\nPRINTIMI (+shkruaj n...
[ "fortesa.hysenaj@studentet.uni-pr.edu" ]
fortesa.hysenaj@studentet.uni-pr.edu
defeb5a0a197d38f8b8809a81f0557ed0285e0b3
dcf4df0c24fb2ba4f44ccc3e625e56aeabce5d9f
/calificaciones/urls.py
021f927d58bdbab25719afd8c89f3099886c7c26
[]
no_license
arelyibarrrivas13/calificaciones_Django
19f5acfe051079d86fb4194f1f2487a2cdc34ddb
ead6a96db2f838ba045bb73f2683ceb6bf04c7ac
refs/heads/master
2022-07-29T13:43:46.827219
2020-06-18T01:50:29
2020-06-18T01:50:29
273,113,800
0
0
null
null
null
null
UTF-8
Python
false
false
1,109
py
"""calificaciones 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') Clas...
[ "48133757+IbarraRivasArely@users.noreply.github.com" ]
48133757+IbarraRivasArely@users.noreply.github.com
ddf9ff835fbc973f18c4f56f5c0ff7440397ec56
2ab444e427955d3dbf1f8c0947837c7d73e66a0a
/25-刘杰-北京/第九周/datasets/__init__.py
b57add28328dba5e5f4d023c2bafaed95b186619
[]
no_license
Yang-chen205/badou-Turing
6bfc0a4622cb0882f89117e73e2868d40601e7ff
f2a1b2f8b6b292815d92a294d49954616d3624d5
refs/heads/main
2023-08-07T03:57:07.471322
2021-09-26T08:20:10
2021-09-26T08:20:10
380,449,981
1
0
null
2021-06-26T08:12:02
2021-06-26T08:12:02
null
UTF-8
Python
false
false
157
py
#!/usr/bin/python # -*- coding: utf-8 -*- ''' @Project :badou-Turing @File :__init__.py.py @Author :luigi @Date :2021/8/31 4:18 下午 '''
[ "86213076+luigide2020@users.noreply.github.com" ]
86213076+luigide2020@users.noreply.github.com
4c8658c14906c41768a4f2f85fcae70ef46c9d23
c78c1919b78751e88a8fa6816c27b6b173ba245f
/06_1_loss_and_optimizer.py
224cac213a97ce3b013893ec7525074da72eab1c
[ "MIT" ]
permissive
umit-ai/pytorchTutorial
742055e6abccc167f3bc821e800afca34ea0e769
aa2573f1e829e7f1201e53dbb9df351785229fac
refs/heads/master
2022-04-21T13:53:06.504027
2020-04-13T17:01:38
2020-04-13T17:01:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,015
py
# 1) Design model (input, output, forward pass with different layers) # 2) Construct loss and optimizer # 3) Training loop # - Forward = compute prediction and loss # - Backward = compute gradients # - Update weights import torch import torch.nn as nn # Linear regression # f = w * x # here : f = 2...
[ "pythonengineerman@gmail.com" ]
pythonengineerman@gmail.com
cec69182b84e9aa6bff4f48d54f59182d811ddf5
de847b2e9a5236887fb6a164fedc0e0c86b84e6c
/pythonturorial/workshopprograms/userinput.py
0b0ce93aae289361bd5e6a95386c281114c27be5
[]
no_license
raghuprasadks/pythonmicrosoftexam
9a6bcafcdbc5bb6727278f421bb1a31dc5b7427b
68dacab8aa98d0ff39f1f36c3ce8e666be3760a0
refs/heads/master
2020-09-15T02:51:06.809959
2020-02-12T01:18:42
2020-02-12T01:18:42
223,330,626
1
0
null
null
null
null
UTF-8
Python
false
false
475
py
name = input("Enter your name") print(type(name)) print('your name is ',name) age = int(input("enter your age")) print('your age is ',age) nextyear = age +1 print('your age after one year',nextyear) amount = float(input("Enter the payment made for purchase of fruits")) print('float conversion',amount) print("Enter ...
[ "prasadraghuks@gmail.com" ]
prasadraghuks@gmail.com
2c8c9cb25515b039215ca4a231c839dec248cb22
236e6d7c644d8e0f8c2e0e1d0bf222a31163abbb
/shop/models/user.py
7e0ea29f83a39f9800174060bdfb42b14a90c995
[]
no_license
itsluja/digi
6687c91f149f4bdb15987e576c069b8851d9c715
047cdf40d33263c7e9b9e7b8d54bd499e339c5bd
refs/heads/main
2023-03-15T05:45:56.020204
2021-03-18T19:38:42
2021-03-18T19:38:42
345,308,631
0
0
null
null
null
null
UTF-8
Python
false
false
489
py
from django.db import models class User(models.Model): name = models.CharField(max_length= 50) active = models.BooleanField(default=True) email = models.CharField(max_length= 100 , unique= True) password = models.CharField(max_length= 500) phone = models.CharField(max_length= 10) cit...
[ "noreply@github.com" ]
noreply@github.com
96c4eded58823e78c863134df63303135ce70051
69dcbd7053449b2522448545927604cc8c8e16f7
/exporter.py
c3ecf3da53e86efc5ada4dc01ec89350b4fb2eb8
[]
no_license
namikiri/vk-dialogue-export
29d701b6be086d4122d3fced8f3f6da646985746
0293715f73db611e2545959c9375b9b898d207cc
refs/heads/master
2020-03-27T15:16:10.176653
2018-08-30T06:59:19
2018-08-30T06:59:19
146,707,475
1
0
null
2018-08-30T06:45:50
2018-08-30T06:45:50
null
UTF-8
Python
false
false
15,592
py
import os import urllib from progress import * from utils import * class ExportContext: def __init__(self, user_fetcher, depth=0, users=None): self.depth = depth self.user_fetcher = user_fetcher self.users = users if users is not None else dict() def add_user(self, user_id, exporter=N...
[ "vtyazhelnikov@swaxis.com" ]
vtyazhelnikov@swaxis.com
4d7ed2a1a08f6964c45a24c6f61dfc5c70731d1c
b9de1691e91ea5dba082ae3e3bd876a6fe4a2d45
/cogs/worksheets.py
0dbf614affdb86f7fdd627cb046cdac9d069e887
[ "MIT" ]
permissive
Developing-Studio/ci-Administrator
ee313758219222e6a2c338bd8d8ac018ba578871
087748cb73b3c0edd186f82987b4ffedbe198ac4
refs/heads/main
2023-02-07T10:23:06.317291
2020-12-28T21:58:10
2020-12-28T21:58:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,209
py
import datetime import io import operator import os import random import re from typing import List from typing import Optional from typing import Tuple import discord from discord.ext import commands from discord.ext import flags from discord.ext import tasks from base import custom from converters import OperationC...
[ "cyrus21337@gmail.com" ]
cyrus21337@gmail.com
2196349d34fe90de1d957e98c7117e16312f2e30
d5080d96e40525f6d3cbf3f97910234fb4c35ee2
/program/classifierExp.py
12c35c44b61ff4c502d0903d0bc4a31aaf1442f0
[]
no_license
kojotek/contest_at_least_we_tried_public
2e1d60ae86f3a72340495d2d8d9d8f57f37ef506
dc9959f3aee618b7b65a9b0bd17f2499d8529b39
refs/heads/master
2020-06-15T05:23:02.547145
2016-12-10T16:30:58
2016-12-10T16:30:58
75,324,728
0
0
null
null
null
null
UTF-8
Python
false
false
746
py
print(__doc__) import numpy as np import matplotlib.pyplot as plt from sklearn import linear_model, datasets # import some data to play with iris = datasets.load_iris() X = iris.data[:, :2] # we only take the first two features. Y = iris.target h = .02 # step size in the mesh logreg = linear_model.LogisticRegres...
[ "dargemir@wp.pl" ]
dargemir@wp.pl
ef4cf60a83f3320c1d17fdc3aa26f2e066eb5006
d2cc300faf038c018ad6612bb93dbb5defb83e2d
/tests/test_utils.py
4b61c414166027f3ffbfe007bf6f9802a88e6c10
[]
no_license
paliwal90/winning_price_pred
addadeca5285b22c8ef02b2d5958177bcd22d598
c126ac40a1ed13baabe096e5ff55072b428d1a55
refs/heads/master
2020-04-17T04:16:50.272407
2017-11-14T05:00:17
2017-11-14T05:00:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
555
py
import numpy as np from scipy.sparse import csr_matrix from nose.tools import assert_equal, assert_true from winning_price_pred import utils as testee def test_add_bias(): # scipy.sparse.csr_matrix X = csr_matrix([[1,2],[2,3],[3,4]]) got = testee.add_bias(X) expected = csr_matrix([[1,1,2],[1,2,3],[1,...
[ "yusuke-nishioka@united.jp" ]
yusuke-nishioka@united.jp
af45066f57cba7e2d31be99095220cd6aaec789a
353e4113d9763ef04ed49de02cf16e4a25a27aed
/mysite/ads/forms.py
c1636aae456e52f70a7726abd0e06cdefe0e089d
[]
no_license
niveditaprity/Django-for-Everybody
31ea1093b6f09a77769f05e17ae5ffa95ba449a2
a9ce3b5a584a32790342f2c4ff53676b3112a32d
refs/heads/master
2022-12-23T20:23:05.194503
2020-09-28T11:32:56
2020-09-28T11:32:56
299,275,681
1
0
null
null
null
null
UTF-8
Python
false
false
2,258
py
from django import forms from ads.models import Ad from django.core.files.uploadedfile import InMemoryUploadedFile from ads.humanize import naturalsize # Create the form class. class CreateForm(forms.ModelForm): max_upload_limit = 2 * 1024 * 1024 max_upload_limit_text = naturalsize(max_upload_limit) ...
[ "niveditaprity@gmail" ]
niveditaprity@gmail