blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
801a97f1e4a6d18b9f27441f5d5ded36164ccc55
f8ce149b8881ce53e29d25015206c63565c2387c
/utitled/inputtest.py
1417a706b4590ab5de75b22bc91fb83d239ea231
[]
no_license
George562/PythonProjects
98e607b3624bbefaef07c59c8bd2a24f92c580e6
f5f02988997182bcce5562e74a6592ef4b14ad2b
refs/heads/master
2022-08-30T15:18:01.503142
2022-07-11T15:30:51
2022-07-11T15:30:51
217,818,971
3
0
null
null
null
null
UTF-8
Python
false
false
2,402
py
import numpy as np import matplotlib.pyplot as plt import pygame as pg f = (lambda x, r: r * x * (1 - x)) def zoom(arr, x, y, k, increase=True): k = k if increase else 1 / k for i in range(len(arr)): arr[i] = (arr[i][0] - x) * k + x, (arr[i][1] - y) * k + y, *arr[i][2:] N = 100 Dk = 0...
[ "noreply@github.com" ]
George562.noreply@github.com
7e16dcfb3d2fe97b7f81d1ff4856708059182426
3265336028e28becd17e4758cac7d1335b76582c
/tools/ftdf_dts/scripts/evaluation/arbiter/COEXv2_IgnoreMAC.py
c601113a0b49a9afa1a5ffa3c93087e67a7a4086
[]
no_license
andrew-ongh/fresh_SDK
9bf7af79a4c234fa2a7e5be878d32467e82f7a1e
f35806fe67ce18c15eb341a47885c7f503ecd08d
refs/heads/master
2023-07-29T18:51:39.765604
2021-06-23T08:51:47
2021-06-23T08:51:47
369,693,478
2
0
null
null
null
null
UTF-8
Python
false
false
31,392
py
## Arbiter v2 behavior (Auto PTI, MAC-PTI pair vs MAC-PTI pair). ## Arbiter interrupts/statistics tests, including overvlow feature ## ## Steps ## --------- ## - 1< Set FTDF TX PTI=1, RX PTI=2 ## - 1< Reset Arbiter ## - 1< Set Arbiter configuration 0=(BLE, 4), 1=(FTDF, 2) ## - 1< Enable FTDF Rx ## - 1< Start BLE active...
[ "andrew@happy.ai" ]
andrew@happy.ai
5e981652ed6772e58d6e8452013d622de03ed887
bccc2a5aa2b213c00fec2e9ac039af83d60837fd
/src/A_star.py
b06068dca89af04f7b4bd9dcb7867b2daa022ff6
[]
no_license
LucasGandara/proyecto_de_grado
df867b2c2d2075668298e0ff14f6ec1c643f2ab8
70b6a35ee5c23047916dc1627b633bca95cbd47f
refs/heads/master
2023-03-26T04:33:01.480190
2021-03-25T19:11:23
2021-03-25T19:11:23
246,616,184
0
0
null
null
null
null
UTF-8
Python
false
false
10,510
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ States: Open set: nodes that still needs to be evaluated closed set: all the nodes that have finished been evaluated """ import pygame from pygame import QUIT import sys from math import hypot from os import system pygame.init() WIDTH = 650 HEIGHT = 500 scr...
[ "lucas17-12@hotmail.com" ]
lucas17-12@hotmail.com
26df6309ed9c83975b4bbe7e1e401a854ddd84cc
7c15f211adc9e9eb9f66ccdd570c9f38dff7ea8d
/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_multiapi_service_client_operations.py
1ff0b63db3af5c3f9da14b759b02858afe36e5e0
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
Azure/autorest.python
cc4bfbf91ae11535731cad37cedd6b733edf1ebd
a00d7aaa3753ef05cb5a0d38c664a90869478d44
refs/heads/main
2023-09-03T06:58:44.246200
2023-08-31T20:11:51
2023-08-31T20:11:51
100,315,955
47
40
MIT
2023-09-14T21:00:21
2017-08-14T22:58:33
Python
UTF-8
Python
false
false
8,070
py
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
[ "noreply@github.com" ]
Azure.noreply@github.com
b8f22048650e927d5e4b90c9f64aac54700d3b5b
2ad1116411d79d5bac26402ccac4f5785a0485e4
/Selenium/test_PageObj.py
f8077a63bab3956f8601fa927a404ebbb73f6b4d
[]
no_license
slavkoBV/solved-tasks-SoftGroup-course
0a879fcaeedd2b1d27b2970ea621eb2bdfab4ce4
12461d50a095764d5e237babaec466bc2d8dc672
refs/heads/master
2021-01-18T15:55:04.224872
2017-05-08T15:38:16
2017-05-08T15:38:16
86,691,843
3
0
null
null
null
null
UTF-8
Python
false
false
1,535
py
import unittest import HTMLTestRunner from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC class SearchTest(unittest.TestCase): @classmethod def setUp(cls): cl...
[ "slav_b@ukr.net" ]
slav_b@ukr.net
b31de755bd98034cd078c27fe607eddf4b9c3e32
219bc817fce7e410f189dbc706932789cabe1ea1
/core_website_app/utils/markdown_parser.py
21360fdd2a47eb1d368cfe88c5ab11722a10d18a
[ "LicenseRef-scancode-public-domain" ]
permissive
cdcs-repos/core_website_app
80595218804c9ddde72c51d3ff63cd35f8ede36a
ec2d914fb7fbe1c870009c4731ce61bc17fb8700
refs/heads/master
2020-04-22T17:36:07.040034
2018-11-28T17:13:15
2018-11-30T16:02:36
170,547,208
0
0
NOASSERTION
2019-02-13T17:11:31
2019-02-13T17:11:31
null
UTF-8
Python
false
false
425
py
""" Parser to convert Markdown to HTML in a safe way """ from markdown import markdown from xml_utils.commons.exceptions import HTMLError from xml_utils.html_tree.parser import safe_html def parse(text): """ Parse Markdown to convert it into HTML Args: text: Returns: """ md_text = markdo...
[ "philippe.dessauw@nist.gov" ]
philippe.dessauw@nist.gov
1aebd431d7b7c02fd70de3ea1e613d6322ae5735
0a3705cf78d38986e6804b103081a194a0aa4dff
/hj/ciphers/substitution/polyalphabetic/__init__.py
85fab88641ea3f9f58547bdc87d2cfd1dcb84e34
[]
no_license
thunder8olt/hotel-juliet
d1ba3084d50d34d00e042b6df1a98bbcfae7a570
9ae6c78f83166d8217c3081385d168c76ec99227
refs/heads/master
2021-01-18T16:09:01.549000
2013-03-24T05:25:02
2013-03-24T05:25:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
194
py
#!/usr/bin/python # -*- coding: utf-8 -*- from .base import * from .vigenere import * from .beaufort import * from .gronsfeld import * from .trithemius import * from .variant_beaufort import *
[ "andrew@merenbach.com" ]
andrew@merenbach.com
5e4f7ad4bfd5b22b01571d3c84d41506b49335d4
471c92ba73844db89b9f0e9fb8c904af46464250
/src/lookups.py
fd8ab0c778277e58b1d8bd438caf2b6b2609a48b
[]
no_license
lalaithion/python_challenge
a5cd5e6dc459e65970da8999c008f30af572dd32
8f90312a91641fd9c3ba255c3867a7635e430b0a
refs/heads/master
2021-01-22T18:58:01.337892
2017-03-20T21:32:57
2017-03-20T21:32:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
728
py
#! python3 # Izaak Weiss, 2017 # standard library imports import random # third party imports import requests def geoip(ip_addr): # create a request string urlstr = 'http://ipinfo.io/' + str(ip_addr) + '/json' # make the request req = requests.get(urlstr) # check for errors if req.status_cod...
[ "izwe5504@colorado.edu" ]
izwe5504@colorado.edu
8706e0fb35ef8c6fb12f3288236ff9fd8051bba3
153febd7b42fbc694761a028990f59ed47c20d8c
/TestCases/test_add_multiple_student.py
8c7a64edbcf9cffc26219be3929d84bd2056089b
[]
no_license
dineshkumar1392/Rest_API_Automation
8f2de70b526fffc07f494ef01c78d0910cd5429e
836cc8a00a2ec24935f848998602a2d9b086119c
refs/heads/master
2022-12-11T20:53:28.044837
2020-08-20T23:16:45
2020-08-20T23:16:45
289,128,084
0
0
null
null
null
null
UTF-8
Python
false
false
1,298
py
import requests import json import jsonpath import openpyxl def test_add_multiple_student_data(): #api code api_url = "http://www.thetestingworldapi.com/api/studentsDetails" f = open("D://api_json/py.txt", 'r') json_request = json.loads(f.read()) #print(json_request) # print(json_request['first_n...
[ "dineshkumar1392@gmail.com" ]
dineshkumar1392@gmail.com
4e103c6fd37950ef70c1defe86c01087a3b89744
860a9eb9b2592575467dbe1a6a37dbf095714a4b
/DF_GAN-TF/pre_data.py
a368c7811039cb15bf0734161c4f8aa6bf169e14
[]
no_license
CosmosHua/Mesh
01cf6889a76c1c73f07c3e7e4dc4dacbed95ef81
72e5169d57fe519b9f3907c03861061ae679645e
refs/heads/master
2021-06-10T02:18:46.918937
2020-10-29T07:12:03
2020-10-29T07:12:03
160,528,499
2
0
null
null
null
null
UTF-8
Python
false
false
4,220
py
# coding:utf-8 # !/usr/bin/python3 import random, os, cv2 import tensorflow as tf """ 功能:将文件夹下的jpg格式图像转换成tfrecords格式保存 输入:X,Y,Z域的图像路径 输出:对应的tfrecords文件 """ im_size = [220, 178] data_root_dir = "data/" FLAGS = tf.flags.FLAGS # the path of input and out tf.flags.DEFINE_string('X_dir', data_root_dir...
[ "cosmoscosmos@163.com" ]
cosmoscosmos@163.com
35afccbe38609f84e36e17d562654bfd9edc0a40
8d298acd3f4e0f8371834fb73fa6cfa7598af591
/src/architectures/custom_layers/sem_recurrent.py
1870a1218383ac1ae993e1b47dbaa3710f87b5e9
[]
no_license
jderiu/e2e_nlg
64e400dc2c81fb76722189df009b93dd32e6e4b4
7959776a4da1eab2dccb816056c2c43854659759
refs/heads/master
2020-03-29T01:46:33.094566
2018-11-06T14:20:49
2018-11-06T14:20:49
149,405,677
2
2
null
null
null
null
UTF-8
Python
false
false
20,921
py
from keras.layers import Recurrent, concatenate from keras import backend as K from keras import activations from keras import initializers from keras import regularizers from keras import constraints from keras.engine import InputSpec from src.architectures.custom_layers.recurrent_tensorflow import sc_tf_rnn class...
[ "jan.deriu@googlemail.com" ]
jan.deriu@googlemail.com
fb622a48d0861fe86168d9454676451a05e7122c
55133f3b42a19f50ca52a0c0b78f8a4da95a3e8e
/scripts/kd_squeezenet.py
8c6671ec4ff083e446d9de660fa74c6dfe0cc434
[ "MIT" ]
permissive
phuochaihuynh/knowledge_distillation-1
e517932f5d99950cc25a520b2f4d4f94558ab241
7e8a508a656b2e10757bda9366139fd73be89b5b
refs/heads/master
2023-05-29T17:46:44.058315
2019-11-19T20:44:12
2019-11-19T20:44:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,666
py
# coding: utf-8 # In[1]: # get_ipython().run_line_magic('load_ext', 'autoreload') # get_ipython().run_line_magic('autoreload', '2') # In[2]: import numpy as np import sys, os import argparse # sys.path.append('utils/') import keras from keras import optimizers from keras.callbacks import ReduceLROnPlateau, Ear...
[ "wopauli@microsoft.com" ]
wopauli@microsoft.com
0e3f0922f40e71d9a44e75712553d05822c509a0
0ad92a847dc4ebd4c03a2a61da11875d0cfe61fe
/pages/migrations/0004_auto_20200410_1440.py
2836116e23914f5db636f1d1a3287e02103e3580
[]
no_license
CjS77/QuickAds
f2e88f6e2a358466fd01421b6f2bc87850b70dab
261e2444baa68f9c8b0ada048ce69a74c7b059d4
refs/heads/main
2023-01-28T23:50:25.847957
2020-11-24T05:30:55
2020-11-24T05:30:55
314,763,802
0
0
null
2020-11-23T14:48:27
2020-11-21T08:09:38
JavaScript
UTF-8
Python
false
false
361
py
# Generated by Django 2.2 on 2020-04-10 14:40 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('pages', '0003_auto_20200410_1439'), ] operations = [ migrations.RenameField( model_name='contact', old_name='ad_name', ...
[ "CjS77@users.noreply.github.com" ]
CjS77@users.noreply.github.com
c67aed4a8906403fdc438172470d06e2b232aa16
c66603d757f4cd252e814ad0de26f473924ff13a
/superset/reports/notifications/email.py
3f2296c3b76abdcbc44d3f36ccab9cfe6b406720
[ "Apache-2.0", "OFL-1.1" ]
permissive
fadyvictim/incubator-superset-internal
842719bcbf1866b92e524cfb96231aaa8355ef76
2f2217b29f1ebd1f99550fbb11dd81aebf8bb5e6
refs/heads/master
2023-04-21T16:07:42.032147
2021-05-18T08:15:05
2021-05-18T08:15:05
361,749,249
0
1
Apache-2.0
2021-04-26T13:02:43
2021-04-26T12:53:25
Python
UTF-8
Python
false
false
3,880
py
# -*- coding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "...
[ "noreply@github.com" ]
fadyvictim.noreply@github.com
02b4329d179bd975099a0ead724adf4505061041
e815ed7e08aeac03dd6245918c37a7d58e1956d6
/fbla_admin/migrations/0003_book_image.py
a5ffb7caa343e6582ebf59ef53bb1feafe22c360
[]
no_license
pavanagrawal123/bookshelf
dc461ac2dd59740d630925a059b89632bf260622
3d87d0a9ef8c36a6a83aaaf5f1bc04c747d28512
refs/heads/master
2020-04-16T00:07:10.188057
2019-05-10T21:36:51
2019-05-12T21:36:51
165,126,011
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
# Generated by Django 2.1.4 on 2018-12-31 19:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('fbla_admin', '0002_auto_20181231_1751'), ] operations = [ migrations.AddField( model_name='book', name='image', ...
[ "pavanagrawal@outlook.com" ]
pavanagrawal@outlook.com
4e44847a2ce0365519a8337393f36ce975c783e4
c3a0ffcf4c209fbc86a6d0bcdc7daaec6bf169e5
/script/reverseHostname.py
eb5c1d69c7720e09a2afc1614b5bbede6684184e
[]
no_license
zhanghuanchen/YCSB_URL
1cfa485d57f5163e5aee38a5f57d5f55614febfa
46eed516f87db051e557e89aae0bcd45a3764edb
refs/heads/master
2016-09-06T18:22:45.923437
2013-11-21T02:20:18
2013-11-21T02:20:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,061
py
# Author: Wenlu Hu fn = "../urls/seq_urls_4M.dat" fin = open(fn, 'r') fout = open(fn+"_reverse.txt", 'w') for line in fin: # print line import string if line.startswith('http://'): line = line[7:] else: if line.startswith('https://'): line = line[8:] else: ...
[ "wenlu@cmu.edu" ]
wenlu@cmu.edu
91c15739c4d38e4b6a8edf190e96728d20682cb2
1969f239b453f89272ad88c2d6d1ac0f1b42e77e
/rigid_transform.py
0d7c2752c8576ec9fce8581833cc5cf9c95d015a
[]
no_license
mservice/imaka_pinhole
b34fed2e0a51a5e9a75477b3a0a2b9cd958116e3
7a87d898a7a2719da5bfb770846b7db929668896
refs/heads/master
2021-07-11T22:46:31.746458
2021-03-26T12:32:47
2021-03-26T12:32:47
91,288,265
0
0
null
null
null
null
UTF-8
Python
false
false
928
py
from numpy import * from math import sqrt # Input: expects Nx3 matrix of points # Returns R,t # R = 3x3 rotation matrix # t = 3x1 column vector def rigid_transform_3D(A, B, center=True): assert len(A) == len(B) N = A.shape[0]; # total points if center: centroid_A = mean(A, axis=0) centro...
[ "mws83@case.edu" ]
mws83@case.edu
15f057905f7f0811b3155386e7b38e0b5bf86fac
1d3bb3304ef49ac7a5740433e8ad0f727b7900db
/src/ex2.py
0fed81849be548d9c969418b3a05eeb07bc69426
[]
no_license
Owiru/TestProject
be0071f798a5b7ca98a792f697eaf8d0917f223c
93b9e4f5ed4c1b140424c2895745a89ca914787b
refs/heads/master
2023-01-24T06:03:58.647883
2020-11-29T18:10:35
2020-11-29T18:10:35
317,002,380
0
0
null
null
null
null
UTF-8
Python
false
false
17
py
print("I'm ex2")
[ "meepmeow78@gmail.com" ]
meepmeow78@gmail.com
e93bbd2876eed4d86740b1cb243114498b1ce3b2
b1fbe7460427dbb891d4b1951e43e551e86b1e3b
/arcnlp/tf/layers/matching_layer.py
cb5d7972ef80bae0ebb2273e5c4c32bda114bc6c
[]
no_license
linhx13/arc-nlp
88a45601e09deb7883ddf4583f6f2f4607fb85d0
760cca0d44958fb4011eaa039263575388a858ae
refs/heads/master
2023-05-04T12:59:21.232168
2021-05-18T17:38:28
2021-05-18T17:38:28
230,442,944
1
0
null
2021-04-17T03:41:42
2019-12-27T12:48:02
Python
UTF-8
Python
false
false
5,713
py
# -*- coding: utf-8 -*- import typing import tensorflow as tf class MatchingLayer(tf.keras.layers.Layer): """ Layer that computes a matching matrix between samples in two tensors. :param normalize: Whether to L2-normalize samples along the dot product axis before taking the dot product. ...
[ "mylhx288@gmail.com" ]
mylhx288@gmail.com
b3b9e574c2e2c631342c3269b7914c37ccb639be
dbabe0e9e74ce0d80eda7b729672072bc314d7ef
/setup.py
bf97bbf48872ed70433a04fea7ab9f70e00eafdc
[ "MIT" ]
permissive
timonweb-forks/django-turbo-response
1ee61ca42de62930edaa71586315fcbfe1470bf5
e558b1a281cf37bb2554a68b08472d6a06c7bb9a
refs/heads/main
2023-02-27T12:02:07.367322
2021-02-05T22:49:13
2021-02-05T22:49:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,048
py
#!/usr/bin/env python # Third Party Libraries from setuptools import setup version = "0.0.33" setup( name="django-turbo-response", version=version, author="Dan Jacob", author_email="danjac2018@gmail.com", url="https://github.com/hotwire-django/django-turbo-response", description="Hotwired/Turb...
[ "danjac2018@gmail.com" ]
danjac2018@gmail.com
d4ce1c54619632296876bfedd38db505e3a56eb0
7f5cae328b8e00ddcee02c1e1badba1bb61e8d76
/library_management_System/library_management_System/urls.py
453b0ab1db8806f4e84af9e5523c1980c68659e1
[]
no_license
Developer-Aayush/TA-2020-Library-System
ac34cc4224e5a0dc13a01d6f2ed1aa77d6349718
a4100863015ddbbd5f5f7fa50210f5030e44b4cf
refs/heads/master
2023-02-24T23:13:39.244559
2021-01-27T18:12:44
2021-01-27T18:12:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
982
py
from django.contrib import admin from django.urls import path from library.views import * from library import views urlpatterns = [ path("admin/", admin.site.urls), path("", views.login_view, name="login_view"), path("home", views.home, name="home"), path("add_book", views.addbooks, name="addBook"), ...
[ "aayush.pandey30@gmail.com" ]
aayush.pandey30@gmail.com
c42bdc155218776afedbbc06e0627a69df51c8cc
0610c0c6f02e2a498e9383c416f69e46274ba0b1
/contrib/bitrpc/bitrpc.py
39afd5410ea080f824ba0d0993a7ab66aae07717
[]
no_license
mantra2017/mantracoin
91a320f106f7833f69ba9bb63dd50739910cad77
00aee67cce4c2ebd1822f51532b6f612c41bca97
refs/heads/master
2021-01-22T21:27:58.349209
2017-03-18T21:36:54
2017-03-18T21:36:54
85,433,538
0
0
null
null
null
null
UTF-8
Python
false
false
7,842
py
from jsonrpc import ServiceProxy import sys import string # ===== BEGIN USER SETTINGS ===== # if you do not set these you will be prompted for a password for every command rpcuser = "" rpcpass = "" # ====== END USER SETTINGS ====== if rpcpass == "": access = ServiceProxy("http://127.0.0.1:9332") else: access = Ser...
[ "mavrocoin@scryptmail.com" ]
mavrocoin@scryptmail.com
4af5b0231bef5d0476b48571f5e3926b41f4e01c
e6d6b029fc3f6ea81b7fc877fb475862eef8b013
/Sonar_Classification-NN/test.py
9b6ccdd960dfff89bf3d0522caee9f46e9b0be13
[]
no_license
NguyenDucHuy14287/AI-ML-semenar---Le-Thanh-Sach
96d4c6d01612da678764e3b7140c4ad379ff5f23
5b4fd295cd72ba09cd4a5e14b1289bf9bd49c2e8
refs/heads/master
2022-01-31T09:24:08.138423
2019-07-27T03:23:50
2019-07-27T03:23:50
197,871,859
0
0
null
null
null
null
UTF-8
Python
false
false
991
py
import numpy as np from pandas import read_csv from keras.models import Sequential from keras.layers import Dense from keras.optimizers import SGD import csv def read_data(url): dataframe = read_csv(url) dataset = dataframe.values # split into input (X) and output (Y) variables X = dataset[:,0:60].astype(float...
[ "nguyenduchuy14287@gmail.com" ]
nguyenduchuy14287@gmail.com
a930f39e5ff8fa74a6266ea91bccfe65d29d4ad6
f1b802f823c396d1f0718483435da1ec17ea8fe7
/local_packages/web_utility/web_utility_tests.py
30702c448d9900d8c650cb09521f7d832ac17c68
[]
no_license
OaklandPeters/local_packages
d9528eae34d55b121e4e437c9bff8fa4f1b7c8f9
7a552c3f4b194c9f6aeaa6112ac23ac6f6682a53
refs/heads/master
2016-09-10T18:38:36.852647
2014-10-31T14:53:40
2014-10-31T14:53:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,117
py
""" @todo: setter/getter/deleter/validator tests for WebRequest.parameter @todo: setter/getter/deleter/validator tests for WebRequest.cookies """ import unittest import json # import web_utility as wu import local_packages.rich_misc as rich_misc #import rich_misc as rich_misc class MockRequestTests(unittest.T...
[ "oakland.peters@gmail.com" ]
oakland.peters@gmail.com
00b907ca82bc72c87925dbbf145cc82716347270
c7d950b54e01afd3803a4eee3bfac748ab3929b6
/Python/PythonII/Belt_Exam_Django/belt2/apps/examapp/urls.py
c1389cd392141cdd3df5c4d8aa95a6b9d2172c20
[]
no_license
akc232/Coding_Dojo_Repo
8d14f4cf9236e75d2fabbd90454604218a432fe9
b3c16eb3dc32ce344358a4f7fb3a1f509372327d
refs/heads/master
2021-03-30T21:04:38.382797
2018-04-12T02:57:46
2018-04-12T02:57:46
124,961,894
0
0
null
null
null
null
UTF-8
Python
false
false
722
py
from django.conf.urls import url urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^create$', views.create, name='create'), url(r'^add/(?P<id>\d+)$', views.add, name='add'), url(r'^destroy_quote/(?P<id>\d+)$', views.remove_quote, name='remove_quote'), url(r'^user/(?P<id>\d+)$', views.show, name='user'), u...
[ "achang232@comcast.net" ]
achang232@comcast.net
f560e977ba4e38b370ddbf6279c7a6a0b1e47bd8
b581675ebe3633ea7d6e63ac7898335dc4dcd28c
/chef/HEADBOB.py
1f5534983bc93fd8cec861452fa5dc67c1ce1ecf
[]
no_license
udit043/little_bit_competitive
c219c1d77a48c87ac4b8384c5c09fdacbd1fe8c2
b54279e75c54337bd4d89f9a44489bf8ad00635b
refs/heads/master
2021-07-12T18:43:29.056528
2021-05-29T12:17:30
2021-05-29T12:17:30
86,187,789
0
0
null
null
null
null
UTF-8
Python
false
false
299
py
t = input() while(t > 0): t -= 1 n = input() n=0;y=0;ind=0 s = raw_input() for i in range(0,len(s)): if( s[i] == 'N' ): n += 1 elif( s[i] == 'Y' ): y += 1 elif( s[i] == 'I' ): ind += 1 if(ind != 0): print 'INDIAN' elif(y != 0): print 'NOT INDIAN' else: print 'NOT SURE'
[ "udit043.ur@gmail.com" ]
udit043.ur@gmail.com
b629068b2e680c54c869399bdbbb7e0cdc78d7b9
503e03d50d45eb80e24adfc79801265cd2260e61
/test.py
64c210c66dd51185b6c2d90b54dac293adbfc325
[]
no_license
sushilpokhrel/MatematicalEquationPlotter
fba0a971dbc4640fae44de32770c3bb845e92b79
4b35ea13cf84d524127f4c176f15bde340e29d57
refs/heads/master
2021-01-01T18:20:28.999368
2017-07-25T15:42:02
2017-07-25T15:42:02
98,311,499
1
0
null
null
null
null
UTF-8
Python
false
false
3,136
py
import cv2 import numpy as np # from matplotlib import pyplot as plt # image = cv2.imread("test2.jpg",0) # image = cv2.resize(image, (480, 640)) # create a CLAHE object (Arguments are optional). # clahe = cv2.createCLAHE(clipLimit=2.0, tileGridSize=(5,5)) # image = clahe.apply(image) # cv2.imshow('Test',image) # cv2.w...
[ "sushil.pokhrel@deerwalk.edu.np" ]
sushil.pokhrel@deerwalk.edu.np
9aa757a8672150944dcfb2529414c3b895ae0c9e
b42f316ebe3a756ef52b3fd0cec9def2abe1701e
/code/extract_lsat_samples/random_tundra_samples/extract_lsat_arctic_biome_eeur_srs1.py
0e1fc0764ce094ed85ee5c95f87c16deff39e518
[]
no_license
logan-berner/arctic_greening
bd33b6c6f5861c982a5f688eb8e5c61230b2812c
eaf856517d19375f720b4eb5c2db7af55148eca0
refs/heads/master
2023-04-03T08:44:41.057952
2021-04-06T21:29:38
2021-04-06T21:29:38
288,807,815
5
2
null
null
null
null
UTF-8
Python
false
false
6,963
py
import ee import sys import datetime import pandas as pd import traceback ee.Initialize() # small function for adding 'site' property to randomly created points def addID(pt): return pt.set('site', pt.id()) # SPECIFY SEVERAL VARIABLES BUFFER_DIST = 0 # set it to 0 if buffer is not needed, else it will make sc...
[ "logan.berner@nau.edu" ]
logan.berner@nau.edu
344936961744263b75898af38578c5c1e8565953
77b3d1f51e0c471d6d5d1eb7142eaf18c421969f
/calc-math-6-sem/lab-8/plot.py
09db538be4e64bb72500d4254969204eb1ac8b42
[]
no_license
kostr2010/calc-math
d2084ee5aff6a42d84568e750c9cb1bd6b9ba69a
234aa16db00810989c98380b88135f04bcc1ff95
refs/heads/master
2023-04-21T06:35:53.705512
2021-05-07T20:08:25
2021-05-07T20:08:25
345,630,931
0
0
null
null
null
null
UTF-8
Python
false
false
884
py
from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import pandas import sys points = pandas.read_csv("res_explicit.csv") fig1 = plt.figure(figsize=(16, 16)) ax1 = fig1.add_subplot(111, projection='3d') x = points['x'].values y = points['y'].values z = points['z'].values ax1.scatter(x, y, z, c='b...
[ "kostr010@gmail.com" ]
kostr010@gmail.com
475a16520cbeabe0ef68feffeed8aadaffeb0ca1
6a2abde61354a7f30d81edbfb0672744be8b76b8
/amqp/client/sub.py
6bf383758334b4c547a964ac907d8c2e1ebdc1c3
[ "MIT" ]
permissive
phragment/broker
7969eba685f19d580da320140e3190f98d605e53
e17ff7d663ce54de6e88c1233c21f92d9548efb8
refs/heads/master
2021-09-06T09:41:01.754154
2018-02-05T03:08:27
2018-02-05T03:08:27
113,892,085
0
0
null
null
null
null
UTF-8
Python
false
false
369
py
#!/usr/bin/env python3 import time from libs import amqp def msg(topic, payload): print(topic, payload) client = amqp.Client("ha-sub1") client.add_broker("127.0.0.1", 5673) client.add_broker("127.0.0.1", 5672) client.connect() client.subscribe(msg, "foo") try: while True: time.sleep(10) except K...
[ "t.krug@elektronenpumpe.de" ]
t.krug@elektronenpumpe.de
b43d9ff8a79954fe2e1802f1e470902414e25509
d19645f7d645095da4eccfd2cd2716230e98c227
/ss/gerenciador.py
ca6a1cf3c68c22e25151184a828ba8aa81e7f7c4
[]
no_license
viniciusluzsouza/pji2
54da267fe41cc23435d00b8b428d49a0a769eb0e
3f96176c0bb9017de779312d8d110def5e4eceea
refs/heads/master
2020-03-27T14:14:16.555135
2018-12-11T19:07:37
2018-12-11T19:07:37
146,651,743
0
0
null
null
null
null
UTF-8
Python
false
false
10,269
py
from threading import Thread from shared_ss import * from mensagens_robo import * from mensagens_auditor import * from interface_usuario import * import json class Gerenciador(Thread): """docstring for Gerenciador""" def __init__(self): self.jogo_em_andamento = 0 self.modo_jogo = None self.intf_usuario = Inte...
[ "viniciusls22@gmail.com" ]
viniciusls22@gmail.com
cafa1a9e5a0be3638f0d4adc14a143ec08a51f29
0b01cb61a4ae4ae236a354cbfa23064e9057e434
/alipay/aop/api/domain/AlipayOpenMiniVersionGrayCancelModel.py
edc2052c0c624076b0ec219ead0be1b3c831ddf2
[ "Apache-2.0" ]
permissive
hipacloud/alipay-sdk-python-all
e4aec2869bf1ea6f7c6fb97ac7cc724be44ecd13
bdbffbc6d5c7a0a3dd9db69c99443f98aecf907d
refs/heads/master
2022-11-14T11:12:24.441822
2020-07-14T03:12:15
2020-07-14T03:12:15
277,970,730
0
0
Apache-2.0
2020-07-08T02:33:15
2020-07-08T02:33:14
null
UTF-8
Python
false
false
944
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayOpenMiniVersionGrayCancelModel(object): def __init__(self): self._app_version = None @property def app_version(self): return self._app_version @app_version.set...
[ "liuqun.lq@alibaba-inc.com" ]
liuqun.lq@alibaba-inc.com
dbdbf0f8a5afece448cca22f6672741622e4a1c5
a1419bffb6d6c6c87448849f0c6dd861293a1c65
/emergente.py
8ab222988c30a51f811a3ebbff50f3ee9905943a
[]
no_license
DanielLopezCoto/emergent-computation
795db1e6d7eb5f96a30127e03d3cd646b99a4d6c
f78c6ecd5bf3162081395a2fee9538c0c2aa4c4f
refs/heads/master
2021-01-17T19:26:28.727290
2016-07-01T10:20:12
2016-07-01T10:20:12
60,960,938
0
1
null
null
null
null
UTF-8
Python
false
false
12,460
py
#!usr/bin/env python # -*- coding: utf-8 -*- """ Autor: Daniel Lopez Coto Este programa pretende reproducir los resultados de la computacion emergente usando los metodos de los automatas celulares unidimensionales. Informacion util: - r = 3 (vecindad de orden 3) - D = 1 (automatas unidimensionales) - k = 2 (dos...
[ "noreply@github.com" ]
DanielLopezCoto.noreply@github.com
c2d6a7bd889b6927c42c816fbbb74da9e4cd7ca0
a84e1ed67ef2592cf22f7d19cdddaf16700d6a8e
/translator/applications/TranslatorApp.py
6daaf82a7be712cf06489b4b679b1962a8f88864
[]
no_license
danse-inelastic/inelastic-svn
dda998d7b9f1249149821d1bd3c23c71859971cc
807f16aa9510d45a45360d8f59f34f75bb74414f
refs/heads/master
2016-08-11T13:40:16.607694
2016-02-25T17:58:35
2016-02-25T17:58:35
52,544,337
1
2
null
null
null
null
UTF-8
Python
false
false
1,302
py
#!/usr/bin/env python # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Brandon Keith # California Institute of Technology # (C) 2005 All Rights Reserved All Rights Reserved # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
[ "jbrkeith@gmail.com" ]
jbrkeith@gmail.com
7a81c1603adc758fedca274bd7a3896ef2fee5ca
e53c91c5266c7fa9cb59c4527bf2aa98fd8d61ed
/word_level_train.py
789a2aeab0648d529a8c6ef90306fee2aec6b879
[]
no_license
Siddharth11235/CS419_Project
4d8eb73f1225999dddf6aa5becc1ee52ca61c07a
60b262260d9482be8808af79b7f74b0714979a5e
refs/heads/master
2021-04-03T06:44:13.775464
2018-05-07T05:16:37
2018-05-07T05:16:37
124,904,460
0
0
null
null
null
null
UTF-8
Python
false
false
4,615
py
from __future__ import division from keras.models import Sequential from keras.layers.core import Dense, Activation, Dropout from keras.layers.recurrent import LSTM from keras.models import model_from_json import numpy as np import random def sample(a, temperature=1.0): # helper function to sample an index from a...
[ "siddharth11235@gmail.com" ]
siddharth11235@gmail.com
e208f4508ee13ac9d51e8a0bc13c1be4d6da14bb
9e268d7ec4cb23249886847caa54a0f82f401d2c
/141hasCycle.py
d5d6b26176bd5ca5e45f97bc13a7b58864739963
[]
no_license
whitefir/leetcode
317ff5f20913c99f9714390ff31677b214bba3aa
dc8bf0e9ed4ec500891792bcaeb329e66951f9bd
refs/heads/master
2021-07-15T08:23:04.048332
2020-08-08T08:53:57
2020-08-08T08:53:57
195,218,781
0
0
null
null
null
null
UTF-8
Python
false
false
411
py
# Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def hasCycle(self, head:ListNode)->bool: fast, slow=head, head while fast and fast.next: fast=fast.next.next ...
[ "noreply@github.com" ]
whitefir.noreply@github.com
eddf15913264d54a3d134075c392f37c15332d97
f524b381f819400ad2cb1c618f1a71e19282bdc6
/schedules/migrations/0003_auto_20181125_0816.py
d08943ba5894c638e9d5a94e07ab16238532037c
[]
no_license
luase/classTime
c2ad7f93d1f32c0e397e5c90d8e56e41d778778d
9687cadf7675288d95f89c82c91ae94089828e32
refs/heads/master
2020-04-07T11:03:52.601992
2018-12-06T18:39:07
2018-12-06T18:39:07
158,311,144
0
1
null
2018-11-29T19:55:04
2018-11-20T01:09:56
Python
UTF-8
Python
false
false
501
py
# Generated by Django 2.1.3 on 2018-11-25 08:16 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('schedules', '0002_auto_20181125_0802'), ] operations = [ migrations.AlterField( model_name='pro...
[ "js.alonsosanchez@ugto.mx" ]
js.alonsosanchez@ugto.mx
bc56bf37720d13da204c3c82e4a20d297e3a720a
26555a1f341678601cf3c0f453d0e44f4569457b
/task/2018_06_07/Robot.py
21a6520ec3ad42e95ab70c925ca5c5b45277b3f3
[]
no_license
void0red/code
a5fc8af97b370e407d0b03f3c34232554221d89a
23b533352a1f5710bd350340a9092cfc77a9617b
refs/heads/master
2018-09-26T05:03:37.533670
2018-08-09T13:56:37
2018-08-09T13:56:37
106,823,130
0
1
null
null
null
null
UTF-8
Python
false
false
271
py
from pwn import * p = process('./Robot') p.recvuntil('exit...') p.sendline('666') p.recvuntil('password:') payload = '327a6c4304ad5938eaf0efb6cc3e53dc' + '\0'*0x20 + './'*16 + 'flag' p.sendline(payload) p.recvuntil('Flag') p.sendline('6') p.interactive()
[ "void0red@qq.com" ]
void0red@qq.com
852d2d4cd7964e41f27c18f6a33934b46f7d6b6d
d9ab73e3255856b3485e7f6a1462cba6389d6d69
/homework2/classification.py
f1438647c062cca6d45b7884d2592e24a6349c6c
[]
no_license
MorrisChen1998/DataMining
03a837c8829f18102f1f2fda09b28192c45ee3e3
6ca09cceca87ac2c103113c6f3583b20a391b266
refs/heads/master
2023-01-24T22:48:39.832290
2020-12-10T07:04:26
2020-12-10T07:04:26
305,160,926
0
0
null
null
null
null
UTF-8
Python
false
false
993
py
# -*- coding: utf-8 -*- """ Created on Wed Nov 25 01:59:48 2020 @author: morri """ import pandas as pd from sklearn import preprocessing from sklearn import tree#DecisionTreeClassifier from sklearn.model_selection import train_test_split train_data = pd.read_csv('classfication/csv/train.csv').values test_data = pd.re...
[ "morris7307@gmail.com" ]
morris7307@gmail.com
133d487f10a1630c89278bf269c1831c8fc7b077
60dae997c1c460a5c058940528669865fa44bb6d
/venv/lib/python3.5/tarfile.py
c06e9e0a164e5a97387495416e202779da6ac259
[]
no_license
abhay97ps/ReversiBot
5ba5e79e23659313de5004708642fdda508c0769
efc31516006a4819276231088f5a96acb3f4a57f
refs/heads/master
2020-03-07T04:43:37.003946
2018-05-09T03:24:48
2018-05-09T03:24:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
31
py
F:/usr/lib/python3.5/tarfile.py
[ "aakashv000@gmail.com" ]
aakashv000@gmail.com
d389f798fa8ab330db0e32ce27b0bcd1973ff239
0457a6c3ad642848678f07b9f59c711a0258ddfd
/Python Lab/17-02-2021/CO4/4.py
d00210fff39a580cecc37fe4e2b26c1a91753fa5
[]
no_license
AbhishekScariyaMB/RMCA_S1_A_-Abhishek-Scariya-M-B
a8ba3430ad25cbd36d5c5dd3cd19d285e3c1abea
42917fef0e82c01fa894a428aa3ac5bab4527208
refs/heads/main
2023-06-08T00:02:34.626533
2021-06-30T09:25:00
2021-06-30T09:25:00
353,230,261
1
0
null
null
null
null
UTF-8
Python
false
false
508
py
class Time: def __init__(self,hh=0,mm=0,ss=0): self.__hour=hh self.__minute=mm self.__second=ss def __add__(self,other): second=int((self.__second + other.__second)%60) minute=int((self.__minute + other.__minute)%60 + ((self.__second + other.__second)/60)) ...
[ "noreply@github.com" ]
AbhishekScariyaMB.noreply@github.com
a4f693190a6e11185c3a89af3fbabdedfa6b57bf
d2ea935fbbaccf120b408ae88888324fa55c5dc9
/BSP.py
82908a7d8ec287f60cd34f31c52d9075770b043e
[]
no_license
ChamodAK/Binary-Space-Partition-Tree-BSP-Tree-
0ddb72924dd709cfefd1e6c4433e4aed74b59d4f
aec2afca5ddd2fdd6eb83b6e58bdd7ab567df04a
refs/heads/master
2020-05-19T21:38:32.614375
2019-05-06T16:05:03
2019-05-06T16:05:03
185,229,288
4
1
null
null
null
null
UTF-8
Python
false
false
5,576
py
import numpy as np class Node: def __init__(self,data): self.data = data self.x1 = None self.y1 = None self.x2 = None self.y2 = None self.sameList = [] self.frontList = [] self.backList = [] self.front = None self.back = None class ...
[ "noreply@github.com" ]
ChamodAK.noreply@github.com
54652a9664135ada3b18f18d640f400d0fd64b12
de7dc8dd3d18b1f806b3722bd6b4cae4ef251192
/src/app/application.py
fa442e8af1821b800aba77744ce5831c433200d7
[]
no_license
prateekladha/LettuceFramework
f36c83f629cd35b1af280a2a12b5eed213310f14
4607379915be9d92775311d8d581462c619dc216
refs/heads/master
2021-01-11T22:38:40.489524
2017-01-15T07:28:07
2017-01-15T07:28:07
79,008,379
0
0
null
null
null
null
UTF-8
Python
false
false
137
py
''' Created on Jan 11, 2017 @author: admin ''' from flask import Flask app = Flask(__name__) if __name__ == "__main__": app.run()
[ "automation@wynk.in" ]
automation@wynk.in
b3078a4c673a74f0f819389f082bc49d16b08c7c
015a9fc9bf9ed97adb0a7a6b114542e164677d27
/app.py
9fdc984ac0b534d17662a292c3d1f2043b43b98b
[]
no_license
khosenag03/Medicare-Cost-Driver
841a0fcba1701b081925f5a88b72fcb2a15d1611
6a5b396e06b9796f1380a45337acfc27f50e3b05
refs/heads/master
2020-08-27T23:06:37.637978
2019-10-25T11:11:01
2019-10-25T11:11:01
217,514,755
1
0
null
null
null
null
UTF-8
Python
false
false
1,687
py
from flask import Flask, render_template, redirect, jsonify app = Flask(__name__) @app.route("/") def home(): # Find one record of data from the mongo database # Return template and data return render_template("dashboard.html") @app.route("/barchart") def Barcharts(): # Return template and dat...
[ "khosenag03@yahoo.com" ]
khosenag03@yahoo.com
4c8dd9c1fd3ee6a8f8f0d287907efeb067fe5a39
b960f2941d98aea060a53df65505956553e136ba
/py_postgressql/settings.py
d18a1bf2d833f6d9349238d8991f3d0fef73b3f0
[]
no_license
krobawsky/heroku_django_album_music
910205228cde0f3e501bdb127764c8b863d600c2
02397a5bf61e233535d41a4dbc2a9263d2bca4a1
refs/heads/master
2022-04-25T18:52:57.724815
2019-07-18T05:57:26
2019-07-18T05:57:26
197,520,790
0
0
null
2022-04-22T21:54:33
2019-07-18T05:55:18
Python
UTF-8
Python
false
false
3,653
py
""" Django settings for py_postgressql project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impor...
[ "ricardo.berrospi@tecsup.edu.pe" ]
ricardo.berrospi@tecsup.edu.pe
2ad3e41a5dc74b833f13c1cac4d7f2b1c981e17f
63bc95150f6af526199454602e5689bfadc882ba
/07/ex7-16.py
0d84562866f12227b3bf4a1b951bd89770fdab82
[]
no_license
veenary/python-src
fd61d22a58d452ccb251402fecb0b7babd5372a7
d61374bc32b8ebe3b2be366a6de259680821a4e1
refs/heads/master
2023-03-17T10:07:27.704611
2021-03-10T01:31:56
2021-03-10T01:31:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
182
py
file = open('scores.txt', 'r', encoding='utf8') lines = file.readlines() print('scores.txt 파일의 내용 : ') for line in lines : print(line, end='') file.close()
[ "park.cheongu@gmail.com" ]
park.cheongu@gmail.com
04efad6f06cfc161f3c5c68bbf358954a31fc0ae
4e353bf7035eec30e5ad861e119b03c5cafc762d
/QtGui/QLabel.py
6ccbf0d08a2516d66a727ff799df64b97d5ceb8b
[]
no_license
daym/PyQt4-Stubs
fb79f54d5c9a7fdb42e5f2506d11aa1181f3b7d5
57d880c0d453641e31e1e846be4087865fe793a9
refs/heads/master
2022-02-11T16:47:31.128023
2017-10-06T15:32:21
2017-10-06T15:32:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,098
py
# encoding: utf-8 # module PyQt4.QtGui # from C:\Python27\lib\site-packages\PyQt4\QtGui.pyd # by generator 1.145 # no doc # imports import PyQt4.QtCore as __PyQt4_QtCore from QFrame import QFrame class QLabel(QFrame): """ QLabel(QWidget parent=None, Qt.WindowFlags flags=0) QLabel(QString,...
[ "thekewlstore@gmail.com" ]
thekewlstore@gmail.com
ccd01bbc8d5a270149654c4210f71bd079638a50
d7fd2e76bfcb726ad151563caf8ca9c46e82524b
/useful_np_feature_finder.py
17037dcd262744592702ecc9bbbd0e0695a33b76
[]
no_license
AidaAmini/MathProblems
49d3ed874fdf655a1709c600a1bd4d0895bc27f4
74b92e6a14d78af893c6a47bb29a2d794a9cef74
refs/heads/master
2020-06-16T10:08:23.512127
2017-02-02T06:46:51
2017-02-02T06:46:51
75,236,285
3
0
null
null
null
null
UTF-8
Python
false
false
4,267
py
from entity_properties import entity_properties class useful_np_feature_finder: question_prop = entity_properties() appropriate_features = [] feature_file_path = '' def __init__(self, question_prop): self.question_prop = question_prop def find_demanded_features(self): input_file = open (self.feature_file_p...
[ "amini91@cs.washington.edu" ]
amini91@cs.washington.edu
cdeef9da2fa6eea228fbe9c905adc1575cf00a32
05014e48fef45c0105060f881f5a64f7b4c37618
/News.py
b8ad560621ad38313fbc083b9f1e8601e400d8f1
[]
no_license
houyen/TeleBot
018bdc2baaeafa7ac26bf2b4e1fbe3c29c5464ba
19a2cb412e0e8dad81da9425b44ba12c69326ca0
refs/heads/main
2023-08-06T11:36:59.586894
2021-10-04T14:50:32
2021-10-04T14:50:32
409,940,461
0
0
null
null
null
null
UTF-8
Python
false
false
1,083
py
import requests from bs4 import BeautifulSoup import json from Article import Article baseUrl = "https://vnexpress.net/" def GetNews(limit_news = 20): # Tạo biến limit_news để lấy số lượng tin mà mình cần thôi s = requests.Session() # Store sesstion lại response = s.get(baseUrl) # Thực hiện Get request s...
[ "34957287+houyen@users.noreply.github.com" ]
34957287+houyen@users.noreply.github.com
edb00308284d3b6b5dda9516e7d81a471fb2c159
c4ab9a70f0c4c6fc465d53b839b3f0abb6c90d03
/briapi_client_python/error.py
5a3c11de50b2161165314c66616ddd11131a2a1a
[]
no_license
afifnz/briapi-client-python
cf5df0c258e12479511dc24036e8329f3f8498a0
ac5533d27475fc4d8ff023344fda13eae23d2bc0
refs/heads/master
2023-02-04T05:09:05.199574
2020-12-23T10:24:38
2020-12-23T10:24:38
323,869,697
1
0
null
null
null
null
UTF-8
Python
false
false
423
py
class JSONDecodeError(Exception): pass class APIError(Exception): def __init__(self, message, api_response_dict=None, http_status_code=None, raw_http_client_data=None): self.message = message self.api_response_dict = api_response_dict self.http_status_code = int(http_status_code) ...
[ "afifnz@gmail.com" ]
afifnz@gmail.com
a581293dcad0c0e7a8a3f1cdce4dd35059f04fe4
1714f2c09d930e5916c5fec711d4f3dc3b46e878
/crystal_identification.py
7a99e6168daa6672593a3e03ddae1fb88c0462f2
[]
no_license
merrygoat/fourier-crystal-detection
4e87e56e0c0fc5202a083889e8beb67ee7258312
2cfa39892fc08df80816669bb137e3a457de9310
refs/heads/master
2020-03-18T10:04:57.992016
2018-05-24T11:56:57
2018-05-24T11:56:57
134,596,067
0
0
null
null
null
null
UTF-8
Python
false
false
11,351
py
import numpy as np import matplotlib.pyplot as plt import matplotlib from skimage.feature import peak_local_max def get_fourier_transform_of_slice(image): """ Returns the real valued Fourier transform of an image :param image: the image to apply the Fourier transform to :return: The Fourier transform ...
[ "merrygoat@users.noreply.github.com" ]
merrygoat@users.noreply.github.com
e881bd578e8cbb24291806ad1ff1a0d23c3c1f5d
46e19784eb5aac4d560926b1536694cbf25d36cb
/perfis/migrations/0001_initial.py
2175ce4cfdb3504f142ae54ca1259d4f3379125e
[]
no_license
Mateusallz1/Connected_In
ffbe203e8abd48a2ae850c7885d4ede4a9d9a28c
a5622bd14c0baeeeadd5a08a3727b8b195825b0d
refs/heads/master
2023-01-02T23:22:11.751775
2020-10-31T17:17:43
2020-10-31T17:17:43
298,578,214
0
0
null
null
null
null
UTF-8
Python
false
false
677
py
# Generated by Django 3.1 on 2020-09-24 12:20 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Perfil', fields=[ ('id', models.AutoField(aut...
[ "trafalgarmateus@gmail.com" ]
trafalgarmateus@gmail.com
1cd7cce1c30d6e22621fd03c616101c46452f638
1f2808f1c263828838518d47885d38d3523c4b61
/Памятка.py
de6bfb0c080fad7850cf91f01bf987b1982abe34
[]
no_license
jbigor/python
549bec723c3144fdcf0f13a181275e664c2df5cc
413d5d08498942dbf520af6261c65d4ff603f5f3
refs/heads/master
2020-05-17T23:12:55.988913
2019-08-27T16:15:00
2019-08-27T16:15:00
184,024,941
0
0
null
null
null
null
UTF-8
Python
false
false
3,440
py
import os import psutil import sys import shutil def duplicate_file(filename): if os.path.isfile(filename): newfile = filename + '.dupl' shutil.copy(filename, newfile) if os.path.exists(newfile): print("Файл", newfile, "был успешно создан") return True else: ...
[ "admin@naocompany.ru" ]
admin@naocompany.ru
2f7b6c64db101cd44494a732066aa6347f0d6cae
2189a4ee026cb9bc7122caa88cf980910d260b86
/Scripting/images.py
291f6c297ccca502ba32af8332646dfbdedebe57
[]
no_license
osajas/Python
c7e5f0583128ff365ebfda3a42183791b0e06bf1
07abe4e01569a9c6d9e692ea54c244f976e066a4
refs/heads/master
2023-02-24T12:46:51.704937
2021-01-20T17:51:22
2021-01-20T17:51:22
277,341,447
0
1
null
2021-01-20T17:51:24
2020-07-05T16:31:28
Python
UTF-8
Python
false
false
247
py
from PIL import Image, ImageFilter img = Image.open('./Pokemon/original.jpg') print(img.size) new_image = img.resize((400, 400)) new_image.save("astro.jpg") print(new_image.size) img.thumbnail((400, 400)) img.save("thumbnail.jpg") print(img.size)
[ "omafraji@gmail.com" ]
omafraji@gmail.com
ced832e964bd27c3e0e78afe6beb2d5c5104bd31
5234835e7b059acc5c69c7c731e7aa91dae7e73a
/app/__init__.py
e5b1397d8dbace91d5ef4a5c5e728cb52b50f08e
[]
no_license
devahmedshendy/citc_lab
ae2d526bd53a4f27bcb2a064506e2a98f6feea16
45198557a1fa6ba475659b513a9fd26acbe73647
refs/heads/master
2023-02-08T01:56:02.400043
2017-07-05T11:19:08
2017-07-05T11:19:08
93,545,375
0
0
null
2023-02-02T03:11:52
2017-06-06T17:29:05
HTML
UTF-8
Python
false
false
594
py
from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_assets import Environment from flask_login import LoginManager from flask_principal import Principal from config import app_config app = Flask(__name__) app.secret_key = 'this_is_my_secret_key' app.config.update(app_config) db = SQLAlchemy(a...
[ "dev.ahmed.shendy@gmail.com" ]
dev.ahmed.shendy@gmail.com
48a5510da114a4e37bb1873378350e127224ad3a
fd0f67fee6af2d701ef43658d6e0b49af0a7e0cf
/web_6.py
a039a7c78b90b3896e666732140988621bb44135
[]
no_license
zhaoquanmo/webauto
c4560ea3d7e5c65ef1c9b900949035ff5156da3b
cd64dec5989dbd09a97ffce77e2aed9cb11f4643
refs/heads/master
2020-05-30T14:39:08.315695
2019-06-02T09:50:15
2019-06-02T09:50:15
189,566,274
1
0
null
null
null
null
UTF-8
Python
false
false
964
py
from selenium import webdriver from selenium.webdriver import ActionChains from selenium.webdriver.common.keys import Keys import time # 创建一个浏览器 driver = webdriver.Chrome() driver.maximize_window() # 访问京东 url = "https://cn.bing.com/" driver.get(url) # # 定位元素 # el_list = driver.find_elements_by_id("cate_menu_item") # #...
[ "zhaoquan_mo@163.com" ]
zhaoquan_mo@163.com
4c45aa82a362b010b070c3212cb5a17ad59e58f0
76a8ea60480331f0f61aeb61de55be9a6270e733
/downloadable-site-packages/Bio/HMM/__init__.py
063a9354cb8db8e0a2feff789d685c6dcacf6b7f
[ "MIT" ]
permissive
bhagyas/Pyto
cd2ec3f35bec703db4ac29b56d17abc4bf03e375
907024a9b3e04a2a9de54976778c0e1a56b7b83c
refs/heads/master
2022-11-19T13:05:07.392454
2020-07-21T17:33:39
2020-07-21T17:33:39
281,886,535
2
0
MIT
2020-07-23T07:48:03
2020-07-23T07:48:02
null
UTF-8
Python
false
false
352
py
# This file is part of the Biopython distribution and governed by your # choice of the "Biopython License Agreement" or the "BSD 3-Clause License". # Please see the LICENSE file that should have been included as part of this # package. """A selection of Hidden Markov Model code.""" # File needed on Python 2 to import ...
[ "adrilabbelol@gmail.com" ]
adrilabbelol@gmail.com
23497f5a015816a2363bafb17199f6108977f973
1c694159d84e0e2b389aac74eb80f73d990e609c
/read_reddit.py
6a9c5680e5874d37fa7101a48a29fa9bc4d22a29
[]
no_license
mikodham/intellibots_spring21
fe0b0aa149d19ddc76cb94c9499e4bdbcd0da5b4
04508adf4037fdfae952711d071d8011e28f10ca
refs/heads/main
2023-06-02T11:56:19.837924
2021-06-18T09:16:05
2021-06-18T09:16:05
367,868,733
0
0
null
null
null
null
UTF-8
Python
false
false
321
py
import pandas as pd df = pd.DataFrame() path = "./Dataset/reddit_mini.csv" df = pd.read_csv(path,usecols=[1,2]) df_negatives = df[df['class'].isin(['non-suicide'])] df_negatives.reset_index(drop=True,inplace=True) df_positives = df[df['class'].isin(['suicide'])] df_positives.reset_index(drop=True,inplace=True) ...
[ "timothymathews@kaist.ac.kr" ]
timothymathews@kaist.ac.kr
6d2868f78ec0a7bf47a651bb9f0d3678fe86f323
cd62e55137353d2a351f2eeb2c754383ab7cf124
/MetaGPA/mapping.py
4a4c7bbbcf8bffa4661d9302a59cc4c5f7d1a17f
[ "MIT" ]
permissive
linyc74/MetaGPA
797268863b18cd707e7d330836da1b4af4fdd9bc
2311bef2483c6fb96310626711a6663636586660
refs/heads/main
2023-07-05T14:17:54.120299
2021-12-09T10:39:40
2021-12-09T10:39:40
311,524,661
3
0
null
null
null
null
UTF-8
Python
false
false
1,605
py
from .template import Processor, Settings class Mapping(Processor): fna: str control_fq1: str control_fq2: str case_fq1: str case_fq2: str index: str control_bam: str case_bam: str def __init__(self, settings: Settings): super().__init__(settings=settin...
[ "yclin.python@gmail.com" ]
yclin.python@gmail.com
52cd064acae2495296f4fadad4ed625761f875c5
64aabf9cad30c07f954b719973b824a96e7d2b67
/APPS/system/models.py
3bdd6e82d92826893995ce1445844a963d965e17
[]
no_license
zhouf00/mysiteTest
39041771c0e46ccd17690869a49ef3e44c665e86
472c588660524b81436d1dba0ff62b6b6aea1f1a
refs/heads/master
2021-01-04T17:49:35.754614
2020-04-27T03:07:44
2020-04-27T03:07:44
240,694,270
0
0
null
null
null
null
UTF-8
Python
false
false
1,457
py
from django.db import models # Create your models here. class SystemSetup(models.Model): loginTitle = models.CharField(max_length=20, null=True, blank=True, verbose_name='登陆标题') mainTitle = models.CharField(max_length=20, null=True, blank=True, verbose_name='系统标题') headTitle = models.CharField(max_length=...
[ "49618748+zhouf00@users.noreply.github.com" ]
49618748+zhouf00@users.noreply.github.com
d3ed62805f4dc37293db01fad6a99b8e1c77809a
d1bed926389986c9d3439fe1704ff80fc127ab97
/sum_to_k.py
c82bb3f41e69d4d65ab08369b05354d7b9845f5c
[]
no_license
alishalopes87/hb-coding-challenges
00f35455f768aaa5e7c33e585fb52b5291d7d6bf
559e75917744f8fa4b0dc7c20777b8f5ac3b18af
refs/heads/master
2020-05-01T07:53:03.734221
2019-08-09T00:12:17
2019-08-09T00:12:17
177,362,750
0
0
null
null
null
null
UTF-8
Python
false
false
425
py
# Given a list of numbers and a number k, return whether any two numbers from the list add up to k. # For example, given [10, 15, 3, 7] and k of 17, return true since 10 + 7 is 17. # Bonus: Can you do this in one pass? def sum_to_k(lst, k): for num in range(len(lst)): if k - num in lst: return True return F...
[ "alishalopes@MacBook-Pro-5.home" ]
alishalopes@MacBook-Pro-5.home
fd5bd50b0049c3937ac7aab4ea2085ebceb23d88
20e3ee6642d20578e48756963798acfe307ac6b5
/Traning/PyQs-master/PyQs-master/python-initial-reference/ToBeShared/reference/Code/web/flask/quick/helloRest/app/__init__.py
5c01f7af088af16ce359f07c36bdfeaffce8608a
[]
no_license
sirinenisaikiran/Python
538f64276767435de3233b720f547aac0bf4d511
bdfef0d1c04c7f3b9fc91a164b5fd1789828176c
refs/heads/master
2023-01-31T00:53:01.650916
2021-06-06T10:39:20
2021-06-06T10:39:20
237,744,104
0
0
null
2023-01-26T03:38:47
2020-02-02T08:58:49
Python
UTF-8
Python
false
false
129
py
from flask import Flask app = Flask(__name__) from app import routes #should be last as routes module needs above app variable
[ "saikiran.sirneni@gmail.com" ]
saikiran.sirneni@gmail.com
a54709a42d49049c584b8a5109b1f7916baa20cf
854d3082edf5f34ef855da6f3074875b24b37283
/blaze/tests/test_blaze_kerneltree_ckernel.py
3250521ea480242a50f559b86077ca36135aa254
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
ephrein/blaze
5c067b88de112e1aa7668d3af90b524571041637
637bc54e4c13d2acb6ba50672548d869c7114f0b
refs/heads/master
2022-06-19T14:53:31.818273
2013-07-06T07:38:26
2013-07-06T07:38:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,595
py
import unittest import sys import ctypes import blaze from blaze.blfuncs import BlazeFunc from blaze.datashape import double, complex128 as c128 from blaze.datadescriptor import (execute_expr_single, dd_as_py) from blaze.py3help import izip class TestBlazeKernelTreeCKernel(unittest.TestCase): def test_binary_kern...
[ "mwwiebe@gmail.com" ]
mwwiebe@gmail.com
bab087b3b495cc6c828a66207ae3265df4412478
3676b1bc902c174ff7cb69f74578afc0de6c8dd8
/qandu_app/wsgi.py
6efe7cf93d090f83158ed3954efcbd6b0be510bb
[]
no_license
amluciano/qandu_app
ce91d59bb63c82408951dbb6b66b022f8d99c1cd
e149e8f06633344e064f1fb043513f8ce829c76a
refs/heads/master
2021-01-10T13:45:03.958529
2015-10-15T20:33:48
2015-10-15T20:33:48
43,083,551
0
0
null
null
null
null
UTF-8
Python
false
false
429
py
""" WSGI config for qandu_app 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.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application from dj_static import Cling os.en...
[ "amluciano@quinnipiac.edu" ]
amluciano@quinnipiac.edu
02ddd2a0d78248de62aed9035d8d1be97414b98c
971cb789522341f4c1a1ce3962807538695cbea6
/venv/bin/tlsdb.py
0bbf4c53c2d8c128d707558553a43ffcc1500705
[]
no_license
18200643032/flasky
453beecab6bdad579e6b4e5527ee85e2543de98e
43ca7573adc1872925863ffb1c33a5b4ffab1bd6
refs/heads/master
2020-09-30T11:11:16.056139
2019-12-16T08:48:09
2019-12-16T08:48:09
227,275,638
0
0
null
null
null
null
UTF-8
Python
false
false
3,775
py
#!/root/flasky/venv/bin/python3.7 # Authors: # Trevor Perrin # Martin von Loewis - python 3 port # # See the LICENSE file for legal information regarding use of this file. from __future__ import print_function import sys import os import socket import math if __name__ != "__main__": raise "This must be run ...
[ "910386943@qq.com" ]
910386943@qq.com
ba7d56a4ab941cc0e6ff36bbfede4870b3205ecb
9bd1afa4afd7754a4e19ea2217fa940486a0e067
/newfile.py
ef1b0b1efb0c331d5fd32d47a5195cbec5caf0f4
[]
no_license
aschultz10/test_branching
b8169fcf8b3665d55859679ea1db260f4ef9bbe2
5995290eb0240c95976dbcc8b07184930dc26f25
refs/heads/main
2023-03-16T11:42:54.523106
2021-03-03T00:15:42
2021-03-03T00:15:42
343,942,480
0
0
null
null
null
null
UTF-8
Python
false
false
18
py
print("whats up)")
[ "alexeschultz@gmail.com" ]
alexeschultz@gmail.com
ce53d926393d120a60e823a6d9ac9ce202916904
482b44865a69bde81cf96fd1a28dae0b832153a8
/consensus/calc_total_kmers_clust_split.py
563ea3122a731c8af08ff8bb8c8e28abdf4b2896
[]
no_license
EESI/microbiome_embeddings
407c841d33e46fcbf471f16510a7ae62e808a081
c5595d61d636ce318f3eedaa2a22aa470943e1aa
refs/heads/master
2020-04-16T01:02:24.150327
2020-02-21T17:35:34
2020-02-21T17:35:34
165,159,129
9
3
null
null
null
null
UTF-8
Python
false
false
1,384
py
#!/usr/bin/env python import sys sys.path.insert(0, '/data/sw1/embeddings/code/') from sys import argv import os import zipfile from os.path import splitext, isfile import gzip import csv import six.moves.cPickle import collections from shutil import copyfile import numpy as np import pandas as pd from itertools imp...
[ "noreply@github.com" ]
EESI.noreply@github.com
583e8e8579676621b5f264b6df4e31cbb2ad2031
98083b3d7c3aa43abe5224e5c35c65d934a0ee1d
/Polygons Collisions Testing/polygon_stub.py
db317fc191a6874200e4cd89e4316f62e05a466e
[]
no_license
WhiteLotus9678/Physics-Models-in-Games-Using-Python
d101b351c133996487eb234fae06bc26b0df3304
eb033cec176ff529e9a930ab60f3953f4168a8b4
refs/heads/master
2021-09-15T20:01:05.726415
2018-06-09T18:46:02
2018-06-09T18:46:02
119,438,553
0
0
null
null
null
null
UTF-8
Python
false
false
9,468
py
# -*- coding: utf-8 -*- """ Created on Thu Apr 12 14:26:03 2018 @author: sinkovitsd, Will Yang """ from math import sin, cos, degrees from vec2d import Vec2d import pygame class Polygon: def __init__(self, pos, vel, density, points, color, angle=0, angvel=0): self.pos = pos self.vel...
[ "noreply@github.com" ]
WhiteLotus9678.noreply@github.com
5908f7dfd7c340d09892ec22e091c0fdcfa52b05
b5b28acfd43c9a9484cbffe378c7d4a1e948ec63
/coramin/domain_reduction/__init__.py
0668d94bd8ea84c6c3151c59ec031382559bb2a2
[ "BSD-3-Clause" ]
permissive
Coramin/Coramin
d5accc7de33623ac6f3d97e0d0217b4d3344aa73
1b9883ca1a8fc7b3196d6249948fbba5d506a8bb
refs/heads/main_branch
2023-07-12T16:09:34.138155
2022-11-06T21:53:14
2022-11-06T21:53:14
166,443,751
20
13
NOASSERTION
2023-09-05T16:05:53
2019-01-18T17:00:15
Python
UTF-8
Python
false
false
414
py
from .obbt import perform_obbt from .filters import filter_variables_from_solution, aggressive_filter try: from .dbt import decompose_model, perform_dbt, perform_dbt_with_integers_relaxed, TreeBlockData, TreeBlock, \ DecompositionError, TreeBlockError, collect_vars_to_tighten, collect_vars_to_tighten_by_blo...
[ "michaelbynum@users.noreply.github.com" ]
michaelbynum@users.noreply.github.com
2c44f3dbb7f7af8995aee818d058f9f2376409b1
6b4bd776c05aac1802927873fa665bd44677769e
/vec_prod/jvp.py
551066f83f7f1e77a3cd5671bbac988dab37e7da
[]
no_license
karush17/optimization_utils
a26102159a981778caf0aadcdca19dee5a2b787c
2b49220b4a15e90a3e60a734f3a4b0a1e718379f
refs/heads/master
2023-07-13T22:20:29.578555
2021-08-18T15:43:22
2021-08-31T14:50:37
397,654,404
0
0
null
null
null
null
UTF-8
Python
false
false
171
py
import torch from utils import flat_grad def Jvp(functional, inputs, v): grad_f = flat_grad(functional, inputs, create_graph=True) return torch.matmul(grad_f, v)
[ "karushsuri@gmail.com" ]
karushsuri@gmail.com
4af393604fe2d6a11818bf866432beb496df124b
1c4394c908a579ce21914c015181aeb408318351
/hello_world/views.py
7da2d485b1333757cdfcbdf8a79736928351ab97
[]
no_license
ceciliawambui/rp-portfolio
26b21461b6bcf497f0289fa09735bb081e53524f
e87c70f969d5dab6d86ba9033f7f8f64704d525a
refs/heads/master
2020-09-27T12:15:45.870913
2019-12-07T13:00:07
2019-12-07T13:00:07
226,514,333
0
0
null
null
null
null
UTF-8
Python
false
false
145
py
from django.shortcuts import render # Create your views here. def hello_world(request): return render(request, 'hello_world.html', {})
[ "ceciliawambui026@gmail.com" ]
ceciliawambui026@gmail.com
40f8994459638d56215b03ff948798229cf9b1bf
67708071befaea93326b4dbee48a3c7c176828c2
/django/authentication/admin.py
a9d5f405978255bd14d5bde727fb6c26a18e8775
[ "MIT" ]
permissive
vikramvaibhav/django-jwt-react-boilerplate
4dbd59a0cf3f55a5058ff703f4b08997d3ff3e67
d262bd332f8696e11e55ad9d485a3f87d8624070
refs/heads/master
2023-01-04T15:24:32.377506
2020-10-31T13:09:55
2020-10-31T13:09:55
305,959,317
3
0
null
null
null
null
UTF-8
Python
false
false
1,135
py
from django.contrib import admin from authentication.models import CustomUser from django.contrib.auth.admin import UserAdmin from django.forms import TextInput, Textarea, CharField from django import forms from django.db import models class UserAdminConfig(UserAdmin): model = CustomUser search_fields = ('ema...
[ "vikramvaibhav@outlook.com" ]
vikramvaibhav@outlook.com
4b6330afc6e5c01baf49de22d4940eb614416a2a
b568f1b58bed5319460b7a71d9b792dbf1089a5a
/data_prep/data_generator.py
26c37ebef16685078054aa9daf7f7873c1f4b346
[ "MIT" ]
permissive
Linusmt/CS231N-BRATS
47497d3eeb0e82fd4dc16025e6faf35d756192ac
15171565c786d7e5ef697ccf1541121158955bf0
refs/heads/master
2020-03-18T13:15:33.274715
2018-06-02T18:04:36
2018-06-02T18:04:36
134,772,063
0
0
null
null
null
null
UTF-8
Python
false
false
1,934
py
import numpy as np import keras class DataGenerator(keras.utils.Sequence): 'Generates data for Keras' def __init__(self, X, y, n): 'Initialization' self.batch_size = 1 self.X = X self.y = y self.n = n def __len__(self): 'Denotes the number of batches per e...
[ "lmeyerte@stanford.edu" ]
lmeyerte@stanford.edu
c77992067ffe06f1534770472462d0687ced77ee
d81b070622fdafafbefac437bd41e377b05bf163
/Trees/BST/minimum_in_bst.py
447b272e0c2ffa512b9dbf9af591073fdf03fdc3
[]
no_license
raghavnarula/Data-Structures
9e25cbd4cfa383af738b915f359b179dfacfc56a
02163c6ee3135122cd5b5db0af7267737d2c3216
refs/heads/master
2023-06-28T08:44:46.141330
2021-07-30T18:23:34
2021-07-30T18:23:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
623
py
# keep moving to the left node until we find null class Node: # Constructor to create a new node def __init__(self, key): self.data = key self.leftval = None self.rightval = None def minValue(node): current = node # loop down to find the lefmost leaf while(curren...
[ "aarav30302001@gmail.com" ]
aarav30302001@gmail.com
d4032cc10f41d0a995a97ae1408b2706e2a3a3e7
afa8f872daf9047a1358eef7a354841fe949ec86
/gpt/gpnode.py
3b931ad72025d0b2e76fb0363e3ab4d81e440bb3
[]
no_license
nrjones8/Genetic-Programming-Classifier
f64294f3f646640f4490b614cd360f2b29f9deee
671bd5b0c1c58fbcc789aaf820a30c0a14a10c97
refs/heads/master
2020-06-04T09:53:42.568865
2012-12-04T20:10:53
2012-12-04T20:10:53
7,006,028
0
1
null
null
null
null
UTF-8
Python
false
false
3,877
py
# Nick Jones, written for CS 361 - Intro to Evolutionary Computing with Sherri Goings from entry import Entry class GPNode(object): """""" def __init__(self, attribute, comparisonValue): """ <attribute> is the attribute this node 'cares about' i.e. what attribute to compare <compariso...
[ "nrjones8@gmail.com" ]
nrjones8@gmail.com
9c7f18b7271263dbb1abd686aa3bccbd56cde603
00b7cd3d8aeb704d153287bcc4a8e1e1a80e552d
/Python code/polarity_distribution.py
e08e09ff4d9e25adec861724cff02f40af9252e2
[]
no_license
KoenGo/EWI3615TU
7677aa66f3ff99624356725a3507304a59628330
25edb7618fca48c661e6e81763a649928b243bad
refs/heads/master
2021-09-04T05:20:57.670801
2018-01-15T16:42:18
2018-01-15T16:42:18
110,662,490
1
0
null
2018-01-13T11:18:12
2017-11-14T08:33:28
Python
UTF-8
Python
false
false
1,362
py
import re import matplotlib.pyplot as plt import numpy as np def gather_polarities(): with open('datacollector_output/whole_tweet.txt', 'r', errors='ignore') as file: lines = file.readlines() polarity_list = [] index_count = -1 for line in lines: if re.search("at: (\d{2...
[ "kgoedemondt@gmail.com" ]
kgoedemondt@gmail.com
1ccbd8b0a065186765f91c9f61b20cabdb033820
d2fe80fba383f3debee17d8c360b411498069d81
/oil_lang/expr_parse_test.py
d4bdc05ec50b29d6f93784bd7d3a58cce3957d16
[]
no_license
stevenworthington/oil
7c6bfb20f5dc9485da28c6285e0f909a644316b9
721e5da392a8ae02e1af4acf03cb76900946ec29
refs/heads/master
2022-11-07T16:34:54.883277
2020-06-15T17:03:02
2020-06-15T17:29:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,011
py
#!/usr/bin/env python2 """ expr_parse_test.py: Tests for expr_parse.py """ from __future__ import print_function import unittest #from _devbuild.gen.id_kind_asdl import Kind from _devbuild.gen.syntax_asdl import source from core import alloc from core import error from core import meta from core import pyutil from c...
[ "andy@oilshell.org" ]
andy@oilshell.org
f4ff06a3a2bbd4343d448f9b66994ef88c8506a1
1716cba3aae75b3e9f4aca352205b7f66afeefba
/IoT_Data_Platform/filtering_and_storage/filter_ms.py
1ae3acce9e38ee4234978b7f12e3a6e451d602b7
[]
no_license
mehai/mini-projects
df22656ed6b4e420e3cc750db13fc5d691a2a7db
50184d5d7feadc4ea1d959cceb4c2d5c609b50b8
refs/heads/master
2021-04-17T22:29:16.363488
2020-08-18T13:36:08
2020-08-18T13:36:08
249,480,495
0
0
null
2020-08-18T13:36:09
2020-03-23T16:12:39
Python
UTF-8
Python
false
false
1,532
py
import json ROOM_LOW = 1 ROOM_HIGH = 6 TEMP_LOW = 0 TEMP_HIGH = 40 HUM_LOW = 0 HUM_HIGH = 100 LIGHT_LOW = 0 LIGHT_HIGH = 100 class Filter: def __init__(self, db_connector): self.db_connector = db_connector def filter(self, message: str): try: jsonObj = json.loads(message) ...
[ "noreply@github.com" ]
mehai.noreply@github.com
721b1870ca01dfb53d0621ed1c7c1b749f120c63
32faa0ce90f98f9c4eca8e4c2c79d1d71eb1454d
/babynames.py
17d901c6c79c703f82d55e515b45c622f8fb0fa9
[]
no_license
ejhari/google_python_classes
dde2eebc1a3a6c2b4525f1a4e317347ef45cde43
e3ab441e6e4971ed896a375d72c7cfc3f627e1ed
refs/heads/master
2016-09-05T09:17:43.315834
2010-09-20T09:45:58
2010-09-20T09:45:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,541
py
#!/usr/bin/python # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ import sys import re """Baby Names exercise Define the extract_names() function below and c...
[ "ejhari@gmail.com" ]
ejhari@gmail.com
94ad55e904df81587c507cd55c5674d60ccd3f87
2af6a5c2d33e2046a1d25ae9dd66d349d3833940
/res/scripts/client_common/shared_utils/account_helpers/clientinvitations.py
9aabf92cd2fe6382b567b017fdf3896b763c9b92
[]
no_license
webiumsk/WOT-0.9.12-CT
e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2
2506e34bd6634ad500b6501f4ed4f04af3f43fa0
refs/heads/master
2021-01-10T01:38:38.080814
2015-11-11T00:08:04
2015-11-11T00:08:04
45,803,240
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
4,208
py
# 2015.11.10 21:31:20 Střední Evropa (běžný čas) # Embedded file name: scripts/client_common/shared_utils/account_helpers/ClientInvitations.py import operator from functools import partial import BigWorld import AccountCommands from constants import INVITATION_STATUS from helpers.time_utils import getCurrentTimestamp f...
[ "info@webium.sk" ]
info@webium.sk
b54885425e7278e641874386e1ccff87dbbe256d
e4a9b67bf2baa6394ba003ece58cf6c4f2be8dd6
/src/vm_images.py
513654c927010adc6f9a7ed05e94c8a841f74708
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mbrukman/cloud-launcher
57d6723301efc2aa795e42128435c6566a2ac0d2
3ad9e36a523a42edbf327e2fb979dfa1c1333114
refs/heads/main
2022-05-07T07:25:46.696466
2022-04-26T14:45:16
2022-04-26T14:53:23
21,208,554
21
8
Apache-2.0
2022-04-26T14:53:24
2014-06-25T15:35:51
Shell
UTF-8
Python
false
false
1,790
py
# Copyright 2014 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
[ "mbrukman@google.com" ]
mbrukman@google.com
a2147e3264f5a58102dafb2da3db2fb7016d39af
84379e15e54ba79b7e63c1fceecf712b46f22977
/apps/archetype/migrations/0012_auto_20200403_1152.py
f903f354854e67b8a7c746ddecdb14ce3407ebe8
[]
no_license
CoderEnko007/HearthStoneStationBackend
a1d74c324233ebd617ad01df13bc609d1f1aa2f6
6cc92cb806f19f2a2a0596645028cfe2fa5895d6
refs/heads/master
2022-12-11T23:20:24.335737
2022-09-18T07:04:08
2022-09-18T07:04:08
144,392,864
0
0
null
2022-12-08T02:22:42
2018-08-11T14:40:48
JavaScript
UTF-8
Python
false
false
550
py
# Generated by Django 2.0.4 on 2020-04-03 11:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('archetype', '0011_auto_20200330_1537'), ] operations = [ migrations.AlterField( model_name='archetype', name='rank_r...
[ "yf381966217@163.com" ]
yf381966217@163.com
953b4ade341146643faf6f9ff97b66df6f468ad5
b92fc1597d41608753fe0634f65b0035e95d0886
/Dec13Spyder.py
3f55b1abc9c7273360001c014064585399d28118
[]
no_license
lilja79/advent_of_code_2020
6b54860ee20825e27a7aaecb92245c1e117501ac
638229eb5f7619d3fb4e15a8433de042a302fab0
refs/heads/main
2023-02-17T22:40:18.630020
2021-01-21T21:28:01
2021-01-21T21:28:01
318,458,409
1
1
null
2020-12-11T13:09:24
2020-12-04T08:55:20
Python
UTF-8
Python
false
false
1,254
py
# -*- coding: utf-8 -*- """ Created on Tue Dec 15 10:28:30 2020 @author: slb """ #The next two lines clears the workspace from IPython import get_ipython get_ipython().magic('reset -sf') import os file_path = os.path.join(os.path.curdir, "Dec13.txt") with open(file_path) as f: notes = f.readlines()...
[ "noreply@github.com" ]
lilja79.noreply@github.com
930adf252802ba2a3034b9c10e96e03272d2fe8b
7cec7784a70b411cc9b27f7558122c80f05dd0bb
/evasion_poc/end_central_dir_header.py
dd8a7dc5335b450087b8b00a3e8e30e8a7bb1606
[]
no_license
kcknigh1/file-inspection-evasion-PoC
8f015bab745dfb194442af991a5996d3cf68877e
4e96f5b0cb844438916dd40659828335b2e48c89
refs/heads/main
2023-05-31T17:18:59.770286
2021-06-19T13:11:51
2021-06-19T13:11:51
372,665,497
0
0
null
null
null
null
UTF-8
Python
false
false
2,034
py
"""This is the implementation of the end of central directory header """ from . import utils class EndCentralDirectoryHeader: """Class that represents the end central directory header This class is built from the string representation of the end of the central directory header in hex format. It allows ac...
[ "kyle-knight@hotmail.com" ]
kyle-knight@hotmail.com
afeb3b566ef53020af09d49c264f1a05d982fb63
87425e46c05ac220be5d3f131684d45365127123
/people/people.py
c5224f9c64512cd9aa671979779dd2ce3b5e8a93
[]
no_license
JohnTheUnigoat/Python_Lab_02
02a22e7db673266a7b085ca3add37109d026013e
4331c27c668998574fc29af056a9f6d6f455bfa1
refs/heads/master
2022-06-29T12:41:55.213358
2020-05-08T23:09:31
2020-05-08T23:09:31
261,896,537
0
0
null
null
null
null
UTF-8
Python
false
false
1,735
py
from abc import ABC class Person(ABC): def __init__(self, first_name, last_name, age, salary): self.first_name = first_name self.last_name = last_name self.age = age self.salary = salary @property def email(self): return f"{self.first_name.lower()}.{self.last_name.l...
[ "ivanhudzinskyi2000@gmail.com" ]
ivanhudzinskyi2000@gmail.com
e40eb8dc1a774d91cdd53b25616e78a095191e6a
b66ec155356c11cabe2350a583f03dd6fad7f105
/response_operations_ui/common/validators.py
f87e7e5217061e345d8bc8b4d58eb540dab77cd8
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
ONSdigital/response-operations-ui
823344b88d71ddadb36ccc1e7ca2fbd556456e92
c0e37ac87ca8ba8ae0433d0222b3d7b4ff1c2cbd
refs/heads/main
2023-08-18T08:18:44.118075
2023-08-02T10:43:41
2023-08-02T10:43:41
112,603,785
4
2
MIT
2023-09-14T10:35:46
2017-11-30T11:31:09
Python
UTF-8
Python
false
false
544
py
from datetime import datetime from wtforms import ValidationError from config import Config def valid_date_for_event(tag, form): form_datetime = datetime( int(form.year.data), int(form.month.data), int(form.day.data), int(form.hour.data), int(form.minute.data) ) tags_can_be_in_past = ("ref_perio...
[ "noreply@github.com" ]
ONSdigital.noreply@github.com
8f74e37fd1c229692cb57974190948d7cb4ae773
050de0c7bae5923f11655f17f07be9687e6870de
/WORKSHOP16/workshop16/settings.py
b21e8f295185d345a9adaec25c82edcbd82ed267
[]
no_license
Kuhnhee/django_practice
a18f68333a6d7f15055e14573b1f040de95f3ba7
eea38527b7cdcd8f3d7604b7cd3bf376ae11dd71
refs/heads/master
2020-07-03T23:17:42.614630
2019-11-08T07:13:20
2019-11-08T07:13:20
202,083,524
0
0
null
null
null
null
UTF-8
Python
false
false
3,113
py
""" Django settings for workshop16 project. Generated by 'django-admin startproject' using Django 2.2.4. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os...
[ "sheva0902@naver.com" ]
sheva0902@naver.com
bf0f4721d7b30a41f855accbbe15d808bf835f61
11e826cd207343446cd44dbb6ac9f9a6e59e624c
/Python/OOP/oop.py
68ef8e91e6408f319169b4ebe6ddf822e010153e
[]
no_license
sbishop7/DojoAssignments
1395022f9c693f757889461410d96543f8552fa2
29a378830f8de5bbbdc6d397228c2c09329c0d38
refs/heads/master
2021-01-22T23:29:33.527805
2017-07-06T15:01:11
2017-07-06T15:01:11
85,643,842
0
0
null
null
null
null
UTF-8
Python
false
false
1,418
py
# class User(object): # name = "Anna" # anna = User() # print "anna's name: ", anna.name # User.name = "Bob" # print "anna's name after change:", anna.name # bob = User() # print "bob's name:", bob. # class User(object): # def __init__(self, name, email): # self.name = name # self.email = email...
[ "seth.bishop@gmail.com" ]
seth.bishop@gmail.com
e72d9c21c36e6e2f281ed537407a9e4d18751f70
4bcc2f7859df84bf9b54c387df6f54ade6ae6d0c
/intro_python/lesson2.py
1b8021fb25ba6ccb51cf220c0f7371a9b991482d
[]
no_license
Mojoo25/fall2021mr
9c90ecdaff7fe8918a5d6cb322dc785eaede35cf
e356bbcf161912ac11eb3f8642f3ec1244adc232
refs/heads/main
2023-08-17T16:30:29.116420
2021-09-30T21:04:22
2021-09-30T21:04:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
632
py
# lesson 2 - Arithmetic Operators a = 10 b = 3 # addition operater + print ("a: %d, b: %d, a + b: %d" % (a, b, a + b)) # subtraction operator - print ("a: %d, b: %d, a - b: %d" % (a, b, a - b)) # multiplication operator * print ("a: %d, b: %d, a * b: %d" % (a, b, a * b)) # division operator / print ("a: %d, b: %d...
[ "diane.williams@ucdenver.edu" ]
diane.williams@ucdenver.edu
63fe904b1c5e73ffde557ab9051be2b39467aae7
7dbbce6c07203e9395d4353c2289977af18fc5b8
/AMIAQuestioning/graduate/models.py
56b95b23e5c62d5894fd162d0bf6a3fe51c74258
[]
no_license
levenkoevgeny/AMIAPsychologist
9c518e8ed796d9bdb78eacca964ddd0322b4ff70
c961cc9d431bf6fcc4556ad7d7b058348c869b63
refs/heads/main
2023-08-29T02:32:31.376503
2021-10-29T12:11:35
2021-10-29T12:11:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
17,553
py
from django.db import models class Rank(models.Model): rank = models.CharField(max_length=100, verbose_name="Специальное звание") def __str__(self): return self.rank class Meta: ordering = ('id',) verbose_name = 'Специальное звание' verbose_name_plural = 'Специальные зван...
[ "levenko.evgeny@yandex.by" ]
levenko.evgeny@yandex.by
6d3f92371b83d2f63808282e298a51ec9d9ea286
78237d27a2129dccb005886f416453200de7ec4e
/Week 5/edit_distance.py
996f3373479ddd94aa96a956e99c1dcc47ca5ef4
[]
no_license
ahmedsy96/Algorithmic-Toolbox
551c1135f5ce68510fbcc8b8ac46cc0c6f236b1c
39bcd5975c04ecfd05eb22653871752c8156ed0e
refs/heads/master
2021-01-08T08:52:03.926948
2020-02-26T22:10:55
2020-02-26T22:10:55
241,972,324
0
0
null
null
null
null
UTF-8
Python
false
false
663
py
# Uses python3 import numpy as np def edit_distance(s, t): #write your code here slist = list(s) tlist = list(t) s1 =len(slist)+1 t1 = len(tlist)+1 edit = np.zeros((s1,t1)) for i in range (s1): edit[i][0]=i for j in range(t1): edit[0][j] = j for i in range(0,s1...
[ "noreply@github.com" ]
ahmedsy96.noreply@github.com
f04afacbaa891c582e3606517fa5771c36c35b9d
0c0645670f8b5a18d246b42820f016ba2aa02001
/ex48/skeleton/tests/lexicon_tests.py
a61798ec861327d1730539315c3286411ed0b47d
[ "MIT" ]
permissive
MayThuHtun/python-exercises
34054ce878ddb0aaeca5294be30d91145c372892
0f4e85aa9d78855bfdb5c04ff9278799c338e0e5
refs/heads/master
2020-03-19T06:54:08.781450
2018-06-26T05:16:03
2018-06-26T05:16:03
136,065,190
0
0
null
null
null
null
UTF-8
Python
false
false
1,537
py
from nose.tools import * from ex48 import lexicon def test_directions(): assert_equal(lexicon.scan("north"), [('direction', 'north')]) result = lexicon.scan("north south east") assert_equal(result, [('direction', 'north'), ('direction', 'south'), ('direction...
[ "maythutun.ucsmdy@gmail.com" ]
maythutun.ucsmdy@gmail.com
3ca676d5d439c786ab45531d6f8f4697907f3227
7ed71c5d63a6e16933e2af6c279192c87f6dc001
/lib/texaspoker.py
0c34803176f87e275f4d238aefb588b13ab817e7
[]
no_license
Infinitywxh/Texas-Poker-platform
e267336843585373003969d71a0d91b75f69186d
318b484e604ae9c6b570f04e5069f2c48fb9e4ce
refs/heads/master
2021-10-18T23:04:59.978012
2019-02-15T03:13:43
2019-02-15T03:13:43
170,783,952
0
0
null
null
null
null
UTF-8
Python
false
false
14,956
py
from time import sleep import communicate.dealer_pb2 as dealer_pb2 import communicate.dealer_pb2_grpc as rpc # 0 黑桃 1 红桃 2 方片 3 草花 # 牌的id: 0-51 ''' 牌面level编号 皇家同花顺:10 同花顺 :9 四条 :8 葫芦 :7 同花 :6 顺子 :5 三条 :4 两对 :3 一对 :2 高牌 :1 ''' # alter ...
[ "xhwang@ubiquant.com" ]
xhwang@ubiquant.com
f78b2f8f87603c09dad3cff0b8e97b47fab22561
feb36ce65afc45ef9ada5d0097378bfdc544c9be
/site_task/Lib/site-packages/funcy/funcmakers.py
f065e93305a01ee29f380fdd5bd4887408fabeba
[]
no_license
Kryvtsov15/Task-abz
6735c483f40e73049596381c7136caa9c336c167
617556aca44b7c21353e37857a38e8bb6c0bbc74
refs/heads/master
2020-04-12T04:09:41.189439
2018-12-18T13:51:41
2018-12-18T13:51:41
162,286,930
0
0
null
null
null
null
UTF-8
Python
false
false
1,579
py
import sys from functools import wraps from operator import itemgetter from collections import Mapping, Set from .cross import imap, ifilter, ifilterfalse, basestring, PY2 from .simple_funcs import identity from .strings import re_tester, re_finder, _re_type __all__ = ('make_func', 'make_pred', 'wrap_mapper', 'wrap_...
[ "45894407+Kryvtsov15@users.noreply.github.com" ]
45894407+Kryvtsov15@users.noreply.github.com
436524445c48e1916ee3d9172ce8df26dd436cae
d188eb3a14a7a991edbb085d485cafeb9c740588
/src/beginner_tutorials/scripts/add_two_ints_server.py
b62bc4ef9f8d755d72723a97bd79a583b42fcf68
[]
no_license
CFreeman217/catkin_ws
988d9bc5afc78354d5c832edeaaa1895dca48dd0
3251fd2012d250dc2461226378f74955e61faa46
refs/heads/master
2020-04-22T02:30:51.955979
2019-02-11T02:00:50
2019-02-11T02:00:50
170,050,475
0
0
null
null
null
null
UTF-8
Python
false
false
445
py
#!/usr/bin/env python from beginner_tutorials.srv import * import rospy def handle_add_two_ints(req): print "returning [%s + %s = %s]"%(req.a, req.b, (req.a + req.b)) return AddTwoIntsResponse(req.a + req.b) def add_two_ints_server(): rospy.init_node('add_two_ints_server') s = rospy.Service('add_two_ints', AddTw...
[ "freeman.clayton@gmail.com" ]
freeman.clayton@gmail.com
ba2dbe927aa7dd8176d9e84e9827c5411c465d81
da27e8f223646d7ca214cfec1338327ea7d7bd99
/accounts/Python4_calcuator.py
61125ea7bb33448a0c06ff86814da0a35a791af4
[]
no_license
rishabhkatiyar1991/dummy
b1b26d2e2025763c802f29218212cd8a747d40a2
d395add2b952371f361444ee7710943eaef18e43
refs/heads/master
2022-11-14T14:33:15.759226
2020-06-26T08:30:12
2020-06-26T08:30:12
275,107,021
0
0
null
null
null
null
UTF-8
Python
false
false
574
py
# Faulty Calculator # 45* 3 = 555, 56+9=77, 56/6= 4 num1 = int(input("Enter first Number ")) num2 = input("Chose + - * / ") num3 = int(input("Enter secound Number ")) if num1 == 45 and num2 == "*" and num3 == 3: print(555) elif num1 == 56 and num2 == "+" and num3 == 9: print(77) elif num1 == 56 and num2 == "/...
[ "rishabhkatiyar1991@gmail.com" ]
rishabhkatiyar1991@gmail.com
ecb66454aea25f654bb7601de2c3bfcd6f53319d
8088639d3bf7a95c465b2d4abebf6ca744ec6d38
/fix_data.py
fda4912fd1e6f25fe8f886f4c2b96ba67be062c2
[ "MIT" ]
permissive
QubeHeadedT/latticeqcd
1f347eca705e18293f70fd6d357fa72af3bc9f0a
547a6b4832c6b48c0e6c59ed7a6d1f156cb44d99
refs/heads/main
2023-04-16T10:32:21.667507
2021-04-26T19:28:08
2021-04-26T19:28:08
350,472,597
0
0
null
null
null
null
UTF-8
Python
false
false
638
py
import re import os from pathlib import Path def fix_file(file_name): save_file = str(Path(file_name).with_suffix('')) + '_fixed.txt' with open(file_name, 'r') as read_file: os.chdir('fixed_originals') with open(save_file, 'w') as write_file: for line in read_file: l...
[ "jamesleechpublic@gmail.com" ]
jamesleechpublic@gmail.com
7bc505f082a1e10b8536f15b9721bfe54d8a6b08
7826d70034d12a32b053aac15433844a2fc91bfd
/tests/intents/test_StopIntent.py
4326116d05a330591d1d0efe52ddf6b12b46a4ca
[ "MIT" ]
permissive
rowleyaj/alexa-slack
c16d54464e8bd752b92863dee85974b19baf2fc4
a7b708aad24ac95315e22f5cdb8ecdc7c249a002
refs/heads/master
2021-01-01T18:18:57.512574
2017-07-24T15:48:50
2017-07-24T15:48:50
98,297,681
0
0
null
2017-07-25T11:11:20
2017-07-25T11:11:20
null
UTF-8
Python
false
false
371
py
from tests.utils import _AlexaTestCase class TestStopIntent(_AlexaTestCase): def input(self): return self.make_intent_request('AMAZON.StopIntent') def should_end_session(self): self.assertTrue(self.output.response.shouldEndSession) def should_say_goodbye(self): self.assertEqual(...
[ "patrick@promptworks.com" ]
patrick@promptworks.com
b5c4de1f689bf22b058de1ec6c5bbf55e0f84500
ce7b5157acdcba21daff00eadf41575e1297adda
/project_euler/problem10.py
187b7ed089c550a2647c11160aae8e5c9b5789dd
[]
no_license
cobalt-cho/Pythonstudy
b9f1eb553f0b9a87226378d2cd2479c72dc1d065
703fb5db6b9773ad71bac9edddcc4a2a8653d307
refs/heads/master
2020-12-04T05:41:26.940881
2020-03-15T15:22:37
2020-03-15T15:22:37
231,636,912
0
0
null
null
null
null
UTF-8
Python
false
false
867
py
''' 이백만 이하 소수의 합 지금까지 구해왔던 소수로는 시간이 너무 오래 걸려 에라토스테네스의 체를 사용하니 시간이 엄청나게 빠르다. ''' # 에라토스테네스의 체 def prime(n): # 에라토스테네스의 체로 n개 요소에 True 설정 소수라 생각. primeList = [True] * n answer = [] # n의 최대 약수가 sqrt(n) 이하라서 sqrt(n)까지만 검사 m = int(n ** 0.5) for i in range(2, m + 1): if primeList[i] == True...
[ "ldnono345@naver.com" ]
ldnono345@naver.com
c430a3ee10f86cc84be8503c6297991e94e65a7f
f3fd6a1c687b16726f35bf916d75adf38170dae2
/C10_dnn/logistic_regression_theano.py
b9c1f375e08c175a526528860c5e5709c16a81db
[]
no_license
KeViNOne/MLNotebook
173c67e2204139c93490c0f98ecb323b6e3edf6e
f92ae8156379855a9f0de2df2ccc007cb5b8a5e2
refs/heads/master
2021-01-10T16:44:55.372191
2016-01-06T15:59:34
2016-01-06T15:59:34
48,027,030
0
0
null
null
null
null
UTF-8
Python
false
false
3,032
py
import os import timeit import dataset import numpy as np import theano as tn import theano.tensor as T class LogisticRegression(object): """逻辑斯谛回归 """ def __init__(self, n_in, n_out): """Initialize the parameters of the logistic regression :type n_in: int :param n_in: number of input units, the dime...
[ "KeViNOne@KeViNOne-Laptop.local" ]
KeViNOne@KeViNOne-Laptop.local