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
71b22fc91381f282dc98817aa113784b5ba94563
714fadd433c05b126b7909e1de14ee00bd2b0096
/tests/test_http_client/test_http_service.py
1dcba7edf292aa326727edd97db710b4b948af70
[ "MIT" ]
permissive
Zheaoli/huskar-python
4b1a30fc6939d387e09aaa484e7afe3ca190d293
f62a2d3636b2804a552bf59f76903cf2841d75c9
refs/heads/master
2020-08-03T03:59:19.279390
2019-09-27T06:34:09
2019-09-27T06:34:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,669
py
# -*- coding: utf-8 -*- from mock import Mock import pytest import gevent from huskar_sdk_v2.http.components.service import Service initial_service_data = {u'192.168.1.1_17400': { u'ip': u'192.168.1.1', u'meta': { u'control_daemon_port': 5544, u'protocol': u'thrift', u'pushSequence': ...
[ "mozillazg101@gmail.com" ]
mozillazg101@gmail.com
6e69623a745e215d65a1524e8506cd9057e79e1a
ac1dc63c3316671b04f5826523b64b0e5f7a8154
/__init__.py
12d72caf8579d5620658b97bfdc50fab7e824117
[]
no_license
leonardocfor/multi-robot-vicsek
0f2b6188fd41415d8130aa0d69fec1f309f64da0
88d5c72f671dd4108bbf65d8bff54157371cf018
refs/heads/master
2021-07-06T22:55:58.287060
2020-10-03T00:30:27
2020-10-03T00:30:27
192,839,463
4
0
null
null
null
null
UTF-8
Python
false
false
30
py
__all__ = ['bin','etc','lib']
[ "lecf.77@gmail.com" ]
lecf.77@gmail.com
d1f409cf102e8f3f8ab14c629e24c68701bf7f54
9620f0d4564be92deb2c09da6895cca920e51435
/app.py
65516d178d7bbb58e9def80f5954299db70f0f05
[]
no_license
talha-ghaffar/articler
14e4825099f55559b4882f852e30b6bf687dea8a
6037045775f779722077af809ae4a5474a74a28b
refs/heads/master
2020-04-04T11:04:17.887176
2018-11-02T14:33:27
2018-11-02T14:33:27
155,878,038
1
0
null
null
null
null
UTF-8
Python
false
false
7,481
py
from flask import Flask, render_template, flash, redirect, url_for, session, request, logging from flask_mysqldb import MySQL from wtforms import Form, StringField, TextAreaField, PasswordField, validators from passlib.hash import sha256_crypt from functools import wraps app = Flask(__name__) # Config MySQL app.confi...
[ "talha.ghaffar@hotmail.com" ]
talha.ghaffar@hotmail.com
46d58ef295247a199fdfba6578d1c510ede1a49a
9db50ad2dcb936ff15711271a66a19711030efd2
/Delete_node_ linked.py
a88505b94b61f4707729ba7cfb89d91a9d10da8e
[]
no_license
sixbo/LeetCode
c3fa7bfb2942ecb23fa6e85cd8876780fc5061df
a6f7161735547b8d74ecdb8d22d9fe681b3b2294
refs/heads/master
2020-09-07T11:05:52.908256
2019-11-13T07:35:43
2019-11-13T07:35:43
220,759,255
0
0
null
null
null
null
UTF-8
Python
false
false
493
py
def deleteNode(listnode, node): """ :type node: ListNode :rtype: void Do not return anything, modify node in-place instead. """ if len(listnode)<2: print("链列表太短了") elif node==len(listnode): print("你不能删除最后一个") else: for i in range(len(listnode)-1): if list...
[ "liubo37@163.com" ]
liubo37@163.com
7d4d9e1c9a076511f2ab8479fb13a3113ee0c1bb
b2b4cd86da23cfcafa642b01ee86bd12284e6dfa
/ffWarAdminApi/apps.py
70a2b0313cd620646f566c3b41852550c662ea1a
[]
no_license
bikram-shaw/ffWarApi
d47e1116844654150dc278d0b723e67e7194075d
b16d482680c45423927a002a1ca2e35642beadca
refs/heads/main
2023-02-28T07:30:51.658906
2021-01-31T07:33:29
2021-01-31T07:33:29
319,536,684
0
0
null
null
null
null
UTF-8
Python
false
false
101
py
from django.apps import AppConfig class FfwaradminapiConfig(AppConfig): name = 'ffWarAdminApi'
[ "bikramshawbnk@gmail.com" ]
bikramshawbnk@gmail.com
658ac4aa4accaa322e09456a967e92697c29df16
1cee01e4e31672df57d4e7841c6d0f0efda6153b
/RP_impl/hello_world.py
2801e3a09022ae697763bd254746ebbbbe80364e
[]
no_license
andrealoevemaerke/thesis
9c3f5ab9416b6da979fcaf16637bd35e28bead2a
701c0ed2de3c2bae4430238b37739659b883b6d8
refs/heads/master
2020-05-19T17:58:36.356030
2019-06-12T13:19:10
2019-06-12T13:19:10
185,146,376
0
0
null
null
null
null
UTF-8
Python
false
false
5,835
py
import socket import numpy as np from threading import Thread import FFArithmetic as field import shamir_scheme as ss import proc import TcpSocket5 as sock import time import queue as que from participantCodePLOT import party import matplotlib.pyplot as plt import os port = 65 party_addr = [['192.168.100.1', 65], #P0...
[ "andreatram@gmail.com" ]
andreatram@gmail.com
93a85d1ecf6825449a3f7c64ee9f281b94e8bdb4
be043a809f54e592038e44db56627d5895ea5582
/torobot/fetcher.py
e08d7a44ceff39072d0ef327fa59e012f42f2461
[]
no_license
Yeolar/tornado-robot
4767b862bfec3e21c270813db49305c4571a42d5
9f04556da1ff3f4b2614bc605711e6ebbb5a0c1a
refs/heads/master
2021-01-18T14:11:11.439181
2013-08-20T04:53:02
2013-08-20T04:53:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,385
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Created on 2013-04-12. Yeolar <yeolar@gmail.com> # import logging from tornado.httpclient import AsyncHTTPClient, HTTPRequest from zmq.eventloop.ioloop import IOLoop class Fetcher(object): def __init__(self, *args, **kwargs): self.identity = '' ...
[ "yeolar@gmail.com" ]
yeolar@gmail.com
f4de25a9a5ef6b37ebd857b3d91d5bd414e813d3
63b468d1bec0e0ba26d07b937f920655eea68fa2
/Coding Question/Strong number.py
58dbc61f5315982a5c382229fa377745de0d0108
[]
no_license
Priyanshuparihar/Competitive_Programming
e3866e1ce753d102140c7cb48036c3dbeee1786d
b33fedeeb24105b24f8a36b244f6d9a04c8a3672
refs/heads/main
2023-06-13T22:25:44.964543
2021-07-13T16:51:32
2021-07-13T16:51:32
374,601,192
0
2
null
2021-06-07T14:41:57
2021-06-07T09:03:18
Python
UTF-8
Python
false
false
295
py
def factorial(n): Sum=1 for i in range(1,n+1): Sum=Sum*i return Sum num=int(input("Enter a no. ")) Sum=0 n=num while(num>0): rem=num%10 Sum=Sum+factorial(rem) num=num//10 if n==Sum: print("Enter number",n,"Strong no.") else: print("Enter number is",n,"not Strong no.")
[ "noreply@github.com" ]
noreply@github.com
ff842e856c5c79b2b516f75e988b23163b745344
86846935921f2a082ea8111ae617b3e10f2fd73d
/usdToRedis.py
712937e441d47cac7388238d7403b0418d999de5
[]
no_license
gmiraval/stats
f8d373abeeb7bb3bd06eba7a551977251813fd58
91153b5065b4bb46b146209c602b502c7fe7ea2c
refs/heads/master
2022-03-27T16:49:58.559582
2019-12-03T15:07:14
2019-12-03T15:07:14
198,303,615
0
0
null
null
null
null
UTF-8
Python
false
false
1,954
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import requests import json import sys import urllib3 import logging import boto3 #acceso a aws-poner credenciales en .aws from decimal import Decimal from datetime import * import redis #seteo nivel de log #logging.basicConfig(level=logging.DEBUG) ##logging.basicConfig(l...
[ "ubuntu@ip-172-26-3-231.ec2.internal" ]
ubuntu@ip-172-26-3-231.ec2.internal
b2be474d2f79c37759554eaa222d04c3458c8283
162acc71ad55c1259b534ed41e351e9bdcfd1915
/env/bin/easy_install
6a94d7dbc70f012ea0007ce5e88259b453340910
[]
no_license
merissab44/Events_site
53f79d1f5256f0af71f4c1f386bb9d5e0efecb0e
7fc15d6b019ebfe7cb6eeeebf4f062fbf8bb6d69
refs/heads/main
2023-04-16T15:26:46.610739
2021-04-26T17:32:08
2021-04-26T17:32:08
357,775,045
0
0
null
null
null
null
UTF-8
Python
false
false
296
#!/Users/merissabridgeman/dev/courses/BEW1.2/BEW-1.2-Events-Homework/env/bin/python3 # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "merissa.bridgeman98@gmail.com" ]
merissa.bridgeman98@gmail.com
b1dbf2d9d7130f444f85d058c338082c4cbb3f92
bfaa36f7fd23adfc7d6bd3f197ce660feccf80d3
/2nd course/week6/p10.2_w6.py
ab281cd18d244bed77c365abca1fdf660906659a
[]
no_license
omarbakeer/PY4E
c70a8520056560e97e997b1603167be3cb12f5b2
c06ee82fef15602876748ccd082cf76546cfb250
refs/heads/master
2021-03-19T11:09:42.316161
2018-06-13T01:37:24
2018-06-13T01:37:24
107,909,764
0
0
null
null
null
null
UTF-8
Python
false
false
375
py
name = input("Enter file:") if len(name) < 1 : name = "mbox-short.txt" handle = open(name) lst = list() dic = dict() for line in handle : if not line.startswith("From "): continue line = line.split() time = line[5] time = time.split(":") hour = time[0] lst.append(hour) for hours in lst: dic[hours] = dic.get(...
[ "omarbakeer@gmail.com" ]
omarbakeer@gmail.com
941745f8568dcf37e1784153a6ece9ec8c846877
dc77d93ea860c9963fa09752750261ad75672739
/tests/test_parsers.py
ccb31266b5e055ae91929259a211b3e12f3fb3b0
[ "BSD-3-Clause" ]
permissive
pketh/investigation-google-search-audit
86bef89766fff09ffc539b7729ce711fdd8f5c1c
38068c598d234b6570046a9c744deea525e5e43b
refs/heads/master
2022-11-19T07:18:26.304659
2020-07-28T02:07:19
2020-07-28T02:07:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,088
py
""" Test Parsers ============ This script is an abstract test for HTML parsers. Use it for two reasons: 1. Checking if Google has made changes to search results. 2. Assuring parsers are still mostly working. It is OK if some tests fail, it just means that the specific parser's target was not in the input examples. Th...
[ "leon.yin@themarkup.org" ]
leon.yin@themarkup.org
5ec6d29eb18f4b5a615c47c002f54ce12402b6b1
611847354ec077c5bc65fdb08c9f45ff45b4bfcc
/code/docker/python/flask_2/app.py
234a0768f1eb0f2a9ab328dd7b3a0fc9be9cf1a3
[ "MIT" ]
permissive
afcarl/pythoh_machine_learning_excerise
1a572e4c6db11ee28d5c245f20fc81b334d04995
f2b6e93eb02345f9078642cff3066e3e65557e51
refs/heads/master
2020-03-21T06:00:08.623962
2017-06-08T23:03:35
2017-06-08T23:03:35
138,193,305
1
0
null
2018-06-21T16:05:53
2018-06-21T16:05:52
null
UTF-8
Python
false
false
2,365
py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals from flask import Flask, render_template, request from wtforms import Form, TextAreaField, validators import pickle import sqlite3 import os import numpy as np from vectorizer import vect app = Flask(__name__) cur_...
[ "snow.akogi.pgel@gmail.com" ]
snow.akogi.pgel@gmail.com
62f3762c1f4cc277c8f0b20c4777ee5c189eb345
e593f5b34050eba13fbadeee3563346fa0f1c25b
/tests/plugins/test_speedrunslive.py
81731cbdc212b4e31f3887da8a114f76df267300
[ "BSD-2-Clause", "CC-BY-SA-2.0", "MIT", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-proprietary-license" ]
permissive
fuglede/streamlink
f9e56e434b01ae426edd83f13037384af294838a
2661d40164986f979edc2e6867f8daeceba73a44
refs/heads/master
2020-03-25T08:36:43.175618
2018-08-05T15:10:15
2018-08-05T15:10:15
143,622,979
0
0
BSD-2-Clause
2018-08-05T15:07:12
2018-08-05T15:07:12
null
UTF-8
Python
false
false
570
py
import unittest from streamlink.plugins.speedrunslive import SpeedRunsLive class TestPluginSpeedRunsLive(unittest.TestCase): def test_can_handle_url(self): should_match = [ 'http://www.speedrunslive.com/#!/twitch', ] for url in should_match: self.assertTrue(SpeedRu...
[ "gravyboat@users.noreply.github.com" ]
gravyboat@users.noreply.github.com
aaac7828f0ebe58e41fab34c975790676ce05ef9
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_116/ch32_2020_04_08_11_44_06_529462.py
cc4a1b9f2ef0e4e497cbb913dca1ed7af116e79d
[]
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
523
py
def lista_primos(n): a=2 lista=[] contador = 3 while len(lista)!=n: if a == 2: lista.append(a) a+=1 elif a%2 == 0: a+=1 elif contador < a : contador = 3 while contador < a: if a%contador == 0: ...
[ "you@example.com" ]
you@example.com
c711158cdb65871fda79be945d0bae0d04d531a8
50afc0db7ccfc6c80e1d3877fc61fb67a2ba6eb7
/challenge20(T-primes)/solutions/Coder45.py
32ba0e7800485a552e5637112a3fad818e939995
[ "MIT" ]
permissive
banana-galaxy/challenges
792caa05e7b8aa10aad8e04369fc06aaf05ff398
8655c14828607535a677e2bb18689681ee6312fa
refs/heads/master
2022-12-26T23:58:12.660152
2020-10-06T13:38:04
2020-10-06T13:38:04
268,851,516
11
8
MIT
2020-09-22T21:21:30
2020-06-02T16:24:41
Python
UTF-8
Python
false
false
165
py
python def solution(n): for k in range(n): y=len([k for k in range(1,n+1) if not n %k]) if y == 3: return True else: return False
[ "cawasp@gmail.com" ]
cawasp@gmail.com
a393a62bb6e530c315338f5a80fab3f1fc9f9337
89d7edca0360c31fe6790b5f988bbbad3621c69a
/domainnet/train.py
598215bb7cd879331188d3f9a22f34ff6f0a7cc9
[]
no_license
dpernes/modafm
33084e8d03e2f456e6287821de6e6714b911f59f
0049a307cb89fc08119a24fbc7ec7baa1556bc58
refs/heads/master
2023-01-30T07:28:30.653211
2020-12-10T11:34:45
2020-12-10T11:34:45
236,744,023
3
0
null
null
null
null
UTF-8
Python
false
false
12,253
py
import sys sys.path.append('..') import argparse from configparser import ConfigParser import ast import random from copy import deepcopy import numpy as np import torch from torch import optim from torch.utils.data import DataLoader, SubsetRandomSampler import torchvision.transforms as T import torchvision.transform...
[ "diogo.pernes.cunha@gmail.com" ]
diogo.pernes.cunha@gmail.com
9adae338d936fc32472ea65cbf215d5c748dbe4b
6a1a66b83faed0ab803b9fc7c5da44523197d8cc
/GoogleNews/GoogleNews.py
b0151b8d87ff8d2da8c01e7d068dfd01a58a66c4
[]
no_license
jayrambhia/Extract-News-Summary
500d20d03e748ccec1340de116c1cb490cbf13e3
7aeb53c19649526ce02cbb44584fc275631aaad1
refs/heads/master
2021-01-23T23:56:12.219164
2012-10-16T19:00:04
2012-10-16T19:00:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
974
py
import urllib2 from xml.dom.minidom import parseString #Standard Python parser for XML files (Non standard HTML) import sys def search( term, count ): #Term = query string, count = number of links desired results = [] ...
[ "aag999in@gmail.com" ]
aag999in@gmail.com
f9d1f1abd78cf0eb8c1ed2be9b6187e2a9f186b2
14f9a2beebaba68cfd5ddcf3daac6f4fa74d9977
/value_predictor.py
86010e1e37b13726d80c67f262f105d540b2ed25
[]
no_license
Rsheikh-shab/lauretta.io.test
6d24e2e127126afb6450d71b65678224ed906f9f
a5409b0daf1435d648d40b933f8703e3f92d24ab
refs/heads/master
2020-09-24T05:39:39.737419
2019-12-03T17:25:07
2019-12-03T17:25:07
225,676,551
0
0
null
null
null
null
UTF-8
Python
false
false
489
py
def value_predictor(value): # check length n = len(value) # check at least 6 elements and sort the list if n >= 6 and sorted(value): # check even number of value if n % 2 != 0: x = float(value[n / 2]) return x return float(value[int(n / 2)] + value[int((n ...
[ "rajuiium121@gmail.com" ]
rajuiium121@gmail.com
41d40d26c70fe221dbe9b131fa40155013a2f449
8492601f7325ba93fa14b2af3632b5b2d8aeb471
/3. Trading/3.1.5 Support_Vector_Machine.py
5b2c03290264fcc9a07ff3836dac49f748162988
[ "MIT" ]
permissive
paracats/Financial_Engineering
20e390b9e36b55e77d7072a896a357cb7d538d6b
78636026c430c210fbdf4f26a19d6439e9c7236c
refs/heads/master
2022-11-23T19:35:25.270466
2020-08-03T03:31:26
2020-08-03T03:31:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,029
py
""" Python For Quantitative Finance """ """ Support_Vector_Machine """ """ Shaofei Li """ from __future__ import print_function import pprint import re try: from html.parser import HTMLParser except ImportError: from HTMLParser import HTMLParser from sklearn.cross_valid...
[ "noreply@github.com" ]
noreply@github.com
3c2bebb59fd7b14c45054f32eb853b2af0270218
dd62c47450cb7eda635ce9c4aba465b31ce87a47
/problem1.py
58db4208bf964e40032cef20edc0dd873f9a1cff
[]
no_license
Shrekinator19/Unit3_Lesson5
7ceff1a09e396dbaceaf68a29732706d37c08167
a3a3a0c1bfe79b2fdeb4eb8b1fb38e9cd94511b9
refs/heads/master
2020-04-09T13:33:06.903528
2018-12-04T15:04:07
2018-12-04T15:04:07
160,374,919
0
0
null
null
null
null
UTF-8
Python
false
false
28
py
name = 'Skye' print ('name')
[ "noreply@github.com" ]
noreply@github.com
f44984d9f439fc8006d2dced9d5e8885cd5bc7b3
831a0d767921bbbc5e8717b73a6ded33244243cc
/amt/models/onsets_frames/check_serialize.py
5c7192d20c30d522aac66781293149bff7c63f57
[]
no_license
faraazn/music-transcription
56bc8e15f16dc674d80b1a70b9565d3639387719
c8106c01a3a0286bcc0ddb844f1287bd70a3299e
refs/heads/master
2021-07-01T01:58:26.728091
2019-05-30T00:06:29
2019-05-30T00:06:29
151,554,402
0
0
null
null
null
null
UTF-8
Python
false
false
1,480
py
import tensorflow as tf import numpy as np from amt.protobuf import music_pb2 from amt.music import audio_io import wave import six def wav_to_num_frames(wav_audio, frames_per_second): # TODO: make a version using samples, sample rate, hop length """Transforms a wav-encoded audio string into number of frames.""" ...
[ "faraaz.nadeem@gmail.com" ]
faraaz.nadeem@gmail.com
c84c53395f7b921b51abae53e9b8bec22605a294
7818608d4887fc3d2927c7d75a28a727151c8b78
/greykode/seq2seq_attention.py
b15f55e88927e4cc3959f3ab2debefb9ad61f4d1
[]
no_license
kiyeonj21/nlp-tutorial
5a3005aaeaf4e486961dbb20aadfe3993f7fe3a8
ac0d0ded48392abf03cb2435207c9127d191d8c2
refs/heads/master
2023-03-13T06:42:40.145721
2021-02-26T21:30:46
2021-02-26T21:30:46
342,696,309
0
0
null
null
null
null
UTF-8
Python
false
false
5,265
py
# code by Tae Hwan Jung(Jeff Jung) @graykode # Reference : https://github.com/hunkim/PyTorchZeroToAll/blob/master/14_2_seq2seq_att.py import numpy as np import torch import torch.nn as nn from torch.autograd import Variable import torch.nn.functional as F import matplotlib.pyplot as plt dtype = torch.FloatTensor # S: ...
[ "kiyeonj21@gmail.com" ]
kiyeonj21@gmail.com
ca366b16907da7a8db3c9c321fb3152749eba95c
dd8555ab9b10f7f6d9d1541022ff41c4a29e1589
/manage.py
84e57f37f83371ed44d9b6ecbd12c77462ea96b0
[ "MIT" ]
permissive
rashidalabri/forsa-web
3a4b38283ffcb5c1f756796eb97df7a7bcd185b4
5d3aac0c0a240d722d8e1a1fc103aa720471cae2
refs/heads/master
2022-12-13T00:29:11.112140
2020-07-19T12:53:23
2020-07-19T12:53:23
194,864,872
0
0
MIT
2022-12-08T10:58:03
2019-07-02T13:06:41
JavaScript
UTF-8
Python
false
false
667
py
#!/usr/bin/env python import os import sys if __name__ == '__main__': configuration = os.getenv('ENVIRONMENT', 'development').title() os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'forsa.settings') os.environ.setdefault('DJANGO_CONFIGURATION', configuration) try: from configurations.manageme...
[ "itsrashidalabri@gmail.com" ]
itsrashidalabri@gmail.com
5372587b0dec0bff1cc46831f4323e889d4a4f0e
2ec28489d025171df96a59db9a1cf1e95cd22330
/src/moo/cli/viewer.py
525c60c51144fe03d57de3cb87f27affb158a49d
[]
no_license
krkettle57/moo
e1b0927a8a82c21e0b68bc69ffeb57922c9afa7c
ff736f34adf905bd0365d89a3f42e2af7ced7ce0
refs/heads/main
2023-08-17T11:18:13.543651
2021-10-08T03:54:14
2021-10-08T03:56:27
413,745,349
0
0
null
null
null
null
UTF-8
Python
false
false
1,894
py
from typing import List, get_args from moo.models.moo import MOO, CallResultSet, Target, TargetLengthOption class MOOCLIViewer: def start_verify(self, yes: str = "y", no: str = "n") -> str: return f"進行中のMOOが存在します。\n新しくMOOを開始しますか?[{yes}/{no}]: " def start_done(self) -> str: return "MOOを開始しました...
[ "krkettle57@gmail.com" ]
krkettle57@gmail.com
11920ad62472a9f709a48bf0e4b513977c380ed1
5620ab50dffe0f8085ec562f83a17d0c0d23b2aa
/Assignment 3 - Recursion/Question1_power.py
6a4ca56cb00378f7c13ba3006c35276094c9491b
[]
no_license
ginajoerger/Data-Structures
4f04462c89f56c3f410c5a97e83ff73f26fe4670
068836964d987f8888d931ef5b24cbeff1e94207
refs/heads/main
2023-02-02T22:58:54.891519
2020-12-21T00:50:33
2020-12-21T00:50:33
323,186,770
0
0
null
null
null
null
UTF-8
Python
false
false
399
py
def power(x,n): ''' @x: the base, integer @n: the exponent, integer x, n can be negative integer. @return: x^n ''' if n == 0: return 1 if n >= 1: return x * power(x, n-1) if n <= -1: return (1/power(x, -n)) def main(): print(power(-2, 4)) # 16 ...
[ "noreply@github.com" ]
noreply@github.com
9bf502aa53de5ff285b04513b8db97f45b9147ae
64d923ab490341af97c4e7f6d91bf0e6ccefdf4b
/tensorforce/core/policies/state_value.py
3f2776d338b73a577f31700a2da5f1127a5c3642
[ "Apache-2.0" ]
permissive
tensorforce/tensorforce
38d458fedeeaa481adf083397829cea434d020cd
1bf4c3abb471062fb66f9fe52852437756fd527b
refs/heads/master
2023-08-17T17:35:34.578444
2023-08-14T20:14:08
2023-08-14T20:14:08
85,491,050
1,312
246
Apache-2.0
2023-08-14T20:14:10
2017-03-19T16:24:22
Python
UTF-8
Python
false
false
2,932
py
# Copyright 2020 Tensorforce Team. 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 la...
[ "alexkuhnle@t-online.de" ]
alexkuhnle@t-online.de
c20bcd3efee415bcd08c02d3fdb1ea616b2b11f0
21a66e40c378ebb5c53a61b5c0eb77f17a835eb9
/adaboost_ex.py
2cc0b6e4cc3eb7e659ade8db3394ba4a15c63622
[]
no_license
timellemit/scikit_learn_practice
beb1998ea4f96d58a5f3d77cf868eb6ca41e66e0
12037fb4b1f4a3433b425d05ee8213b2da8d01e3
refs/heads/master
2021-01-22T05:53:56.345852
2015-06-03T09:19:25
2015-06-03T09:19:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,204
py
import pylab as pl import numpy as np from sklearn.ensemble import AdaBoostClassifier from sklearn.tree import DecisionTreeClassifier from sklearn.datasets import make_gaussian_quantiles # Construct dataset X1, y1 = make_gaussian_quantiles(cov=2., n_samples=200, n_features=2, ...
[ "yury.kashnitsky@gmail.com" ]
yury.kashnitsky@gmail.com
804310d2b0286c2b01fc8d205c8e2eb96507907d
a7b27a328652534b29a5ae1826aa4c2f450dcbc5
/company/migrations/0003_alter_contactusmodel_created.py
3f662089149608f9c13bc9d7fdbf13ca0c80edbd
[]
no_license
alienone305/jewlery
4c091d85839f0ae9427e47812bc51ae2f5ebd99e
c46bf56d11e119988e1d2f3700c4f24b3010239f
refs/heads/main
2023-08-26T12:33:03.974500
2021-11-04T16:48:35
2021-11-04T16:48:35
403,057,358
0
0
null
null
null
null
UTF-8
Python
false
false
516
py
# Generated by Django 3.2 on 2021-08-07 15:05 import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('company', '0002_alter_contactusmodel_created'), ] operations = [ migrations.AlterField( ...
[ "alienone305@gmail.com" ]
alienone305@gmail.com
17ec3a061f9016f31d5ebf010a19f91f14854e8e
6d832f5c707e680f52d16328996abc4735995f28
/client.py
73c4101db9d7ebb658c670e74586985efd8236ff
[]
no_license
rajkumar368/socket
ef8796569932d1b8b6fc0c870c9beecee5efae39
28ce2c8084153fbc3ef10df46672b024a0cd106e
refs/heads/master
2023-08-14T23:50:12.103411
2021-10-17T17:45:18
2021-10-17T17:45:18
418,209,887
0
0
null
null
null
null
UTF-8
Python
false
false
175
py
import socket conn = socket.socket() conn.connect(("localhost", 9998)) name = input("name please") conn.send((name).encode()) print(conn.recv(1024).decode()) conn.close()
[ "rathorerajkumar368@gmail.com" ]
rathorerajkumar368@gmail.com
208365338817a860c7bc3871e174ece1efd1ae8f
33f83ef013bdc9b04ee122112b3c4e204fab025c
/tuples.py
d94e0c1ff6bd229392c89f62fa6764fe8f4b5296
[]
no_license
randomguy069/PythonPractice
830ba3ab0142dbda81d41bbf4241f45cb134aa2c
13117319a159cf690e869eebf76d865df3403fef
refs/heads/master
2021-08-31T14:34:14.060996
2017-12-21T18:08:34
2017-12-21T18:08:34
114,798,058
0
0
null
null
null
null
UTF-8
Python
false
false
52
py
t = ("Hello","World","Ibrahimovic") print(dir(t))
[ "noreply@github.com" ]
noreply@github.com
5e39a722a04a9e21094fe9ea45f9a9829ae5e969
4e1093730eff65a60956330d190c0ad7bf008023
/test_proj/IPsamp/modules/StaticFullGrowthModel/HuangFullFunc.py
c6d9318b1e02048dfb99e9513e5afefd70cffd57
[]
no_license
csivilo/IPMP
d37bfee1681877dab629abe3c20c125e4d598c7b
b2ff3617be57fdd9905cee4b2d8c0f04cbe8fbe8
refs/heads/master
2021-01-09T20:21:05.661063
2016-08-12T16:21:01
2016-08-12T16:21:01
61,127,816
0
0
null
null
null
null
UTF-8
Python
false
false
720
py
# -*- coding: utf-8 -*- """ Created on Fri Mar 08 22:30:34 2013 @author: Lihan_Huang """ import numpy as np class HuangFullModelFunc(): def __init__(self, Ymax, Y0, mumax, Lag, x): b = x + 0.25*np.log(1 + np.exp(-4.0*(x-Lag))) - 0.25*np.log(1+np.exp(4.0*Lag)) self.HuangFull = Y0 + Ymax -np.log(n...
[ "carlo@sivilotti.com" ]
carlo@sivilotti.com
3eed1b10050537ad9781069bb46ed2f3703cf569
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_examples/_algorithms_challenges/pybites/intermediate/intermediate-bite-14-generate-a-table-of-n-sequences.py
55c17a68b9ae77cc101badbd72287e480fb740fa
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
1,471
py
""" DATE: 05 Nov 2020 TASK DESCRIPTION: Write a function that receives one or more sequences. The sequences are already defined for you. The function should return a table (list of strings) where the columns are the sequences (example below). To keep it simple we work with equally sized sequences so you don't have to...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
3d50d6da604a3d4bcc099f0c83ef6b39d1bb49f3
13423e31f3f624e33d442315e64962f08e093144
/django_signup/cminji_signup/cminji_signup/settings.py
dca524744196e9f67b16bd35f78c8283a3c67364
[]
no_license
c-min-ji/LikeLion_8th
14b1a766ef3b2d36389f6f8bcea3c7078168fefd
db86bd2eabb2c7a9dcdea9e6534d6a1def41f93f
refs/heads/master
2023-08-13T16:42:26.546081
2021-09-20T03:25:36
2021-09-20T03:25:36
407,765,039
0
0
null
null
null
null
UTF-8
Python
false
false
3,426
py
""" Django settings for cminji_signup project. Generated by 'django-admin startproject' using Django 3.1. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pat...
[ "mjeewh@gmail.com" ]
mjeewh@gmail.com
32d7206664bc17538cc22498e21852e555a705a6
7d288264c3d14115735af70374dff644236f6608
/musicbot/exceptions.py
23ae4d68d495fdbb6ed1faf947f418f2ef3341c5
[ "MIT" ]
permissive
Dodek69/ChudyBot
fa160628369b7f212448eab9b8967349ed84dba4
9d74f9a35397015276f754d3459e06225a2c201f
refs/heads/master
2020-04-20T17:28:18.159390
2019-02-14T19:44:55
2019-02-14T19:44:55
168,985,339
0
0
null
null
null
null
UTF-8
Python
false
false
2,642
py
import shutil import textwrap class MusicbotException(Exception): def __init__(self, message, *, expire_in=0): super().__init__(message) self._message = message self.expire_in = expire_in @property def message(self): return self._message @property def message_no_f...
[ "dodek@vip.interia.pl" ]
dodek@vip.interia.pl
7e69c13442bb7cc985e26e463ef190b600acff38
ad2704933de4502ae9de91e6d915f9dbe010b446
/bambi/chapter03/knock21.py
3f84be2aee57cbeac3b09186547391cea273a569
[]
no_license
tmu-nlp/100knock2017
266e68917d8d5a7f5d0c064f1bc2da5fa402a253
629bd1155d0fe78cd9302ae9a7cdf0922b778fe7
refs/heads/master
2021-01-19T17:36:53.328997
2017-07-24T07:09:54
2017-07-24T07:09:54
88,334,932
8
2
null
null
null
null
UTF-8
Python
false
false
557
py
import json, re def findTextFromTitle(title): with open('jawiki-country.json') as json_data: lines = json_data.readlines() for line in lines: data = json.loads(line) if data["title"] == title: return data["text"] def getEnglandArticle(): return findTextFro...
[ "mingchanbambina@gmail.com" ]
mingchanbambina@gmail.com
98fb0dcf64f5486c42788855054e4d8f97762dd7
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-nlp/huaweicloudsdknlp/v2/model/post_sentence_embedding_req.py
70377e135a6ed8d93d796857d996707216550b46
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
4,253
py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class PostSentenceEmbeddingReq: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is att...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
d0f6f3767403a0426f929d980d9fc2eff41bd052
8eabf994204c8dcd4fa2e1903ee3bc413779fd5e
/Cleaning_Merging/Preprocessing.py
6a64fba645740d82e5e462ec632c155028ad73d5
[]
no_license
rajdua22/tennis_betting
f12eff365420a7103e286050383568e057419c62
d09acee14576eb19e12fed2bd41e7f16a9eb4dbf
refs/heads/master
2020-07-26T06:54:06.467898
2019-12-21T10:52:44
2019-12-21T10:52:44
208,569,545
2
0
null
null
null
null
UTF-8
Python
false
false
7,610
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jul 1 10:52:54 2019 @author: rajdua Description: Loads in dataset and completes basic data cleaning and preprocessing. """ import pandas as pd import numpy as np import matplotlib.pyplot as plt import time import sys data = pd.read_csv('Final Merged...
[ "rajvirdu@usc.edu" ]
rajvirdu@usc.edu
43ef6671cbd2943a73a2201439c31fdfc5c0ad9c
54a745510b16111f5e5f610a07be49ea1e79fccf
/py1810/hello_mysql_01.py
086070e7afa84b55e4f9c256485a983058c32dcc
[]
no_license
SonDog0/bigdata
84a5b7c58ad9680cdc0e49ac6088f482e09118a5
e6cd1e3bbb0bfec0c89a31b3fb4ef66d50c272be
refs/heads/master
2020-04-22T02:24:16.469718
2019-03-13T08:59:26
2019-03-13T08:59:26
170,047,330
0
0
null
null
null
null
UTF-8
Python
false
false
2,590
py
# 파이썬으로 MySQL, MariaDB 다루기 # python에서 MySQL 데이터베이스를 지원하려면 # python DB API 규약에 맞게 작성된 mySQL DB 모듈 필요 # 일반적으로 pyMySQL 모듈을 많이 사용 import pymysql # # mysql connection 생성 # conn = pymysql.connect(host='13.209.88.188', user= 'son', password= '931027',db='SON_MARIADB', charset='utf8') # # curs = conn.cursor() # #...
[ "noreply@github.com" ]
noreply@github.com
efc5d69a2a469d2882f61cce39f0d465c7cad7f4
38b843fd84b1c7c8b23b302538d27fdb77520ef7
/testclient.py
48efa3b5b1087835dbef38913cf55a58fc7feda9
[ "WTFPL" ]
permissive
David-OC/IngredStore
5ce1f81078dacdf4983f6863b25f35355fe4a42b
584f6a13176529a6b89405d4ca18f95a4407d2b8
refs/heads/master
2021-01-10T18:01:30.394800
2016-02-19T11:01:55
2016-02-19T11:01:55
51,767,118
0
0
null
null
null
null
UTF-8
Python
false
false
247
py
import sys from ingredstore import IngredStore def main(argv): ingredinst = IngredStore(argv[1]) ingredients = ingredinst.get_ingredients() for item in ingredients: print item if __name__ == "__main__": main(sys.argv)
[ "mrdavidoc@gmail.com" ]
mrdavidoc@gmail.com
83f1e135d224d46ae1f5b6a914d4e8ae20c41a87
5d10705fda6f9c38cc28f33a052eb1981eef825d
/modeling/input/gen_grid.py
d2bc32b3e4d9b175041c5b63fcb143fe7a6f6c42
[]
no_license
raryskin/division_of_labor
11140b0a37c47512ce5404af0a4b13268bf20d47
30ed0b161782e83170438965ceb3e74a2bc949d9
refs/heads/master
2023-02-18T22:36:04.695745
2021-01-07T07:08:32
2021-01-07T07:08:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
754
py
import csv import numpy as np chainNum = 1 with open('coarse-grid.csv', 'w') as csv_file : writer = csv.writer(csv_file, delimiter=',') for alpha in [x for x in np.linspace(1,10,num=9)] : for perspectiveCost in np.linspace(0, 1, num=21) : for uttCost in [0.0001, 0.001, 0.009, 0.01, 0.02, 0....
[ "hawkrobe@gmail.com" ]
hawkrobe@gmail.com
89ed2675d9419d6d488d990f069ccd3e7cb482ae
141b3c810ab8612cd6d9bb89f79d7ce9ac3ce716
/parsetab.py
7efe81f50dd3a07918d30dbe52b7bdfa16f40a35
[]
no_license
TeddyDotNet/pyNase
61c2cb47432e983f00f8e80f113606b2ede32453
42d5b2ed131c2b52a4b98c6160ef6126f607ba6b
refs/heads/master
2020-05-18T16:39:03.747470
2012-12-05T09:28:13
2012-12-05T09:28:13
7,014,726
1
0
null
null
null
null
UTF-8
Python
false
false
12,688
py
# parsetab.py # This file is automatically generated. Do not edit. _lr_method = 'SLR' _lr_signature = '\xce\xfe\xae\xcd\xa2<`\xbc\xd1\x0f\x9c\xe9\xd9\xa8\xef\n' _lr_action_items = {'INLINE_ELSE_SYMBOL':([36,72,32,28,70,35,69,12,48,71,84,38,55,83,37,73,16,68,58,39,29,50,67,57,0,21,49,44,34,51,],[-50,79,-50,-24,-26,-...
[ "christopher.uldack@googlemail.com" ]
christopher.uldack@googlemail.com
cbbe0bb749a416272fe4eb037682e67caa5ed92f
57c6f5fe614fc65799832241e5bcb8d11cf8fd4f
/DC/Random Forest/master/master.py
845c7e24af4266f381abdb93b96bb74985d13f64
[]
no_license
metonymic-smokey/Apathetic-ML
0a900b5f6a561eefcce8de49b2fa934b402f640e
c62753bc542e939fee06054d5c795e0ab3b2e7be
refs/heads/master
2020-06-10T20:19:07.881668
2019-08-15T13:02:41
2019-08-15T13:02:41
193,734,834
0
0
null
2019-06-25T15:28:08
2019-06-25T15:28:08
null
UTF-8
Python
false
false
2,431
py
import flask import requests import subprocess import time import threading from flask_cors import CORS import os app = flask.Flask(__name__) CORS(app) path_to_run = './' #directory here py_name = 'RF(Master).py' #fileName here args = ["python3", "{}{}".format(path_to_run, py_name)] lrm=None #iplist=["htt...
[ "30438425+DarkAEther@users.noreply.github.com" ]
30438425+DarkAEther@users.noreply.github.com
c61e5282e95887ca44b19a34cba8218d17a61791
7e37f6e4fe873496fd769e47ac926bd8863e2524
/python/common/fileIO/path.py
84255eafd78af7ee2ba02ffffd2a5ffeea9f9557
[ "BSD-3-Clause" ]
permissive
0xb1dd1e/PipelineConstructionSet
4b585881abfbc6c9209334282af8745bbfeb937b
621349da1b6d1437e95d0c9e48ee9f36d59f19fd
refs/heads/master
2021-01-18T00:53:32.987717
2014-03-11T22:44:39
2014-03-11T22:44:39
17,955,574
2
1
null
null
null
null
UTF-8
Python
false
false
33,185
py
""" path.py - An object representing a path to a file or directory. Authors: Jason Orendorff <jason.orendorff\x40gmail\x2ecom> Mikhail Gusarov <dottedmag@dottedmag.net> Others - unfortunately attribution is lost Example: from path import path d = path('/home/guido/bin') for f in d.files('*.py'): f.chmod(0755)...
[ "Count.Zr0@gmail.com" ]
Count.Zr0@gmail.com
922e0caa34050ba6f31b86911619306eaa5f4db9
593ca70126a48727716c72f28c7390b08801c954
/PhotovaristorSensor.py
b4751d15783bc5dcc6b517eacac39a95f7d109f5
[]
no_license
wenyan0622/RasberryPiTest
a57eca4249e39373a63fd2205745b8ee205c16ad
56257f36132006211b92c4a1e7b068c5c4771e8b
refs/heads/master
2020-03-27T03:30:20.302813
2018-08-24T16:41:52
2018-08-24T16:41:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
842
py
import RPi.GPIO as GPIO import time #程序目的:检测光敏传感器的输入信号,检测到光则小灯亮,否则灯灭 #分别指定传感器接口和LED灯接口 LightSensor_PIN=7 LED_PIN=12 #初始化 def init(): GPIO.setmode(GPIO.BOARD) GPIO.setup(LightSensor_PIN,GPIO.IN) GPIO.setup(LED_PIN,GPIO.OUT) pass #循环检测100次 def detect(): count=1 for count in range(1,100): ...
[ "wuyiliang@e-lead.cn" ]
wuyiliang@e-lead.cn
6073cfcd12cdbdbc9d81c5279f878f6ed3e2491a
f1dad4036a93b0ae3fb48841c3f1ae1440210085
/emarket/views.py
39baf90e3f5d1892dbfa7337958aae37f41a76bf
[ "MIT" ]
permissive
MerlinEmris/ebazar
2af740fe7d15ca111b5cf7a923464a26cc937206
664d093b5addc2612083a7f8e5d5d9441c536c8b
refs/heads/master
2023-02-09T22:13:04.862064
2023-01-21T06:07:34
2023-01-21T06:07:34
322,202,655
7
0
null
null
null
null
UTF-8
Python
false
false
13,486
py
# from traceback import TracebackException from django.contrib.auth.forms import UserCreationForm # from django.contrib.auth.models import User from django.contrib.auth import login, authenticate from django.contrib.auth.decorators import login_required from django.core.paginator import Paginator, EmptyPage, PageNotAn...
[ "merdanchariyarov@gmail.com" ]
merdanchariyarov@gmail.com
639b97de6a8ed56bc002ebcf1f711245cbb5584e
2793721e5cbfccfedac75556e34dba22999530d7
/Dynamic_Programming/venv/bin/easy_install-3.7
4b809b9ca4fadb6a24070714033b737b0d49bbb0
[]
no_license
iafjayoza/Python
135e613d1d23c493b05a009843b40cbca6a1d318
aaa05b0d655c8f0a47ced0100a844d99f852b2a4
refs/heads/master
2022-12-07T07:21:46.494885
2020-09-06T09:03:27
2020-09-06T09:03:27
282,707,082
0
0
null
null
null
null
UTF-8
Python
false
false
495
7
#!/Users/jo049566/Desktop/Jay/Jay_Data/Study_Repo/Python/Projects/Dynamic_Programming/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': ...
[ "jaykumar.oza@cerner.com" ]
jaykumar.oza@cerner.com
362b5e6042f67dfb5daeddd0a87ad33b5dceddd8
2774e57e315c426e3645c9b2d86d381dd5dc0c66
/django/academy/api/view/views_course_fbv.py
ef1edf7d72504d8e08eb5b2aa993b1e66d36b2a2
[]
no_license
aidoka22/Web-project
27ee981c896fcc90eb8042f7e100582eeaa9a912
998439a05c4139cb7f507d77992c916f029c7554
refs/heads/main
2023-04-18T18:56:43.271926
2021-04-30T21:34:37
2021-04-30T21:34:37
350,932,105
0
1
null
2021-04-30T13:09:10
2021-03-24T03:17:43
TypeScript
UTF-8
Python
false
false
1,703
py
from rest_framework.decorators import api_view from rest_framework.request import Request from rest_framework.response import Response from api.models import Course from api.serializers import CourseSerializer2 @api_view(['GET', 'POST']) def course_list(request): if request.method == 'GET': course...
[ "noreply@github.com" ]
noreply@github.com
eb3d9991bac5d69b10d1a291e2e099785c5e1bdb
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_exercises/templates/_algorithms_challenges/leetcode/leetCode/Backtracking/90_SubsetsII.py
f0018bb559069fbfa983759b7fcba413f3f6cb4b
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
1,397
py
#! /usr/bin/env python # -*- coding: utf-8 -*- c.. Solution o.. ___ subsetsWithDup nums """ :type nums: List[int] :rtype: List[List[int]] """ __ n.. nums: r_ [] nums.s.. ) nums_len = l..(nums) # Keep the subsets without duplicate subs...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
8f47727e3686930965396e7beba377a896f9f729
bd1052ddc8c2450c943d8336c5bee0c9d0b0aa67
/redirect_service/redirector/interface.py
92d7b11dcae0358a45fb0a3a492d0665c78616a6
[]
no_license
iamandesai/ccet-ia-2
6561a2417963dbb14faea350c233cd6aa2f804ad
8c9c19a89152f8fbbac8e1c300a6505a4fc8f3c7
refs/heads/main
2023-08-25T08:26:17.598941
2021-11-08T14:40:13
2021-11-08T14:40:13
425,865,613
0
0
null
null
null
null
UTF-8
Python
false
false
1,463
py
import traceback from time import time from uuid import uuid4 from redirector import datastore, tools, fetcher def get_redirect_url(urlid): try: return datastore.get_redirect_url(urlid) except Exception as e: print(e) return None def push_data_to_store(data): try: data['d...
[ "noreply@github.com" ]
noreply@github.com
c33e533a21cecc0d9b01083a41149fcd12251b68
d421cc063c084b4a3cb9debb8add5abad9de4ff0
/env/Scripts/django-admin.py
6777f98ab8e56932a3ffad082501f51aeac10345
[]
no_license
Sukhvsin2/Shopping-backend
4b03a2c2e5b9962b9c906e3dbf8615b1fbbac595
65b01e62f2ebd72cbfe0a9bdd2f440a9ff255f07
refs/heads/master
2023-02-03T06:21:02.034946
2020-12-20T05:37:45
2020-12-20T05:37:45
316,291,988
0
0
null
null
null
null
UTF-8
Python
false
false
721
py
#!c:\users\sukhi\desktop\web-development\vue-apps\ecomm-backend\env\scripts\python.exe # When the django-admin.py deprecation ends, remove this script. import warnings from django.core import management try: from django.utils.deprecation import RemovedInDjango40Warning except ImportError: raise ImportError( ...
[ "sukhvsingh2026@gmail.com" ]
sukhvsingh2026@gmail.com
5427109878d3dc6439276ff55eb29fd7bb028859
f43fe4fd349a45fdca005c7e210c19c180a64a36
/run_citation_need_model.py
af8b826eb60647025f03406727eebef869b38399
[]
no_license
ghassanmas/citation-needed-paper
0f50704782bf97a3385019845d2343672d2003e9
4379272225442a4bd492c8683a8c479e146acbff
refs/heads/master
2022-03-24T00:23:43.934555
2019-11-05T14:49:27
2019-11-05T14:49:27
219,768,657
0
0
null
2019-11-05T15:39:58
2019-11-05T14:44:01
Python
UTF-8
Python
false
false
6,277
py
import re import argparse import pandas as pd import pickle import numpy as np import types from keras.models import load_model from keras.preprocessing.sequence import pad_sequences from sklearn.preprocessing import LabelBinarizer from sklearn.metrics import confusion_matrix from keras.utils import to_categorical f...
[ "noreply@github.com" ]
noreply@github.com
dde826487405d70366d2287ed93ff3be356ad1b5
18a33002b18b1daf3851eb5bd0928bd3f11c1741
/pyaccords/amazonEc2Interface.py
23ca86a66cbe772e3f52bbbf3910e4a91facb215
[ "Apache-2.0" ]
permissive
MarouenMechtri/accords-platform-1
3eec269b8df71f7ba9a5071753e873e9baaed632
4f950fffd9fbbf911840cc5ad0fe5b5a331edf42
refs/heads/master
2021-01-16T21:36:31.279852
2013-05-19T09:59:02
2013-05-19T09:59:02
23,386,851
1
0
null
null
null
null
UTF-8
Python
false
false
2,282
py
############################################################################## #copyright 2012, Hamid MEDJAHED & Elyes ZEKRI (hmedjahed@prologue.fr) # # Prologue # #Licensed under the Apache License, Version 2.0 (the "License"); # #yo...
[ "hmedjahed@prologue.fr" ]
hmedjahed@prologue.fr
3c9ce756eb733e12cf686c8c32401331d69dad3f
5ee028ee2582a2d566c22a32097a1fcbed314fcc
/openwsn-fw-antiJamming/bsp/chips/si70x/SConscript
8694311edc5303fbdb892109f6bbf7a70d61cfda
[]
permissive
ssciancalepore/BitTransfer
70c5b271743ebe683d7a3a37d595dbab132f903e
b9d343b0219259f4870e9362b99c27f544014b89
refs/heads/master
2022-06-20T18:38:03.271254
2019-09-15T04:56:32
2019-09-15T04:56:32
199,583,953
1
1
BSD-3-Clause
2022-06-03T22:45:01
2019-07-30T05:53:29
C
UTF-8
Python
false
false
116
Import('env') localEnv = env.Clone() source = ['si70x.c'] si70x = localEnv.Object(source=source) Return('si70x')
[ "savio.sciancalepore@gmail.com" ]
savio.sciancalepore@gmail.com
be4f20317825ae5277ab1916c7c3aec239a7362c
6aeb576b71583af427a6f39b2929d3e9a99d816b
/ml_engine/processing.py
048fa6e18c0905689fb6d05c700a53a5498f8099
[]
no_license
MoAdel1/SparkMachineLearningEngine
a594e3f555394f01d4df705e265851a168e1e7bf
08e2ddffeda205619a7768b9e91223d0d2123875
refs/heads/master
2023-03-02T13:51:11.603201
2021-02-08T14:33:14
2021-02-08T14:33:14
336,610,594
0
0
null
null
null
null
UTF-8
Python
false
false
9,336
py
# Databricks notebook source # processing functions def categorical_indexing(df, column, indexer=None): # string index if (indexer == None): stringIndexer = StringIndexer(inputCol=column, outputCol='{}_INDEXED'.format(column)) indexer = stringIndexer.fit(df) indexed = indexer.transform(df) return index...
[ "mohammedadel28100@gmail.com" ]
mohammedadel28100@gmail.com
e0e29101fde9257d518a095feed189c4229f9551
b164a8099abc0472ad0743c0fb7655e352be7580
/search_engine_26/webbrowser.py
01f0e6119d0c199a056b204add795dde6ff39292
[]
no_license
KevinBean/practice
411ab52af8a7f4227ca18e98849932f0e07c37de
335f0937455e6e9b6a9836087b814bd95776f290
refs/heads/master
2021-01-20T18:21:01.275786
2017-02-05T14:36:51
2017-02-05T14:36:51
62,072,383
0
0
null
null
null
null
UTF-8
Python
false
false
246
py
from Tkinter import * import webbrowser url = 'http://www.sampleurl.com' root = Tk() frame = Frame(root) frame.pack() def OpenUrl(): webbrowser.open(url) button = Button(frame, text="CLICK", command=OpenUrl) button.pack() root.mainloop()
[ "bianbin@bianbindeiMac.local" ]
bianbin@bianbindeiMac.local
ac3891118e031178c270368eee07a0b88bb5c19c
f2e4c4bb2c287a87c9362aa29317b8ad5702e35f
/IECS-Attendance/seg.py
9c983afcde2a7ca38fd464e986e20ccf1439db4b
[ "MIT" ]
permissive
magictomagic/IECS-Attendance
cc0b1a28844c5f50abad96f3a81fc332bc6e175b
77f2c8e86b1d28220a53bf64b198f28faf982da9
refs/heads/master
2020-12-19T05:05:42.948798
2020-04-16T10:53:45
2020-04-16T10:53:45
235,629,719
0
0
null
null
null
null
UTF-8
Python
false
false
149
py
import face_recognition image = face_recognition.load_image_file("/mnt/hgfs/share/raw1.jpg") face_locations = face_recognition.face_locations(image)
[ "noreply@github.com" ]
noreply@github.com
f24083eb0c7654f23ecf8369b85752a9772562e2
c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd
/google/ads/googleads/v4/googleads-py/google/ads/googleads/v4/enums/types/targeting_dimension.py
76a70911a6f15e25b79765af970fefb4bcd708ba
[ "Apache-2.0" ]
permissive
dizcology/googleapis-gen
74a72b655fba2565233e5a289cfaea6dc7b91e1a
478f36572d7bcf1dc66038d0e76b9b3fa2abae63
refs/heads/master
2023-06-04T15:51:18.380826
2021-06-16T20:42:38
2021-06-16T20:42:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,273
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
260cf46cb8ae67305d4ab5c35b6c2811fb620ea8
a573577081d7d33b4f8f52a7e5cfc5878a82161c
/backend/General/binary_search.py
b819a4ce0d5fc83f0fd3c5ef29ebbb0d91e94671
[]
no_license
akshaygoregaonkar/Interview_prep
38d320aa92e0bfba5e6d8c36ad8f93bff6a11e97
abf6f2ffb969c7e1cd6c80cb79f41d4659de53ad
refs/heads/main
2023-06-18T00:47:51.102679
2021-07-19T06:51:30
2021-07-19T06:51:30
387,366,390
0
0
null
null
null
null
UTF-8
Python
false
false
809
py
my_list=[1,2,4,5,6,7,8] # def binary_search(arr,num): # first=0 # last=len(arr)-1 # while first <=last: # mid=(first+last)//2 # if arr[mid]==num: # return "Found" # else: # if arr[mid]<num: # first=mid+1 # else: # ...
[ "akshaygoregaonkar@gmail.com" ]
akshaygoregaonkar@gmail.com
c35c308f5d7740ec9937b8e41207a492b2bf59e5
317fe92deb60efde442ddfd24a286f10e14c2156
/Q8/Q8/Q8.py
395effffddf45103d4a2cf7b3c20a8b8332d5dd0
[]
no_license
mecopel1/Exercise-3
549602f89f6553c34084bdebfc3ee3978aa62344
1bb0c3893cc35efa64ae557bcf98d5533c6288a6
refs/heads/master
2020-04-24T06:41:28.881550
2019-02-21T00:59:51
2019-02-21T00:59:51
171,774,074
0
0
null
null
null
null
UTF-8
Python
false
false
177
py
import arcpy arcpy.env.workspace=r'D:\Grad_Spring2019\610-Programming\Exercise3\Exercise 3.gdb' recordCount=arcpy.GetCount_management('CallsforService') print(recordCount)
[ "noreply@github.com" ]
noreply@github.com
abc6121c4cf765d98ae57c3b7c28d3ce6916dfdd
d07ccba788a664362f7dbd532b314b6b39d7811d
/bs4/tests/test_lxml.py
ea6f4ebb0c9e8d0059a3c0a30c4ca0df1db7d658
[]
no_license
drshah96/Python-for-Everybody
c5b9ae41d9a0170856ecde1969d96ec9ce82921b
42f3f9ff9b3f492240d2b76a8c63470e51d8edd2
refs/heads/master
2022-11-05T23:24:44.837335
2020-06-16T17:55:49
2020-06-16T17:55:49
267,389,571
0
0
null
null
null
null
UTF-8
Python
false
false
2,228
py
"""Tests to ensure that the lxml tree builder generates good trees.""" import warnings try: import lxml.etree LXML_PRESENT = True LXML_VERSION = lxml.etree.LXML_VERSION except ImportError as e: LXML_PRESENT = False LXML_VERSION = (0,) if LXML_PRESENT: from bs4.builder import LXMLTreeBuilder,...
[ "drshah96@gmail.com" ]
drshah96@gmail.com
b1a2ca351fec444118b688bab22debb105cc3f40
05c955a8007b5845228968f3de1b92e4db3c8b1a
/bin/reserve_urn
3da9863173d4631dcfe28189070d811c2b802243
[ "MIT" ]
permissive
runelk/NB_URN_Client_Python
c9c36e5130c6a48db1c4f22cc6c254414179042f
8b58309f9c48f3f5c10065cee02d9ebe2b20ee2c
refs/heads/master
2022-07-31T05:59:47.367500
2014-06-26T12:43:03
2014-06-26T12:43:03
20,129,688
0
1
MIT
2022-07-08T19:12:53
2014-05-24T13:05:43
Python
UTF-8
Python
false
false
1,008
#!/usr/bin/env python import os, sys from optparse import OptionParser import nb_urn_client default_config = os.path.join(os.path.dirname( os.path.abspath(__file__)), '..', 'config', 'config.yml' ) parser = OptionParser() parser.add_option("--urn", dest="urn", help="the URN to reserve") parser.add_option("--user...
[ "rune.knudsen@uib.no" ]
rune.knudsen@uib.no
bb8bfb8faa740e6ec8025c6db5e79e0e5ff83ddd
95b0f53429835929da4bca6d5b5480f96e7514ae
/chrome-screenshot/yahoo_screenshot.py
4a03ce0640f2b944a37244862e42e16464ca2c14
[]
no_license
tyogoutomo/web-scraping
1b23c831f2ed9940ee99d30a8fe65ddaaf36e808
ddcaa0cb8e08b60ec23d356e9915e15bbe01f36b
refs/heads/master
2021-03-07T05:05:41.068849
2020-03-17T10:39:46
2020-03-17T10:39:46
246,247,818
0
0
null
2020-03-17T10:39:48
2020-03-10T08:35:56
Python
UTF-8
Python
false
false
2,172
py
import os, time, errno from datetime import datetime from optparse import OptionParser from selenium import webdriver from selenium.webdriver.chrome.options import Options CHROME_PATH = '/usr/bin/google-chrome' CHROMEDRIVER_PATH = '/usr/bin/chromedriver' WINDOW_SIZE = "2560,1440" chrome_options = Options() chrome...
[ "luqman.rahardjo@gmail.com" ]
luqman.rahardjo@gmail.com
83c9ffb1329c04e16bd0ef763824c6cb54b19f7b
3848175d566e8cbd21f66bdca57882706ed6d4ca
/src/7_3_mnist_deep_cnn.py
72946f6e40a43033f7756e217a03658568372ebf
[]
no_license
kasha-seo/ML_forEveryone
a4b519b002843423dad4feecb9b1e02c3ba23e97
0fa42b497995079f2f60fe51f5d03274946ec034
refs/heads/master
2023-08-08T13:13:41.365363
2018-12-30T10:34:26
2018-12-30T10:34:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,162
py
import tensorflow as tf import random # import matplotlib.pyplot as plt from tensorflow.examples.tutorials.mnist import input_data tf.set_random_seed(777) # reproducibility mnist = input_data.read_data_sets("MNIST_data/", one_hot=True) # Check out https://www.tensorflow.org/get_started/mnist/beginners for # more in...
[ "suhjh14@naver.com" ]
suhjh14@naver.com
adb2babffe1e8af59930020f6c17f6d45db5f76f
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/request/KoubeiTradeOrderConsultRequest.py
2defd325c725861c41724ed3832b3e090ad2407b
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
3,936
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.KoubeiTradeOrderConsultModel import KoubeiTradeOrderConsultModel class KoubeiTradeOrderConsultRequest(object): def __init__(sel...
[ "liuqun.lq@alibaba-inc.com" ]
liuqun.lq@alibaba-inc.com
1545c927376751fd9a43d184b304383c8362e632
24372e13ed3d8b6f11fb3681421ac95d571e6320
/python-plotting-api-master/test/test_app.py
02ae58a884523c96da72687b688850f45e009aea
[]
no_license
aokada228/pythonplotting
9ab54eb617d9b317ab4199b4f63dc116f11c8e4a
235527b4c80e3b0914bff15413d7e29d42043c73
refs/heads/master
2023-02-05T12:06:28.473671
2019-12-05T20:42:46
2019-12-05T20:42:46
226,185,986
0
0
null
2023-02-02T05:14:44
2019-12-05T20:45:00
Jupyter Notebook
UTF-8
Python
false
false
1,065
py
from python_plotting_api.app import app test_client = app.test_client() def test_root(): response = test_client.get('/') assert 200 == response.status_code def test_get_correlation_matrix(): response = test_client.get('/plots/breast_cancer_data/correlation_matrix') assert 200 == response.status_c...
[ "azusaokada@bobcat-124-191.bates.edu" ]
azusaokada@bobcat-124-191.bates.edu
6315e17d884b08aa11eab2a3d71e667e140f18bc
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/abc040/A/4812227.py
e74fe7e059ba85e08c3cc200758d2172a2a1467f
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
48
py
n,x=map(int,input().split());print(min(x-1,n-x))
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
5cf987b549ccdf421a9487686fc93e73f7fe1de1
729212d61f20666b5cef0aa65e17ddd3a326c58e
/legacy/servolib2.py
eb961278a68739a9f1d9966445df345528b5a767
[]
no_license
anatolyilin/OpenCV-bot
8dce147bf28fa0f4bd828770781d09b9a1dd0974
05351c7d1a733ddf667bbf023e56b41618e462dc
refs/heads/master
2020-03-17T14:01:34.671407
2018-06-06T20:27:51
2018-06-06T20:27:51
133,654,458
0
0
null
null
null
null
UTF-8
Python
false
false
1,888
py
import RPi.GPIO as GPIO import pickle pwm = 0 debug_info = 0 #zero_pos = 1.2 oude waarde zero_pos = 0 zero_pos_man = 0 rico = 0 left_val = 0 right_val = 0 def init_pickle(file ='servo.conf', req_debug_info = 0): global debug_info, zero_pos , rico, left_val, right_val, zero_pos_man , pwm debug_info = req_deb...
[ "user43671@user43671s-MacBook-Pro.local" ]
user43671@user43671s-MacBook-Pro.local
99006543ae64f269e68e80e36cfcd49436d904c2
7a571842e05ce6bdb75a7f247a5113235d4d24f3
/users/migrations/0004_auto_20200424_1647.py
200309a89122cc65a210e07821fb8351bc7c89f3
[]
no_license
bneeland/meal-hippo
7cb9ad75e32913f809d32070facf0f8318e270e9
f9ace432b163b2e921a838620696629a0d1be9b2
refs/heads/master
2023-01-03T21:02:44.831870
2020-10-21T15:39:48
2020-10-21T15:39:48
254,940,611
0
0
null
null
null
null
UTF-8
Python
false
false
555
py
# Generated by Django 3.0.4 on 2020-04-24 22:47 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0003_customuser_instructions'), ] operations = [ migrations.RemoveField( model_name='customuser', name='address', ...
[ "brian.neeland@protonmail.com" ]
brian.neeland@protonmail.com
b2801badf5bd6284bd289b522b327b3edbb347b5
6131b2738a7c087dfa6907c624453576f6f0e393
/银行转账pmysql版本/Bank_Transfer.py
34c606ac76f8f664750def22983d82d05855ec09
[]
no_license
heheddff/myPythonProcess
60ef240130cd02906dc500eedb397a9662c02e5a
885a25dd2a9cd43801306d9e70b9ce89daec4406
refs/heads/master
2020-04-08T19:09:18.192738
2019-08-06T02:52:54
2019-08-06T02:52:54
159,642,468
4
5
null
null
null
null
GB18030
Python
false
false
2,049
py
# coding=gbk import pymysql class Money(): def __init__(self,sid,tid,mon): self.conn = pymysql.connect( host="127.0.0.1", port=3306, user='root', passwd='****', db='test' ) self.cursor = self.conn.cursor(); self.table = "money" self.sid = sid self.tid = tid self.mon = mon def checkuse...
[ "qq2003qq@126.com" ]
qq2003qq@126.com
f819b4533712c554f55d0b889a5f81e78c9c0c59
8bf5e4cb5828dda1dd78063958b097b3a59989ab
/PyHtmlDebuger/wsgi.py
20a7b2d4c4ccf3953475ec885c60ca45b8b60731
[]
no_license
WingGao/PyHtmlDebugger
51bb0f894d470a5777ac6b13a99d685e52fb19ab
36187bd55a0a28b6be9f17ff01a2219b0fd30a9e
refs/heads/master
2021-05-04T10:21:57.163472
2017-04-25T09:03:38
2017-04-25T09:03:38
48,358,005
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
""" WSGI config for PyHtmlDebuger 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/1.9/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO...
[ "wing.gao@live.com" ]
wing.gao@live.com
d74fcb05f9f029d6ad582d79695f8433a2079244
64bf39b96a014b5d3f69b3311430185c64a7ff0e
/intro-ansible/venv3/lib/python3.8/site-packages/ansible_test/_internal/import_analysis.py
9cc5376feb59d3d3b5b855832763ded054f1feb9
[ "MIT" ]
permissive
SimonFangCisco/dne-dna-code
7072eba7da0389e37507b7a2aa5f7d0c0735a220
2ea7d4f00212f502bc684ac257371ada73da1ca9
refs/heads/master
2023-03-10T23:10:31.392558
2021-02-25T15:04:36
2021-02-25T15:04:36
342,274,373
0
0
MIT
2021-02-25T14:39:22
2021-02-25T14:39:22
null
UTF-8
Python
false
false
14,066
py
"""Analyze python import statements.""" from __future__ import (absolute_import, division, print_function) __metaclass__ = type import ast import os import re from . import types as t from .io import ( read_binary_file, ) from .util import ( display, ApplicationError, is_subdir, ) from .data import...
[ "sifang@cisco.com" ]
sifang@cisco.com
636c7ba4934f2730f0e4c252572cf5d8c46d814b
6016100d6707eb8c3a4c53df81b40a0e235e04fd
/whois.py
f5898a69cdda0807e69111fbea760a3b8f6959b9
[]
no_license
Ulate11/whois-assignment
86d10cbec1cf472b93f60b9ae264c1cb0068e6e0
8537bc231d73d064485a5cea2ef342a2e111d2b7
refs/heads/main
2023-08-21T18:49:58.267983
2021-09-15T16:22:19
2021-09-15T16:22:19
406,841,591
0
0
null
null
null
null
UTF-8
Python
false
false
7,125
py
import bz2, json, pickle, yaml import smtplib, ssl from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from whoisapi import * # file to store the info provided by whoisxmlapi. SAVED_DATA_FILE = '/app/yesterday.pic' # list of domains to verify. DOMAINS_LIST_FILE = '/app/domains....
[ "noreply@github.com" ]
noreply@github.com
f7cc63ed9481a1157dda69a78efd84a75f2aceb1
86102c0700bc03f4f971e3f0ca6662a6675d0f2b
/scripts/generator.py
73b8f3f7d0f069431a1ba92a0fc14754f6fc0751
[ "Apache-2.0" ]
permissive
ChrisStedman/graduate_coding
5b83455cb10e9dcfefe5a0a38e88c386fa2156cd
206c5e30e11424f25f2ba73579081e3a64a4f4e2
refs/heads/main
2023-05-06T06:50:47.199930
2021-05-30T11:12:54
2021-05-30T11:12:54
371,291,739
0
0
Apache-2.0
2021-05-27T07:55:09
2021-05-27T07:55:08
null
UTF-8
Python
false
false
435
py
from faker import Faker import random import json fake = Faker(['en-AU']) members = [] for id in range(15000): members.append({ 'id': id, 'firstName': fake.first_name(), 'lastName': fake.last_name(), 'address': fake.address(), 'active': bool(random.getrandbits(1)) }) ...
[ "dean.baker@pexa.com.au" ]
dean.baker@pexa.com.au
512159f46f584c7ac972924a15e750af7c80168a
a51d5e44d7b8f73e55b244e79fdbb67d7dfa72b6
/00_simple-ml-model.py
2bdfd08d4d6f42529955535e986ea9c7fa46bf4e
[ "MIT" ]
permissive
mtraina/ml-basis
3b73ab704726bbb2db849b2f32e538d5740039e2
5b6b8a7fad5314fab0b41667a3e6759046b33792
refs/heads/master
2020-03-23T15:30:57.718905
2018-07-20T20:44:29
2018-07-20T20:44:29
141,753,626
0
0
null
null
null
null
UTF-8
Python
false
false
894
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' example took from https://towardsdatascience.com/simple-machine-learning-model-in-python-in-5-lines-of-code-fe03d72e78c6 ''' ''' prepare the data ''' from random import randint TRAIN_SET_LIMIT = 10000 TRAIN_SET_COUNT = 4 TRAIN_INPUT = list() TRAIN_OUTPUT = list() ...
[ "matteo.traina.mail@gmail.com" ]
matteo.traina.mail@gmail.com
d47d1f916f00f4dd257ea19a842125ad1ca74602
c5c20cac7ad8b77c8e850e96527eafeaf88ca29f
/tstapp/urls.py
a45267800827e9f166a03780bb2039b1f4535d90
[]
no_license
Muhsin345/TSTREP
2ddfad1076d9f380d1e77c78fc41df55b92a2af9
01ec7177162cb1bd536366c8f3b1fa7d6f0afbc2
refs/heads/main
2023-08-15T02:37:25.647986
2021-09-15T17:08:59
2021-09-15T17:08:59
399,522,405
0
0
null
null
null
null
UTF-8
Python
false
false
385
py
from django.urls import path from . import views urlpatterns=[ path('Login1/',views.fnLogin), path('Details/',views.fnDetails), path('Userhome/',views.fnUser), path('fbhome/',views.fnFB), path('prdcts/',views.fnprdcts), path('bootstrap/',views.fnnav), path('gridnav/',views.fngrid), path...
[ "mzmuhzin123@gmail.com" ]
mzmuhzin123@gmail.com
d1fb7632fd9a98a58d7346669aaea4a73dda39be
4106082b62bfad34c0da62514052ba42811d60d9
/underground/final_statistics/2.5_sort_data.py
bc621b8d6937c5269f0a98262dfe4850fe5a496b
[]
no_license
dcrozz/python
6bee83ac2b386a5a1d14dab6a53b76be210ff7a0
9a3684276a0badf3ca633bf5f21e8c785d65f078
refs/heads/master
2020-12-24T16:35:04.409976
2017-01-18T13:49:50
2017-01-18T13:49:50
35,948,251
0
0
null
null
null
null
UTF-8
Python
false
false
537
py
if __name__ == '__main__': from glob import glob file_names = glob('*.txt') for file_name in file_names: with open(file_name) as data: lines = data.readlines() sort_list = [] for line in lines: cur_line = line.strip().split(',') sor...
[ "ukeyim@gmail.com" ]
ukeyim@gmail.com
cd7c58f94edaf9c24fad73a64af8e44d5887e94d
90312ba1088363f12408b9869d89e31d6ad658e5
/mifare_classic/src/python/mifare_classic.py
c96368023c6e19ad3e9a43933d96a426cec021f3
[ "ISC" ]
permissive
Tosyk/formats-kaitai-io.github.io
c3e9d0df4deae557f5ac4d36290c7052be4c16bb
1faec646734b93815d39bc638ead4bc9a37eca3e
refs/heads/master
2023-07-29T07:22:10.818349
2021-09-12T11:41:45
2021-09-12T11:41:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
24,148
py
# This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild from pkg_resources import parse_version import kaitaistruct from kaitaistruct import KaitaiStruct, KaitaiStream, BytesIO if parse_version(kaitaistruct.__version__) < parse_version('0.9'): raise Exception("Incompati...
[ "kaitai-bot@kaitai.io" ]
kaitai-bot@kaitai.io
1fbcd7bd37afad6462b14d788d8271722fd51e88
5168ad378c0b6c1c6e6f8d066df6af4f522a431a
/docs/source/conf.py
efa7d5df358a36ced14be0c93e3094d62ad788cf
[ "MIT" ]
permissive
luizvbo/s2cholar
4f6d36faa2f83fc6ee57871b95d99c08dc7c1bf7
7f2be800168ef792230f7759bc7131c5f59e2103
refs/heads/main
2023-08-13T10:29:07.901668
2021-09-30T18:33:52
2021-09-30T18:33:52
405,347,748
3
0
null
null
null
null
UTF-8
Python
false
false
1,958
py
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
[ "luiz.vbo@gmail.com" ]
luiz.vbo@gmail.com
6e3f3b1486dc70ef90cb88af554179fd8f6dc4d5
59090da2fe4e848b986c704b1ecf06ebe2d730b1
/conferences/items.py
459b144b8d8631dcf42753824838e783ac88a031
[ "MIT" ]
permissive
manuphatak/conferences
75449d2b16d546d4c66e9363369331239c74c9bd
67e8880fe7049c003650d83e090b95cc09b45da5
refs/heads/master
2021-06-05T04:03:18.071859
2015-12-25T01:13:18
2015-12-25T01:13:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
290
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class ConferencesItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() pass
[ "bionikspoon@gmail.com" ]
bionikspoon@gmail.com
160a8c1425366e30469d3987b9b3cc9387782023
b598ad130979c415e9bdbc75b6791cef3e1d4f8c
/cosmetics.py
8e30552a26acd405fd35d373d2e7d6a6b81a74d4
[]
no_license
djoverton/whats-in-your-cosmetics
58ab7a77997b149d2319e6016eee2008b4a8bad9
9d6f1952ffbe934ee23c158822733b45e02f8993
refs/heads/master
2021-05-31T11:24:56.003869
2016-06-10T13:16:48
2016-06-10T13:16:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,044
py
""" Data source: http://www.healthdata.gov/dataset/chemicals-cosmetics """ import json import operator import matplotlib.pyplot as plt import numpy as np datafile = open("chemicals.json") data = json.load(datafile) #Count the number of times each chemical appears chemcounts = {} for item in data["data"]: if chemco...
[ "djoverton@gmail.com" ]
djoverton@gmail.com
d7a555b59ad57304e08e0a28c5a8d9d871648a2e
09946a669abcaf8f9b0f22b56b4b036b38f435ef
/setup.py
c28459796b933829bb6c88ae551de23c13c11f03
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
vmishra-uu/pyCEDLAR
676a7f03f760bdf4bf95239ceedaf77dd376ad0d
9544eb39f45c63a6a9d63741019002cdf6c95024
refs/heads/master
2022-11-09T20:28:13.717403
2020-06-19T09:40:11
2020-06-19T09:40:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
690
py
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="pyCEDLAR", version="1.0.0", author="Zsolt Elter", description="pyCEDLAR: Package to estimate Cumulative Effective dose and Lifetime Attributable Risk", long_description=long_description, ...
[ "zsolt@phy-draupnir.physics.uu.se" ]
zsolt@phy-draupnir.physics.uu.se
37dcfb2bd2200cc648ab737e317d319edfd9d269
b87f66b13293782321e20c39aebc05defd8d4b48
/maps/build/EnthoughtBase/enthought/logger/agent/attachments.py
4d8f00f577f6d82f2c2ec0b1a7f4b5a14dd94aef
[]
no_license
m-elhussieny/code
5eae020932d935e4d724c2f3d16126a0d42ebf04
5466f5858dbd2f1f082fa0d7417b57c8fb068fad
refs/heads/master
2021-06-13T18:47:08.700053
2016-11-01T05:51:06
2016-11-01T05:51:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,835
py
""" Attach relevant project files. FIXME: there are no public project plugins for Envisage 3, yet. In any case, this stuff should not be hard-coded, but extensible via extension points. The code remains here because we can reuse the zip utility code in that extensible rewrite. """ import logging import os.path from e...
[ "fspaolo@gmail.com" ]
fspaolo@gmail.com
f6045942d8ce16ba7028a713122f43871d0a5830
71c3c9c7732c7662b2af9d533ababd21d1ef430b
/src/sVM.py
5a1b5c87aa48b71266a76cb3068090082a917067
[]
no_license
mirzaelahi/MachineLearningGenericInterface
272c30606447655300509314961e634d20ed7b5f
bf09da8a595617a422a5666ac702d7b804662260
refs/heads/master
2021-08-20T03:26:30.298136
2017-11-28T04:22:02
2017-11-28T04:22:02
110,456,752
0
1
null
null
null
null
UTF-8
Python
false
false
7,657
py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Fri Nov 10 09:05:26 2017 @author: Mirza Elahi """ from predictor import predictor, scoring, algo from sklearn import svm import logging import numpy as np class sVM( predictor ): def __init__(self, loggingLevel = logging.INFO, enableLoggingT...
[ "me5vp@virginia.edu" ]
me5vp@virginia.edu
149409ce45b8fbf6a81e10f26e291fbce528b5b2
76e0e98a3b582763a83291350291579c5906821d
/examples/settings.py
626265cc852db4f78c09c5297a3d10d951634c41
[ "MIT" ]
permissive
sehmon/python-client
2a114c6cab90eeb9e5891329561105abb1ca8aea
ccc641982d65b1ab217985e027a4a3e0f5557d75
refs/heads/master
2021-05-28T04:23:31.414595
2014-09-25T06:46:06
2014-09-25T06:46:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
30
py
API_KEY = 'Your API key here'
[ "pkernoobie@gmail.com" ]
pkernoobie@gmail.com
991d807c70d59f473ad69db316ee9c131b22f5ab
bea1eea53462b00d948e17d4f916986d9b217df9
/python/leetcode/p295.py
79d1ff60e94d4d030867955028e3fcb6d83397e0
[]
no_license
aloklal99/naukari
18a64f5573e7e4929d57258ec208c82a5988f467
4ed2d3d7a05890e1d39621465e57bc429ccde19b
refs/heads/master
2020-03-29T17:59:08.867062
2019-03-17T06:30:03
2019-03-17T06:30:03
150,189,039
0
0
null
null
null
null
UTF-8
Python
false
false
4,916
py
import operator import collections class Heap: def __init__(self): self._store = [None] # index 0 is not used def __len__(self): return len(self._store) - 1 # 0th element isn't used def _isCorrectlyOrdered(self, parent, child): raise Exception("Child class must override this meth...
[ "allal@ebay.com" ]
allal@ebay.com
ecbe1ae9755a38424f26c42c80934e9910dfb4db
ad8a4a257d3a261a7f7a67a69418406bfb2cc7ab
/common-scrapers/common_src/scrapers/among_us_scraper.py
0d28fcfeeaed46d9cb3b366d8869f07a9a673506
[ "MIT" ]
permissive
mrPaintMan/blog-scraper
b832b72b5e0d35391055d9f2358b754629085475
9b1ff3d398bd23d799d86c9a62ec76a6950555cc
refs/heads/develop
2022-02-04T13:04:12.209678
2021-02-15T19:27:12
2021-02-15T19:27:12
222,109,337
0
1
MIT
2020-12-29T08:25:58
2019-11-16T14:14:51
Python
UTF-8
Python
false
false
1,440
py
from common_src.lib.model.post import Post from common_src.lib.model.source import Source from common_src.scrapers.abstract_scraper import make_soup, now, remove_dups SOURCE_CODE = "among_us" WEBSITE = "https://innersloth.itch.io/among-us/devlog" ALT_IMAGE = 'https://img.itch.zone/aW1nLzE3MzAzNTQucG5n/original/6ZlfCk....
[ "fille.palmqvist@icloud.com" ]
fille.palmqvist@icloud.com
2e89a9bd74c09e3531412e11b310be4b94ae18d1
2a39fe8bd203531c9bcdb470d19b80beac665eae
/model_cluster.py
288cf9409b0694d16f6334c5ea877ffeafd2e726
[]
no_license
davidharvey1986/lenstoolTools
7bf11af1a38700503a731c6fe7e83fdc92bf58c1
85bcf729603d34341f5f41c57c4e233b08055baa
refs/heads/master
2021-09-08T14:29:52.695461
2018-03-10T13:54:50
2018-03-10T13:54:50
124,657,727
0
0
null
null
null
null
UTF-8
Python
false
false
3,715
py
''' This script has 2 functions: 1. model_cluster( ra, dec, cluster, \ halos=None, \ best_file=None) This models the input cluster and returns a structure from simulate_project with shear, chi, etc. ''' import numpy as np import ipdb as pdb import astro_tools as at imp...
[ "davidharvey1986@googlemail.com" ]
davidharvey1986@googlemail.com
d0a1b1145ebbc788688570ca058dc333dd0e511f
9005ceee1cba387ad2e199941bb3944f307a8701
/2-2_lists.py
964f5c1e99968a7fa0bc19c263356a45df7b9940
[]
no_license
ckoder999/Diving_into_Python
d46b9ca93075c77fd5efd1b6e6c76417659f050d
abc452d6dfaa76d3515e21b71f666171d8a5f440
refs/heads/master
2020-12-09T20:27:58.681763
2020-02-05T13:22:24
2020-02-05T13:22:24
233,410,671
0
0
null
null
null
null
UTF-8
Python
false
false
268
py
import random numbers = [] for _ in range(10): numbers.append(random.randint(1, 20)) print(numbers) print(sorted(numbers, reverse=True)) numbers.sort(reverse=False) #print(list(reversed(numbers))) num2 = numbers.copy() print(num2) print(numbers.count(10))
[ "eugene@iMac-Eugene.local" ]
eugene@iMac-Eugene.local
cd1062321fd6e56a634e4e079cbae30019bcd44c
4619167ad190cce846812c957e279825153b243f
/singleton.py
2300b5f16db388d854417496fa0b91b51b69126c
[]
no_license
dimasert/test-designpatterns
bbdc3e006d609f50794b8b3f7bf2491ef4554d33
8bc9e6ec93437c06d0685ad58c523535c790e5d2
refs/heads/master
2022-11-22T23:51:00.437605
2020-07-22T03:30:33
2020-07-22T03:30:33
281,531,123
0
0
null
null
null
null
UTF-8
Python
false
false
507
py
class configValues: __instance = None @staticmethod def getInstance(): if configValues.__instance == None: configValues() return configValues.__instance def __init__(self): """ Virtually private constructor """ if configValues.__instance != None: ...
[ "“rivas7676@gmail.com”" ]
“rivas7676@gmail.com”
c05b1a1ed7b32f4d144a5a7a569da7b418594598
45b5860cf499ae9648a6710c31027ba2b8c459a6
/Lab-10_Locally-Weighted-Regression-Algorithm/Non_parametric_Regression_Algorithm.py
6056736ba7b94aede1b86eda388b4154d0f452ab
[]
no_license
Swathivcs19/ML_Lab
21a5fbe46d11384b91129f495045e781bded4195
be194f2423f0ca4a85213bddab0077f15a1f5ad1
refs/heads/main
2023-05-25T21:59:39.942537
2021-06-08T05:50:15
2021-06-08T05:50:15
349,334,417
0
0
null
null
null
null
UTF-8
Python
false
false
1,276
py
import matplotlib.pyplot as plt import pandas as pd import numpy as np def kernel(point, xmat, k): m, n = np.shape(xmat) weights = np.mat(np.eye((m))) for j in range(m): diff = point - X[j] weights[j, j] = np.exp(diff * diff.T / (-2.0 * k ** 2)) return weights def local...
[ "noreply@github.com" ]
noreply@github.com
a2932f506e12855456644b556531aa00a32eef5a
d4fa73218fed1e79bf267719731cf1b41c8ef4a0
/remember/migrations/0001_initial.py
dbdbc829bc21b146ba7588bb7c3332988509aa2d
[ "MIT" ]
permissive
omkar-dsd/todoer
fe3ed86be8a47b608e6c3151e22b7994e0cb0596
7686fb186f6df2ab50ee9bc11ee03008db8b7aa6
refs/heads/master
2021-07-11T14:57:15.183887
2017-10-15T18:03:14
2017-10-15T18:03:14
107,035,648
0
0
null
2017-10-15T17:57:35
2017-10-15T17:57:35
null
UTF-8
Python
false
false
772
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-09-10 05:19 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Entry'...
[ "vaibhavshelke017@gmail.com" ]
vaibhavshelke017@gmail.com
faf9a8602b87e159207c8d6a814d7066c220e804
9e3b8a52dcb0df0a12d740bcc346615a85f4944f
/dropLastColumn.py
7365eec5db507030dc5a60a8a70690728a5c3ce2
[]
no_license
AikawaKai/BioinformaticsProject
e66f6bdd0cef2253e0402d91197ab3bce8067a77
c86ec9c83b8ba0c99e0045221edcebaaa0d4082a
refs/heads/master
2021-07-12T21:06:07.681876
2017-10-17T14:10:14
2017-10-17T14:10:14
103,046,403
0
0
null
null
null
null
UTF-8
Python
false
false
505
py
import sys import csv from utility.loadDataSet import transpose if __name__ == '__main__': filename = sys.argv[1] with open(filename, 'r') as file_o: file_r = csv.reader(file_o, delimiter="\t") rows = [row for row in file_r] rows = transpose(rows) rows = rows[:-1] rows ...
[ "marco.odore@gmail.com" ]
marco.odore@gmail.com
aceb5cec8b4b7951496428cdb03d1db7f1233ec2
460249054f5fdd9bc39280fdcfd7841731bbc7be
/Software/Webcam_Foto/foto.py
bb91be83d27a3ebc898bde296ccc1d6ea9da8a3a
[]
no_license
ingridmiranda/apvoice
6dc9b85b74a7875cdfe885dc9f630c4d2ba2483e
ae2dadb082e69fc778757cfda73383cbcebaa6aa
refs/heads/master
2021-08-26T07:06:34.277569
2017-11-22T02:23:01
2017-11-22T02:23:01
110,068,738
0
0
null
2017-11-09T04:49:59
2017-11-09T04:49:58
null
UTF-8
Python
false
false
809
py
#! /usr/bin/python #!-*- coding: utf-8 -*- import RPi.GPIO as gpio import time import pygame, sys import pygame.camera import time WEBCAM_DIR = "/home/pi/projeto/foto_webcam" pygame.init() pygame.camera.init() cam = pygame.camera.Camera("/dev/video0", (640,480)) gpio.setmode(gpio.BCM) gpio.setup(17, gpio.IN, pull_...
[ "ingridmsousa@hotmail.com" ]
ingridmsousa@hotmail.com
0472ec122864f3198a5e0a270e905eca815c99b1
6a14702c187139b9189f0d7d5468c98ce03b6560
/django/hello/hello/urls.py
389a3e04af2801379125a1a96a505a28145912f1
[]
no_license
boboivo/python-learning
902b736fee24facbd773ccac6e6af42ad4663e5e
67a4267d12b8fab94e955d76cacd29af697288d3
refs/heads/master
2023-04-28T09:51:10.850980
2019-09-29T10:27:33
2019-09-29T10:27:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
825
py
"""hello URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based v...
[ "innerpeace.zhai@gmail.com" ]
innerpeace.zhai@gmail.com
a4becb7bb74d1bc89c50607b9bb58cfd03ce77ee
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/littlecodersh_EasierLife/EasierLife-master/Programs/PCMusicViaWechat/run.py
711a41774b068b3a371af0624be25cf996578762
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
785
py
#coding=utf8 import os import itchat from NetEaseMusicApi import interact_select_song HELP_MSG = u'''\ 欢迎使用微信网易云音乐 帮助: 显示帮助 关闭: 关闭歌曲 歌名: 按照引导播放音乐\ ''' with open('stop.mp3', 'w') as f: pass def close_music(): os.startfile('stop.mp3') @itchat.msg_register(itchat.content.TEXT) def music_player(msg): if msg['To...
[ "659338505@qq.com" ]
659338505@qq.com
218f1ac9b9f52195bde99c8a5159a28cca52e4ec
e1ec811a380d624b3c3c95c88f6369248862ca52
/matplotlib/Zadanie3.py
27dd6c27a81b54bc4e4a63f74585f7cbcc70198b
[]
no_license
michalj11121/Wd-155280
ac53e138de089d9a53fc287582052ccd9ed224a2
7eee6bf2334c39ddf0eb93a555df40f1c241ea1a
refs/heads/master
2022-08-21T16:27:27.506633
2020-05-31T17:43:01
2020-05-31T17:43:01
245,125,036
0
0
null
null
null
null
UTF-8
Python
false
false
368
py
import pandas as pd import numpy as np import matplotlib.pyplot as plt import math x=np.arange(0,30.1,0.1) s=np.sin(x) c=np.cos(x) plt.plot(x,s,'-r',label='sin(x)') plt.plot(x,c,'--b',label='cos(x)') plt.title("sin(x) i cos(x) dla x[0,30] z krokiem 0.1") plt.xlabel('x') plt.ylabel('sin(x) i cos(x)') plt.xti...
[ "noreply@github.com" ]
noreply@github.com
31a22036f099c73ba1c28df51244f2704b311551
891902687207fb335b65dbb8d31d6e20301764f9
/pe007.py
3521b25495844f22a773b26856805b717f686ada
[]
no_license
maecchi/PE
93bd050eaca2733aa37db6ca493b820fe3d7a351
3d9092635807f0036719b65adb16f1c0926c2321
refs/heads/master
2020-05-04T16:38:36.476355
2012-06-10T05:26:10
2012-06-10T05:26:10
1,746,853
0
0
null
null
null
null
UTF-8
Python
false
false
475
py
#!/usr/bin/env python #-*- coding: utf-8 -*- # # pe007.py - Project Euler # prime_array = [] sum_of_array = len(prime_array) number = 1 while (len(prime_array) < 10001) : is_prime = True number += 1 if sum_of_array == 0: if number != 1: prime_array.append(number) else: for i in prime_array : if not numb...
[ "aos81922710@yahoo.co.jp" ]
aos81922710@yahoo.co.jp
de025b7b8d83683bd44b1e5b4b977f3007113196
2a48fb1c369a97ff82974030289613e9ccabdcd7
/ml/rl/types.py
0fca511ab279c28aa71bf2520a63f458fde9a3ca
[ "BSD-3-Clause" ]
permissive
Tsolmon17/Horizon
9f5a192529f424fb8f1f47a4dddca97963c94aa2
c13522660be6a63b793424db52a1824b0765b22d
refs/heads/master
2020-06-23T18:40:44.078097
2019-07-24T22:23:39
2019-07-24T22:34:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
19,089
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import dataclasses from dataclasses import dataclass from typing import Any, Dict, List, Optional, Type, TypeVar, Union, cast import numpy as np import torch @dataclass class BaseDataClass: def _replace(self, **kwargs...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
5f5c955a40731900ee78a9e0db443561f0717f58
69f8b6a0474dc867d7a8e739d0ea0e358a5603b2
/qq/models.py
22d3020fe92514755cdbe70a885788417a1d4399
[]
no_license
tuchuanchuan/qq-spider
3da29c6295872e3e64156ce84bf36ed7898d6a5b
e4fe01ba4b34c55bd0ea5403c93758d3b89b2770
refs/heads/master
2021-05-14T05:52:02.577402
2018-01-04T10:44:55
2018-01-04T10:44:55
116,230,977
0
0
null
null
null
null
UTF-8
Python
false
false
1,987
py
# coding: utf-8 import pymysql from sqlalchemy import create_engine, Column, Integer, String from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() engine = create_engine("mysql+pymysql://root:root@192.168.0.13:3306/albums_from_web?charset=utf8") class TencentTable(Base): ...
[ "tuchuanchuan@kanjian.com" ]
tuchuanchuan@kanjian.com