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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6ce44bd5969a4ca7083f0f8952e592a254a567cc | cadf3054101e7db7d1c72a9b92341ab2fb9d6738 | /Day12/Solution.py | 37c1c5eb173926ae97007e09a3105f7d2ff0a246 | [
"MIT"
] | permissive | MarceloKabbalah/30-Days-Of-Code | 22ff4bf6671b8ea6ac788162885dcf11d0e38214 | 094de037347b00105c5385add9de7bf605277e16 | refs/heads/master | 2020-11-26T05:44:08.034591 | 2020-01-18T22:06:32 | 2020-01-18T22:06:32 | 228,980,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | #!/bin/python
# compatible with python3
class Student(Person):
def __init__(self, fName, lName, sId, scores):
super().__init__(fName, lName, sId)
self.scores = scores
def calculate(self):
avg = 0.0
for score in self.scores:
avg += score
avg = avg/len(self.s... | [
"marceloregis.soares@gmail.com"
] | marceloregis.soares@gmail.com |
6cfcfc174e43bee98078ef16e8dd0fa9bdcaf722 | d7dd6bfa37a3f797bf2e60589cea3f549ff7f582 | /cnn.py | 63758f450162de8a425317058332ecc87483792a | [] | no_license | dongsheng824/machinelearning | cbe87c3edaa5076efdf4e8d21468923bb09f9937 | ae7dccae325ae614a6f19df4aeb32fd6c40fd6de | refs/heads/master | 2021-01-20T04:26:01.425505 | 2017-04-28T09:36:53 | 2017-04-28T09:36:53 | 89,691,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,841 | py | import tensorflow as tf
# 导入mnist
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
###################################################################
def weight_variable(shape):
initial = tf.truncated_normal(shape, stddev=0.1)
return... | [
"dongsheng824@126.com"
] | dongsheng824@126.com |
5b00e034c090c6cf5a823c1a43243438c864fd4f | 2a19cf17525d438b217a1e868ba855fc6a35e217 | /examples/multiproc.py | 1f6a9560449e9e8bae38553c2ea06934fc3b9d8c | [] | no_license | buuren/python | f7964fc584bcef88b896baf022edcfd4d959d0e3 | 08ecbd6d51af4b4789efa44c16bb7169afbb1322 | refs/heads/master | 2020-12-25T15:18:36.058142 | 2016-08-11T06:30:38 | 2016-08-11T06:30:38 | 32,805,137 | 3 | 12 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | import multiprocessing
import time
import sys
def one(x):
p = multiprocessing.current_process()
print 'Starting:', p.name, p.pid
print x
time.sleep(5)
sys.stdout.flush()
print 'Exiting :', p.name, p.pid
sys.stdout.flush()
if __name__ == '__main__':
for x in range(1, 3, 1):
#pr... | [
"vlad@veev.(none)"
] | vlad@veev.(none) |
f6a52103498b8c97fe1595c7c10a947effe44a35 | 8373603b334584a4943a2b79500e69548e86beb3 | /open2.py | c3638d5f41b6016fcc8e4e80cc2471fd70b7dde1 | [] | no_license | wizardklaus/python_tests | 637dd46f4fee776065e447b6cf54980dbf9541a2 | 6e6ce6d6c54957559e6cf57f4d17764fb136f5aa | refs/heads/master | 2021-01-18T16:53:21.446607 | 2017-05-19T01:57:27 | 2017-05-19T01:57:27 | 86,778,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | class open2(object):
def __init__(self, path):
print('initialized')
self.file = open(path)
def __enter__(self):
print('entered')
return self.file
def __exit__(self, exc, exv, trb):
print('exited')
self.file.close()
return True
with open2('test.txt')... | [
"klauschoi31@gmail.com"
] | klauschoi31@gmail.com |
d85fbbcd13652679e72eac1a56832f1e9ec6030c | 9e0a7d0cf583b1439e269ca00fc9d48d0c919eb2 | /aesthetic_memes/ecommerce/migrations/0011_auto_20180429_1755.py | c345dbf8ac8c034dcced5ef4aa3c8caae4fab9e0 | [] | no_license | SamirKalouf/aesthetic-memes | 778d41e01353007fd786ebf7095f8c746c18223c | a4d459210a00d94c200aebd9f50337287ec9dc94 | refs/heads/master | 2021-05-09T20:06:27.392478 | 2018-05-03T01:59:03 | 2018-05-03T01:59:03 | 118,677,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | # Generated by Django 2.0.3 on 2018-04-29 22:55
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('ecommerce', '0010_bookinstance_price'),
]
operations = [
migrations.AlterField(
model_name='boo... | [
"yzn246@my.utsa.edu"
] | yzn246@my.utsa.edu |
7daee1980da5a32d26e1289302096002476f6369 | 6e391f4756ffd4a4266b85a870d8533a41842845 | /Lecture4-SQL/airline/flights/admin.py | ce5c66f9736b5a19f366f2411f37b2f889753408 | [] | no_license | cwalter50/CS50Web | 3234b959d02cfd1c0be88acf2305959b286dd863 | 187ecee1ab0d254ce8fbb6792d2e7b6e94b9857e | refs/heads/master | 2023-07-20T12:16:32.992117 | 2021-08-13T02:49:45 | 2021-08-13T02:49:45 | 379,302,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | from django.contrib import admin
from .models import Flight, Airport, Passenger
# Register your models here.
class FlightAdmin(admin.ModelAdmin):
list_display = ("id", "origin", "destination", "duration")
class PassengerAdmin(admin.ModelAdmin):
filter_horizontal = ("flights",)
admin.site.register(Airport)
ad... | [
"walt50@gmail.com"
] | walt50@gmail.com |
f5a2a2207320cee838910af8d37c4f620f041b09 | cf247bf02f5dcdc3b2292c368d89b2b3c33c5414 | /random_problems/kruskal_mst.py | 851af51acb1719863963588436eab0fa66d97109 | [] | no_license | anmol/algorithm_python | ee5751cf7fbf677776013e2f889955c87df5f1ea | e9c500b7512ae80dd4bd4a67d162f007e900e302 | refs/heads/master | 2021-06-03T15:21:20.329580 | 2020-05-06T04:41:58 | 2020-05-06T04:41:58 | 115,738,759 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | import os
rep = {}
tree_edge_list = []
w_sum = 0
def parent(v):
if rep[v] == v:
return v
rep[v] = parent(rep[v])
return rep[v]
def add_edge(u, v, w):
global w_sum
global tree_edge_list
if u not in rep:
rep[u] = u
if v not in rep:
rep[v] = v
if parent(u) != pa... | [
"anmolprakash.gautam@iiitb.net"
] | anmolprakash.gautam@iiitb.net |
4ca9bd19679fbb30fc5ed30b750ee022fc94c075 | 5ffdf4ddee5700e6bb3b062a07c1a9cf7e6adbc1 | /PYTHON/Strings/capitalize.py | 8cc94026d63e0fa32d0b508f4cfd21061a7f66e7 | [
"MIT"
] | permissive | byung-u/HackerRank | 23df791f9460970c3b4517cb7bb15f615c5d47d0 | 4c02fefff7002b3af774b99ebf8d40f149f9d163 | refs/heads/master | 2021-05-05T13:05:46.722675 | 2018-03-30T08:07:36 | 2018-03-30T08:07:36 | 104,960,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | #!/usr/bin/env python3
def capitalize(string):
s = string.split(' ')
for i in range(0, len(s)):
if len(s[i]) == 0:
continue
if len(s[i][0]) != 0 and s[i][0].isalpha():
s[i] = s[i].title()
return ' '.join(s)
if __name__ == '__main__':
string = input()
capital... | [
"iam.byungwoo@gmail.com"
] | iam.byungwoo@gmail.com |
c42757ed648fb8b964c0e0ab2fa9c6969b1b2058 | cc4c8bec896c2d0a6ac4c1f0e01f73d8157f891a | /util/__deprecated.aggregate_variants_n_depth_to_table.py | 9819ed136498e9b69c83b545a2d93ff6258dd946 | [] | no_license | NCIP/ctat-mutations-benchmarking | fe6a79007d6a22e4301b130a55f982d835b57691 | 1a8fe28860c3d216ba0acfe888b300dc3235c79a | refs/heads/main | 2023-05-29T21:00:57.730494 | 2021-05-12T17:53:20 | 2021-05-12T17:53:20 | 366,363,093 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,110 | py | #!/usr/bin/env python
import os,sys,argparse
import subprocess
import numpy as np
import pandas as pd
import re
import pickle
import csv
csv.field_size_limit(100000000)
def configure_vcf(vcf, column_name, chr_idx=0, coord_idx=1, refallele_idx=3, varallele_idx=4):
'''
Configure the vcf file to prepare for ... | [
"brianjohnhaas@gmail.com"
] | brianjohnhaas@gmail.com |
9d83286a5d6f4eafbbadcdb531338e89f5d13009 | 2991536d593ea42ac07ac36125732c8908eba54a | /crop_images.py | 76c3064c0fb8a5ce327e975f80848aeec0f38b95 | [] | no_license | Drvito44/FIle_Actions | fcf27b3e4973b8d63926786fe1929bed216397f4 | cc5b1e7deddaa7c106198d0878f1e3ccfdc90be6 | refs/heads/master | 2020-12-21T17:25:26.997821 | 2020-07-09T16:38:24 | 2020-07-09T16:38:24 | 236,503,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,060 | py | import shutil
import sys
import os
import random
import math
import cv2
from tqdm import tqdm
image_folder_path="/home/dylan/Documents/Computer_vision/UNet_Starter/dataset/mult_val/"
new_crops_dir='/home/dylan/Documents/Computer_vision/UNet_Starter/dataset/crops/'
crop_size = 128
if os.path.isdir(new_crops_dir) is ... | [
"noreply@github.com"
] | noreply@github.com |
028d4012be6e2dba637d5afdafcded11bfba6024 | fd8d33572656edf9e1133a72ad4e2fa090f90a5f | /packages/OpenCV/nodes/OpenCV___YUV_YV120/OpenCV___YUV_YV120___METACODE.py | fd27f158254de61c8a19e271393e77c1740baba6 | [
"MIT"
] | permissive | ChristianHohlfeld/Ryven | a01c2eafa79a80883a9490efb5f043fd35f53484 | 53bf7e57a7b0fa25a704cd0d2214a7f76096d4dd | refs/heads/master | 2022-12-12T22:03:57.122034 | 2020-08-31T13:45:45 | 2020-08-31T13:45:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | from NIENV import *
import cv2
# USEFUL
# self.input(index) <- access to input data
# self.outputs[index].set_val(val) <- set output data port value
# self.main_widget <- access to main widget
class %NODE_TITLE%_NodeInstance(NodeInstance):
def __init__(self, parent_node... | [
"leon.thomm@gmx.de"
] | leon.thomm@gmx.de |
7a887f7e4ac0db06f19dd9718a7c2c0d62a30aae | be863742606df3be0e185a5ae4bcda110b6ff3f0 | /1_test.py | 18c576dd479542d940053292d82d5c25d5bc057a | [] | no_license | deepak242424/ML_2 | b6353add4c09cff6103355aed1d8ad5cd07aadd1 | 6a77e63fd92c3904655e4b54aaf53ec72a9d3d4c | refs/heads/master | 2016-08-11T12:17:18.360832 | 2015-10-19T05:25:05 | 2015-10-19T05:25:42 | 44,099,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,313 | py | import numpy as np
import cPickle
import math
from sklearn.metrics import accuracy_score
#--------------------------
# Class_Name | Class_index|
#--------------------------
# coast | 0 |
# forest | 1 |
# insidecity| 2 |
# mountain | 3 |
#-------------------------|
def ge... | [
"deepak242424@gmail.com"
] | deepak242424@gmail.com |
cbb840b5c2b44cf705f2e2daa10acf5be969d016 | 3ddaa1f7f207bbd3153535b31b84a6045e8fa0de | /pyalgogem/deploy/_gemini_streamer_api.py | 86b20311489d7c6016488bc9babf6b069728a10a | [] | no_license | andrewre23/PyAlgoGem | 905689726554506d9b234d390093a1cdaba3be2a | e34483b39cd0bf179338ac8d2019da9bc053d8b6 | refs/heads/master | 2021-05-12T03:52:50.610888 | 2018-04-23T03:53:17 | 2018-04-23T03:53:17 | 117,629,476 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | #
# PyAlgoGem Project
# deploy/gemini_streamer_api
#
# functions to interact with Gemini API
#
# Modeld after pygem_socket class written by:
# Michael Schwed and Dr. Yves Hilpsch
#
# Andrew Edmonds - 2018
#
class GeminiStreamAPI(object):
"""
Wrapper class object for Retrieval of Price Data
For Cryptocurr... | [
"andrewre@umich.edu"
] | andrewre@umich.edu |
b9f1616a820bc4e85f94a7d69c9783eeb2bc158b | 5b63f277043dc8f558a12d2bcff80823a33060f8 | /src/test/tests.py | cec88569f9fd1cad362d95fc209d0ad403787429 | [
"Apache-2.0"
] | permissive | Dosclic98/PerProduct_AmazonPriceTracker | 0f170b010aaa8941418b18c9a3ffa83f5b4eecc1 | 3b6af36986cb2f039e0d7690d034a12dc520c922 | refs/heads/master | 2023-04-05T15:56:33.992102 | 2021-04-26T22:32:38 | 2021-04-26T22:32:38 | 352,189,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,735 | py | #!/usr/bin/python3
import unittest
from src.model.amazonItem import AmazonItem, AmazonItemEncoder
from src.comp.amazonScraper import AmazonScraper
import json
from src.comp.itemsRepository import ItemRepo
from src.comp.telegramSender import TeleBotSender, MessageBuilder
class UnitTesting(unittest.TestCase):
def ... | [
"davidesavarro98@gmail.com"
] | davidesavarro98@gmail.com |
4d786db07b4ed1e3ea301116b4fc2557c672df12 | d2fddb93082fcd9149280fc72a572f27a401e1a0 | /venv/Lib/site-packages/train/policy.py | 3eb716b41875bab9c932a29da5b60f2de9987f10 | [] | no_license | KaiJing1998/Classification | eb8dabed6ccb9765810e8109026e3ccd1140e62b | 35bb67bcdc15bc2ac2c42f7af6e474f10b753dbc | refs/heads/master | 2023-02-02T09:34:16.594655 | 2020-10-14T14:42:56 | 2020-10-14T14:42:56 | 304,038,165 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | import numpy as np
def greedy(values):
return np.argmax(values)
# See https://github.com/keras-rl/keras-rl/blob/master/rl/policy.py
def epsilon_greedy(values, epsilon):
if np.random.uniform() < epsilon:
return np.random.randint(0, len(values))
else:
return greedy(values)
| [
"66261593+KaiJing1998@users.noreply.github.com"
] | 66261593+KaiJing1998@users.noreply.github.com |
5cf313c1d88ab26ba90c9c1e34d8bd75cb637d55 | f1409d041e11e548068175e21ed40320cd25278e | /addons/SythilTech/sms_frame_birthday/models/res_partner.py | a80e7f6cb1d8878501e31aee6c149991afb69215 | [] | no_license | nguyenductamlhp/odoo10 | 5d496a1a8cd117160be3c9d9915c5b46e7ba71ff | b3151176831c1681844451a08c867ce24ee754ee | refs/heads/master | 2022-11-27T20:43:51.075916 | 2019-07-09T06:18:58 | 2019-07-09T06:18:58 | 191,334,332 | 0 | 1 | null | 2022-11-22T01:18:20 | 2019-06-11T09:05:41 | Python | UTF-8 | Python | false | false | 922 | py | # -*- coding: utf-8 -*-
import logging
_logger = logging.getLogger(__name__)
from openerp import api, fields, models
class ResPartnerSmsBirthday(models.Model):
_inherit = "res.partner"
birth_day = fields.Date(string="Birth Day")
@api.model
def send_birthday_sms(self):
_logger.error("bir... | [
"nguyenductamlhp@gmail.com"
] | nguyenductamlhp@gmail.com |
8b2d8db40906897cbd803093a7f9c7a64cf2110c | 6d634e120cbbd6807cd9c1027733f9cc267ea07f | /util.py | 7ea1fbab8bf56b010ab0657e59f967b1aafc51bb | [] | no_license | cbazaes-isw/movement-detection | c8b009b557d66589985c9bd9bc6e2727d524fdcb | 6294879f1132e07cd2d23834915dcf582c37e404 | refs/heads/master | 2020-03-21T09:42:42.036050 | 2018-09-30T19:16:27 | 2018-09-30T19:16:27 | 138,413,791 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | from PIL import Image
import io
import cv2
import numpy as np
def convertCvFrame2Bytes(cvFrame):
stream = convertCvFrame2Stream(cvFrame)
bin_img = stream.getvalue()
return bin_img
def convertCvFrame2Stream(cvFrame):
pil_img = Image.fromarray(cvFrame)
stream = io.BytesIO()
pil_img.save(stream... | [
"cbazaes.isw@gmail.com"
] | cbazaes.isw@gmail.com |
ea62e73cd857847802f58c9cd9bf021ccb69168a | 7fd7151f4d397ff3d9e469cc4e0cef0d128400b6 | /все вместе/freq.py | 56ea83e17bf9f8d88ae78acb51e5196b17503fb7 | [] | no_license | KristaYanb/crypto_methods_part_1 | bb8baa7cc15c80e3b141c6a96798230e3e70f2a2 | 33da146078e029b661a52ccab74addea6472f9b5 | refs/heads/master | 2023-08-27T23:26:21.952292 | 2021-10-14T16:57:10 | 2021-10-14T16:57:10 | 417,208,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,379 | py | from PyQt5 import QtCore, QtGui, QtWidgets
import matplotlib
import matplotlib.pyplot as plt
matplotlib.matplotlib_fname()
matplotlib.get_configdir()
matplotlib.get_data_path()
'C:\\Users\\yanbe\\AppData\\Local\\Temp\\_MEI91762\\matplotlib\\mpl-data'
def make_prompt(pattern):
prompt = {}
for key in pattern:
... | [
"yanbeckova.kristina@yandex.ru"
] | yanbeckova.kristina@yandex.ru |
e3c98e936946924d57a64be20bd0d6c76705512b | e55480007fde8acea46fe8eeb3ee7193c25ba113 | /src/leetcode/1-99/09.py | 4b14b2dee65b6c8465f1912a9386dbbec7fe586c | [] | no_license | Annihilation7/Ds-and-Al | 80301bf543ec2eb4b3a9810f5fc25b0386847fd3 | a0bc5f5ef4a92c0e7a736dcff77df61d46b57409 | refs/heads/master | 2020-09-24T05:04:41.250051 | 2020-02-15T10:31:10 | 2020-02-15T10:31:10 | 225,669,366 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | # -*- coding: utf-8 -*-
# Email: 763366463@qq.com
# Created: 2019-12-09 12:11am
'''
判断一个整数是否是回文数。回文数是指正序(从左向右)和倒序(从右向左)读都是一样的整数。
示例 1:
输入: 121
输出: true
示例 2:
输入: -121
输出: false
解释: 从左向右读, 为 -121 。 从右向左读, 为 121- 。因此它不是一个回文数。
示例 3:
输入: 10
输出: false
解释: 从右向左读, 为 01 。因此它不是一个回文数。
'''
class Solution:
def isPalindr... | [
"763366463@qq.com"
] | 763366463@qq.com |
b44d80754d822f2f7ee464c66eb431eabfc74639 | debc2d3f82a5279863e76a2e3a6b56535ac26984 | /core_views/migrations/0001_initial.py | c1bfd6bf283eed961b6a0f434a77860e16a874c9 | [] | no_license | arundas1903/AssignmentApp | de42e287a07033e8825f001e4aa0e91919734ef3 | b1acd01cb4bc5b576f2e3b659f96c8e846204a85 | refs/heads/master | 2022-04-10T09:38:12.186975 | 2020-03-26T13:57:40 | 2020-03-26T13:57:40 | 250,265,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,062 | py | # Generated by Django 2.2.11 on 2020-03-25 17:41
import django.contrib.auth.models
import django.contrib.auth.validators
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
... | [
"arundas.ramadasan@fullcontact.com"
] | arundas.ramadasan@fullcontact.com |
78fa748d6f586018bbb7b11084a4a9ddb5ec4409 | 5751c40436a2d016230110e1a7243fcff6389e67 | /particle.py | f26d7a975f555fbf9b1831fe24d0f4d5e83cb24a | [] | no_license | graysonpike/DynamicParticleDemo | a5864e54afe55b448ebc39ff829160298c7aee4e | 7321a614b73765d029a1473414e0763aaf49b8f9 | refs/heads/master | 2021-05-28T05:29:33.788369 | 2014-09-28T16:42:12 | 2014-09-28T16:42:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | import pygame
import globals
import random
class Particle():
def __init__(self, x, y, lifespan=50, size=None):
if(size == None): size = random.randrange(4, 8, 1)
self.collides = False
self.x = x
self.y = y
self.x_v = random.randrange(-10, 10, 1) / 10
self.y_v = random.randrange(-10, 10, 1) / 10
self.wi... | [
"graysonpike@gmail.com"
] | graysonpike@gmail.com |
f09f96a5778d35bc2ac8a578bba1a5f7837e2c5b | 597e6b9b9ac35a32d44d219980cf9c32bd87bff9 | /Oscar/Oscar.py | d27128b4e18cebb1e46e2c589a0603762885aca3 | [
"Apache-2.0"
] | permissive | netronome-support/BIFF | 90394d9e9bc9e71e18b2d5415a4c28146723a424 | ae1c7e2b7bd0601eab9630a076fc52e6148920f8 | refs/heads/master | 2020-03-23T10:20:56.154367 | 2018-07-18T13:38:34 | 2018-07-18T13:38:34 | 141,438,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,480 | py | ##############################################################################
# Copyright (c) 2016 Intel Corporation
#
# 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... | [
"root@LAPTOP-TMJ9A534.localdomain"
] | root@LAPTOP-TMJ9A534.localdomain |
5b66423e71498cd6180f23934fe7cc35d8fdb9e0 | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_resources_response.py | dacd35a56aafb9e80f1c69849e3d804d2346de25 | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,605 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
class ListResourcesResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
07c74df652063d66726e7b12690d21a0e9dbb158 | 069e41897a8073548c905102bb2de536f509cb2c | /136-Menulis File CSV Dengan Delimiter Khusus/Script.py | bbcede8bd482b3b9e7a7aa3eb38d5eec44d3eb63 | [
"MIT"
] | permissive | dikyindrah/Python-Basic-02 | ad6cea0fc76e98e4c084d145e1581072ccfae056 | 7b60391d348504eea8ebc36896857e3e92fda3f7 | refs/heads/main | 2023-08-22T05:19:48.560058 | 2021-10-29T14:36:06 | 2021-10-29T14:36:06 | 377,467,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | import csv
fields = ['no','nama','kontribusi']
records = [['1','guido van rossum','python'],
['2','tim barners-lee','world wide web'],
['3','linus torvalds','linux kernel']]
# # Menulis file csv dengan delimiter tanda pipa (|)
# with open('D:/Programming/web/Python/Python-Basic-02/136-Menulis Fi... | [
"dikyindrah@gmail.com"
] | dikyindrah@gmail.com |
40b13f59a9dceac3853a0df29913865ff63e7717 | 4dc85cb54e8e6ca2ad61ad49733fe6d1e57137db | /searching/binary_search.py | 9c17025aebaf82c1ae611409ad24f828964a4049 | [] | no_license | rhlmhrtr/algorithms | b959aa6a14edd9788e5be1598e8ac12808c3d525 | d61b56ed1b8191706bf31f1689d7fe0eb78c7e13 | refs/heads/master | 2021-01-10T05:07:51.146807 | 2016-02-04T18:37:18 | 2016-02-04T18:37:18 | 51,029,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | # Hello World program in Python
"""def binary_search(list,n):
low=0
upper=len(list)
while(low<=upper):
mid=(low+upper)/2
if list[mid]==n:
return "Element %d found at position %d" %(n,mid+1)
if list[mid]<n:
low=mid+1
if list[mid]>n:
upper=m... | [
"rahul.mehrotra@nokia.com"
] | rahul.mehrotra@nokia.com |
76c5bf688fdafd48a03031a3724ab8ae4177e90d | 99603fa66b338a2faf2a3a17ef48048cec29c489 | /.c9/metadata/environment/accounts/tests.py | ad8015f42daec629337a46ce8cd3bbe34faf1912 | [] | no_license | tidders2000/sharemypics | e1688841a45f640fb34aa29e5996ff6817cf4ea9 | bde1b6f4b3670b6ecab5f4934f3d889589d2a374 | refs/heads/master | 2022-11-25T13:44:08.331093 | 2020-01-10T12:04:43 | 2020-01-10T12:04:43 | 205,735,665 | 0 | 1 | null | 2022-11-22T03:35:56 | 2019-09-01T21:41:39 | Python | UTF-8 | Python | false | false | 424 | py | {"filter":false,"title":"tests.py","tooltip":"/accounts/tests.py","undoManager":{"mark":-1,"position":-1,"stack":[]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":35,"column":34},"end":{"row":35,"column":34},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView... | [
"simon.tid@btinternet.com"
] | simon.tid@btinternet.com |
52839c2c36b7a710bbd7acbe852ae47abbb90a8b | 4972cad4eee18e031935bb0e1474ee695ca93b22 | /products/forms.py | c7d7c86301bc0181f94518405f8c8765fdddf490 | [] | no_license | Code-Institute-Submissions/savasana_yoga | ac0a78b53e971b81fceefd1100b29ab8e7a5feec | 7455dd4bf0dccf8bb38c12042b9822248ce60bb0 | refs/heads/main | 2023-07-30T17:23:40.878881 | 2021-10-09T08:58:20 | 2021-10-09T08:58:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | from django import forms
from .widgets import CustomClearableFileInput
from .models import Product, Category
class ProductForm(forms.ModelForm):
class Meta:
model = Product
fields = '__all__'
image = forms.ImageField(
label='Image', required=False, widget=CustomClearableFileInput
... | [
"tomaslcripps@gmail.com"
] | tomaslcripps@gmail.com |
81e2d24afd3e7a096c4f30e57f208ba0bbbffdd2 | 553d3224776bb2ae40819ee1c0333187b4f4dd0d | /tdoa/test4.py | f32cccb02bc89803fe30169d3327f55b0c1ac237 | [
"MIT"
] | permissive | ProjektseminarAUT-Gruppe10/Sound-Source-Localization-for-Outdoor-Far-distance-Applications | 4a79dbd37fcedf0a396250f3f7c1915ca532e16f | 07a0f2c5391ee85fe114a1178bab5d7baca52662 | refs/heads/master | 2022-04-12T07:07:44.566793 | 2020-01-29T17:53:58 | 2020-01-29T17:53:58 | 236,809,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 960 | py | import visualizer
import array_default
array_params = array_default.ArrayDefault()
stamps = [0]
taus = [[[0, 17, 60, 104, 126, 110, 63, 19], [-17, 0, 43, 87, 109, 127, 45, 1], [-60, -43, 0, 44, 83, 122, 2, -152], [-104, -87, -44, 0, -12, 113, 74, 126], [-126, -109, -83, 12, 0, 33, 22, 115], [-110, -127, -122, -113, -3... | [
"frederikalexander.bark@stud.tu-darmstadt.de"
] | frederikalexander.bark@stud.tu-darmstadt.de |
8a846826da820f2723ad19792fdbd58476c74dce | 7f55457a383e4f096705690dda146a36bce8019b | /src/kitchentable/split_body.py | 5d30454d2905acd4135b9a9d69d92d708aa21599 | [] | no_license | adas-7/core-stories | 98d7feb190b84f68f354d6d6e679459b95ff7d87 | 322abef6356012fbd54f5bfc835be00c2d9fa44e | refs/heads/master | 2023-03-04T15:10:29.392187 | 2021-02-19T04:44:05 | 2021-02-19T04:44:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,430 | py | # this script takes the body tex as the argument
# and split it into a figures block and non figures block
#
# USAGE
# python split_body.py foo.tex
#
# foo.tex -> foo.nofigures.tex foo.figures.tex foo.tables.tex
from sys import argv
if __name__ == "__main__":
my_file = argv[1]
file_split = my_file.split(".")
... | [
"areagan@massmutual.com"
] | areagan@massmutual.com |
2012eced814df3d8206f0ba572928ba3e5f0703d | 93d0e26da03a4863d6318f2853d1ffa208194f58 | /kitkat.py | 2189b5d4b1f261871a5025759407cedae5d64cd7 | [] | no_license | heysubolick/dart | cee28df543734cf32f4cdc62c22024c49ca3aab0 | ef965d2fba4cfcd5751c860dad0d8b9084cc899a | refs/heads/main | 2023-01-22T19:07:01.812541 | 2020-11-17T17:14:40 | 2020-11-17T17:14:40 | 313,776,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | from tkinter import *
class GUI():
def __init__(self):
self.tkhandler = Tk()
self.tkhandler.geometry("280x500")
self.tkhandler.title("고양이 후원하기.exe")
self.label_title = Label(self.tkhandler, text="킷캣 / 1살 / 여아")
# 배치 - 한 줄씩 쌓인다. : pack()
self.label_title.pack()
... | [
"heysubolick@gmail.com"
] | heysubolick@gmail.com |
084d13dc7b3e04a3d401a7161ac42096980cb2e7 | 82646fb7fe40db6dcdf238548128f7b633de94c0 | /workspace/Python/src/1.3.py | 867ece65d62eb0ff883706391e45c446b2a9eda4 | [] | no_license | jtahstu/iCode | a7873618fe98e502c1e0e2fd0769d71b3adac756 | 42d0899945dbc1bab98092d21a1d946137a1795e | refs/heads/master | 2021-01-10T22:55:47.677615 | 2016-10-23T12:42:38 | 2016-10-23T12:42:38 | 70,316,051 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | print '1.3.py'
execfile('1.1.py')
execfile('1.2.py') | [
"root@jtahstu.com"
] | root@jtahstu.com |
6466a3b1a2519e3443cf73230158e64530493719 | 139b81b283921a3aada833316c6f9d4cf3bf7743 | /LinkedLists/CircularLinkedList.py | b6733be786646e0687f40ca691212d1bb6853436 | [
"MIT"
] | permissive | jvishnuvardhan/Python | de10f8e7132dc2d261a1d90073ec5c5e06e5b24e | 13ef152c982319beb41b026134f0e74ce530e650 | refs/heads/master | 2021-11-11T03:13:29.030596 | 2021-10-29T21:59:44 | 2021-10-29T21:59:44 | 213,640,603 | 1 | 0 | MIT | 2019-10-08T12:48:44 | 2019-10-08T12:48:43 | null | UTF-8 | Python | false | false | 2,416 | py | class Node(object):
def __init__ (self, d, n = None):
self.data = d
self.next_node = n
def get_next (self):
return self.next_node
def set_next (self, n):
self.next_node = n
def get_data (self):
return self.data
def set_data (self, d):
self.data = d
def to_string (self):
... | [
"noreply@github.com"
] | noreply@github.com |
64be974da5067480a0088094c5764bb85d240db1 | 3b9b4049a8e7d38b49e07bb752780b2f1d792851 | /src/ui/webui/resources/PRESUBMIT.py | 2ac87faf2b09787c19200dad102e395811d7661e | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | webosce/chromium53 | f8e745e91363586aee9620c609aacf15b3261540 | 9171447efcf0bb393d41d1dc877c7c13c46d8e38 | refs/heads/webosce | 2020-03-26T23:08:14.416858 | 2018-08-23T08:35:17 | 2018-09-20T14:25:18 | 145,513,343 | 0 | 2 | Apache-2.0 | 2019-08-21T22:44:55 | 2018-08-21T05:52:31 | null | UTF-8 | Python | false | false | 1,001 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import re
def PostUploadHook(cl, change, output_api):
rietveld_obj = cl.RpcServer()
description = rietveld_obj.get_description(cl.issue)
existing_bo... | [
"changhyeok.bae@lge.com"
] | changhyeok.bae@lge.com |
1ecae13285e6b4e11101cf69d5d4f92b64b71913 | 8fd55e7a0f8764b3fe894d927c39173507f03855 | /sms/urls.py | f75a34a656dee837302b3de1b925fe0d38081e04 | [] | no_license | bogdal/django-sms | 2ed97cbafd7c2a9b4b1521c766e89b2514b63e75 | fa0ed8369228b2b3160e8b577b6377587ce1fe5a | refs/heads/master | 2020-04-05T08:22:29.864245 | 2013-04-24T09:28:34 | 2013-04-24T09:28:34 | 3,496,819 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | from django.conf.urls import patterns, url
from sms.decorators import ip_restrictions
from sms.views import callback_received_sms, callback_delivery_report
urlpatterns = patterns('',
url(r'^callback/received-sms/$', ip_restrictions(callback_received_sms), name='callback-received-sms'),
url(r'^callback/delivery... | [
"adam@bogdal.pl"
] | adam@bogdal.pl |
11c59461b5f8cb73f43f4e284dffcb3d056f5f6b | b5638b65f32acd4c3bb23213f3c709eaac07dbc0 | /Ejercicio61.py | 703dccacf57b7ac12e874e9262dd472f23207d2d | [] | no_license | JesusGarcia143/progavanzada | b39458040855f1dd288c8a5629878f77003565c2 | da485b7bf6a05b90b32869fa929014cf2a6d2451 | refs/heads/master | 2020-07-27T15:33:48.393106 | 2019-12-11T05:59:13 | 2019-12-11T05:59:13 | 209,142,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 16 14:40:47 2019
@author: Jesús García
"""
##Ejecicio: '61'
##En este ejercicio usted creara un programa que calcule el promedio de una coleccion de
##valores insertados por el usuario.Si el usuario introduce el valor 0 el programa debe
##de dejar de pedir val... | [
"noreply@github.com"
] | noreply@github.com |
a0213024b7bb0fd539b860d7562cd4b07e857a76 | 5553b79f835fcb180185777f5d0f921e1431a386 | /scaleiopy/api/scaleio/mapping/sio_generic_object.py | 799fe9f3c8913a978c8a60dba2a6f38009b7b6cf | [
"Apache-2.0"
] | permissive | keerthanabs1/scaleio-py | 81a142019799d4523f27ee27d6001bdd827f0299 | d043a0137cb925987fd5c895a3210968ce1d9028 | refs/heads/master | 2020-12-11T07:44:12.703684 | 2015-09-29T21:27:55 | 2015-09-29T21:27:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | import json
class SIO_Generic_Object(object):
@classmethod
def get_class_name(cls):
"""
A helper method that returns the name of the class. Used by __str__ below
"""
return cls.__name__
def __str__(self):
"""
A convinience method to pretty print the content... | [
"magnus@karabas.nu"
] | magnus@karabas.nu |
10dc9e34d8cf8bd6fbfb215178ff20d163261315 | a146b8ed3d3bdd2296d0cbe5db0345a35bc1c53e | /ISTE_HOME/settings.py | 7948d5d0678f01e5de8a24aa62fc9f9c0b1d291c | [] | no_license | prashantsinghrajput8759/convert-django | f16cf969857d76f0e2f6867605717dbc216700a9 | 16bd86a05ea61c27c254682ec8cb41e2a10f732a | refs/heads/master | 2023-03-30T06:01:52.943433 | 2021-04-07T11:37:01 | 2021-04-07T11:37:01 | 333,765,719 | 0 | 3 | null | 2021-04-07T11:37:02 | 2021-01-28T13:22:54 | PHP | UTF-8 | Python | false | false | 3,125 | py | """
Django settings for ISTE_HOME project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"singhprashant8759@gmail.com"
] | singhprashant8759@gmail.com |
7ca3e64a5312a27d4dec7798576598ccebac2ea9 | a3e442b137a24a2a67a61226af4272f2bd6fc89e | /to_excel.py | ac44227f42504ca86da4df049ad6953ff8624a34 | [] | no_license | hierynomus/survio-to-excel | 7c6feb382131df76e8d88b0008a06daaa9e53974 | 77fd84f72674c56edf1744a5a3ea82aaa4a0d837 | refs/heads/master | 2023-05-26T06:27:54.841553 | 2016-10-06T07:20:48 | 2016-10-06T07:20:48 | 70,131,929 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,216 | py | import json
import xlsxwriter
from collections import defaultdict
def is_int(v):
try:
int(v)
except:
return False
return True
def parse_respondents_to_excel(json_data, output_file):
respondent_dict = defaultdict(list)
nr_respondents = len(json_data)
if nr_respondents == 0:
... | [
"jeroen@hierynomus.com"
] | jeroen@hierynomus.com |
a941a491e4d0a708c173a78c324d020376c894ea | bf1a44cb4836a60800d73c1f9e5fe0e25328cb43 | /web2py/gluon/globals.py | 43a28e45bc30e8c68bc8e39cdb0409b9583a43f0 | [
"LGPL-3.0-only",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-warranty-disclaimer",
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-2.0-only",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | aduckworth1969/smc | 22874e8f8c80fb727fa3aa8f12b95c4351097de1 | b1771d9ed68f0e35f46271aab5b1e1fab363e3d9 | refs/heads/master | 2023-04-05T14:23:07.486512 | 2021-04-07T16:15:45 | 2021-04-07T16:15:45 | 311,796,699 | 0 | 0 | MIT | 2021-04-07T16:15:46 | 2020-11-10T22:09:59 | Python | UTF-8 | Python | false | false | 51,798 | py | # -*- coding: utf-8 -*-
"""
| This file is part of the web2py Web Framework
| Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>
| License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
Contains the classes for the global used variables:
- Request
- Response
- Session
"""
from gluon._compat import pickle, ... | [
"ray@cmagic.biz"
] | ray@cmagic.biz |
b6b8eb8f253d6d91347f202727271db4e4d6d442 | e805c7484e45512cf5be84a22e1e08cb90f139de | /src/donor_zip_compute.py | c34f199149ee2e7124a887379f642794a448db04 | [] | no_license | varshapull/Insight_code_challenge | f9464268ab340c4474d0c18ef9b54e2e60088e01 | 1822d909be7f1210b365a7ce29114331bfe096dd | refs/heads/master | 2021-07-20T08:50:54.019204 | 2017-10-31T04:56:45 | 2017-10-31T04:56:45 | 108,946,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,235 | py |
'''
This file contains Helper functions with compute median and total transaction amount
donated to recipient per zipcode
The rows from the file are streamed sequentially.
'''
#Import required libraries
import time
import re
import csv
import sys
from datetime import datetime
import operator
#Import helper funct... | [
"varshapull28@gmail.com"
] | varshapull28@gmail.com |
09e8055fcdcf2ad2dec55459c099ab811ed32068 | fffabb9f3025e89f7d1e71e2bea1e1f93ca95c98 | /gevent_-master/monkey_test.py | ca9512a34827effed846c0722e796fa03555f070 | [] | no_license | kagxin/recipe | 2a880b77e56bae25e9793b13a8ebdeeea19b716c | 70af9c949b9e4b476585b2b650fba416a9d3ebb2 | refs/heads/master | 2021-09-11T18:58:46.295928 | 2018-04-11T03:11:05 | 2018-04-11T03:11:05 | 86,281,134 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | import gevent.monkey
gevent.monkey.patch_socket()
import gevent
import urllib
import json
def fetch(pid):
pass
fetch()
| [
"123@163.com"
] | 123@163.com |
26724562ddaf5b84d3514df2553cf578c11097ff | e262e64415335060868e9f7f73ab8701e3be2f7b | /.history/pytest_test_20201123174255.py | 71d84ac3ea86d52edcf7b63ed99b1d05e2cfeaed | [] | no_license | Allison001/developer_test | 6e211f1e2bd4287ee26fd2b33baf1c6a8d80fc63 | b8e04b4b248b0c10a35e93128a5323165990052c | refs/heads/master | 2023-06-18T08:46:40.202383 | 2021-07-23T03:31:54 | 2021-07-23T03:31:54 | 322,807,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | import pytest
class Test_A:
@pytest.mark.parametrize('a,b',[(10,20),(5,5)])
def test_data1(self,a,b):
print(a + b)
def test_data2(self):
a = 5
b = 5
print(a+b)
if __name__ == '__main__':
pytest.main
| [
"zhangyingxbba@gmail.com"
] | zhangyingxbba@gmail.com |
8ada0608c934b48b2abbcdeb5aa1350a01506751 | 0a004fc3fe8e36fd7ce0ed2cc7e8140982315e03 | /supervised_learning/0x0F-word_embeddings/0-bag_of_words.py | 58f174f5ee6192922d3b2ccf12ba7882281f6654 | [] | no_license | pafuentess/holbertonschool-machine_learning | 266ed4f05e106e194cdafe39544e48904f6538f4 | 3bffd1391b3fc790f0137d0afbe90eb8e2f7d713 | refs/heads/master | 2023-03-26T15:12:14.721409 | 2021-03-20T20:28:15 | 2021-03-20T20:28:15 | 279,388,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | #!/usr/bin/env python3
""" doc """
from sklearn.feature_extraction.text import CountVectorizer
def bag_of_words(sentences, vocab=None):
""" doc """
if vocab is None:
vectorizer = CountVectorizer()
X = vectorizer.fit_transform(sentences)
vocab = vectorizer.get_feature_names()
else:... | [
"pafuentess@unal.edu.co"
] | pafuentess@unal.edu.co |
706cc590312e4e277481a6df99b7cb0b43db1852 | b435e5dbfdccd3348fe47e4f192356bcb0c27975 | /pyportfolio/utils/testing.py | ecdf861731bcc6625274f5609877167544829e8c | [
"BSD-3-Clause"
] | permissive | davidastephens/pyportfolio | 615e8a8841ee77e84c9bf21dd7007c2049b82718 | 8fe3a2f6e0319d0c233d59ca1c4cd321d5ee59f8 | refs/heads/master | 2021-01-20T17:34:38.334069 | 2015-06-28T23:14:51 | 2015-06-28T23:14:51 | 36,053,244 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | import inspect
import os
def get_data_path(f=''):
"""Return the path of a data file, these are relative to the current test
directory.
"""
# get our callers file
_, filename, _, _, _, _ = inspect.getouterframes(inspect.currentframe())[1]
base_dir = os.path.abspath(os.path.dirname(filename))
... | [
"dstephens99@gmail.com"
] | dstephens99@gmail.com |
b2b72af5d662ec2cf1cd5c51918723e1513fc6d5 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_11_01/aio/operations/_network_interface_ip_configurations_operations.py | 0441579f380976233a87e4c8a79c2311179a4ecd | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 8,928 | py | # 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) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
d132455b70c174d99968af7351962cf9ba6070a0 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/30cae1c356d7341ef3c3a049b435b2da9bbd5588-<main>-bug.py | 1207a332ae96f47a64d09b9b87303bc66e73535b | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,799 | py |
def main():
module = AnsibleModule(argument_spec=dict(script=dict(required=True, type='str'), url=dict(required=False, type='str', default='http://localhost:8080'), validate_certs=dict(required=False, type='bool', default=True), user=dict(required=False, no_log=True, type='str', default=None), password=dict(requi... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
a4fcd26b11c57ccd5a1d7c4c3cc0d9e5e1be7e93 | ceaef262c00c6dcb1278b7524267a692f1491ba9 | /learn_alphabet/Presenter.py | 2de1256ec3f59c3c806e7c10eeffe396e37e557f | [] | no_license | mor1ins/Vibrodisplay | 2a293558015d0bcf36510f75a19417672506eef4 | ba8b5900b14fb5b8c0439e7858413551e19bcc0a | refs/heads/master | 2020-09-29T07:37:00.228139 | 2019-12-16T19:44:46 | 2019-12-16T19:44:46 | 226,988,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | from PyQt5.QtCore import QTimer
from PyQt5.QtCore import Qt
from Model import Vector
class Presenter(object):
def __init__(self, demo_view, demo_model):
self.model = demo_model
self.view = demo_view
self.view.keySpacePressed.connect(self.start_game)
self.view.keyPressed.connect(se... | [
"kuliev.ed@gmail.com"
] | kuliev.ed@gmail.com |
afb957284892edf8fcd63b07feef00c82584970b | 4a7ca643f2bb681a14105fdfba2b696c14f8fb19 | /alphamind/tests/analysis/test_quantilieanalysis.py | fd31eaf64d67c0a4e71bef2c786c696b2e91e3ae | [
"MIT"
] | permissive | iLampard/alpha-mind | 84bb490eaa515a147b2a31deff305b2e6423c76f | c99ba7b2b082d7bf07263fde0cca57b1a8bcb7de | refs/heads/master | 2020-03-22T02:32:28.489547 | 2018-08-22T03:01:26 | 2018-08-22T03:01:26 | 126,668,894 | 0 | 0 | MIT | 2018-06-26T03:37:20 | 2018-03-25T05:53:51 | Python | UTF-8 | Python | false | false | 3,087 | py | # -*- coding: utf-8 -*-
"""
Created on 2017-8-16
@author: cheng.li
"""
import unittest
import numpy as np
import pandas as pd
from alphamind.analysis.quantileanalysis import er_quantile_analysis
from alphamind.analysis.quantileanalysis import quantile_analysis
from alphamind.data.processing import factor_processing
f... | [
"scrappedprince.li@gmail.com"
] | scrappedprince.li@gmail.com |
c90939194ffd9a0ae033eda433c4412b90e34be4 | 2bcc6c45a28251dcde72bb8b003b5592350dc208 | /exams/models.py | 5909bafe70117024d9487d86d13b9a60bbab0dba | [] | no_license | amanjhurani/university_dost | 153d1a245df4338be60df3e9980e0238408e40ad | 41f6119c88d36f0153fbf1a5be1913e2c45d9751 | refs/heads/master | 2021-10-08T22:23:42.252577 | 2018-12-18T11:22:10 | 2018-12-18T11:22:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,291 | py | from django.urls import reverse
from config.settings.base import AUTH_USER_MODEL
from django.db import models
from universities.models import Subject
from config.utils import random_string_generator
from markdownx.models import MarkdownxField
class Exam(models.Model):
# Choices
MONTH_CHOICES = (
('ja... | [
"dhaval.savalia6@gmail.com"
] | dhaval.savalia6@gmail.com |
81031853fd92e573bbec0a772457ebba3f43bb7a | e229456b9effa99e906d5cdfe08200ca5e1920a4 | /lib/modules/exfiltration/invoke-exfiltration.py | b64b4fe4bcca83a42b5941dd3559df04ae7ff47c | [
"BSD-3-Clause"
] | permissive | nerbix/Empire | cff3620f589d38a4967737458b7f4b56acabd64c | f45d5f35ff459df22ef0bd55236b7ffd9cef6f45 | refs/heads/master | 2020-05-22T09:27:59.693741 | 2017-03-08T18:18:13 | 2017-03-08T18:18:13 | 84,344,747 | 0 | 0 | null | 2017-03-08T16:54:42 | 2017-03-08T16:54:42 | null | UTF-8 | Python | false | false | 4,857 | py | from lib.common import helpers
class Module:
def __init__(self, mainMenu, params=[]):
# metadata info about the module, not modified during runtime
self.info = {
# name for the module that will appear in module menus
'Name': 'Invoke-Exfiltration',
# list of on... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
a3a315dbdd5aa52328ac8e7823d5407b5984d7b2 | eeafb1890e41219cf677af5f70612d7c19ddf50f | /sum_or_product.py | 063a96020c719fe19d786d64936f726a8a3ccfb1 | [] | no_license | lradebe/simple_programming_problems | 0c4299308da62b667b90c6d2680ff9858e07a85c | ee1f1a8d612ca425bfe61c48146f559b6f56835b | refs/heads/main | 2023-09-02T18:49:19.625649 | 2021-11-16T19:37:25 | 2021-11-16T19:37:25 | 406,937,386 | 0 | 0 | null | 2021-10-12T22:03:45 | 2021-09-15T22:07:41 | Python | UTF-8 | Python | false | false | 542 | py | def sum_or_product():
SUM = 0
PRODUCT = 1
number = int(input('Enter number: '))
chosen_option = input('SUM of given number or PRODUCT? ')
if chosen_option == 'SUM' or chosen_option == 'sum' or chosen_option == 'Sum':
for integer in range(1, number+1):
SUM += integer
pri... | [
"lwaziradebe100@gmail.com"
] | lwaziradebe100@gmail.com |
d3316b16ede8175a3a4f3d2c07a34e64e48023a3 | c42401b88c1cd0f2af4c097808a72cf415277570 | /AlexNetDropoutNew.py | 3f06d4c49ef4e73978297df32e9f477d5d66ba0f | [] | no_license | davidtadelberg/DeepLearningFinalProject | 7def6baa4de3663c40990bd4fa90293db2e4badc | aabae70eed33ee0480ffdb08452eae5e2e094c77 | refs/heads/master | 2020-03-08T17:46:08.903631 | 2018-04-27T21:30:39 | 2018-04-27T21:30:39 | 128,277,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,901 | py | ################################################################################
# Taken from Michael Guerzhoy and Davi Frossard, 2016
# AlexNet implementation in TensorFlow, with weights
# For details see:
# http://www.cs.toronto.edu/~guerzhoy/tf_alexnet/
#
# With code from https://github.com/ethereon/caffe-tensorflo... | [
"noreply@github.com"
] | noreply@github.com |
744addcc0ca7c7242ab5853e8bfc422a7c344bad | 5a2fa310e27a6753dc025ee426fc84c53fd868e1 | /Sending a Symbol transaction using Python.py | f8b11631cbe5ce662d9f185fbb73eed5626ed998 | [] | no_license | klimgeran/Python-Symbol | 5b0541c29d13cdf5c3d84b36fb8e77de8529fb5a | 72b019db615bf6f2fd0af6c39b89a3d148ae2487 | refs/heads/main | 2023-07-07T20:09:56.301033 | 2021-08-19T16:06:55 | 2021-08-19T16:06:55 | 397,997,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,918 | py | # Python
import sha3
import datetime
import json
import http.client
from binascii import unhexlify
from binascii import hexlify
from symbolchain.core.CryptoTypes import PrivateKey
from symbolchain.core.sym.KeyPair import KeyPair
from symbolchain.core.facade.SymFacade import SymFacade
from symbolchain.core.sym.MerkleHa... | [
"noreply@github.com"
] | noreply@github.com |
7b8d57c5adc9c43437a80da79759ea3f87e2080c | 5e5f2691ad5b01f3d3f0433aea2cdd6d17e5581c | /stepin/script.py | 601d2064dc09ffb8f48e7908e12941791050bf20 | [] | no_license | lvl80/bank-marketing-boosted | 7d17fd8a02a74a0f4e7530f81327e3dc857601c5 | a4a81ddbc25dce2a15193404091bb577611eb27a | refs/heads/master | 2020-03-27T10:22:02.467484 | 2018-08-26T19:46:26 | 2018-08-26T19:46:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,353 | py | import sys
import os
import logging.config
import argparse
import codecs
from stepin.file_utils import file2str
from stepin.log_utils import error_exc
__scriptPath = os.path.abspath(os.path.dirname(sys.argv[0]))
def spath(*pp):
return os.path.join(__scriptPath, *pp)
def ensured_dir(path):
dp = os.path.dir... | [
"dan.gartman@hotmail.com"
] | dan.gartman@hotmail.com |
fd642025117c7bf558857ee67a8ba489a67f97f8 | 1ab7b3f2aa63de8488ce7c466a67d367771aa1f2 | /Ricardo_OS/Python_backend/venv/lib/python3.8/site-packages/gevent/_socket2.py | 537676c22624f54f5cdf951c1f488cd19b22b941 | [
"MIT"
] | permissive | icl-rocketry/Avionics | 9d39aeb11aba11115826fd73357b415026a7adad | 95b7a061eabd6f2b607fba79e007186030f02720 | refs/heads/master | 2022-07-30T07:54:10.642930 | 2022-07-10T12:19:10 | 2022-07-10T12:19:10 | 216,184,670 | 9 | 1 | MIT | 2022-06-27T10:17:06 | 2019-10-19T09:57:07 | C++ | UTF-8 | Python | false | false | 11,598 | py | # Copyright (c) 2009-2014 Denis Bilenko and gevent contributors. See LICENSE for details.
"""
Python 2 socket module.
"""
from __future__ import absolute_import
from __future__ import print_function
# Our import magic sadly makes this warning useless
# pylint: disable=undefined-variable
import sys
from gevent import ... | [
"kd619@ic.ac.uk"
] | kd619@ic.ac.uk |
e23182c952b026b3073f17d87b07c6f0b5a98c59 | e3ffd1f17819ab8a7b95b63f4a30cbbe85d7c44d | /week_4/contacts_short_41.py | 6a866c20b264e1243963c70d3d82ae7fb3e9efe3 | [] | no_license | jamesoneill54/programming_2 | 77d105f0eb3be7c1af3fe6ca89cf291aca4e0c95 | 8c8d7e4551894b773f52ee1e4785fe324b974ac9 | refs/heads/master | 2021-01-22T04:18:22.654154 | 2017-05-25T23:46:31 | 2017-05-25T23:46:31 | 92,451,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | import sys
with open(sys.argv[1], 'r') as f:
contacts = {}
for line in f:
[name, phone] = line.strip().split()
contacts[name] = phone
for line in sys.stdin:
if line.strip() in contacts:
print('Name:', line.strip())
print('Phone:', contacts[line.strip()])
else:
print('Name:',... | [
"noreply@github.com"
] | noreply@github.com |
a8b587769f572f0e5f80a0878307423b27a05b90 | 28aed3120411fd7558fc08b47274f5ced5d5069c | /UIAutomation/tests/Utils/test_envsettingreader.py | c9533f87b7fe7e555380cf537766a0f96e5fc602 | [
"MIT",
"Apache-2.0"
] | permissive | SirCYong/long_long_ago | 8e181310267836774b50824e873adb7959f80080 | 6dfe9a9eb9d0f25a55bccd22b66878bde1a2fd6b | refs/heads/master | 2020-03-16T02:58:18.161981 | 2018-05-07T15:17:54 | 2018-05-07T15:17:54 | 132,477,192 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | import unittest
from nose.tools import assert_equal
from UIAutomation.Utils import get_setting_configuration, get_env_script_runs_on
class TestEnvSettingReader(unittest.TestCase):
def test_get_setting_configuration(self):
assert_equal('Android', get_setting_configuration('android', 'platformName'))
... | [
"649803977@qq.com"
] | 649803977@qq.com |
2dc6644062ade1c5a0af72ef48256b7a5a62c324 | 5d0095a37aab14995017a2c1a825f8c63ad0259a | /Test.py | 135634090618913b6976331524f5e7dcdf74178a | [] | no_license | HSJ-89/PythonScript | 734d102b0290da6b6a9aebf0961af53a84c8b5e0 | c8994d47f84ce567b67c7191e563a6c0e4855a62 | refs/heads/main | 2023-07-27T01:06:32.244812 | 2021-09-01T09:31:54 | 2021-09-01T09:31:54 | 401,632,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | from xml.etree import cElementTree as ET
xmlstr = """
<h>
<page>
<title>Chapter 1</title>
<content>Welcome to Chapter 1</content>
</page>
</h>
"""
root = ET.fromstring(xmlstr)
for page in list(root):
title = page.find('title').text
content = page.find('content').text
print('title: %s; co... | [
"harsha.sj89@gmail.com"
] | harsha.sj89@gmail.com |
d26d9233afb7a28b73ab9525cc2b3daff37e0872 | 0db0acd433d48b4be7b9d5f5fc8925e6c3f44afa | /metaworld/policies/sawyer_coffee_button_v1_policy.py | be465c26496ea1fd2b4f10bde62a6c71712d196a | [
"MIT"
] | permissive | bernwang/metaworld | 95db1f59601fcd5b1fae2c5ada027b8cd45a2b95 | 5b5119a42aef4e9b3b54a843f8ead03529685bcc | refs/heads/master | 2022-11-10T19:49:33.799973 | 2020-07-07T03:34:32 | 2020-07-07T03:34:32 | 277,699,298 | 0 | 0 | MIT | 2020-07-07T02:43:10 | 2020-07-07T02:43:09 | null | UTF-8 | Python | false | false | 982 | py | import numpy as np
from metaworld.policies.action import Action
from metaworld.policies.policy import Policy, assert_fully_parsed, move
class SawyerCoffeeButtonV1Policy(Policy):
@staticmethod
@assert_fully_parsed
def _parse_obs(obs):
return {
'hand_xyz': obs[:3],
'mug_xyz... | [
"noreply@github.com"
] | noreply@github.com |
30e036da1644eb5fa3fbcdbdf92476a5bda2a487 | b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1 | /tensorflow/tools/compatibility/all_renames_v2.py | 297539c1e7d028c31244a3e2161e48ceaf3be0a9 | [
"Apache-2.0"
] | permissive | uve/tensorflow | e48cb29f39ed24ee27e81afd1687960682e1fbef | e08079463bf43e5963acc41da1f57e95603f8080 | refs/heads/master | 2020-11-29T11:30:40.391232 | 2020-01-11T13:43:10 | 2020-01-11T13:43:10 | 230,088,347 | 0 | 0 | Apache-2.0 | 2019-12-25T10:49:15 | 2019-12-25T10:49:14 | null | UTF-8 | Python | false | false | 25,028 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"v-grniki@microsoft.com"
] | v-grniki@microsoft.com |
aeb7dd5385492bd71bf96a2483a619ca24d0b0e3 | 434eccb7bb4d2e85038353548ca75f9e5c186a5c | /application.py | 8ad158711bbed9a784d7f13b4a87ab1317b81f3e | [
"MIT"
] | permissive | eddielee6/eyeDoor-Server | ad0af5639f741db18201889aaa19997536889320 | 1840ef87a1208b9483fa486e78983e91d632b254 | refs/heads/master | 2020-05-30T05:28:04.568169 | 2014-03-09T19:06:56 | 2014-03-09T19:06:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,720 | py | #!/usr/bin/env python
import time
import RPi.GPIO as GPIO
from apns import APNs, Payload, PayloadAlert
button_pin = 25
motion_input_pin = 24
motion_output_pin = 23
motion_trigger_pin = 18
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.setup(button_pin, GPIO.IN)
GPIO.setup(motion_input_pin, GPIO.IN)
GPIO.setup(m... | [
"dudelee@gmail.com"
] | dudelee@gmail.com |
97b42382f4a02d17d0c4e373eb23771a08c9a8e2 | eed816e3a00cdedbd2556257c3689e5c12970838 | /flaskr.py | fa463b5727e73284059ab820cc8333bda71d8a13 | [] | no_license | enzoliao/flaskr | f35ba3754cc5ac8d505694890f8515f15c1cef41 | 7d2668d7bd339108de2f758289cc5b1d8bb9dfb8 | refs/heads/master | 2016-09-06T15:25:47.120495 | 2015-05-02T16:42:39 | 2015-05-02T16:42:39 | 34,955,426 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,318 | py | import os,sqlite3
from flask import Flask, request, session, g, redirect, url_for, abort, \
render_template, flash
app = Flask(__name__)
app.config.from_object(__name__)
app.config.update(dict(
DATABASE = os.path.join(app.root_path,'flaskr.db'),
DEBUG = True,
SECRET_KEY = 'development key',
USERNA... | [
"lj520113@qq.com"
] | lj520113@qq.com |
57790357a11b82f693fabb647bd204391e2a5368 | a9e3f3ad54ade49c19973707d2beb49f64490efd | /Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/commerce/api/v1/views.py | c85719eccde259580a7818f846c5cf0d12d2b7f5 | [
"AGPL-3.0-only",
"AGPL-3.0-or-later",
"MIT"
] | permissive | luque/better-ways-of-thinking-about-software | 8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d | 5809eaca7079a15ee56b0b7fcfea425337046c97 | refs/heads/master | 2021-11-24T15:10:09.785252 | 2021-11-22T12:14:34 | 2021-11-22T12:14:34 | 163,850,454 | 3 | 1 | MIT | 2021-11-22T12:12:31 | 2019-01-02T14:21:30 | JavaScript | UTF-8 | Python | false | false | 3,600 | py | """
Commerce views
"""
import logging
from django.contrib.auth.models import User # lint-amnesty, pylint: disable=imported-auth-user
from django.http import Http404
from edx_rest_api_client import exceptions
from edx_rest_framework_extensions.auth.jwt.authentication import JwtAuthentication
from rest_framework.auth... | [
"rafael.luque@osoco.es"
] | rafael.luque@osoco.es |
fec36ada880c7c618731dcb5ab9f661dbb261c6e | ba30d30255c53513a5e675712e613c7dce656a94 | /sorting/bucketSort.py | 31fa6cce7d5c0990b255ac475b7c56db8163d4e4 | [] | no_license | middnight/python-ds | d32a6ebca5cc9faa66e2ba3a1af24a9c24e0540a | 22ec404df026a60f795112ca03b1fa5444a8c0f5 | refs/heads/master | 2020-08-10T00:22:22.787143 | 2019-11-01T05:21:47 | 2019-11-01T05:21:47 | 214,208,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | import quickSort
import math
# in bukcetsort we divide the given array into number of buckets and
# sort them independetly and combine them
def bucketSort(array,maxValue):
noOfBuckets=int(math.floor(math.sqrt(len(array))))
print(noOfBuckets)
buckets=list()
for i in range(noOfBuckets):
buckets.... | [
"shivamgiri420@gmail.com"
] | shivamgiri420@gmail.com |
49f552812ae2ebc0e2cb7111c0f72e6044fd22b7 | d96f75610758fd6e193d575a2c5ba72c420d90e8 | /blog/migrations/0001_initial.py | ae82676f9c48d490aaed6c97ff64cd7594a38393 | [] | no_license | barlapelican/my-first-blog | 4a20ef5f3723209225510436513321b10b5d9fcf | 1594006935765d288434d4542502deb3e954f974 | refs/heads/master | 2020-06-17T06:06:07.116828 | 2019-07-08T13:53:25 | 2019-07-08T13:53:25 | 195,823,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | # Generated by Django 2.0.13 on 2019-07-08 13:06
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AU... | [
"du@example.com"
] | du@example.com |
4b130f03d823aa241382398a6ed947de6c38629d | fabc3673599368ceba061e2d50404841141b5f1d | /StockPricePredictor_using_LR.py | 9b33c90450844408d60851874c1400bd9ea7c344 | [] | no_license | Rishit-Pandit/StockPricePredictor_using_LR | c9c4644e2590555e09421fafb42aea53ae9ed6f8 | 2607ca37966ad212a23d9d1ceb5395e50e8aabec | refs/heads/master | 2022-12-28T05:17:46.066106 | 2020-10-11T02:50:16 | 2020-10-11T02:50:16 | 245,419,235 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | def stockPredictor(train_dataset, test_dataset, epochs):
# Getting the datsets
train_dataset = pd.read_csv(train_dataset, sep=",")
train_dataset = train_dataset[["Open", "Close"]]
test_dataset = pd.read_csv(test_dataset, sep=",")
test_dataset = test_dataset[["Open", "Close"]]
predict = "Close"
... | [
"noreply@github.com"
] | noreply@github.com |
ebb24ff04e8b46cfc88bdc6db232c7205d83292d | b8a8befc3a1df81342eaf2021cd7cfc01652191f | /selenium/test_rebootRouter.py | 6ec987c3e829de2a17fbd0cfa06e3f4e9999c953 | [] | no_license | zachthieme/config | 92963e7ae792c5479e990997f949a33fc19db675 | 77cfa15f9c313ba6ee7b7e78e2a9267710ea657e | refs/heads/master | 2023-03-23T21:35:05.499708 | 2023-03-13T03:30:15 | 2023-03-13T03:30:15 | 1,639,101 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,101 | py | """
If you use Chrome, get Chromedriver and put in your PATH:
http://chromedriver.chromium.org/downloads
If you use Firefox, get Geckodriver and put in your PATH:
https://github.com/mozilla/geckodriver/releases
Also install:
pip install requests
pip install selenium
"""
# Generated by Selenium IDE
import pytest
i... | [
"zach@techsage.org"
] | zach@techsage.org |
6a214f16090768444f40d007f060a5f7ad18c8a5 | 7c355b29791f4a3a8a98b68b05a6668a0f7d2e9e | /models/learning/word_correction.py | c9322d201fb32fdc764e5f290c01302399337693 | [] | no_license | msaspeech/Arabic_ASR | 4b14aba71ef949da81bfae472502ab26f7afc232 | dac9dbfdfb3d66155b6a61bcb3ff17c4a38d827d | refs/heads/master | 2023-04-08T07:56:32.763349 | 2019-07-22T10:01:38 | 2019-07-22T10:01:38 | 191,977,084 | 3 | 2 | null | 2023-03-24T23:08:06 | 2019-06-14T16:46:16 | Python | UTF-8 | Python | false | false | 1,606 | py | from etc import settings
def min_edit_distance(s, t):
"""
iterative_levenshtein(s, t) -> ldist
ldist is the Levenshtein distance between the strings
s and t.
For all i and j, dist[i,j] will contain the Levenshtein
distance between the first i characters of s and the
... | [
"yasmine.hadjeres@gmail.com"
] | yasmine.hadjeres@gmail.com |
9e1d8e2de437c05c4bfb0801655ea47bebb855fb | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_palls.py | dbff538f21fd450bb0e9c7a702715178521cdfad | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py |
#calss header
class _PALLS():
def __init__(self,):
self.name = "PALLS"
self.definitions = pall
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['pall']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
29a18ab38439b4ef53d731ece9a96a3b4ec1e9f9 | d00148377b7dcc920c27a88a25994a45e9431565 | /users/urls.py | 5796e0d8cef4bdae08783de284da7584987c74dc | [] | no_license | manavmarya/CourseProduct | 8c8f086303976717847510c28aac943ffd21692d | 8832afc500c2613c99f60aed74e2241081cad84f | refs/heads/main | 2023-06-10T21:53:49.701217 | 2021-07-07T18:57:44 | 2021-07-07T18:57:44 | 383,895,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | from django.urls import path
from .views import view_register
app_name = 'users'
urlpatterns = [
path('register/', view_register, name='view_register'), #register_view with bootstrapped template
] | [
"manu.marya@gmail.com"
] | manu.marya@gmail.com |
345d3c2e48529480d8c9426f95b685da2543ecb8 | 945560dc1ccb5c9cc4f12ddffa7a18ffb664d88b | /application.py | acad2695df20333f26529fa0f760d6a05843f9a4 | [] | no_license | wsladek/finance | a422ea7f7a171dcde4747fa1cf45dafa63dbedb3 | cbcbe2a268d0998602b5eb31637db6f3017bc4ee | refs/heads/master | 2020-03-30T05:26:36.166448 | 2018-09-28T22:09:55 | 2018-09-28T22:09:55 | 150,799,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,775 | py | import os
from cs50 import SQL
from flask import Flask, flash, redirect, render_template, request, session
from flask_session import Session
from tempfile import mkdtemp
from werkzeug.exceptions import default_exceptions
from werkzeug.security import check_password_hash, generate_password_hash
from helpers import apo... | [
"wsladek@protonmail.com"
] | wsladek@protonmail.com |
3498868b0b750bda0169ecc70e6676ab407c13b9 | e2f4cbbde6cd6f169a5ac36a5ae050d89f895158 | /Python_Workspace/Modules/package1/mod2.py | ebb9da7375c3d08a03d56eee659d36357caa8574 | [] | no_license | shubhamkumar1739/Linux_Workshop | 7a8511eebb049d6a0518bd1c8101038bc6b0e4e9 | c22e51943f012981165c41a76cea50b142bf3d77 | refs/heads/master | 2020-03-30T13:03:12.525964 | 2018-10-06T03:34:58 | 2018-10-06T03:34:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11 | py | var1_m2=77
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
6c4244af5d6f2a0eff981e0c3b1370f2010fc688 | 88c2dcf59f4d526e6b46bd31d1f1a2c1467d4305 | /main.py | 08633db0f1ef418e0775d312f57694a670937e92 | [] | no_license | AndreyMendoza/InformationRetrieval | 928464147820f653c530e5b73344fa71839ed1df | 0772604f68656a81b39e93956d242a3ffc59e428 | refs/heads/master | 2021-01-19T13:05:55.482418 | 2017-09-12T02:24:47 | 2017-09-12T02:24:47 | 100,820,571 | 0 | 0 | null | 2017-08-21T14:39:23 | 2017-08-19T20:49:10 | Python | UTF-8 | Python | false | false | 1,381 | py | from Code.Indexer import *
from Code.SearchEngine import *
import sys
def main(argv):
if argv[0].lower() == 'generar':
try:
stopwordsPath = argv[1]
collectionPath = argv[2]
prefix = argv[3]
start = time.clock()
indexer = Indexer()... | [
"andreymendozaf@gmail.com"
] | andreymendozaf@gmail.com |
482163336f01da664ce4b0633da58252a0d39131 | e1b09412691d9d375637760f9226e97a9927f108 | /day18 网络编程又试/老师给的答案-函数式/server.py | d7b72e87a7eb090f0b86e2fc3aa5e7f5aa80b356 | [] | no_license | fallencrasher/python-learning | 572988c5d3cb6f97dcefdcdaf27101283756ebc7 | ec712211a4e8895b31212ff750731be60781d0ca | refs/heads/master | 2021-05-20T19:35:07.485620 | 2020-05-18T13:11:45 | 2020-05-18T13:11:45 | 252,392,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,193 | py | import os
import sys
import json
import struct
import socket
import hashlib
def my_send(conn,dic):
str_dic = json.dumps(dic)
b_dic = str_dic.encode('utf-8')
mlen = struct.pack('i',len(b_dic))
conn.send(mlen)
conn.send(b_dic)
def my_recv(conn):
msg_len = conn.recv(4)
dic_len = struct.unpack... | [
"fallencrasher"
] | fallencrasher |
5d78a9b36cb742eaa13ebc8ed0e02a25b5f61a5b | db64e360f4f0a87d09f8730c9499f40561e38811 | /src/Ships/draw_model.py | 3d3eae5935038333e1eaa51d0eee36e012e0b57c | [
"MIT"
] | permissive | BobMak/SpaceShooter | 9006f1929e528de9173006c736b9e1876d5f516f | ae2725fee90b01993f71f5a6bbe6d48f89b70704 | refs/heads/master | 2022-09-13T02:53:09.822363 | 2022-09-08T04:53:31 | 2022-09-08T04:53:31 | 116,071,694 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 8,849 | py | import torch
import torch.nn as nn
import torchvision.utils as vutils
import numpy as np
"""
The equation numbers on the comments corresponding
to the relevant equation given in the paper:
DRAW: A Recurrent Neural Network For Image Generation.
"""
class DRAWModel(nn.Module):
def __init__(self, params):
su... | [
"vlmr.mko@gmail.com"
] | vlmr.mko@gmail.com |
3f395841d95506c7c4b11095f96b073ae8043dea | b5a7c9ae13c81d655c176ceb0b8a73b4399cbf7a | /practico_02/ejercicio_01.py | 847b669e2c61394631d2e994bc0d7f2731006427 | [
"MIT"
] | permissive | ELC/TUPPython | 7459f4af5eb0306da1a61fd1e175ca4a68e5ac46 | 0115ece1dfdd599626f1cdeb410245fbee2aa4f8 | refs/heads/master | 2023-06-07T21:03:12.151001 | 2021-03-17T22:31:51 | 2021-03-17T22:31:51 | 338,466,855 | 1 | 1 | MIT | 2021-02-28T02:48:20 | 2021-02-13T00:36:50 | Python | UTF-8 | Python | false | false | 856 | py | """Módulos
Antes de realizar este TP, se recomienda ver el siguiente video:
https://youtu.be/A47sszUdTsM
En este archivo se deben importar los módulos:
- main.py as main
- source/util.py as util
- source/controller/controller.py as controller
Los imports deben hacerse de forma tal que funcionen con TODAS las formas... | [
"elcg@gmx.com"
] | elcg@gmx.com |
6cec9766b38840c54144d69fd7f4155966cdbf70 | 0383bd108d31b0d7ef68a834d179909ce4974d87 | /python/rna-transcription/rna_transcription.py | db2a45ec3666c25dd9a9b1d362fe912c7c4b5965 | [] | no_license | andreffs18/Exercism | f9f77412ca2b59814ebeffd196b125c34819c1e4 | f55843d4d1690b2e8e9ce1db2397b71585c75bd2 | refs/heads/master | 2021-06-24T19:36:18.816111 | 2020-11-04T23:59:22 | 2020-11-04T23:59:22 | 157,999,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | def to_rna(dna_strand):
# Correspondence between DNA and RNA strands
MAP = {
"G": "C",
"C": "G",
"T": "A",
"A": "U"
}
return "".join(map(lambda n: MAP.get(n), list(dna_strand)))
| [
"andreffs18@gmail.com"
] | andreffs18@gmail.com |
bcfcc7bae25fd9d76b109dd19ccf3187322dc158 | 8ac9c0acd1550fa5211376dd138d4ec85c6ab002 | /matmul_custom.py | f01da9fe8e744fd50445feca8910f8219bbac117 | [] | no_license | wmstack/gci_matrix_multiplication | 7cf788dacdade696253b6bc8f3b91b7767a32fe3 | 0b1147c8a42d36e38e127669a3c6fafa3cd05194 | refs/heads/master | 2020-12-04T15:53:29.745973 | 2020-01-06T03:23:10 | 2020-01-06T03:23:10 | 231,825,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,807 | py | import numba
@numba.jit
def dot_loop_jit(x,y):
sum = 0
for i in range(len(x)):
sum+= x[i]*y[i]
return sum
@numba.jit
def matmul_jit(x, y):
#generic matmul
#not just matmul of n x n matrices
#matmul, the length of a row of the first matrix 'x'
#is equal to the length of a column o... | [
"AngularOrbit@gmail.com"
] | AngularOrbit@gmail.com |
65304b4d8e1449655dc12c1a82cdf4759bbffa77 | a43aeb1f7b6d722a663b89a63a65ead11f5c8fce | /mesonbuild/mesondata.py | b0515c0e052e27509a86cc564bc0c9135ebba89e | [
"Apache-2.0"
] | permissive | monwarez/meson | 5ae097cc265f160ba37ce04ce82f693dd1cb013b | 63814543de6f46fc8aee7d3884a8746c968806ca | refs/heads/master | 2023-01-14T00:50:16.310345 | 2020-11-03T21:31:44 | 2020-11-04T10:24:48 | 300,214,277 | 1 | 0 | Apache-2.0 | 2020-10-01T09:02:20 | 2020-10-01T09:02:19 | null | UTF-8 | Python | false | false | 11,088 | py | # Copyright 2020 The Meson development team
# 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 ... | [
"daniel@mensinger-ka.de"
] | daniel@mensinger-ka.de |
fbe657576a5f4817faee93631a0c29bd41fef7fd | 43461f999228079c9bfee03f0e4043f08426051f | /python_zero/飞机大战/hm_11_监听退出事件.py | ac165dcc7445e849fe8d415791911b793b4875e3 | [] | no_license | MapleStoryBoy/spider | f9af844ae9812fe21141060213ac2677e719ac73 | b014d81d52805f9317e85b66024d047e73d59053 | refs/heads/master | 2020-05-21T18:27:50.585790 | 2019-07-12T10:11:58 | 2019-07-12T10:11:58 | 186,132,575 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,376 | py | import pygame
# 游戏的初始化
pygame.init()
# 创建游戏的窗口 480 * 700
screen = pygame.display.set_mode((480, 700))
# 绘制背景图像
bg = pygame.image.load("./images/background.png")
screen.blit(bg, (0, 0))
# pygame.display.update()
# 绘制英雄的飞机
hero = pygame.image.load("./images/me1.png")
screen.blit(hero, (150, 300))
# 可以在所有绘制工作完成之后,统一调... | [
"MapleStoryBoy@163.com"
] | MapleStoryBoy@163.com |
0aefadcd0195f3d016d2f2e73d810a3fa481c9bf | 42c48f3178a48b4a2a0aded547770027bf976350 | /google/ads/google_ads/v3/proto/errors/keyword_plan_keyword_error_pb2.py | 72f053c63c315f0883e175fbdc4ef1c9f7dc2a89 | [
"Apache-2.0"
] | permissive | fiboknacky/google-ads-python | e989464a85f28baca1f28d133994c73759e8b4d6 | a5b6cede64f4d9912ae6ad26927a54e40448c9fe | refs/heads/master | 2021-08-07T20:18:48.618563 | 2020-12-11T09:21:29 | 2020-12-11T09:21:29 | 229,712,514 | 0 | 0 | Apache-2.0 | 2019-12-23T08:44:49 | 2019-12-23T08:44:49 | null | UTF-8 | Python | false | true | 5,055 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v3/proto/errors/keyword_plan_keyword_error.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.prot... | [
"noreply@github.com"
] | noreply@github.com |
dcfec26514be15bd4e745ade65ef258850993e93 | 6fa6b787224c697b27233be35731bc6cd1cdcc51 | /python/DjangoWebProject/django_newswebsite/news/webhose_search.py | 8b16f9089032dc660f28ec20ec6d739b0a7aeaeb | [] | no_license | Olaful/Olaful.github.io | 159703563eca6e505a6516d0a248ad549b0565d1 | aeb2cd95599667767c0be3c5f23a040a416652cc | refs/heads/master | 2022-12-11T20:31:31.957940 | 2019-02-20T09:22:22 | 2019-02-20T09:22:22 | 139,222,471 | 0 | 0 | null | 2022-12-08T01:37:29 | 2018-06-30T05:39:47 | C | UTF-8 | Python | false | false | 1,468 | py | import json
import urllib.parse
import urllib.request
import os
# 读取webhose search key
def read_webhose_key():
web_hose_key = None
try:
with open('E:\hexo\source.Olaful.github.io\Olaful.github.io\python\DjangoWebProject\django_newswebsite\search.key', 'r') as f:
web_hose_key = f.readline(... | [
"1764740905@qq.com"
] | 1764740905@qq.com |
1719fe5138986b05ab207d3c7b30490116f74c96 | e980e13bd0d264b3880705fb53a795a89fb5cfe6 | /sales_order/repair_order.py | f6ba01e2762bf878cdbc8480aa7f1e1f9f8ddf80 | [] | no_license | qianpeng-shen/u8 | 8e430ccab5390254b6660cbd047fc2ac495a04ca | 7fd28399dbf921826c1ef024800994412ab1b623 | refs/heads/master | 2020-05-13T20:28:16.764800 | 2019-04-16T09:29:58 | 2019-04-16T09:29:58 | 181,657,315 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,972 | py | # -*- coding:utf-8 -*-
#解析维修类维修工单数据
def analysis_repair(data):
repair_list = []
for repair in range(1,data.nrows):
repair_dict = {}
repair_dict['Status'] = data.cell(repair,1).value
repair_dict['UserID_ZDR'] = data.cell(repair,7).value
repair_dict['AdgoupID'] = data.cell(repa... | [
"shenqianpeng@chengfayun.com"
] | shenqianpeng@chengfayun.com |
db4bc9a1b1db2b8a2081ccbfc57774f296f255e9 | 1f9e643698f683e77ed5f253cafda776b204f5d2 | /backend/franchise_guru_4345/urls.py | 5f0e09df865079b377bc64581a60b6f4c1dedb06 | [] | no_license | crowdbotics-apps/franchise-guru-4345 | ca907aaed1618abd5828ce20c108a90f01f09af7 | 53712fe881aa94579121e1c7384ab3e039fccd9d | refs/heads/master | 2022-12-12T06:50:11.577025 | 2019-06-06T20:54:46 | 2019-06-06T20:54:46 | 190,648,540 | 0 | 0 | null | 2022-12-06T16:07:16 | 2019-06-06T20:54:42 | JavaScript | UTF-8 | Python | false | false | 1,074 | py | """franchise_guru_4345 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='hom... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
5ec23bfac0f13f11f9935fea8caf3b8b1e956401 | c4af67db4c523d20f2d55aef90ba77db1fb53c38 | /CMFCalendar/testing.py | 0918f04c86d1a5fb9cdbaaf7709a9ab261d013b7 | [] | no_license | dtgit/dtedu | e59b16612d7d9ea064026bf80a44657082ef45a3 | d787885fe7ed0de6f9e40e9b05d852a0e9d60677 | refs/heads/master | 2020-04-06T05:22:50.025074 | 2009-04-08T20:13:20 | 2009-04-08T20:13:20 | 171,351 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,008 | py | ##############################################################################
#
# Copyright (c) 2006 Zope Corporation and Contributors. All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFT... | [
"ron@domU-12-31-39-02-65-03.compute-1.internal"
] | ron@domU-12-31-39-02-65-03.compute-1.internal |
512f743f178083fb81bec78e4a2fc825cdc3042b | 467f10b7537f12e3532537579513da8849848eaa | /PythonCode/Simple Models/DecisionTreeTest.py | 415683197c0adbe45254f3070dc9ecb0db279b21 | [] | no_license | MatthewR2D2/MachineLearningCodes | db5a71efc0f4bcb6f8857efd9560b5be8ef3a857 | df18a73227662b312987cae28d312380be6474c0 | refs/heads/master | 2021-06-12T15:45:16.781989 | 2019-05-31T01:57:35 | 2019-05-31T01:57:35 | 128,754,682 | 0 | 0 | null | 2019-02-14T00:33:08 | 2018-04-09T10:28:14 | Python | UTF-8 | Python | false | false | 1,346 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 16 14:34:10 2018
@author: Matthew
Decision tree test
"""
import numpy as np
import pandas as pd
from sklearn.cross_validation import train_test_split
from sklearn.tree import DecisionTreeClassifier
from sklearn.metrics import accuracy_score
from sklearn import tree
ba... | [
"matthew.c.r.millar@gmail.com"
] | matthew.c.r.millar@gmail.com |
4e16707675ff3ce65d4c5680f5812933ddc51b5a | 9939b5e3282aaba4e3919882d78051cdaeec2e5b | /May_LeetCode_ challenge/Solutions/validPerfectSquare.py | 5fa97192d3b6b0c7eca38aeac755c114b4de8f69 | [] | no_license | lalitha1201/Leetcode | 354fe13fe37899add8dbffcc1f7499333dfe9699 | 07dc21b26f5f63f985dac7f947af0ad06f4ed804 | refs/heads/master | 2021-02-08T05:18:22.963339 | 2020-06-17T21:48:06 | 2020-06-17T21:48:06 | 244,113,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | class Solution:
def isPerfectSquare(self, num: int) -> bool:
if num < 2:
return True
#Binary Search
left,right = 2,num // 2
while left <= right:
mid = left + (right - left) // 2
... | [
"noreply@github.com"
] | noreply@github.com |
ccc354609c45ef1034bc8a7509dd5c0b9d9ac19d | 1aede0d3eb8ab8b717a59c6922d713ecdeda7bd2 | /FeatureExtraction.py | f1fc93035b768462f2948338fd92cdf0fcbbdb7b | [] | no_license | jakeoneijk/JDC_reproduce | 118cb52b58800875ea79f76780ee1b1edf09c7b7 | 00518230a169dc7ae7374b9fbeae03c5351ce986 | refs/heads/master | 2022-12-15T11:20:01.313497 | 2020-09-02T06:27:41 | 2020-09-02T06:27:41 | 290,144,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,842 | py | from madmom.audio.signal import *
import librosa
import Options
class FeatureExtraction():
def __init__(self,file_path):
self.options = Options.Options()
self.file_path = file_path
self.input_win_size = self.options.input_size
self.frames_data_mean = np.load('./x_data_mean_total_31.n... | [
"jakeoneijk@gmail.com"
] | jakeoneijk@gmail.com |
c400f98ced7f3f36cff04953875b460296b69476 | 567e3166a55bb8d7c0fdc13b00719b5ccf342de8 | /exe005.py | 501f36294c71e29b358925fef0eead1d51a192c0 | [] | no_license | marcelogabrielcn/ExerciciosPython | 58b305e027b01f0e60c603d0e91c7f5582a7c13e | b26992d1767c7e94bbd5b8a24097a49ba2e0730e | refs/heads/main | 2023-07-08T11:47:02.267192 | 2021-07-29T11:49:05 | 2021-07-29T11:49:05 | 332,736,516 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | num = int(input('Digite um número: '))
ant = num - 1
sus = num + 1
print('Você digitou o número {}, seu antecessor é {} e seu sucessor é {}.'.format(num, ant, sus))
| [
"marcelogabrielcn@outlook.com"
] | marcelogabrielcn@outlook.com |
6485d44a97f1ed29a4fa36480a7c390436e0aa7f | 2b25aae9266437b657e748f3d6fea4db9e9d7f15 | /CMU/6lab/coroutines1.py | a44559612b62e023d62943e13b80f94a5246447f | [] | no_license | Zilby/Stuy-Stuff | b1c3bc23abf40092a8a7a80e406e7c412bd22ae0 | 5c5e375304952f62667d3b34b36f0056c1a8e753 | refs/heads/master | 2020-05-18T03:03:48.210196 | 2018-11-15T04:50:03 | 2018-11-15T04:50:03 | 24,191,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | s="The quick brown fox jumped over the lazy old dog."
def capitalize():
while True:
value=yield
print value.upper()
c=capitalize()
c.next()
for word in s.split():
c.send(word)
| [
"azilby@gmail.com"
] | azilby@gmail.com |
5df12bb3c3ab044ed39bc4a083440088d15e9327 | 61d26c02b221409dccdb11cc67d3c88bf83c5ae4 | /sweeper.py | 3611b63c954a367c098fec0ec4225fce00ce0e78 | [] | no_license | kyeb/social-sweeper | ca958eacfb84149bb447fc3035617d1fa26ca165 | bbbcafa985494b22e944bac7650fb70cb261d7e1 | refs/heads/master | 2021-02-13T23:08:14.277996 | 2020-03-28T16:46:15 | 2020-03-28T16:46:15 | 244,743,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,582 | py | import time
import selenium
import pandas as pd
from fuzzywuzzy import fuzz
from fuzzywuzzy import process
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
def main():
url = "https://facebook.com"
email = "social.sweeper.91@gmail.com"
pw = "FLXJwaPN6CLopu"
voterfile = "dat... | [
"kyeb@mit.edu"
] | kyeb@mit.edu |
06d32937b804145051de857406e923b530acd561 | 81e8d73dde8f5bf3ed4600a5030ca97fed3037a0 | /manage.py | b794a64e9c94d440c2490bc5bbfd96b758f8939e | [] | no_license | xdainiusx/datadog | 474e36731d82a1e2785673b4c1732f73755dd2d4 | 579f91344c03bca358d70631fa588234d3054aa9 | refs/heads/master | 2021-06-15T19:53:33.629828 | 2017-04-20T04:39:28 | 2017-04-20T04:39:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "datadog.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | [
"dainiusgri@gmail.com"
] | dainiusgri@gmail.com |
4fed6cdfbfd5f2a72de1850169ab92171fcb5f2b | ded46c3a86c2a70328a63d779ac038d636ae5906 | /_WSpython/Pandas06_04_GroupByChkPop_최임정.py | 25b7e2d0123dcbc8d13c20046ed655462fdfe522 | [] | no_license | imjoung/hongik_univ | 82d0e7ea31763713f51bbde9d45e4aae5cb73849 | 82a3a77605d74d13eb76b915b215f6e245968180 | refs/heads/main | 2023-06-24T12:49:46.087083 | 2021-07-15T06:31:57 | 2021-07-15T06:31:57 | 379,128,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py |
# coding: utf-8
# In[19]:
import pandas as pd
df=pd.read_csv('../data/gapminder.tsv','\t')
# In[20]:
uniqueList=df['year'].unique()
for idx in uniqueList:
yearList=df[df['year'] == idx]
print(yearList['pop'].mean())
| [
"noreply@github.com"
] | noreply@github.com |
4dbe28f447d44d4b15b2247953609131c350e18f | 1fea0b975a90dc872be993a95a1ef004db5ce9d2 | /couchman/workers_list.py | ea12a55f5ec075acf09dffe926dffdc397ada662 | [] | no_license | kolyanu4/couchman | e413a1c29699773b12a34e21292598af2a7083f9 | 1921f09125b26f7f0df1cc2822a1cc65cd2ef8d7 | refs/heads/master | 2020-06-03T15:42:15.013873 | 2012-10-11T20:27:04 | 2012-10-11T20:27:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,463 | py | from PySide.QtCore import *
from PySide.QtGui import *
from UI.UI_WorkersWindow import *
class WorkerListTreeModel(QAbstractTableModel):
def __init__(self, workers, parent = None):
QAbstractTableModel.__init__(self, parent)
self.workers = workers
self.headers = ("Server Name", "Last Command... | [
"nikolay.gavrilyuk@smscoin.com"
] | nikolay.gavrilyuk@smscoin.com |
25f184177bdea0d92d22708deb5f44b2c728d672 | 7baf97a9168cffc5dd25cf50b4d5c33b91211800 | /notebook_files/quera/10325/35659/functions.py | 54c39b6330addfd4e10899a24d7da3e7c341be57 | [
"MIT"
] | permissive | rezashabrang/QueraAICourse | b39fe5aab398a1905caa6e59e0a205936abe341e | df70e72f5be10827a5d76779594a4dd3f9ce64ec | refs/heads/main | 2023-01-31T00:23:36.360871 | 2020-12-19T10:04:58 | 2020-12-19T10:04:58 | 322,816,124 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | # IN THE NAME OF ALLAH
# modules
from sklearn.model_selection import train_test_split
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import accuracy_score
def regressor(latitude, longitude, train):
train['index'] = np.... | [
"53796036+rezashabrang@users.noreply.github.com"
] | 53796036+rezashabrang@users.noreply.github.com |
3bba77b7c6284cdfb9431387f06ec3d8545b0954 | 8e195bac1cc0f2436eb8e06e3422d69d9767991c | /0810/1.py | eef139966eb6d6986169e6cf56577f5bb998166c | [] | no_license | RudiFrost/homework_python | c354cbadc4f03fac0c284021a187bf6352c94d80 | bfbba625ceef2bc8ad56b0cfc8cdc44170828e5e | refs/heads/master | 2023-09-01T23:18:47.658023 | 2021-11-09T10:48:42 | 2021-11-09T10:48:42 | 411,655,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | import string
import random
def gen_string(n):
length = ""
for i in range(n):
length += (random.choice(string.ascii_letters))
return length
def counter(length):
low = 0
cap = 0
for i in length:
if i in string.ascii_lowercase:
low += 1
elif i in string.asci... | [
"rudifrost255@gmail.com"
] | rudifrost255@gmail.com |
3401ca65f75073dbe9b340ead4558693cb3b86eb | 1605c2db57cabfce9d146e891b22e38b85c37035 | /docs/reference/actions.py | d30f816795f6bc57107f80a8fc893396be519c45 | [
"Apache-2.0"
] | permissive | sylvielamythepaut/climetlab | 22499475e2220021145f4f6c84f6526a19d43ba4 | 59516b8a510ad506a12ad32bea9e8b98bdb9abf3 | refs/heads/master | 2022-12-21T11:51:41.243440 | 2020-09-18T07:42:45 | 2020-09-18T07:42:45 | 296,547,196 | 0 | 0 | Apache-2.0 | 2020-09-18T07:42:46 | 2020-09-18T07:30:00 | null | UTF-8 | Python | false | false | 10,710 | py | import inspect
from typing import List
from Magics import macro
def _given_args(frame):
func = frame.f_globals[frame.f_code.co_name]
user_args = inspect.getargvalues(frame)
code_args = inspect.getfullargspec(func)
given = {}
if code_args.kwonlydefaults:
pairs = list(code_args.kwonlydefaul... | [
"baudouin.raoult@ecmwf.int"
] | baudouin.raoult@ecmwf.int |
901cbdb8aaf5025de04b38e8d896da84b2f6c271 | 3461932ca626d3714553aa67415d717353262093 | /apps/upload/views.py | ac8376d37c74c8464f42727468052aa0eb511d0b | [
"MIT"
] | permissive | cmchang/nbproject | 2afd20048dfc4564a6d9ac893b07b024471128a2 | 57a1105282ec1a4a3c76602996c08ec2891450cc | refs/heads/master | 2020-02-26T15:37:01.160559 | 2014-01-09T00:53:51 | 2014-01-09T00:53:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,066 | py | """
views.py - uploading file features
Author
Sacha Zyto <sacha@csail.mit.edu>
License
Copyright (c) 2010-2012 Massachusetts Institute of Technology.
MIT License (cf. MIT-LICENSE.txt or http://www.opensource.org/licenses/mit-license.php)
"""
import logging
from base import utils_response as UR
from djan... | [
"sachazyto@gmail.com"
] | sachazyto@gmail.com |
3660a26c28704218ecb0ac983cd3235d7b546ac6 | 8c93c1b5774a599e6d4ccdb2cd4769b5ec34be94 | /server/db.py | aa2d14561df496494e8934abb32210893624a622 | [] | no_license | Jatin-Nagpal/CF-like-quiz-app | ca86798ad4e75b795be5a56df3fa1d039e55441e | 03b156c40a287237c6c7066c65f33947071a5c84 | refs/heads/master | 2021-06-28T06:58:14.972296 | 2019-11-28T07:21:19 | 2019-11-28T07:21:19 | 223,646,479 | 1 | 0 | null | 2021-03-20T02:16:18 | 2019-11-23T20:09:06 | Python | UTF-8 | Python | false | false | 710 | py | import sqlite3
import click
from flask import current_app, g
from flask.cli import with_appcontext
def get_db():
if "db" not in g:
g.db = sqlite3.connect(
current_app.config["DATABASE"],
detect_types = sqlite3.PARSE_DECLTYPES
)
g.db.row_factory = sqlite3.Row
return g.db
def close_db(e = None):
db = g.... | [
"nagpaljatin1411@gmail.com"
] | nagpaljatin1411@gmail.com |
b547432212b4727c24f6fc1ee304ee96e9148550 | f25878f99d67d726a3bdaacc5c2197a63c2a9a52 | /oop/3v1.py | e99cc88fb31cbd6c454c93f866587eb5d4402d0f | [] | no_license | andrabogildea/cci | 385c859c7086d6efaa5634241a8970a0c466fc50 | 7db2ef50b896ebf1c242570a13777865fc5e8162 | refs/heads/master | 2021-08-29T22:42:44.512630 | 2017-12-15T06:10:56 | 2017-12-15T06:10:56 | 114,332,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,675 | py | from collections import deque
from copy import copy
class Song:
#this needs to be a singleton
def __init__(self, title, duration):
self.title = title
self.duration = duration
self.playing = False
self.curr_sec = 0
def play(self):
curr_duration = self.duration - sel... | [
"andra.bogildea@gmail.com"
] | andra.bogildea@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.